I spent a morning restarting a tool that did not need restarting.
I had written a skill for reviewing React pull requests, dropped it at skills/frontend/react-review/SKILL.md next to my other skills, and asked the agent to use it. It didn't. I restarted the process. Nothing. I renamed the file, deleted a config cache I couldn't explain, and restarted twice more. Still nothing.
The file was in the wrong place in a way that has nothing to do with a mistyped path. The scanner does not go down into subfolders. **/SKILL.md is explicitly not supported. A skill has to sit directly under one of the roots, either as <name>/SKILL.md or as a flat <name>.md. skills/frontend/react-review/SKILL.md is invisible; skills/react-review/SKILL.md is found on the next pass.
That is the most common reason a skill "does not show up", and it is also why restarting never helps.
Where the roots are, and why rank isn't the whole story
Six locations get scanned, in rank order:
| rank | location | layer |
|---|---|---|
| 100 | <projectRoot>/.dsh/skills |
project |
| 200 | <projectRoot>/.agents/skills |
project |
| 300 | configured custom dirs | custom |
| 400 | <dshHome>/skills |
user |
| 500 | <agentsHome>/skills |
user |
| 600 | configured bundledSkillDir
|
bundled |
Rank only settles duplicates inside one layer. Across layers the nearest layer wins outright, so a project skill at 200 beats a user skill at 400 with no tiebreak involved. Rank 600 does not exist unless you configured that directory; it is not a default root.
One part I had wrong: <projectRoot> is the closest ancestor containing .git, not the directory you happen to be standing in. From a monorepo subdirectory the skill is still found. Run the same command from a scratch folder outside the repository and the whole project layer disappears.
What the model actually sees
Before anything is loaded, the session carries a catalog injected as a <system-reminder> ahead of the first model step. It holds two fields per skill: name and description. No body, no absolute path, no source. The values are XML-escaped, and descriptions are capped at 500 characters by default — a longer one gets bounded by the consumer, not rejected with an error you would notice.
So the description is the entire routing surface. "Helps with React" competes against nothing useful and loses. What wins is a line that says when to reach for it.
The body arrives only when the tool is called, wrapped in one <skill_content name="..."> block with <skill_resources> and <skill_instructions> nested inside it, not as siblings.
Resource paths resolve, but nothing is listed
If the body says scripts/check.sh, that resolves against the skill's own base directory. The directory itself is never enumerated. That cuts both ways: you can reference files without registering them anywhere, and the model cannot discover a filename you forgot to write down. I now put a short asset list at the top of any skill that ships more than two files.
Two frontmatter keys that change behaviour
name and description are required. A skill missing either is skipped without a message, which is the second way a skill fails silently. name must match ^[a-z0-9]+(?:-[a-z0-9]+)*$; uppercase and underscores are rejected as an invalid definition rather than quietly normalized.
The optional pair that changes things is disable-model-invocation and user-invocable, both defaulting to true. Set both to false and the skill stays reachable only from code calling ctx.skills.get(). It never enters the catalog and never appears in a command list. That is the setting for internal plumbing you don't want the model picking on its own.
Edits don't need a restart
Existing roots are watched, so adding a bundle or a flat file updates the catalog without a restart. Editing only the body doesn't even reach the watcher, and doesn't need to: full definitions are never cached, so the next load rereads the file. A body edit changes the next load, not the history. Changing a script inside a bundle republishes nothing at all.
The order I check now
Shape, name, root. Nested folder, kebab-case, nearest root. Only after those three do I look at restarts and caches, because they were never the problem. A missing root gets followed upward one path segment at a time until the watcher can attach, so a typo in the middle of a path yields zero candidates instead of an error.
I ended up reading the full write-up on skills in DeepSeek Harness more than once before the folder rule stuck. Worth going through before you move files around.
Top comments (0)