bootstrap-context

bootstrap-context is a skill for Claude Code, Codex from hmcts/agentic-plugins-marketplace. It costs 67 tokens per session (1,344 once invoked), scanned B, original, MIT.

A skill that creates or updates a hidden Claude Code context file in supported HMCTS API or service repositories. The file imports shared instructions for that repository type.

In plain words
What is it for?
It is for initializing context in repositories whose names start with api-cp- or service-cp-, either automatically at session start or on demand.
Why use it?
It keeps Claude Code aligned with the repository's shared development rules without requiring manual setup each session.

Skill for Claude CodeCodex

Part of the hmcts-apim-sdlc-orchestrator plugin — 8 skills, 11 agents, 3 hooks shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/hmcts/agentic-plugins-marketplace/bootstrap-context
Any agent
npx skills add hmcts/agentic-plugins-marketplace --skill bootstrap-context
Clone the repo
git clone --depth 1 https://github.com/hmcts/agentic-plugins-marketplace

Made for: Claude Code, Codex.

Or install hmcts-apim-sdlc-orchestrator, the plugin that ships this one along with the rest of its 8 skills, 11 agents, 3 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for bootstrap-context

README.md
[![agentmods](https://agentmods.dev/badge/skills/hmcts/agentic-plugins-marketplace/bootstrap-context.svg)](https://agentmods.dev/skills/hmcts/agentic-plugins-marketplace/bootstrap-context)
Your own site
<a href="https://agentmods.dev/skills/hmcts/agentic-plugins-marketplace/bootstrap-context"><img src="https://agentmods.dev/badge/skills/hmcts/agentic-plugins-marketplace/bootstrap-context.svg" alt="Measured on agentmods" height="20"></a>
Per session 67 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,344 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00067 $0.01344
Opus 5 $0.00034 $0.00672
Sonnet 5 $0.00013 $0.00269
Haiku 4.5 $0.00007 $0.00134

Measured 4d ago against content hash 3f4079011e54, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade B, and why

bootstrap-context scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

grep -q "\.claude/CLAUDE\.md" .gitignore 2>/dev/null && echo "already ignored" || echo "missing"
plugins/agents/hmcts-apim-sdlc-orchestrator/skills/bootstrap-context/SKILL.md · 114 lines

How it starts

The opening of the file, as written. The whole thing — 114 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Skill: Bootstrap Context

Automatic: The SessionStart hook (hooks/bootstrap-context.sh) runs this logic automatically whenever Claude Code opens in an api-cp-* or service-cp-* repo. Run /bootstrap-context manually only to force-update.

Trigger

Invoke this skill when a user asks to:

  • Bootstrap Claude context for this repo
  • Wire Claude context for this repo
  • Set up shared template imports for Claude
  • Run /bootstrap-context
  • Initialise .claude/CLAUDE.md

Invocation command: /bootstrap-context


Process

Step 1 — Identify the repo

REPO_NAME=$(basename "$PWD")
echo "Repo: $REPO_NAME"

Step 2 — Detect repo type

  • If $REPO_NAME starts with api-cp-API spec repo → use api-spec-shared.md
  • If $REPO_NAME starts with service-cp-Service repo → use service-shared.md
  • Otherwise → stop and tell the user: "This skill only supports api-cp-* and service-cp-* repos. Current directory: $REPO_NAME."

Step 3 — Create .claude/ directory if needed

mkdir -p .claude

Step 4 — Write .claude/CLAUDE.md

Write exactly 3 lines. Paths are relative from .claude/CLAUDE.md../../agentic-plugins-marketplace/ navigates up to the workspace root and into the marketplace repo. This works on any machine where repos are cloned as siblings.

For api-cp-* repos:

@../../agentic-plugins-marketplace/plugins/agents/hmcts-apim-sdlc-orchestrator/context/shared-code-rules.md
@../../agentic-plugins-marketplace/plugins/agents/hmcts-apim-sdlc-orchestrator/context/api-spec-shared.md
@../../agentic-plugins-marketplace/plugins/agents/hmcts-apim-sdlc-orchestrator/context/claude-md-standards.md

For service-cp-* repos:

@../../agentic-plugins-marketplace/plugins/agents/hmcts-apim-sdlc-orchestrator/context/shared-code-rules.md
@../../agentic-plugins-marketplace/plugins/agents/hmcts-apim-sdlc-orchestrator/context/service-shared.md
@../../agentic-plugins-marketplace/plugins/agents/hmcts-apim-sdlc-orchestrator/context/claude-md-standards.md

Read the full file on GitHub · 114 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 114 lines · 67 tokens per session scan B 3f4079011e54

Subscribe to this mod's changes

bootstrap-context is a skill published in the GitHub repository hmcts/agentic-plugins-marketplace (3 stars, last pushed 8d ago), licensed MIT. It adds 67 tokens to every session and 1,344 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

mem0-oss-to-platform

Plan and then execute a migration of a project from the mem0 open-source / self-hosted SDK (the local Memory class) to the mem0 Platform / hosted / managed SDK (the MemoryClient class). Use this whenever a developer wants to move, switch, or migrate their mem0 usage off OSS/self-hosted to the hosted API — e.g.…

mem0ai/mem0 · 273 tokens

Cortex

Operate Cortex, the LifeOS memory system — the typed Knowledge Archive (People, Companies, Ideas, Research with typed related: links) plus recall of prior work sessions, ISAs, and conversations. Search, add, harvest, develop, ingest, distill, graph-navigate, recall. USE WHEN cortex, knowledge, knowledge base, search…

danielmiessler/LifeOS · 196 tokens

auditing-subgroup-fairness

Audit an OpenMed NER or de-identification model for performance disparities across demographic subgroups (sex, age band, race/ethnicity when available) using openmed.eval.fairnessreport. Use when the user wants per-subgroup recall and leakage, wants to check whether de-identification under-protects a group, wants to…

maziyarpanahi/openmed · 148 tokens

agent-memory

../../../engineering/agent-memory/skills/agent-memory/SKILL.md.

alirezarezvani/claude-skills · 0 tokens

memory

Use when the user asks to remember, recall, forget, update, search, or inspect durable OpenSquilla memory, including profile facts in USER.md and long-term notes in MEMORY.md or memory//.md.

opensquilla/opensquilla · 44 tokens

ha-data-stores

Map of Hope Agent's local data stores and safe read-only query workflow. Use when the user asks where Hope Agent stores data, wants to inspect sessions/messages/memory/logs/background jobs/knowledge indexes/settings, asks the model to query local app data, or debugging requires checking persisted state. Trigger…

shiwenwen/hope-agent · 115 tokens