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.
npx skills add Karthick-Ramachandran/persist-os --skill capture-mcp-contextgit clone --depth 1 https://github.com/Karthick-Ramachandran/persist-osWrote 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.
[](https://agentmods.dev/skills/karthick-ramachandran/persist-os/capture-mcp-context)<a href="https://agentmods.dev/skills/karthick-ramachandran/persist-os/capture-mcp-context"><img src="https://agentmods.dev/badge/skills/karthick-ramachandran/persist-os/capture-mcp-context/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/karthick-ramachandran/persist-os/capture-mcp-context"><img src="https://agentmods.dev/badge/skills/karthick-ramachandran/persist-os/capture-mcp-context.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00059 | $0.00464 |
| Opus 5 | $0.00030 | $0.00232 |
| Sonnet 5 | $0.00012 | $0.00093 |
| Haiku 4.5 | $0.00006 | $0.00046 |
Grade A, and why
capture-mcp-context scanned grade A with 0 findings 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 11d 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.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
What it actually says
Skill: Capture MCP Context
Purpose
Persist the durable parts of MCP-derived external context so future sessions remember them instead of re-deriving them.
MCP provides context, not architectural truth.
Inputs
- The MCP server or external tool in use (for example Figma, Linear, Jira, Sentry).
- The external context retrieved (design tokens, tickets, errors, docs).
- The current feature or task.
Required Reading
docs/ai/MCP_STRATEGY.md- Relevant
docs/ai/mcp/<server>.md - Relevant feature and architecture docs.
Output Files
- The Captured Context section of
docs/ai/mcp/<server>.md. - An ADR via
persist adr createwhen a captured decision is accepted.
Process
- Identify the MCP server and the durable facts worth remembering (design tokens, component mappings, ticket acceptance criteria, recurring error signatures).
- If
docs/ai/mcp/<server>.mddoes not exist, create it withpersist mcp add <server>. - Record the durable context in the Captured Context section as proposed memory, with enough detail to reuse.
- Capture decisions, mappings, and constraints, not raw exports or full dumps.
- Treat MCP content as context, not truth; if it conflicts with accepted memory, stop and report.
- Promote any accepted decision into an ADR.
Stop Conditions
Stop and request human decision if:
- MCP content conflicts with accepted repository memory.
- Capturing the context would require storing secrets or sensitive data.
- The MCP server is untrusted or its access is unclear.
Quality Bar
- Captured context is durable and reusable, not a raw dump.
- Each entry is concrete enough to guide future work.
- MCP context is recorded as proposed, not accepted.
- Accepted decisions are promoted to ADRs.
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.
- 11d ago First seen · 60 lines · 59 tokens per session scan A eea504393a1c
capture-mcp-context is a skill published in the GitHub repository Karthick-Ramachandran/persist-os (8 stars, last pushed 2mo ago), licensed MIT. It adds 59 tokens to every session and 464 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
learn
Diagnose and fix agent behavioral surfaces when the user corrects a mistake — connects to Claude native memory.
egregore
Egregore mechanics as kernel functions — search shared memory, read team activity, create handoffs, save work, branch, and prepare notification plans without re-deriving bin/ CLI usage. Import and call directly; every function wraps the same runtime-neutral bin/ scripts the other harnesses use.
init
Turn on Rekal memory in the current repository by running rekal init. Use when the user asks to initialize or set up Rekal here, or when a rekal command reported the repository is not initialized. Once per repository. Do not offer this merely because a repo lacks a .rekal/ store — most repos do not want one.
levelup-specify
Extract Context Directive Records (CDRs) from the current session after completing work. Identifies reusable patterns (rules, personas, examples, evals) and captures directive compliance cases for team-ai-directives.
install
Install the Rekal binary on this machine. Use when rekal is not on PATH — a command reported command not found — or when the user asks to install Rekal. Once per machine, not per repository; to set up a repo that already has the binary, use the init skill instead.
change-publish
Promote accepted Change Decision Records (ChDRs) from drafts to project memory at .adlc/memory/chdr/, write OKF-style frontmatter, and regenerate the boot-facing .adlc/memory/chdr.md index that team-boot injects at session start. Use after /change-clarify has accepted ChDRs.