mtk-agent-toolkit: Skill for Claude Code

.claude/skills/claude-md-capture/SKILL.md

claude-md-capture is a skill for Claude Code from moberghr/mtk-agent-toolkit. It costs 43 tokens per session (2,045 once invoked), scanned A, original, MIT.

A process for saving newly discovered project commands, pitfalls, and patterns into CLAUDE.md, a project instruction file. It prepares minimal additions and applies them only after approval.

In plain words
What is it for?
Use it at the end of a session when you found missing project context that should be recorded for future coding-agent sessions.
Why use it?
It prevents useful session discoveries from being lost while keeping project instructions deliberate and reviewable.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: mentions CLAUDE.md; mentions Codex.

This is moberghr/mtk-agent-toolkit's own configuration. It tells Claude Code how to work on mtk-agent-toolkit itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything mtk-agent-toolkit configures →

Part of the mtk plugin — 45 skills, 6 agents, 7 hooks, 1 MCP server shipped together

Reuse

Borrowing it

Nothing to install: this file belongs to moberghr/mtk-agent-toolkit. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/moberghr/mtk-agent-toolkit/main/.claude/skills/claude-md-capture/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/moberghr/mtk-agent-toolkit

Made for: Claude Code.

Or install mtk, the plugin that ships this one along with the rest of its 45 skills, 6 agents, 7 hooks, 1 MCP server.

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 claude-md-capture

README.md
[![agentmods](https://agentmods.dev/badge/skills/moberghr/mtk-agent-toolkit/claude-md-capture/github.svg)](https://agentmods.dev/skills/moberghr/mtk-agent-toolkit/claude-md-capture)
Your own site
<a href="https://agentmods.dev/skills/moberghr/mtk-agent-toolkit/claude-md-capture"><img src="https://agentmods.dev/badge/skills/moberghr/mtk-agent-toolkit/claude-md-capture/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.

agentmods 80×15 button for claude-md-capture

Your own site · 80×15
<a href="https://agentmods.dev/skills/moberghr/mtk-agent-toolkit/claude-md-capture"><img src="https://agentmods.dev/badge/skills/moberghr/mtk-agent-toolkit/claude-md-capture.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,045 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 2 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Agent Snooping · line 115
    Skill reads from agent configuration directories (.claude/, .codex/, .gemini/). These directories may contain API keys, personal settings, and other credentials that the skill has no legitimate need to access.
    Fix: Remove all code or instructions that access agent configuration directories (.claude/, .codex/, .gemini/). If configuration values are needed, pass them explicitly as parameters or environment variabl
  • medium Agent Snooping · line 158
    Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.
    Fix: Remove all code or instructions that list or read other skills' files or directories. Skills should operate independently; cross-skill access is a privilege escalation.
How audits are shown
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.1 $0.00043 $0.02045
Opus 5 $0.00022 $0.01022
Sonnet 5 $0.00009 $0.00409
Haiku 4.5 $0.00004 $0.00204

Measured yesterday against content hash 753a1dcf7bdb, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

claude-md-capture 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 yesterday.

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.

.claude/skills/claude-md-capture/SKILL.md · 189 lines

How it starts

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

CLAUDE.md Capture

Current Targets

echo "--- Writable CLAUDE.md files ---"
{ find . -maxdepth 6 -name CLAUDE.md -not -path "./.git/*" -not -path "*/node_modules/*" 2>/dev/null; } | sort -u
echo "--- Personal (gitignored) ---"
test -f .claude.local.md && echo ".claude.local.md (present)" || echo ".claude.local.md (absent — create for personal-only notes)"
echo "--- Line budget of root CLAUDE.md ---"
test -f CLAUDE.md && echo "CLAUDE.md: $(wc -l < CLAUDE.md) lines (root cap 120)" || echo "(no root CLAUDE.md — run /mtk-setup first)"

Overview

A session often surfaces context that CLAUDE.md was missing — a build command you had to discover, a gotcha you hit, an env quirk, a pattern the codebase follows. That knowledge should compound into project memory so the next session starts where this one ended. This skill reflects on the finished session, drafts minimal additions, shows them as diffs, and applies only what the engineer approves.

It is distinct from its two siblings:

  • claude-md-audit re-grades what is already in CLAUDE.md against a rubric and fixes rot. Capture adds new knowledge this session produced.
  • correction-capture records engineer corrections as reusable lessons in lessons.md. Capture records project facts (commands, gotchas, env) into CLAUDE.md — the prompt every session loads.

It honors S1.5 (CLAUDE.md is protected): append-only by default, Edit never Write, no additions applied before approval.

When To Use

  • At the end of a session that revealed context CLAUDE.md was missing
  • When the engineer says "save what we learned", "update CLAUDE.md", "remember this for next time", or invokes the equivalent end-of-session capture
  • After discovering a non-obvious command, env requirement, or codebase pattern that future sessions will need

When NOT To Use

  • First-time repo setup — use /mtk-setup (runs setup-bootstrap)
  • Mid-task — capture at a natural stopping point, not while work is in flight
  • Re-grading or fixing stale content — use claude-md-audit
  • Recording an engineer correction — use correction-capture (writes a lesson, not a CLAUDE.md fact)
  • The session surfaced nothing durable — say so and stop. Do not manufacture additions to look useful.

Read the full file on GitHub · 189 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. yesterday Changed 753a1dcf7bdb
  2. 10d ago First seen · 189 lines · 43 tokens per session scan A 8939ee547bd9

Subscribe to this mod's changes

claude-md-capture is a skill published in the GitHub repository moberghr/mtk-agent-toolkit (7 stars, last pushed today), licensed MIT. It adds 43 tokens to every session and 2,045 once invoked, about $0.0002 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.

Related

Other skills, from other repositories

media-ingest

Ingest video, audio, PDF, book, screenshot, and GitHub repo content into the brain. Multi-format handling with entity extraction and backlink propagation. Covers video-ingest, youtube-ingest, and book-ingest subtypes.

garrytan/gbrain · 52 tokens

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

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

shellm

Reference for the shellm system — recursive LLM shell, identity management, memory, skills, trajectory, and all CLI tools. Use when working on shellm itself, debugging agent behavior, or understanding how the pieces fit together.

laude-institute/headlong · 49 tokens