Skills in DeepSeek Harness
A skill is a piece of reusable instruction the model pulls in on demand. It is not a plugin: nothing is installed, nothing is mounted, and the model only sees a name and a description until it asks for the body.
The family is six packages: dsh-skill is the registry, dsh-skill-filesystem scans your directories, dsh-tool-skill exposes the skill tool and writes the catalog into the session, dsh-skill-office and dsh-skill-badge are packaged providers, and a sixth provider lives inside the Windows sandbox package for ACL diagnosis. dsh-skill-badge ships disabled in the CLI, so it only appears in a composed profile when you enable it.
The catalog is a <system-reminder> injected before the first model step. It carries name and description only — no body, no path, no source.
The two shapes a skill can take
A directory bundle, or a flat Markdown file. Nothing else is discovered.
.agents/skills/
deploy-check/
SKILL.md
quick-note.mdWhere they are loaded from
Six roots, scanned in rank order. Rank only decides duplicates inside one layer; across layers the nearest layer wins outright, and a lower rank never outranks a closer layer.
Rank 600 exists only when Config.bundledSkillDir is configured — it is not a default root.
100 <projectRoot>/.dsh/skills project-dsh
200 <projectRoot>/.agents/skills project-agents
300 Config.customSkillDirs custom
400 <dshHome>/skills user-dsh
500 <agentsHome>/skills user-agents
600 Config.bundledSkillDir bundled (only when configured)Nested files are never found
Discovery does not recurse. **/SKILL.md is explicitly unsupported, so a skill buried at skills/frontend/react/SKILL.md is invisible while skills/react/SKILL.md is found.
The most common reason a skill "does not show up" is this, not a missing restart.
The project root is the nearest .git ancestor
For the two project ranks, <projectRoot> is the closest ancestor directory that contains .git. With no git root, the current working directory is used.
That means the same skill can be found from a monorepo subdirectory, and can also disappear when you run dsh from outside the repository.
Names must be kebab-case
The name has to match ^[a-z0-9]+(?:-[a-z0-9]+)*$. Uppercase, underscores and spaces are rejected as an invalid definition rather than quietly normalized.
Frontmatter: two keys that change behaviour
name and description are required — a skill missing either is skipped silently, which is one of the reasons a skill never appears. The rest are optional, and the two that change behaviour are disable-model-invocation and user-invocable, both of which default to true.
Setting both to false keeps the skill loadable only through code that calls ctx.skills.get() — it never enters the model catalog and never appears in a command list.
---
name: deploy-check
description: Run the pre-deploy checklist for this repo
disable-model-invocation: false
user-invocable: true
---What the model actually gets
The catalog is name plus description, XML-escaped, nothing else. Descriptions are capped at 500 characters by default (catalogDescriptionMaxLength), and the cap is a consumer config — a longer description is bounded, not rejected.
The result is one wrapper block: <skill_content name="…"> on the outside, with <skill_resources> and <skill_instructions> inside it — they are not siblings. Relative scripts and assets referenced in the body are resolved through the skill's own base directory; the directory itself is never enumerated.
A user can also type /name in a message. That injects the same <skill_content> rendering without the model calling the tool, and it is the only way to reach a skill whose disable-model-invocation is true.
When an edit takes effect
Existing roots are watched. Adding or removing a bundle, a flat entry, or changing a skill entry updates the catalog without a restart.
Editing only the body does not produce a catalog message, and it does not need one: full definitions are never cached, so the next skill call rereads the file. A body edit changes the next load, not the history.
Resource files inside a bundle are not catalog changes — editing a script a skill calls does not republish anything.
Three failures worth recognising
Nothing appears: check the shape first (nested or flat), then the name (kebab-case), then the root. A missing root is followed upward one path segment at a time until the watcher can attach, so a typo in the middle of a path silently yields no candidates.
A skill loads but the model never uses it: the description is what routes. A vague one-liner loses to a skill that says when to use it.
Two skills with the same name: the lower rank wins inside one layer. project-dsh beats project-agents, which beats custom, which beats both user roots.
Common questions
Do I need to restart dsh after adding a skill?
No. Existing roots are watched, so a new bundle or a new flat file shows up without a restart. A body-only edit does not even need the watcher, because full definitions are never cached.
Can one skill live inside another folder?
Not for discovery. Nested **/SKILL.md is unsupported; each skill must sit directly under one of the six roots as <name>/SKILL.md or <name>.md.
What does the model see before it loads a skill?
Only the name and description from the catalog, XML-escaped and capped at 500 characters. Body, absolute path and source stay out of the session until the tool is called.