Claude Code skills: load locations, same-name resolution and invocation control
Check where a skill loads from, what sets its slash command name, which copy runs on a name clash, and who may invoke it.
Which layer is failing · Where skills load from · Where the command name comes from
At a glance
After you drop a SKILL.md into .claude/skills/, the usual questions are actually three different questions: will this session load it at all, which copy of the file runs when you type /name, and who is allowed to trigger it. The official Skills page separates them into "Choose where skills load", "How a skill gets its command name", "Resolve skills that share a name" and "Control who invokes a skill", each with its own rules and its own way of failing. This article re-orders the official facts into those four layers, with the tables and observation points you need to check a specific skill. Every official fact here comes from https://code.claude.com/docs/en/skills, read on 2026-11-23. Nothing was installed, no skill was created or run, no setting file was written, and no load or invocation result was observed; sentences marked as editorial advice are choices about checking order, not documented behaviour.
Runtime and applicability
- Article type
- Engineering practice
- Verified
- Applies to
- Claude Code Claude Code: skill load locations, same-name resolution and invocation control
Execution locations and responsibilities
- The local Claude Code session and the skill directories it reads Decide which directory holds the skill file, where its command name comes from, which copy wins on a clash, and which layer supplies invocation permission.
- Settings files and organization managed settings (skillOverrides, permission rules) Adjust visibility without editing
SKILL.md, and keep managed organization rules separate from grants a skill declares itself.
When to use
- You wrote a
SKILL.mdbut the current session does not show it in the / menu, or the command name that appears is not the one you expected; or two directories hold skills with the same name and you need to know which copy /name actually runs. - You need to decide whether this skill belongs in the personal directory, the repository, an --add-dir directory or a plugin, and want to know up front which sessions each choice reaches.
When not to use
- You only want to stop Claude from invoking one skill on its own, or only want the typed entry point. That single switch is decided by the disable-model-invocation and user-invocable fields, which form one layer here rather than a substitute for checking that layer on its own.
- You want argument substitution, dynamic context injection or forked subagent execution inside the skill. Those are body and execution semantics; they do not change where a skill loads from or which same-named copy wins.
Which layer is failing
A missing skill can stop at four different points: the file sits in a location the session never scans; the location is right but the name was refused, or the command name differs from what you type; the name is right but another skill already holds the short name; or the skill loaded fine and an invocation-control field or permission rule blocks it. Each layer has a different fix - rename the file, edit the name: field, move the directory, change a setting - so the first step is deciding which layer you are stuck on instead of reinstalling or rewriting the body. The official page even forwards one case explicitly: when the name comes from the frontmatter name field, it points to a different section, because where a name comes from and which source wins are two separate rule sets in the documentation itself.
It also helps to split the word "load". A skill is a file on disk, not a running service: Claude Code reads the frontmatter, takes the name and description, and puts them into the session skill listing so Claude knows what exists; the body after the closing --- only enters the conversation as a single message when the skill is invoked. So "listed" and "body in context" are two states, the first governed by location and name, the second by invocation and permissions. A related boundary that catches people out: an allowed-tools grant covers only the turn that invokes the skill and clears when you send your next message, while the body stays in context - the grant and the content do not share a lifecycle.
Where skills load from
| Location | Path | Loads in |
|---|---|---|
| Enterprise | .claude/skills/<skill-name>/SKILL.md inside the managed settings directory | All users on machines where the organization deploys that directory |
| Personal | ~/.claude/skills/<skill-name>/SKILL.md | All your projects on this machine, but not Cowork or cloud sessions |
| Project | .claude/skills/<skill-name>/SKILL.md | Sessions in this repository; commit it so teammates get it too |
| Nested | <subdir>/.claude/skills/<skill-name>/SKILL.md | Sessions started in or below <subdir>; a session started above it loads the skill once Claude works on files there |
| Additional directory | .claude/skills/<skill-name>/SKILL.md in a directory passed with --add-dir | That session |
| Plugin | <plugin>/skills/<skill-name>/SKILL.md | Wherever the plugin is enabled, as /plugin-name:skill-name |
claude.ai account | Skills enabled for your claude.ai account | Cowork sessions, cloud sessions, and terminal sessions where you sign in with that account |
The directory search is both wider and narrower than most people expect. Wider: Claude Code reads .claude/skills/ in the directory where you start and in every parent directory up to the repository root, so starting in packages/frontend/ still picks up skills defined at the root (moving the session with /cd adds the new directory project skills). Narrower: a .claude/skills/ below where you started does not load at startup; it loads the first time Claude reads or edits a file in that subdirectory and stays available for the rest of the session, so until then it is absent from the / menu and cannot be invoked by name. /add-dir loads it sooner. In a linked git worktree, the parent search stops at the worktree root.
An --add-dir directory brings configuration, not just file access. Adding a directory loads the skills in its .claude/skills/, along with its .claude/commands/ and .claude/agents/; directories the Agent SDK adds through additionalDirectories (TypeScript) or add_dirs (Python) behave the same way because the SDK passes them as --add-dir. The reverse is not true: the permissions.additionalDirectories setting in settings.json grants file access only and loads none of these. Watching differs too - Claude Code watches .claude/skills/ in an added directory, but not that directory’s .claude/commands/ or .claude/agents/, so restart the session after changing files there.
Three folder rules can make a skill vanish outright: do not name a folder synced in any capitalization (that path holds skills downloaded from claude.ai); outside a plugin, a skill folder or command file named anthropic-skills or starting with anthropic-skills: does not load; and a folder whose name contains a zero-width space, a control character or < does not load either. Symlinks are allowed: a <skill-name> entry in the enterprise, personal or project location may point elsewhere on disk, Claude Code reads SKILL.md from the target, and a target reached from several locations loads once (plugin skills handle symlinks differently). Finally, a Markdown file in .claude/commands/ is the older format and still works, but it does not accept the name and paths fields.
Account sync is a separate source that is not in the on-disk table. A terminal session signed in with a claude.ai account downloads the account skills into ~/.claude/skills/synced/ in the background and keeps checking for changes while the session runs. The download never delays startup, because Claude Code waits for a skill only when it invokes it, so a short non-interactive run can finish before a newly added skill downloads. Cowork and cloud sessions, including cloud scheduled tasks, do not read ~/.claude/skills/ on your machine: a personal skill that exists only there is reported as not found when such a session invokes it, because each run starts as a fresh cloud session. Desktop scheduled tasks run locally, so they do read ~/.claude/skills/.
Where the command name comes from
In a personal or project skill directory, the frontmatter name sets what the / menu shows and what you type, unless another command already uses that name; the directory name also invokes the skill. In a plugin skill, name replaces only the last segment and the plugin prefix stays. The practical consequence is that renaming the directory does not necessarily rename the command, so check whether a name: line pins it.
| Skill location | Command name source | Example |
|---|---|---|
Skill directory under ~/.claude/skills/ or .claude/skills/ | frontmatter name or the directory name | .claude/skills/deploy-staging/SKILL.md gives /deploy-staging, or /deploy with name: deploy |
Nested .claude/skills/ whose directory name clashes with another skill | Subdirectory path relative to the working directory, then the skill directory name | apps/web/.claude/skills/deploy/SKILL.md gives /apps/web:deploy |
.claude/skills/ in an --add-dir directory, when the skill directory name clashes | The added directory’s folder name, then the skill directory name (when two added directories share a folder name, the prefix starts with the parent folder name) | verify under --add-dir ../cli gives /cli:verify |
File under .claude/commands/ | File name without the extension | .claude/commands/deploy.md gives /deploy |
File in a subdirectory of .claude/commands/ | Subdirectory path relative to commands/ with each / replaced by :, then the file name | .claude/commands/frontend/component.md gives /frontend:component |
Plugin skills/ subdirectory | frontmatter name or the directory name, namespaced by the plugin | my-plugin/skills/review/SKILL.md gives /my-plugin:review, or /my-plugin:fancy with name: fancy |
Plugin root SKILL.md | frontmatter name, falling back to the plugin directory name | my-plugin/SKILL.md with name: review gives /my-plugin:review |
Skill synced from claude.ai | The skill’s name on your claude.ai account, prefixed with anthropic-skills: | Account skill deploy gives /anthropic-skills:deploy |
Two plugin details cause wrong conclusions. First, after name: fancy the bare /fancy also invokes the skill unless another command already uses that name, so both the namespaced form and the bare form may work, but only the namespaced one is stable. Second, if the name you write already carries the plugin prefix, such as name: my-plugin:fancy, the official page says Claude Code no longer adds the prefix again from v2.1.246 onward (v2.1.216 through v2.1.245 doubled it), so judging by older behaviour makes a correct name look duplicated. In non-interactive sessions the names help and feedback are not reserved for their terminal-only built-in commands, so a plugin skill with one of those names keeps its bare command there; every other terminal-only built-in, such as /login, keeps its name reserved.
If a skill is missing from the / menu, or the menu does not show its frontmatter name, check the characters in the name. The official list of refused characters is: a zero-width space or control character; a private-use or unassigned character such as an icon-font glyph; a character that changes the direction of the surrounding text; a blank other than one plain space between words, such as a no-break space, two spaces in a row, or a leading or trailing space; and < or >. When the directory or file name is refused, the skill does not load and a rename fixes it. Those characters only in a plugin skill folder name still load, and become hyphens in the command name, so type the hyphens; only in the frontmatter name, the menu does not show the value and typing it does nothing, so edit the name: line. To find which name was refused, start with claude --debug and search the debug log for [names]; an interactive session also prints a startup notice.
Which copy runs on a name clash
When two skills share a name, the decision depends on where each one came from, not on which file is newer, longer or more recently edited. The official page does not give one global ordering; it classifies the decision by the combination of sources, as in the table below. For a combination the table does not cover, go back to that page and compare sources again rather than extrapolating.
| Same name in | Which one runs |
|---|---|
| Two of enterprise, personal and project | Enterprise over personal, and personal over project. With deploy in both ~/.claude/skills/ and the project .claude/skills/, /deploy runs the personal one |
| Any of those locations and a bundled skill | Your skill replaces the bundled command but not its aliases. A project code-review skill replaces /code-review, and the bundled alias /review never runs your skill |
| Any of those locations and a built-in command | In a local terminal session your skill replaces the built-in command but not its aliases. A skill named usage replaces /usage, and the built-in alias /cost still runs the built-in command |
A skill and a file in .claude/commands/ | The skill |
| A project-root skill and a nested skill | Both load: /deploy runs the root skill and /apps/web:deploy runs the nested one on its own |
An enterprise, personal or project skill and a skill in an --add-dir directory | The first one runs; the added directory skill runs under a prefixed name |
Two --add-dir directories | The directory added first, in --add-dir or /add-dir order; the other runs under a prefixed name |
| A plugin skill and a skill at any of those locations | Both load, because plugin skills are namespaced as /plugin-name:skill-name |
Any of the above and the short name of a skill synced from claude.ai | The other skill or command runs, and the synced skill is then listed and runs only under its full name |
Name comparison adds one more layer: case, spacing and invisible characters are ignored, and compatibility forms such as fullwidth letters and dash variants are treated as their plain equivalents. A synced skill called Commit therefore counts as the same name as a local commit skill, and /commit still runs the local one. A look-alike letter from another alphabet counts as a different name, and only the sync label tells the two apart. Because plugin skills always carry a namespace they normally stay out of this contest, while a synced skill that loses its short name falls back to anthropic-skills:<name>.
This section decides the case where the directory or file names match. When the name actually comes from the frontmatter name field, the official page sends you to the command-name section instead of this table - in other words, work out which command name you have first, then judge what it clashes with. That order matters in practice: comparing directory names directly can lead to the wrong conclusion when a name: line has already changed the command.
Who may invoke it: fields, rules and settings
By default both you and Claude can invoke any skill: you can type /skill-name, and Claude can load it automatically when relevant. Two frontmatter fields each close one entry point. disable-model-invocation: true stops Claude invoking the skill on its own - the official page also says this prevents the skill being preloaded into subagents and stops a session-scoped scheduled task from running with the skill as its prompt; the default is false. user-invocable: false hides the skill from the / menu and stops Claude Code running it when you type /name; the default is true. The two are not symmetric: whether mentioning a name in your message counts as permission depends on where it sits. At the start of the message it runs directly; after plain text, as a separate word with no punctuation attached, it only grants permission for that message and Claude judges from your wording whether to run it.
---
name: deploy
description: Deploy the application to production
disable-model-invocation: true
---
Deploy $ARGUMENTS to production:
1. Run the test suite
2. Build the application
3. Push to the deployment target
4. Verify the deployment succeededThe second layer is permission rules. In /permissions you can use Skill rules: denying the whole Skill tool disables every skill; Skill(commit) matches exactly and Skill(review-pr *) matches a prefix with any arguments. The official page notes that what a deny rule blocks beyond the name you write depends on the shape of that name: an alias also blocks the command behind the alias, an unqualified name also blocks a nested entry listed as apps/web:deploy, and the namespace form or the parameter form (Skill(skill:deploy)) blocks every name the skill is called by. Allow rules only skip the prompt - once you add allow rules, Claude is not limited to the skills they name.
The third layer overrides visibility from settings without editing SKILL.md. skillOverrides records visibility in your settings and is meant for skills whose SKILL.md you do not want to edit, such as ones checked into a shared repository. The /skills menu writes it for you: highlight a skill, press Space to cycle states, press Esc to save to .claude/settings.local.json. The four states are in the table below.
| Value | Listed to Claude | In the / menu |
|---|---|---|
"on" | Name and description | Yes |
"name-only" | Name only | Yes |
"user-invocable-only" | Hidden | Yes (labelled user-only in the menu) |
"off" | Hidden | Hidden |
{
"skillOverrides": {
"legacy-context": "name-only",
"deploy": "off"
}
}The edge rules in that table are easy to miss. A skill absent from skillOverrides is treated as "on". Setting "off" hides the skill beyond the terminal / menu: the command lists advertised to Remote Control clients and Agent SDK callers also drop it, and invoking a hidden skill by its full name returns the skillOverrides error instead of running it. Plugin skills are not affected by skillOverrides and are managed through /plugin. An entry written under an alias can only restrict a skill further, never make it more visible, and an entry under the skill own name in managed settings takes precedence over the alias entry.
Check the load and recover
- Look at the listing before the body.
/skillslists the skills in the current session, with skills synced fromclaude.aigrouped separately; the Skills row in/contextreports the size of the listing after the budget, which is what the model actually receives;/doctorestimates the listing context cost and its biggest contributors. All three answer "is it in the listing", not "did the body run". - If you suspect the name was refused, start with
claude --debugand search the debug log for[names]; an interactive session also prints a startup notice. After a rename or aname:edit, restart the session unless the file sits in a directory Claude Code watches. - When a new skill does not appear, first confirm its directory is inside a watched scope (
~/.claude/skills/, the project.claude/skills/, an--add-dirdirectory.claude/skills/), then try/reload-skills. For a skill folder that is also a plugin, changes to.mcp.json,agents/andoutput-styles/need/reload-plugins, andhooks/usually does too. - Do not read a truncated description as a missing skill. Skill names always stay in the listing, but descriptions can be dropped to fit the budget; the budget scales at 1% of the model context window, and when the listing overflows Claude Code drops descriptions starting with the least-invoked skills. Within one skill, the combined description and when_to_use text is truncated at 1,536 characters.
skillListingBudgetFractionorSLASH_COMMAND_TOOL_CHAR_BUDGETchange the budget, and setting low-priority entries to"name-only"frees some for others. - Undo by source: delete the directory for a personal or project skill; an administrator deletes the skill directory inside the managed settings directory for an enterprise skill; disable or uninstall the plugin for a plugin skill; turn a synced skill off in your
claude.aiaccount (deleting the directory by hand only gets it downloaded again); and usedisableBundledSkillsor a skillOverrides value of"off"for a bundled skill.
Failure modes and limits
- Frontmatter is read only when the opening
---is the first line of the file; otherwise the whole file, markers included, is treated as skill content. If the YAML between the markers does not parse, the skill still loads with no fields set, so/nameworks while the description is missing and Claude cannot match against it. Neither failure is loud; only--debugshows the parse error. - Field names must match the official table exactly, hyphens included (
when_to_useis the only underscore exception). A field Claude Code does not recognise is ignored without an error. Boolean fields acceptyes,no,on,off,1and0in any letter case in addition totrueandfalse. Every field is optional; onlydescriptionis recommended. - A loaded body is a recurring cost. When a skill is invoked, the rendered content enters the conversation as a single message and stays across later turns, and Claude Code does not re-read the file on later turns. Auto-compaction re-attaches the most recent invocation of each skill keeping the first 5,000 tokens, and re-attached skills share a combined 25,000-token budget filled from the most recently invoked skill, so older skills can be dropped entirely after you have invoked many in one session. That is why the official page asks you to put the most important instructions near the top.
- Hard limits on the permission side: an
allowed-toolsgrant applies during the invoking turn and clears when you send your next message, and it does not restrict which tools are available, it only removes the per-use approval.disallowed-toolsremoves tools from the available pool while the skill is active and also clears on your next message; like deny rules, it cannot removeEndConversationwhile any other tool remains. - A skill checked into a repository can grant itself broad tool access, and Claude Code applies a project skill
allowed-toolseven in a-prun in a folder you have never trusted. The official page therefore states plainly that you should review theallowed-toolsof skills checked into a repository before running Claude Code there. That is a documented safety condition, not an addition of this article. - Managed settings can tighten two more things. When
strictPluginOnlyCustomizationlistshooks, a personal or project skill whose frontmatter declareshooksloses itsallowed-toolspre-approval. WhenallowManagedPermissionRulesOnlyis set, Claude Code ignoresallowed-toolsin project and personal skills and sends those tools through managed rules and the normal permission prompt instead. Use/statusto see both, rather than guessing.
Every fact above comes from the official Skills page as read on 2026-11-23, including the location table, the command-name table, the same-name resolution table, the field defaults and the limits listed. Nothing was installed, no skill was created or run, no settings file was changed, and no load, invocation or permission decision was observed, so this article claims no "configure it this way and it works" outcome. The only editorial judgement here is about checking order - decide which layer is failing first, then get an observation from /skills and --debug, instead of editing files first - and where that appears it is marked as advice, not documented behaviour. If what you see in your own session disagrees with a table here, trust your /skills, /status and /context output together with the official page, stop changing things, and confirm you are checking the same layer.
Sources
All links are official pages; verification dates are listed per source, and links point to the version checked.