lets-check
Skill3 starsChanged 4 months agoMITView on GitHub
Use to audit a Claude Code setup for the context-engineering problems that the built-in /doctor does not cover — what shadows what, what silently never fires, and what contradicts what. It starts by asking the user to run /doctor in the chat. Covers rules (CLAUDE.md), skills, slash commands, and hooks. Trigger on "check my setup," "audit my config," "what's actually loaded," "why isn't my skill firing," "checkup," or right after installing or upgrading the harness.
In this repository13 other files it gives its agents.
- templates/CLAUDE.mdCLAUDE.md
- lets-alignSkill
- lets-blindspotSkill
- lets-catch-upSkill
- lets-explainSkill
- lets-exploreSkill
- lets-look-backSkill
- lets-set-upSkill
- lets-shapeSkill
- lets-startSkill
- lets-statuslineSkill
- lets-trackSkill
- lets-wrapSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 1 is distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 20
If the user asks one narrow question — one skill, command, hook, or rule that misbehaves — skip this step.
- Very specific: line 21
If a /doctor report is already in this chat, or the user says they ran it or wants to skip it, go to step 1.
- Very specific: line 28
Read what's on disk. Don't infer it.
- Very specific: line 86
Every finding needs a path, the consequence in plain language, and a specific fix.
- Distinctive: line 88
If nothing is wrong, say so plainly and give the counts.
- Very specific: line 90
If no /doctor report is in the chat, say what this skill leaves to /doctor — settings that fail to parse, unused plugins and MCP servers, …
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Check the Setup
Audit everything that loads: rules, skills, commands, hooks, agents, MCP servers, plugins, memory.
The thing people miss is that the always-on cost is not just CLAUDE.md. Every skill's description and every agent's description ride along on every request so the model can decide what to reach for. MCP tools are deferred by default: only their names load until one is used, unless a server is set to load in full. /context all shows the breakdown by source — start there when the budget looks wrong.
/doctor is Claude Code's own audit of the setup, and it grows with each release. This skill adds to it and does not repeat it. The other built-ins each show one surface: /context all inventories what loaded this session, /skills lists skills by source, /hooks lists hooks by event, /status shows which settings files were read. Use them to gather — they're faster and more accurate than guessing.
What none of them answers is what wins when two sources disagree. That is the failure people hit most, and it is silent: nothing errors, a skill just never fires, or a stale copy runs instead of the one you installed.
Report first, fix second. Never delete or rewrite anything before showing the finding and getting a yes.
0. Start with /doctor
- If the user asks one narrow question — one skill, command, hook, or rule that misbehaves — skip this step. Answer that question with the steps below, then suggest
/doctorat the end. - If a
/doctorreport is already in this chat, or the user says they ran it or wants to skip it, go to step 1. - Otherwise, stop here and audit nothing yet. Ask the user to type
/doctorin this chat and let it finish, its fixes included. Then they say "go on" or run this skill again. If they skip it,/doctor's topics stay unchecked: say so, and do not promise to check them here.
From here on, skip any finding that the /doctor report in this chat already shows. The report, not a fixed list, says what /doctor covered: an older Claude Code checks less, and a newer one checks more.
1. Gather
Read what's on disk. Don't infer it. ~/.claude below means the config folder: $CLAUDE_CONFIG_DIR when it is set.
| Surface | Where |
| Rules | ~/.claude/CLAUDE.md, ./CLAUDE.md, ./.claude/CLAUDE.md, ./CLAUDE.local.md, any CLAUDE.md in parent directories, plus ~/.claude/rules/ and ./.claude/rules/. An organization can also set a managed policy file; /status and /context show it when one loads |
| Skills | ~/.claude/skills/, ./.claude/skills/, plugin skills under ~/.claude/plugins/ |
| Commands | ~/.claude/commands/, ./.claude/commands/ |
| Hooks | hooks in ~/.claude/settings.json, ./.claude/settings.json, ./.claude/settings.local.json |
| Agents | ~/.claude/agents/, ./.claude/agents/, plus any shipped by plugins |
| MCP servers | mcpServers in ~/.claude.json (global and per-project) and in the project's .mcp.json — names, commands, and paths only, through a filter: these files hold tokens — plus /mcp for account connectors, which live in your claude.ai settings and appear nowhere on disk |
| Plugins | enabledPlugins in settings, and /plugin for what each one contributes |
| Memory | MEMORY.md and the memory directory for this project |
Expand @ imports and follow them. An import pointing at a directory pulls in every file inside it — count them all. Watch for imports that loop back on themselves, targets that don't exist, and the same file pulled in twice by different paths.
2. Measure what actually gets used
Take the use counts from the /doctor report first. Run the script next to this skill only when that report has no count for a skill or command that steps 3 and 5 need: the user skipped /doctor, or the report did not list a plugin's skills one by one. The script needs Node.js: check with command -v node first. Without Node.js, skip the script and say in the report that use was not measured.
node "${CLAUDE_SKILL_DIR}/usage.mjs" --days 90It counts real invocations from local data — history.jsonl in the config folder ($CLAUDE_CONFIG_DIR, else ~/.claude) for slash commands, session transcripts for Skill and MCP tool calls — and joins them against what's installed, so every skill, command and MCP server comes back with a use count and a last-used date. --json gives the same thing machine-readable. It reads names and counts only, never message content.
Read the result with judgment. Zero uses is a prompt to look, not a verdict: a skill for a rare moment is doing its job by staying quiet, and something installed last week hasn't had a chance. The real signal is a skill that has been installed for months, covers something the person does all the time, and has never fired. That is a description problem, not a taste problem.
3. Check
Rules. Total the lines actually loaded, imports included, against the 200-line ceiling — past it adherence drops. Flag unresolved imports: a broken @path loads nothing and says nothing. Flag two sources instructing differently on the same topic — the docs are explicit that Claude may pick one arbitrarily, and that is what "my instructions are being ignored" almost always is. Flag instructions that restate default behavior; they cost budget and change nothing.
A common mistake: a CLAUDE.md in a subdirectory doesn't load with the session. It's read on demand, if something opens it. Anyone who put project rules three levels down and assumed they were in force is running without them.
Skills. For every name, list every scope it exists in. Precedence runs personal → project → plugin → bundled, so a stale ~/.claude/skills/x silently beats the plugin's current x. Most people miss this one: they install an upgrade and keep running the old copy. Then check each skill can actually fire — a description that lists topics instead of naming triggers and phrases means a skill that sits there forever. Flag two skills whose descriptions claim the same moment; that's contention with extra steps. Flag bodies over ~120 lines as probably two skills.
Then take each skill that the /doctor report flagged as unused or turned off. When a skill that runs often covers the same area — a design skill with many uses next to an animation skill with none — report the unused one under Never fires: its description loses to its neighbour, and step 5 gives the fix.
Commands. A command and a skill sharing a name is the trap: typing /x runs the command, while the model invokes the skill. Two different instruction sets behind one name, usually because one was copied from the other and then drifted. Diff them and say which is stale.
Hooks. Hooks are the only deterministic layer — they run whether or not the model cooperates — so a broken one fails silently, in the place where you counted on it. Check each event name is real, each matcher compiles, and each command actually exists and is executable. Flag the same event configured in more than one settings file, and overlapping matchers within an event, where firing order decides the outcome. If a rule says something must happen every time, say so: that's a hook's job, and a rule is the wrong tool for it.
Memory. Auto memory loads its index every session, so it's part of the always-on cost. Check the index hasn't grown past its limits, and flag entries that contradict the rules or record decisions that belong in the decision log that My setup names, where they can be diffed.
Agents. Subagent descriptions load so the model can route to them. An agent that nothing routes to still costs context. Check whether it's genuinely unused or just badly described — same diagnosis as skills, since routing works the same way.
More checks. Then go through checks.md next to this skill: faults from real setups that no built-in command shows, such as links to things that are gone and leftovers of old installs. Each one names its report group.
4. Report
Lead with the gap between what they think is in force and what actually is. Group findings so the worst are first:
- Shadowed — installed but never used. Name the winner and the loser, with paths.
- Never fires — present but untriggerable: weak descriptions, skills that lose to a neighbour, broken hooks, dead imports.
- Contradictions — two sources steering the same behavior.
- Over budget — always-on total against the ceiling.
- Dead weight — restates defaults, duplicates another source, or hasn't changed behavior since it was written.
- Risks — works today, but breaks later or opens a door: a path that the next upgrade moves, servers approved with no prompt, config with no history.
Every finding needs a path, the consequence in plain language, and a specific fix. "Skills may conflict" is not a finding. "~/.claude/skills/lets-wrap/ (16 lines) shadows the plugin's current 42-line version — delete yours and the upgrade takes effect" is.
If nothing is wrong, say so plainly and give the counts. A clean report is a result.
If no /doctor report is in the chat, say what this skill leaves to /doctor — settings that fail to parse, unused plugins and MCP servers, slow hooks — and suggest running it.
5. Tune the descriptions that aren't firing
A skill's description is the whole trigger mechanism — it's the only part the agent reads before deciding whether to load it. Usage data makes this measurable: a skill with a real audience and zero invocations almost always has a description problem, not a value problem.
Start with the skills that the /doctor report flagged as unused or turned off. /doctor reads zero uses as a reason to remove; here it is a reason to look at the description. When such a skill's moment comes up often, propose turning it back on and rewriting its description.
Compare a skill's invocation count against how often its moment actually came up in recent sessions. When something should have fired and didn't, rewrite the description to include:
- the phrases a person actually types — "this is fuzzy," "I've lost the thread," "what should I build" — not the topic it covers
- the situation, stated as a condition rather than a category: "when the ask is ambiguous and needs pinning down" beats "requirements gathering"
- a boundary, if it's near a neighbour, so two skills stop competing for the same moment
Rewriting a description changes when the skill fires, so show the before and after and get a yes on each one. Don't batch-edit descriptions.
6. Fix
Offer the safe fixes as a numbered list and apply only what's picked. Back up anything you edit. Deleting a shadowing copy, removing a drifted duplicate command, and repairing a broken hook path are safe. Merging rules files changes behavior — propose those, don't perform them.
Finish by having them run /context to confirm the result, and recap what changed.
Next move: lets-set-up to repair the install; lets-start to get back to work.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

