agentleFS
dhruba-dattadhruba-datta/claude-papercuts/skills/skill-budget/SKILL.md

skill-budget

Skill0 starsChanged 7 months agoMITView on GitHub

Audit installed Claude Code skills against the system-prompt char budget and show which ones may have silently fallen out of the model's visible list. Use this skill when the user runs /claude-papercuts:skill-budget, asks why their skills stopped triggering, mentions installed-but-invisible skills, or wants a Monday-morning health check of their Claude setup. Runs the audit.py script in this skill's directory and presents the result.

The file

We split this skill into the rules it gives an agent

7 rules. About 0 are common, 4 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    When invoked, run the bundled audit.py script (next to this SKILL.md) and present its output to the user verbatim.

    line 27
  2. Distinctive:

    Run the audit script with the user's current settings:

    line 43
  3. Very specific:

    If the user passed arguments (e.g.

    line 49
  4. Distinctive:

    After showing the output, if any skills are marked INVISIBLE:

    line 56
  5. Distinctive:

    Ask the user if they want help deciding which ones to disable.

    line 57
  6. Distinctive:

    If asked, recommend disabling the largest-char skills first (highest information density per char freed) or the ones the user uses least …

    line 58
  7. Very specific:

    Never auto-disable a skill without explicit user consent.

    line 62

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

skill-budget — audit your installed skills

Fixes: #30387, #34648, #16575

What this prevents

"In environments with many skills (40+) and rich configuration, the model bypasses the Skill tool entirely and uses built-in tools directly, even when skill descriptions explicitly state 'ALWAYS use this skill.'" — issue #34648

You install 40 skills. The system prompt has a limited budget for skill descriptions. The excess falls off silently — no warning, no error. Claude can't see them, and you don't know it.

What this skill does

When invoked, run the bundled audit.py script (next to this SKILL.md) and present its output to the user verbatim.

The script scans three locations:

  • ~/.claude/skills/<name>/SKILL.md — your global skills
  • .claude/skills/<name>/SKILL.md — project-level skills
  • ~/.claude/plugins/**/skills/<name>/SKILL.md — plugin-installed skills

It parses each SKILL.md's YAML frontmatter, sums the name + description chars (the approximate per-skill cost in the system prompt), and ranks skills by weight. Skills whose cumulative sum exceeds the budget are marked INVISIBLE TO CLAUDE.

How to invoke (the actual procedure)

  1. Run the audit script with the user's current settings:

    ${CLAUDE_PLUGIN_ROOT}/skills/skill-budget/audit.py
  2. If the user passed arguments (e.g. --budget 12000, --json), forward them.
  3. Show the script's output verbatim. Do not summarize or rewrite — the bar chart and the suggested mv ... .disabled commands are the value. Reformatting them defeats the purpose.
  4. After showing the output, if any skills are marked INVISIBLE:
    • Ask the user if they want help deciding which ones to disable.
    • If asked, recommend disabling the largest-char skills first (highest information density per char freed) or the ones the user uses least often.
  5. Never auto-disable a skill without explicit user consent. The suggested mv commands in the output are for the user to inspect and run themselves.

When to auto-invoke

  • User runs /claude-papercuts:skill-budget
  • User asks "are my skills loaded?"
  • User mentions a specific skill not triggering when they expect
  • User says they recently installed N new skills and notices degraded behavior
  • User asks for a "Monday morning check" or "skill audit"

What this skill does NOT do

  • It does not run the actual model to test which skills trigger; it estimates based on char budget. The 15,000-char default is inferred from issue discussions, not officially documented.
  • It does not modify any files. The suggested mv ... .disabled commands are for the user to copy-paste if they choose.
  • It does not include skills that have already been .disabled'd (renamed). Those are off-budget by definition.

Configuration

# Use a different budget (e.g. if you know your environment's cap)
${CLAUDE_PLUGIN_ROOT}/skills/skill-budget/audit.py --budget 12000

# Machine-readable output (for piping into other tools)
${CLAUDE_PLUGIN_ROOT}/skills/skill-budget/audit.py --json

Make it a habit

The retention play: run this every Monday morning, after every skill install, or whenever Claude stops triggering a skill you expect. Same flywheel as npm outdated or brew doctor — a weekly health check.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.