A skill is a saved, repeatable way of doing something, like an SOP for Claude. The more you collect, the more Claude has to carry. Most people have no idea which of their skills they actually use.
Here is the cost. Anthropic's skills docs say the listing of skill names and descriptions is loaded into context so Claude knows what is available. The listing always contains every skill name. If you have many skills, Claude Code drops some descriptions to fit a character budget, starting with the skills you invoke least. Claude then has only a name to go on for those skills.
This guide gives you a way to find out which skills you really use: a small tracker that logs each skill call, a prompt that turns the log into a table, and the /skills steps to switch off the rest.
01 / 06
Step 1: install the tracker
The tracker writes one line to a text file each time a skill runs: the date, the skill name, and whether Claude chose it or you typed it. It logs nothing else. It never blocks your work, because it always exits cleanly.
Save the script below as
skill-tracker.jsin thehooksfolder inside your.claudefolder. On Windows that isC:\Users\YOU\.claude\hooks\. On Mac and Linux it is~/.claude/hooks/. Makehooksif it is missing.Add the two hooks to your user settings file,
settings.json, in the.claudefolder, using the prompt below. If you add them by hand, put both inside any existing"hooks"section instead of making a second one.Use forward slashes in the script path, even on Windows.
Restart
Claude Code.
#!/usr/bin/env node // Adds one line to a text file each time a Claude Code skill is used: // date and time, TAB, skill name, TAB, how it was called // "claude" = Claude chose the skill. "typed" = you typed /skill-name. // It always exits 0 so it can never block your work. // Log file: ~/.claude/skill-usage.log (set SKILL_TRACKER_LOG to use another file). const fs = require('fs'); const os = require('os'); const path = require('path'); const LOG = process.env.SKILL_TRACKER_LOG || path.join(os.homedir(), '.claude', 'skill-usage.log'); let raw = ''; process.stdin.setEncoding('utf8'); process.stdin.on('data', (chunk) => { raw += chunk; }); process.stdin.on('error', () => process.exit(0)); process.stdin.on('end', () => { try { const input = JSON.parse(raw); let name = ''; let how = ''; if (input.hook_event_name === 'PostToolUse' && input.tool_name === 'Skill') { name = input.tool_input && input.tool_input.skill; how = 'claude'; } else if (input.hook_event_name === 'UserPromptExpansion') { name = input.command_name; how = 'typed'; } if (typeof name === 'string' && name.trim()) { // One line per event: no tabs or line breaks inside the name. name = name.trim().replace(/(?:\t|\r|\n)+/g, ' '); fs.mkdirSync(path.dirname(LOG), { recursive: true }); fs.appendFileSync(LOG, new Date().toISOString() + '\t' + name + '\t' + how + '\n'); } } catch (e) { // Never block Claude Code. } process.exit(0); });
Then add the two hooks to your user settings file. The simplest way is to paste this prompt into Claude Code. It shows you the change before it makes it.
Why two blocks: the first catches skills Claude chooses to run. The second catches skills you type yourself with
/name. With only one block you would undercount. The hooks docs list UserPromptExpansion as an event that fires when a command you type expands into a prompt.
The second block also logs custom commands and MCP prompts you type, so a few lines in the log may not be skills.
Check it works. Run any skill, then open skill-usage.log in your .claude folder. You should see a new line with tabs between the parts, like this:
2026-11-08T09:15:02.331Z my-skill typedIf nothing appears, type /hooks in Claude Code to see whether your hooks loaded. The most common cause is a wrong path in a
command line.
02 / 06
Step 2: wait, then count
Logging starts the day you install it. A skill with zero runs after two days means nothing. Wait about a month, then paste this into Claude Code. It only reads files and changes nothing.
03 / 06
Step 3: switch off what you do not use
The Claude Code commands reference describes
/skills like this: type to filter, press t to sort by token count, press Space or Enter to cycle a skill's visibility, and press Esc to save and close.
Type
/skills(with an s). The list of your skills opens.Press
tso the biggest skills come first.Move to a skill that had zero runs in your table.
Press
Spaceuntil the label shows the setting you want.Repeat for each skill, then press
Escto save.
The skills docs describe four settings:
| Setting | What Claude sees | Still in the / menu? |
|---|---|---|
| on | name and description | Yes |
| name-only | name only | Yes |
| user-only | nothing | Yes |
| off | nothing | No |
Use off for skills you are sure about. Use name-only for skills you are unsure about, and for any skill marked LOADED BY ANOTHER SKILL. It keeps the name but drops the description, which is the part that costs space. Nothing is deleted, and you can change a setting back by opening /skills again.
The docs say the menu saves your choices to .claude/settings.local.json in the project you opened it from. Plugin skills cannot be cycled in this menu, and neither can skills whose own file sets disable-model-invocation: true.
Newer versions also have /skill-doctor, which the skills docs list for finding skills worth turning off. The tracker works on any version and keeps your own log.
04 / 06
Warning: some skills sit inside bigger ones
A skill with zero runs is not always unused. Big skills are often split into parts. The main skill tells Claude to load a part, so you never run the part yourself and the log never sees it. A video skill with separate audio and caption parts is a typical case.
Before you switch off a zero-run skill:
Check the LOADED BY ANOTHER SKILL column in your table.
Look for a family: skills that share a first word usually belong together.
When in doubt, use name-only, not off.
The skills docs describe off as hidden from both Claude and the
/ menu, so a part set to off may stop the skill that depends on it. The author did not capture a run of that failure, so treat this as a reason for care, not a measured result.
05 / 06
Test it safely
Install the tracker, run one skill by typing it, and ask
Claude to use another one. Check the log has one
typedline and oneclaudeline.Run the table prompt even though the log is tiny. The "too early to trust" line should appear.
In
/skills, set one skill you do not mind losing to name-only, pressEsc, and reopen/skillsto see it saved. Put it back to on.
Where was this tested? The author sent test events to the script by hand and ran it as a real hook in a throwaway project. It logged one skill Claude chose and one skill that was typed, and ignored other tools. The table prompt ran on a dummy log of six skills and flagged the family skills and the safe one correctly. Not tested: the
t key in a live /skills session (it comes from the docs), the exact error when a part set to off is loaded by its parent, and Claude Code creating the files itself.
Download the ZIP for the tracker script, the hook settings and the run-count prompt.
Common mistakes
Judging after two days. Wait a month before you trust the zero-run list.
Switching off a part of a bigger skill. Check the family first, or use name-only.
Expecting plugin skills to change. Manage those with
/plugin.Forgetting the log is local. It stays on your computer and holds only dates and skill names. Remove the two hooks to stop tracking.
Does the tracker slow Claude down?
It runs a tiny script after each skill call and always exits cleanly, so it never blocks your work.
Does it record what I ask for?
No. It writes the date, the skill name and whether it was typed or chosen by Claude.
Will switching a skill off delete it?
No. The skill folder stays on your computer, and you can switch it back on in /skills.
Can I keep more descriptions visible instead?
The skills docs say a setting called skillListingBudgetFraction raises the share of context the listing may use. Its default budget is 1 percent of the model's context window.
Finish line
What to do next
Save the script and add the two hook blocks.
Run one skill and check the log.
Put a reminder in your calendar for a month from now to run the table prompt.
Back to all the free guides. Two that pair well with this one: build your first Claude skill and the five-input test for a Claude skill.
You reached the end of the guide