claude-md-improver

A review process for auditing and improving `CLAUDE.md` instruction files across a repository. These files give coding agents project-specific guidance.

In plain words
What is it for?
Use it for a deliberate repository-wide review of `CLAUDE.md` files, including checking whether their content overlaps with information already available through project orientation tools.
Why use it?
It helps remove outdated, duplicated, or low-value instructions while preserving information agents actually need.

Skill for Claude CodeCodex

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/mrclrchtr/supi/claude-md-improver
Any agent
npx skills add mrclrchtr/supi --skill claude-md-improver
Clone the repo
git clone --depth 1 https://github.com/mrclrchtr/supi

Made for: Claude Code, Codex.

Per session 39 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,271 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00039 $0.03271
Opus 5 $0.00019 $0.01636
Sonnet 5 $0.00008 $0.00654
Haiku 4.5 $0.00004 $0.00327

Measured yesterday against content hash 8e04869eab9c, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

claude-md-improver 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.

packages/supi-claude-md/skills/claude-md-improver/SKILL.md · 277 lines

How it starts

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

CLAUDE.md Improver

Audit, evaluate, and improve CLAUDE.md files across a codebase to ensure PI has optimal project context.

Workflow

Phase 1: SuPi Context Baseline Review

Do not read target instruction files yet. Start from the session context and available tool surface. When code_orientation is available, assume future agents use it routinely and repeatedly—not only as a fallback. Static facts that are on demand rather than automatically injected are still poor CLAUDE.md content when Orientation exposes them directly.

Purpose: This baseline is the primary evidence for scoring Criterion 7 (SuPi Context Overlap) in Phase 3. Separate context that arrives on the first turn from facts routinely obtained through Orientation so the audit preserves human reasoning rather than generated inventories.

Step 1 — Detect SuPi context surfaces. Scan the conversation context and available tools for:

Source identifier What to look for Typical content
supi-code-intelligence overview Hidden first-turn project overview Every discovered module's name, description, selected manifest entrypoints, manifest-declared dependency arrows, detected languages
code_orientation workspace focus Workspace Orientation Root manifest, package names and paths, manifest-declared package relationships, direct root files and directories
code_orientation directory/file focus Focused Orientation Applicable instruction files, direct directory entries, package manifest/dependency facts, file outline/import/export observations
native-pi Root/ancestor CLAUDE.md or AGENTS.md loaded into the system prompt Project-wide instructions from the cwd chain
Other extensions <extension-context source="..."> blocks Any other extension-delivered context

Step 2 — Build the baseline. Record both first-turn and routine on-demand coverage:

Source Content Category Already Covers Scope
supi-code-intelligence overview Complete discovered module graph Module names, descriptions, entrypoints, dependency relationships, languages Root-level / first turn
code_orientation Workspace facts Package paths, manifests, dependency relationships, direct root entries Root-level / on demand
code_orientation Directory and file facts Direct entries, package declarations/dependencies, outlines/imports/exports Package-specific / on demand
code_orientation Instruction-file surfacing Configured CLAUDE.md/AGENTS.md files for trusted directory focus, up to 200 lines per file Package-specific / on demand
native-pi Root instructions Context files in the cwd/ancestor chain Root-level / first turn

Read the full file on GitHub · 277 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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 First seen · 277 lines · 39 tokens per session scan A 8e04869eab9c

Subscribe to this mod's changes

claude-md-improver is a skill published in the GitHub repository mrclrchtr/supi (79 stars, last pushed yesterday), licensed MIT. It adds 39 tokens to every session and 3,271 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-30.

Related

Other skills, from other repositories

aider-delegate

Delegate a coding task to Aider (aider) as a background implementer, then review its diff and land it yourself. Use this whenever the user wants to hand implementation work to Aider - phrasings like "have Aider do X", "delegate this to aider", "run it through Aider", or "use Aider to implement/fix/refactor" - or wants…

amElnagdy/delegate-skills · 190 tokens

codex-delegate

Delegate a coding task to the OpenAI Codex CLI as a background implementer, then review its diff and land it yourself. Use this whenever the user wants to hand implementation work to Codex — phrasings like "have Codex do X", "delegate this to Codex", "run it through Codex", or "use Codex to implement/fix/refactor" …

amElnagdy/delegate-skills · 155 tokens

commandcode-delegate

Delegate a coding task to the Command Code CLI (cmd) as a background implementer, then review its diff and land it yourself. Use this whenever the user wants to hand implementation work to Command Code — phrasings like "have Command Code do X", "delegate this to commandcode", "run it through cmd", or "use Command Code…

amElnagdy/delegate-skills · 123 tokens

delegate-setup

Configure delegation fleet lanes: which implementer CLI handles which kind of work, with optional model and effort (or variant) dials. Discovers installed CLIs, proposes a lane map for user approval, and writes global or project config only after explicit yes. Use when the user asks to set up, configure, or…

amElnagdy/delegate-skills · 100 tokens

grok-delegate

Delegate a coding task to the Grok Build CLI as a background implementer, then review its diff and land it yourself. Use this whenever the user wants to hand implementation work to Grok — phrasings like "have Grok do X", "delegate this to Grok", "run it through Grok", "use Grok Build to implement/fix/refactor", or…

amElnagdy/delegate-skills · 145 tokens

opencode-delegate

Delegate a coding task to the OpenCode CLI as a background implementer, then review its diff and land it yourself. Use this whenever the user wants to hand implementation work to OpenCode — phrasings like "have OpenCode do X", "delegate this to OpenCode", "run it through OpenCode", or "use OpenCode to…

amElnagdy/delegate-skills · 136 tokens