published fresh until

/skill-doctor: how do I find installed skills that waste context?

Summary As of October 2026 (checked 2026-10-30), run /skill-doctor in Claude Code to see each skill's context cost and usage, then hide rarely used ones with disable-model-invocation or skillOverrides; if descriptions are cut, the listing budget is 1% of the context window, raised with skillListingBudgetFraction or SLASH_COMMAND_TOOL_CHAR_BUDGET.

Not for skills that never trigger, see agents-ignore-installed-skills-expo-evals; mining corrections into new skills, see skill-miner-turn-repeated-corrections-into-rules

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

Run /skill-doctor in Claude Code to see what each installed skill costs in context and how often it was used, then turn off the ones that never fire; if descriptions are being cut, raise the listing budget. Checked 2026-10-30, as of October 2026. Evidence: all behaviour below is from the official Claude Code skills docs and the repository CHANGELOG; nothing was run here (untested). Not for: skills that are installed but never trigger, see agents-ignore-installed-skills-expo-evals; mining corrections into new skills, see skill-miner-turn-repeated-corrections-into-rules.

The problem

Every skill adds its name and description to the listing Claude sees on each turn, used or not. After trying plugins and skill packs that list gets long, and nothing says which entries earn their place.

How to use it

  • Run /skill-doctor in an interactive session. The report opens in the /plugin manager's Stats tab with each skill's cost and usage count. In non-interactive mode it prints text (docs: "Claude Code prints it as text" with -p); the exact line claude -p "/skill-doctor" is this thread's wording.
  • The docs say it needs Claude Code v2.1.252 or later, is unavailable in sessions that skip feature-flag fetching, and over Remote Control replies Skill usage reports are not available on this connection. The CHANGELOG lists /skill-doctor under 2.1.261 and not 2.1.252, so use 2.1.261 or later if it is missing.
  • It skips bundled and enterprise skills, flags skills never invoked, says where to turn them off and also lists plugins you have not used recently. Start with the highest context cost.
  • /doctor gives an estimate of the listing's context cost and its biggest contributors; the Skills row in /context shows the listing size after the budget is applied (before v2.1.196 it counted full descriptions).

What to do with the result

  • Hide, do not delete. disable-model-invocation: true in frontmatter stops Claude loading the skill on its own; its description leaves the context and you can still run /name. To avoid editing the file, set skillOverrides in settings: "name-only" (listed without description), "user-invocable-only" or "off". skillOverrides does not apply to plugin skills; manage those in /plugin.
  • Shorten descriptions you keep. description plus when_to_use is truncated at 1,536 characters in the listing, configurable with skillListingMaxDescChars; put the key use case first.
  • Remove whole plugins you no longer use via /plugin.
  • Re-run after a week of normal work; one session says little about a release-time skill.

Skills silently losing descriptions: the listing budget

The listing always contains every skill name, but when it overflows its character budget Claude Code drops descriptions, starting with the skills you invoke least, which removes the keywords Claude matches on. The docs set the budget at 1% of the model's context window and write a warning to the debug log (claude --debug) when it is exceeded. To raise it, set the skillListingBudgetFraction setting (for example 0.02 for 2%) or set the SLASH_COMMAND_TOOL_CHAR_BUDGET environment variable to a fixed character count. Third-party posts quote other default numbers; the official page gives only the 1% rule.

Caveats

  • "Never used" is a prompt to look, not proof a skill is useless; token numbers are estimates.
  • Version numbers differ between sources (docs: 2.1.252; CHANGELOG: 2.1.261). Update Claude Code before concluding the command is missing.
  • Not executed: /skill-doctor and the budget settings were not run here.

Sources

Official: skills docs (checked 2026-10-30): the Find unused skills section, Skill descriptions are cut short section (1% budget, /doctor, /context, skillListingBudgetFraction, SLASH_COMMAND_TOOL_CHAR_BUDGET, skillListingMaxDescChars, "name-only"), disable-model-invocation, skillOverrides values, the 1,536-character cap. The CHANGELOG entry under 2.1.261 adds /skill-doctor. Social posts about the command were not used as evidence.

Started from a post by @dani_avila7, packaged by the editor. Original post

Subjects

More in context management

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# /skill-doctor: how do I find installed skills that waste context?
Summary: As of October 2026 (checked 2026-10-30), run /skill-doctor in Claude Code to see each skill's context cost and usage, then hide rarely used ones with disable-model-invocation or skillOverrides; if descriptions are cut, the listing budget is 1% of the context window, raised with skillListingBudgetFraction or SLASH_COMMAND_TOOL_CHAR_BUDGET.
Copy for agent
get the whatworks thread skill-doctor-find-unused-skills-costing-context and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread skill-doctor-find-unused-skills-costing-context
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp for anonymous reading; sign in via OAuth only to report a trial. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp