/agent-context-audit
Audit a repo's agent context — CLAUDE.md files, codebase docs, skills, and tool/MCP designs — against Anthropic's Claude 5 context-engineering guidance ("unhobbling": Anthropic cut ~80% of Claude Code's system prompt with no eval loss). Finds overconstraint, conflicting
$ npx -y skills add AI-Builder-Club/skills --skill agent-context-audit --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
- Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
- You can call itInvoke it directly when you want it.
- Slash command
/agent-context-audit
Context preview
The summary Claude sees to decide when to auto-load this skill.
Audit a repo's agent context — CLAUDE.md files, codebase docs, skills, and tool/MCP designs — against Anthropic's Claude 5 context-engineering guidance ("unhobbling": Anthropic cut ~80% of Claude Code's system prompt with no eval loss). Finds overconstraint, conflicting
SKILL.md
agent-context-audit.SKILL.mdname: agent-context-audit
description: >
Audit a repo's agent context — CLAUDE.md files, codebase docs, skills, and
tool/MCP designs — against Anthropic's Claude 5 context-engineering guidance
("unhobbling": Anthropic cut ~80% of Claude Code's system prompt with no eval
loss). Finds overconstraint, conflicting instructions, redundancy, stale
facts, and missing "unknown knowns"; produces a scored findings report with
concrete rewrites, then applies approved fixes. Use when someone says "audit
my CLAUDE.md", "context audit", "unhobble this repo", "review our agent
docs/skills/tools", or after upgrading to Claude 5-generation models.
user_invocable: trueagent-context-audit — unhobble this repo's agent context
Goal: find where this repo's context (CLAUDE.md, docs, skills, tool designs) **hobbles** a Claude 5-generation model — overconstrains it, contradicts itself, repeats itself, or hides context the model actually needs — and leave behind a findings report plus approved fixes.
Background: Anthropic removed over 80% of Claude Code's system prompt for Claude 5 models with **no measurable loss** on coding evals. Older context was written for models that needed rules; newer models need judgment, good interfaces, and the facts they can't infer. This skill audits against that shift, plus the "finding your unknowns" framework (the gap between the *map* — your prompts/docs — and the *territory* — the actual codebase).
You are **auditing first, fixing second**. Do not edit anything until Step 4.
The six shifts (the audit rubric)
Every finding maps to one of these. Cite the shift number in the report.
1. **Rules → Judgment.** Hard rules ("NEVER…", "ALWAYS…", "do not add comments", "one-line docstrings max") that encode a *preference*, not a real constraint, should become judgment framing ("write code that reads like the surrounding code") — or be deleted if the model would infer it anyway. Keep hard rules only where violation is genuinely costly (security, prod data, irreversible actions, legal/billing). 2. **Examples → Interface design.** Long tool-usage examples and few-shot transcripts constrain exploration. Prefer expressive interfaces: good parameter names, enums that hint at valid states, tight descriptions. In tool/MCP definitions, an enum of `pending | in_progress | completed` teaches more than three worked examples. 3. **Upfront context → Progressive disclosure.** Anything long that's only sometimes needed (review checklists, deploy runbooks, style deep-dives) should move out of CLAUDE.md into a skill or linked file loaded on demand. CLAUDE.md is loaded *every* session — it should carry only what every session needs. 4. **Repetition → Concise, single-home instructions.** The same instruction appearing in CLAUDE.md *and* a skill *and* a tool description is a bug: copies drift and eventually conflict. Each instruction gets exactly one home — tool-usage guidance lives in the tool description, repo gotchas in CLAUDE.md, team opinions in skills. 5. **Manual memory → Automatic memory.** Sections telling the agent to hand-maintain notes/changelogs in CLAUDE.md, or accumulated session-specific trivia, are obsolete where auto-memory exists. Flag CLAUDE.md content that is really *memory* (per-user, per-incident, time-bound) rather than *repo truth*. 6. **Simple specs → Rich references.** Where docs describe behavior in loose prose, prefer pointing at the real thing: `@`-referenced source files, a test suite, an HTML mockup, a rubric a verifier can score against. Code-based specs beat prose paraphrases of code.
Cross-cutting failure modes to hunt alongside the shifts:
- **Conflicts** — instructions that clash across layers (e.g. "document
thoroughly" in one file, "DO NOT add comments" in another). Highest-value findings; a conflict forces the model to deliberate or guess on every task.
- **Staleness (map ≠ territory)** — docs naming files, commands, flags, or
services that no longer exist, or missing ones that now do. Verify every concrete claim you audit against the actual repo.
- **Missing unknown-knowns** — things obvious to the team but written nowhere:
the non-obvious build step, the directory you must never touch, the reason a weird pattern exists. These are what CLAUDE.md is *for* ("repository gotchas rather than obvious patterns").
Step 0 — Inventory the context surface
Collect everything that gets assembled into an agent's context here. Look for the capability, not a specific filename:
- **CLAUDE.md files** — root, nested per-directory, `~/.claude/CLAUDE.md` only
if the user asks for a global audit. Also `AGENTS.md`, `.cursorrules`, `.github/copilot-instructions.md` if present (same disease, same cure).
- **Skills** — `.claude/skills/**/SKILL.md`, `skills/**/SKILL.md`, plugin
skills committed to the repo.
- **Tool designs** — MCP server definitions the repo owns (tool names,
descriptions, parameter schemas), custom slash commands, hooks, and any agent definitions (`.claude/agents/*.md`).
- **Codebase docs agents are pointed at** — README, CONTRIBUTING, docs/
referenced from CLAUDE.md or skills.
Record rough sizes (lines/tokens) per artifact — total always-loaded weight is itself a finding when large.
Step 1 — Audit each artifact against the rubric
For each artifact, walk the six shifts and cross-cutting modes. For every finding record: **file:line, quote, shift #, severity, proposed rewrite** (the actual replacement text — or "delete", with one line of why it's safe).
Severity:
- **high** — conflicts between layers; rules that block correct behavior;
stale facts an agent would act on.
- **medium** — overconstraint, redundancy, always-loaded bulk that belongs in
a skill.
- **low** — style, phrasing, minor bloat.
Verify before you flag: a claim of staleness must be checked against the repo (does that script exist? does that command run?); a cl
Read more
name: agent-context-audit
description: >
Audit a repo's agent context — CLAUDE.md files, codebase docs, skills, and
tool/MCP designs — against Anthropic's Claude 5 context-engineering guidance
("unhobbling": Anthropic cut ~80% of Claude Code's system prompt with no eval
loss). Finds overconstraint, conflicting instructions, redundancy, stale
facts, and missing "unknown knowns"; produces a scored findings report with
concrete rewrites, then applies approved fixes. Use when someone says "audit
my CLAUDE.md", "context audit", "unhobble this repo", "review our agent
docs/skills/tools", or after upgrading to Claude 5-generation models.
user_invocable: trueagent-context-audit — unhobble this repo's agent context
Goal: find where this repo's context (CLAUDE.md, docs, skills, tool designs) **hobbles** a Claude 5-generation model — overconstrains it, contradicts itself, repeats itself, or hides context the model actually needs — and leave behind a findings report plus approved fixes.
Background: Anthropic removed over 80% of Claude Code's system prompt for Claude 5 models with **no measurable loss** on coding evals. Older context was written for models that needed rules; newer models need judgment, good interfaces, and the facts they can't infer. This skill audits against that shift, plus the "finding your unknowns" framework (the gap between the *map* — your prompts/docs — and the *territory* — the actual codebase).
You are **auditing first, fixing second**. Do not edit anything until Step 4.
The six shifts (the audit rubric)
Every finding maps to one of these. Cite the shift number in the report.
1. **Rules → Judgment.** Hard rules ("NEVER…", "ALWAYS…", "do not add comments", "one-line docstrings max") that encode a *preference*, not a real constraint, should become judgment framing ("write code that reads like the surrounding code") — or be deleted if the model would infer it anyway. Keep hard rules only where violation is genuinely costly (security, prod data, irreversible actions, legal/billing). 2. **Examples → Interface design.** Long tool-usage examples and few-shot transcripts constrain exploration. Prefer expressive interfaces: good parameter names, enums that hint at valid states, tight descriptions. In tool/MCP definitions, an enum of `pending | in_progress | completed` teaches more than three worked examples. 3. **Upfront context → Progressive disclosure.** Anything long that's only sometimes needed (review checklists, deploy runbooks, style deep-dives) should move out of CLAUDE.md into a skill or linked file loaded on demand. CLAUDE.md is loaded *every* session — it should carry only what every session needs. 4. **Repetition → Concise, single-home instructions.** The same instruction appearing in CLAUDE.md *and* a skill *and* a tool description is a bug: copies drift and eventually conflict. Each instruction gets exactly one home — tool-usage guidance lives in the tool description, repo gotchas in CLAUDE.md, team opinions in skills. 5. **Manual memory → Automatic memory.** Sections telling the agent to hand-maintain notes/changelogs in CLAUDE.md, or accumulated session-specific trivia, are obsolete where auto-memory exists. Flag CLAUDE.md content that is really *memory* (per-user, per-incident, time-bound) rather than *repo truth*. 6. **Simple specs → Rich references.** Where docs describe behavior in loose prose, prefer pointing at the real thing: `@`-referenced source files, a test suite, an HTML mockup, a rubric a verifier can score against. Code-based specs beat prose paraphrases of code.
Cross-cutting failure modes to hunt alongside the shifts:
- **Conflicts** — instructions that clash across layers (e.g. "document
thoroughly" in one file, "DO NOT add comments" in another). Highest-value findings; a conflict forces the model to deliberate or guess on every task.
- **Staleness (map ≠ territory)** — docs naming files, commands, flags, or
services that no longer exist, or missing ones that now do. Verify every concrete claim you audit against the actual repo.
- **Missing unknown-knowns** — things obvious to the team but written nowhere:
the non-obvious build step, the directory you must never touch, the reason a weird pattern exists. These are what CLAUDE.md is *for* ("repository gotchas rather than obvious patterns").
Step 0 — Inventory the context surface
Collect everything that gets assembled into an agent's context here. Look for the capability, not a specific filename:
- **CLAUDE.md files** — root, nested per-directory, `~/.claude/CLAUDE.md` only
if the user asks for a global audit. Also `AGENTS.md`, `.cursorrules`, `.github/copilot-instructions.md` if present (same disease, same cure).
- **Skills** — `.claude/skills/**/SKILL.md`, `skills/**/SKILL.md`, plugin
skills committed to the repo.
- **Tool designs** — MCP server definitions the repo owns (tool names,
descriptions, parameter schemas), custom slash commands, hooks, and any agent definitions (`.claude/agents/*.md`).
- **Codebase docs agents are pointed at** — README, CONTRIBUTING, docs/
referenced from CLAUDE.md or skills.
Record rough sizes (lines/tokens) per artifact — total always-loaded weight is itself a finding when large.
Step 1 — Audit each artifact against the rubric
For each artifact, walk the six shifts and cross-cutting modes. For every finding record: **file:line, quote, shift #, severity, proposed rewrite** (the actual replacement text — or "delete", with one line of why it's safe).
Severity:
- **high** — conflicts between layers; rules that block correct behavior;
stale facts an agent would act on.
- **medium** — overconstraint, redundancy, always-loaded bulk that belongs in
a skill.
- **low** — style, phrasing, minor bloat.
Verify before you flag: a claim of staleness must be checked against the repo (does that script exist? does that command run?); a cl
A Claude Code plugin marketplace of the skills we share at for building loop engineers: agents that get triggered on their own, pick up work, ship it, verify it, and log what they learned, so the work compounds without you prompting every step.
Repo: AI-Builder-Club/skills
Other skills on ai-builder-club-skills.
- /crabbox-setup
Scaffold an isolated CLOUD dev box per agent (via crabbox + Daytona) for any codebase — the parallel-safe counterpart to dev-local-setup. Each agent gets its own full stack (own DB + dev server) and an in-box browser for e2e, so concurrent loops never collide on ports/state.
Open skill - /dev-local-setup
Scaffold a one-command `dev-local` launcher for ANY codebase. Investigates the repo to find its services, ports, and infra dependencies, then generates a single `scripts/dev-local.sh` (up/down/status/logs/restart) that runs every dev server in one tmux session, plus a short
Open skill - /e2e-setup
Set up an end-to-end test suite in any repo, following practices that make e2e a reliable per-PR gate: real flows over bypass, layered assertions, a reusable auth/session helper, video+trace evidence, and a compounding suite. Use when a repo has no e2e (or weak e2e) and you want
Open skill - /new-loop
Spin up a new loop (domain) in a file-based knowledge base — bootstrap the substrate if it's missing, gather the loop's charter, scaffold domains/<loop>/README.md, then do ONE real test run and record it in the loop's Timeline and LOG.md. Use when the user says "set up a new
Open skill - /open-agent-teams
Delegate tasks to ANY CLI agent (claude, codex, aider, ...) running in a detached tmux session, with a race-safe done-signal protocol and multi-turn iteration. Use when delegating work to a non-Claude CLI agent, when the user says "tmux delegate", "run agent in tmux", "delegate
Open skill - /seo-growth
Use when deciding WHERE to point SEO effort, not how to write a page. Triggers: a new site or brand with no rankings and no authority ("cold start", "starting from zero", "nobody knows us"), deciding what to double down on, a page or cluster that ranks but earns nothing, hunting
Open skill

