skip to content

A Claude Code team has forty skills and some never fire despite good descriptions — what is the skill listing budget doing, and how do you fix it?

level: seniorimportance: should knowfreq 9%

answer

  1. names always survive
  2. a share of the context window
  3. least-used lose descriptions first
  4. the Skills row in /context
  5. name-only frees budget

basics

~20 s

Claude Code caps the skill listing at 1% of the context window by default; when forty skills overflow it, every name stays but the least-used skills lose their descriptions, so Claude is less likely to pick them. Prune, set name-only, or raise skillListingBudgetFraction.

solid answer

~50 s

Each turn Claude sees a listing of skills, and Claude Code caps it at a share of the context window: `skillListingBudgetFraction`, default `0.01`, or a fixed character count set with the `SLASH_COMMAND_TOOL_CHAR_BUDGET` environment variable. When the listing overflows, every name stays but descriptions are dropped starting with the skills invoked least, so those skills still run by `/name` but Claude is less likely to choose them on its own. Confirm it with the Skills row in `/context`, which shows the size after the budget, with `/doctor`'s estimate of the listing's cost, or with the warning `--debug` logs. Then fix the cause: run `/skill-doctor` (v2.1.252+) for each skill's context cost and use, turn off what is never invoked, set low-priority skills to `"name-only"` in `skillOverrides`, trim long descriptions, and raise the budget last, since that costs context on every turn.

code

json · 7 lines
json
{
  "skillListingBudgetFraction": 0.02,
  "skillOverrides": {
    "legacy-billing-context": "name-only",
    "quarterly-report-format": "name-only"
  }
}

go deeper

for a junior

Recall that Claude sees a listing of skill names and descriptions every turn, and that the listing has a size limit.

for a middle

Explain the mechanics: 1% of the context window by default, every name kept, descriptions dropped from the least-used skills first, and the setting and variable that change the budget.

for a senior

Walk through the diagnosis you would run: the /context Skills row, the /doctor estimate, the --debug warning, /skill-doctor per-skill cost and use, then prune, name-only, trim, and raise last.

for a principal

Treat the listing as a shared per-turn tax: who may add skills, how unused ones are retired, and when name-only or a manual-only skill beats one more always-listed description.

## What the skill listing is Every turn, Claude Code gives Claude a **skill listing** so it knows what it can invoke: for each skill Claude may use on its own, its name and its `description` with `when_to_use` appended, each entry capped at 1,536 characters by default. Skills with `disable-model-invocation: true` are left out entirely. Personal, project and plugin skills all share this one listing, so a team that keeps adding skills keeps adding to a per-turn cost and to the number of entries competing for the same request. ## The budget and what overflow does - **The budget.** The listing is capped at a share of the model's context window, set by the `skillListingBudgetFraction` setting. The default `0.01` reserves 1%. Because it is a fraction, the same skills fit more easily on a model with a larger window. - **The environment override.** `SLASH_COMMAND_TOOL_CHAR_BUDGET` sets the budget as a fixed number of characters instead; the env-vars reference describes an 8,000-character fallback and notes the name is kept for backwards compatibility. - **What overflow does.** The listing always keeps every skill's name. To fit, Claude Code drops **descriptions**, starting with the skills you invoke least, so the skills you use most keep their full text. - **The symptom.** A skill without its description can still run by `/name`, and Claude can still invoke it by name, but it has lost the keywords Claude matches requests against, so it is less likely to be chosen on its own. The effect feeds itself: a skill that is rarely used loses its description and becomes rarer still. ## Confirming the diagnosis | Tool | What it tells you | | :- | :- | | Skills row in `/context` | The listing's size after the budget is applied, which matches what the model receives (since v2.1.196) | | `/doctor` | An estimate of the listing's context cost and its biggest contributors | | `--debug` | A warning in the debug log when the listing exceeds its budget | | `/skills`, then `t` | Your skills sorted by token count | | `/skill-doctor` | Each skill's context cost and how often it is used, with never-invoked skills flagged | ## Fixing it, cheapest first 1. **Prune.** Run `/skill-doctor` (Claude Code v2.1.252 or later, and only in sessions that fetch feature flags). Interactively the report opens in the `/plugin` manager's Stats tab; with `-p` it prints as text. It covers your skills other than bundled and enterprise ones, flags listed skills that have never been invoked and says where to turn them off. Start with the never-used skills that cost the most context. 2. **Collapse.** Set low-priority skills to `"name-only"` in `skillOverrides`: Claude still sees the name and can invoke the skill, but the description no longer uses budget. The `/skills` menu writes this for you; press `Space` to cycle a skill's state and `Esc` to save to `.claude/settings.local.json`. Plugin skills are not affected by `skillOverrides`; manage those through `/plugin`. 3. **Take manual workflows out.** A skill that should only ever run by hand can set `disable-model-invocation: true`, which removes it from the listing entirely. 4. **Trim.** Shorten long descriptions, keeping the key use case first, or lower `skillListingMaxDescChars` so more entries fit. 5. **Raise the budget last.** Set `skillListingBudgetFraction` to, say, `0.02`. It works, but every extra character is sent on every turn of every session that reads that settings file. ## A worked example A team's `/context` shows the Skills row pinned at its budget, and `--debug` logs the over-budget warning. `/skill-doctor` reports that a third of the listed skills have never been invoked, several of them with long descriptions. The team turns the never-used ones off, sets a handful of rarely needed reference skills to `"name-only"`, shortens three sprawling descriptions, and checks the Skills row again. Only if the skills they rely on still lose their descriptions do they raise `skillListingBudgetFraction`. ## The judgement behind it Forty skills is not a problem in itself; forty skills that all want to be chosen by description is. The listing is a shared per-turn tax, and its value comes from Claude choosing well among a few clearly distinct entries. A team that measures use with `/skill-doctor`, retires what nobody invokes, and keeps rarely needed skills at `name-only` or manual-only gets better triggering and a smaller context bill than one that keeps raising the budget.

  • Why doesn't skillOverrides help with a skill that came from a plugin?
    Plugin skills are not affected by `skillOverrides`; they are namespaced as `/plugin-name:skill-name` and managed through `/plugin`. To cut their listing cost, disable or uninstall the plugin, or ask its author to tighten the descriptions. `/skill-doctor` also lists plugins you haven't used recently, which is often the bigger saving.
  • What is the downside of simply doubling skillListingBudgetFraction?
    The listing is sent on every turn, so a bigger budget is a permanent per-turn context cost in every session that reads the setting, and more visible descriptions also means more near-matches competing for the same request. It treats the symptom; pruning never-used skills and collapsing low-priority ones to `name-only` removes the cause.
  • Does name-only stop Claude from invoking the skill?
    No. Claude still sees the name and can invoke it, and you can still type `/name`; only the description is withheld. Claude has fewer words to match on, so use it for skills Claude rarely needs to choose by itself, or whose name already says what they do.

  • When the listing overflows, the extra skills vanish and cannot be invoked.
  • The listing budget is a fixed number of skills, not characters.
  • Raising the budget is free because descriptions are small.
  • skillOverrides can collapse plugin skills like any other skill.
  • Descriptions are dropped alphabetically, so renaming skills fixes it.

Assumes Claude Code 2.1.286: /skill-doctor needs 2.1.252 or later, and the /context Skills row has reported the post-budget size since 2.1.196.