mtk-agent-toolkit: Skill for Claude Code

.claude/skills/instructions/SKILL.md

instructions is a skill for Claude Code from moberghr/mtk-agent-toolkit. It costs 43 tokens per session (1,417 once invoked), scanned A, original, MIT.

A tool for auditing and updating AGENTS.md or CLAUDE.md, the files that describe a project's rules for coding agents. It can also record commands, environment details, and other session discoveries, but writes are append-only and require approval.

In plain words
What is it for?
Use it to audit instruction files, verify referenced commands and paths, or save confirmed session-specific gotchas for future work.
Why use it?
Project instructions can become outdated after refactoring, causing agents to use broken commands or dead file paths. This keeps those instructions tied to the current codebase without silently rewriting them.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: mentions CLAUDE.md; mentions AGENTS.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 →

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is CONST="$(bash scripts/resolve-constitution.sh)".

Part of the mtk plugin — 33 skills, 7 agents, 6 hooks 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/instructions/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 33 skills, 7 agents, 6 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 instructions

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/moberghr/mtk-agent-toolkit/instructions"><img src="https://agentmods.dev/badge/skills/moberghr/mtk-agent-toolkit/instructions.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 1,417 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.
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.01417
Opus 5.5 $0.00017 $0.00567
Sonnet 5.5 $0.00009 $0.00283
Haiku 4.5 $0.00004 $0.00142

Measured 13d ago against content hash 0c93c6f55f4a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

instructions 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 13d 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.

.claude/skills/instructions/SKILL.md · 67 lines

How it starts

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

Instructions

Overview

Two modes over the project constitution, both append-only and approval-gated: audit re-grades what is there against the codebase and fixes rot; capture adds what this session learned that the constitution was missing.

When To Use

  • audit: every 4–8 weeks, after a large refactor, or when sessions hit broken commands or dead paths ("AGENTS.md feels off").
  • capture: at the end of a session that discovered a command, gotcha, env quirk or non-obvious pattern ("save what we learned", "remember this for next time").

When NOT To Use

  • First-time setup → /mtk-setup. Refreshing architecture-principles.md → /mtk-setup --audit.
  • An engineer correction → lessons capture (a lesson, not a constitution fact). Session state to resume → handoff.
  • Audit right after a clean audit, or capture mid-task — both manufacture churn.

Workflow

Both modes

  • Resolve the target first. The constitution is AGENTS.md when it exists, carries no Auto-generated by MTK marker in its first 10 lines, and CLAUDE.md is absent or a shim (a bare @AGENTS.md line); otherwise CLAUDE.md (legacy repo). bash scripts/resolve-constitution.sh answers the same question. No constitution → stop and point to /mtk-setup. Never migrate legacy → inverted as a side effect; that is /mtk-setup's regen-diff job.
  • Both files are protected (S1.5): Edit with explicit old/new strings, never Write, even when the engineer asks for a rewrite.

Audit mode

  1. Mechanical currency checks — run, do not eyeball.
    CONST="$(bash scripts/resolve-constitution.sh)"
    bash scripts/verify-references.sh "$CONST" .claude/rules/*.md   # exit 3 = STALE lines
    bash scripts/check-instruction-load.sh   # exit 1 = a file a harness truncates, shadows or ignores; 2/missing = report "not checked"
    
    Extract the constitution's build/test/lint/format commands as name<TAB>command lines and run them through bash scripts/verify-commands.sh --timeout 120. Never pass deploy, migrate, publish, push or anything that writes outside the tree — list those as unverified instead. Also run bash scripts/resolve-tech-stack.sh "$PWD": a constitution naming a different stack, or only the root's stack in a polyglot repo with per-subtree pins, is a currency finding.
  2. Shim integrity. When CLAUDE.md is a shim, confirm @AGENTS.md is present and bare (inside a code fence or backticks it is inert). A shim has no ## Critical Rules by design — not rot. Nested package files get a full pass only when they carry package-local content.
  3. Judge what scripts cannot: architecture clarity, captured gotchas, conciseness, and vague rules ("write good tests") that need a concrete replacement. A line that is true but belongs elsewhere gets Move → (README, a rule file, a skill, the spec); the test: would a newcomer act differently because of this line here? No numeric grade — name the line and the reason.
  4. Report, then stop. List every STALE path and failed command with its line, the judgement findings, and proposed changes. A clean file is reported as clean; never invent issues. Ask: "Approve these changes? (yes / partial / no)"
  5. Apply only the approved subset as one Edit per change. Removals need per-line approval; "approve all" does not cover deletions. Then re-run step 1 on the edited file and confirm the line count moved less than 10%.

Read the full file on GitHub · 67 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. 13d ago Changed · +1 lines 0c93c6f55f4a
  2. 16d ago First seen · 66 lines · 43 tokens per session scan A ca16711a5af2

Subscribe to this mod's changes

instructions is a skill published in the GitHub repository moberghr/mtk-agent-toolkit (9 stars, last pushed 8d ago), licensed MIT. It adds 43 tokens to every session and 1,417 once invoked, about $0.0002 per session on Opus 5.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-10-14.

Related

Other skills, from other repositories

mempalace-task

Create, hand off, claim, execute, and close agent tasks through the MemPalace logstream. Use when the user wants to delegate work, prepare a ready-to-paste task for another agent, receive a MemPalace task id, or explicitly launch a supported headless agent in controlled mode.

MemPalace/mempalace · 67 tokens

knowledge-meeting-ingest

Ingest meeting transcripts from any recorder into Knowledge with attendee enrichment, source notes, supported decisions and commitments, and verification of substance and sequence. Summary-only input is not a verified meeting ingestion.

openclaw/openclaw · 44 tokens

knowledge-automation

Create scheduled Knowledge ingestion automations with a verified worker, private-vault authority, and an end-to-end scheduled run. Use when asked to schedule or repair recurring ingestion from any source.

openclaw/openclaw · 41 tokens

gsd-mempalace-capture

File a phase artifact into MemPalace; mirror decision facts into its temporal KG.

open-gsd/gsd-core · 25 tokens

neat-freak

Knowledge and governance closeout: reconcile project docs, rule files (CLAUDE.md/AGENTS.md), authorized agent memory, and workspace residue with what the code and runtime actually do, so the next session or the next person starts from one current answer. Trigger when the user names "neat-freak", "洁癖", or "/neat" — and…

KKKKhazix/khazix-skills · 202 tokens

md-hive-sync

Munder Difflin hive sync — runs the start-of-task hive protocol steps: reads memory.md, checks inbox/ for new messages, and reminds you to record durable facts in memory.md and write coordination files before ending. Use when asked to "sync with the hive", "check my inbox", "hive status", or "hive sync". Proactively…

chaitanyagiri/munder-difflin · 109 tokens