Harness Notes

Skill discovery

Updated 2026-11-22,

On this page

Where each harness finds skills and what the model is told about them before one is used. Exact directories for every scope are on the Locations page.

QuestionClaude Codechecked at 2.1.299
Where it looks for skills

Claude Code loads <name>/SKILL.md folders from ~/.claude/skills/ (personal), .claude/skills/ in the start directory and every parent up to the repo root (project), nested <subdir>/.claude/skills/ once Claude touches files there, --add-dir directories, enabled plugins' skills/ folders, and an enterprise managed-settings directory; signed-in claude.ai accounts also sync their skills into ~/.claude/skills/synced/. Older .claude/commands/*.md files still work as skills. Other harnesses' folders such as .agents/skills/ are not among its documented locations.

Cowork and cloud sessions (including routines) do not read ~/.claude/skills/; they use skills enabled on your claude.ai account, plus committed project skills in cloud sessions.

Bundled skills ship with Claude Code; turn them off with disableBundledSkills.

Nested folders and scan limits

Partly

Only skill folders directly inside a skills directory are found (as of 2.1.302). Nested skills are skipped, whether they sit in a plain category folder or under another skill's SKILL.md. Whether hidden folders and symlinks are scanned is unknown.

This applies to both user and project .claude/skills folders: a nested skill appears as soon as its folder is moved up to sit directly inside one.

Plugin skill folders and additional directories may scan differently; that is unknown.

2.1.309 fixes /verify and /code-review resolving a nested package skill after shell-originated changes; publisher notes do not establish a universal new skill scan algorithm.

2.1.319 publisher restricts lazy nested .claude/skills loading under the Bash sandbox: start in that folder or /cd there. 2.1.321 excludes .claude/skills folders inside ~/.claude/plugins from lazy nested loading, fixes skills/commands/agents disappearing across worktree/folder removal-and-return, and hot-reloads headless mods in .claude/skills unless CLAUDE_CODE_PLUGIN_DIR_WATCH=0. Lazy folder activation, initial recursive skill inventory and mod loading remain different paths; earlier discovery probes retain their version.

Stop scanning below a folder containing SKILL.md?

Partly

Nested skills are never found, even without a parent SKILL.md, so a parent manifest is not what stops discovery.

This applies to both user and project .claude/skills folders: a nested skill appears as soon as its folder is moved up to sit directly inside one.

Plugin skill folders and additional directories may scan differently; that is unknown.

What the model sees before using one

Every turn Claude sees a listing of each skill's name plus its description and when_to_use text; the full SKILL.md body is not loaded until the skill is invoked. The listing is capped at 1% of the model's context window (skillListingBudgetFraction, default 0.01, or a fixed character count via SLASH_COMMAND_TOOL_CHAR_BUDGET), and each entry's text is capped at 1,536 characters (skillListingMaxDescChars).

Skills with disable-model-invocation: true or a skillOverrides value of user-invocable-only or off are left out of the listing; name-only lists just the name.

/context shows the listing's size after the budget is applied, and /doctor estimates its cost and biggest contributors.

2.1.301 fixed skill listings disappearing after /rewind.

2.1.304: compaction resends the skill list; /reload-skills sends only new/changed skills, and resumed/cloud plugin reloads avoid repeatedly resending the entire list.

Many skills or long descriptions

Each skill's combined description + when_to_use is cut at 1,536 characters. If the whole listing exceeds its budget, every skill name stays listed but descriptions are dropped starting with the skills you invoke least, and a warning goes to the debug log (claude --debug). Raise skillListingBudgetFraction, set low-priority skills to name-only in skillOverrides, or run /skill-doctor to find unused skills worth turning off.

A skill whose description was dropped can still be invoked by name, but Claude is less likely to pick it on its own.

Two skills with the same name

Enterprise beats personal, and personal beats project, so with deploy in both ~/.claude/skills/ and .claude/skills/, /deploy runs the personal one. A skill beats a .claude/commands/ file of the same name, and your skill replaces a bundled skill or built-in command of that name (but not its aliases). Plugin skills never collide because they are namespaced as /plugin-name:skill-name; a nested skill that clashes with a root skill stays reachable as /apps/web:deploy, and a synced claude.ai skill that loses its short name runs as /anthropic-skills:<name>.

2.1.309 makes a same-named skill from --add-dir reachable as <folder>:<name> instead of shadowing it completely. This is a naming exception, not a claim that every collision policy changed.

New or edited skills mid-session

Yes. Claude Code watches ~/.claude/skills/, the project .claude/skills/, and .claude/skills/ in --add-dir directories, so added, edited, or removed skills apply in the current session without a restart. If you create a top-level skills directory that didn't exist at startup, run /reload-skills; plugin skills need /reload-plugins or a restart.

File watching is off in bare mode.

A skill already invoked stays in the conversation as it was rendered; Claude Code does not re-read the file on later turns.

2.1.304: compaction resends the skill list; /reload-skills sends only new/changed skills, and resumed/cloud plugin reloads avoid repeatedly resending the entire list.

Disable or hide a skill

Add disable-model-invocation: true to a skill's frontmatter to remove it from Claude's listing while keeping /name, or user-invocable: false to hide it from the / menu. Without editing the file, set skillOverrides in settings to "name-only", "user-invocable-only", or "off" (the /skills menu writes these to .claude/settings.local.json), or deny the Skill tool or Skill(name) in permissions.

skillOverrides does not affect plugin skills; disable those through /plugin.

disableBundledSkills turns off all bundled skills, and --disable-slash-commands disables all skills for a run.

Notes and sources

Claude Code, 9 sources
  • The two controls are independent: a skill may be model-only, user-only, available through both channels, or unavailable through both invocation channels.
  • Plugin skills use /plugin-name:skill-name; this namespace is supplied by plugin loading, not by copying standalone skill folders. See docs/research/plugin-skill-namespaces.md.
  • 2.1.304 resends the catalog after compaction; /reload-skills sends only new or changed skills. Plugin reloads in resumed/cloud sessions no longer resend the entire list repeatedly.
  • 2.1.304 limits skill hooks per source to 1,024 hooks and 16,384 matcher characters; under plugin-only hook policy, a main-conversation skill with excluded hooks no longer receives allowed-tools.
  • 2.1.304 fixes Directory-plugin skills picked from Cowork cloud’s slash menu not running as commands. This hosted fix does not establish local filesystem discovery behavior.
  • 2.1.311 publisher fixes completed skills running in subagents being re-executed after cloud/background restart, and VS Code/JetBrains skill/slash-command inputs omitting active-file/selection context. Also fixes --plugin-dir treating a plugin collection as one plugin when its root contains empty .mcp.json.
Where it looks for skills, 1
Nested folders and scan limits, 5
Stop scanning below a folder containing SKILL.md?, 2
What the model sees before using one, 4
Many skills or long descriptions, 2
Two skills with the same name, 2
New or edited skills mid-session, 3
Disable or hide a skill, 2