description: "The model-facing skill catalog and loader tool for users and maintainers understanding what agents see, or configuring the session skill catalog."
English | 中文
Agents can discover and load skills during a session. Before the first request, when model-invocable skills exist and the skill tool is visible, they receive a durable catalog of available skill names and capped descriptions, and can use the skill tool to load full instructions. Users can invoke a user-invocable skill with /name, which injects the same instructions into that step. Catalog changes append a complete replacement, including an empty catalog that retires old names; configure catalogDescriptionMaxLength to limit each description.
Mount the plugin alongside the skill registry to give agents a session skill catalog and the skill loader tool. It requires ctx.agents, ctx.tools, and ctx.skills.
Use it when agents should discover and load skills during a session. Skip it when skill loading is handled by another consumer or not needed at all — without it, providers and the registry still work, but nothing renders a catalog or a tool for the model.
Load the plugin together with the skill registry and at least one provider. The only configuration caps the normalized description length rendered in the catalog.
- name: '@deepseek-ai/dsh-skill'
- name: '@deepseek-ai/dsh-skill-filesystem'
- name: '@deepseek-ai/dsh-tool-skill'
| Field | Default | Meaning |
|---|---|---|
catalogDescriptionMaxLength |
500 |
Maximum normalized description length rendered in the session catalog; minimum 3 |
The generated configuration catalog is the exhaustive source for every accepted field.
skill tool is visible, the agent receives a durable user-role message before its first request, listing each skill's name and a capped description; the message tells the model to load a skill with the tool before acting on it, and never to infer instructions from the summary alone.skill with the exact skill name and receives the full instruction body plus resource guidance in a canonical <skill_content> block; the result is retained as ordinary tool history./name token in direct user input that names a user-invocable skill injects that skill's instructions into the step, without the model having to load it.Loading a listed skill returns its full instructions; the model sees one canonical shape whether the load came from the tool or from a user's explicit invocation. An invalid name reports Error: invalid skill name "<name>", an unknown name reports the skill is unknown or no longer available, and a skill disabled for model invocation reports it is not available for model invocation. The catalog is omitted entirely when no catalog was ever published and either no model-invocable skills exist or the skill tool is hidden or shadowed; after a catalog has been published, either visibility loss — the skill tool hidden or shadowed by a same-name scoped tool — or removal of every skill instead appends an empty catalog that retires older names.
Read these pages when the package-level contract is not enough. They move from the registry vocabulary behind the catalog to the exact tool schema and the design rationale.
renderSkillContent rendering.skill schema the model receives./name gesture design.If model-invocable skills exist and this exact skill tool is visible, the agent receives the catalog template below as a durable user-role message before the first request, with one data-dependent entry per sorted skill. Later membership, description, or visibility changes append a complete replacement using the same <available_skills> envelope; deleting every skill appends an empty envelope with an explicit instruction not to use older names. The template's closing sentence is the rule against double-loading: the user-explicit gesture boundary (the pre-step listener below) injects the same renderSkillContent output (shared from @deepseek-ai/dsh-skill) inline, and the catalog tells the model to follow that block instead of re-loading the skill through the tool; the replacement-catalog template carries the same anti-double-loading rule in both arms, including the emptied catalog.
<system-reminder>
A skill is a reusable set of task-specific instructions. The following skills are available in this session:
<available_skills>
- `<name>`: <normalized-and-capped-description>
</available_skills>
If the user names a skill, or the task clearly matches a skill's description, call the `skill` tool with the exact skill name before taking task actions. Load all applicable skills, then follow their full instructions. This catalog contains summaries only; do not infer or follow a skill's instructions until it has been loaded.
A user may also invoke a skill directly; its <skill_content> block then appears in this conversation. Follow it, and do not call the `skill` tool again for that skill.
</system-reminder>
Repeated input cost scales with skill count and catalogDescriptionMaxLength; no initial catalog tokens are sent when the list is empty or the tool is hidden or shadowed. Each actual catalog change adds one retained complete replacement message.
The initial durable catalog is appended after the existing reusable prefix. Dynamic changes are append-only history after that catalog, so earlier reusable tokens stay intact while each newly appended catalog and later turns form a new suffix. A new or resumed instance with a changed digest may affect cache reuse from the newly appended catalog position.
The model sees the generated skill schema.
Fixed schema cost per request where the tool is visible.
Prefix-stable while the tool definition and visibility are unchanged. Shadowing, restrictions, or plugin lifecycle changes may invalidate reuse from this schema.
A successful call uses the result template and the provider-managed, directory, URL, or opaque resource guidance below.
<skill_content name="<escaped-name>">
<skill_resources>
<resource-guidance>
</skill_resources>
<skill_instructions>
<provider-owned-instruction-body>
</skill_instructions>
</skill_content>
Resources for this skill are managed by provider "<provider>".
Load referenced resources only as needed.
Base directory for this skill: <path>
Resolve relative paths mentioned by this skill against the base directory before using them. Load referenced resources only as needed.
Base URL for this skill: <url>
Resolve relative URLs mentioned by this skill against the base URL before using them. Load referenced resources only as needed.
Resources for this skill: <description>
Load referenced resources only as needed.
Loaded instructions are data-dependent tool-result tokens, resent on later steps until compaction; no duplicate agent.inject() copy is made.
Append-only; newly visible content follows the reusable request prefix and does not invalidate existing KV-cache entries.
Invalid or stale selections return exactly Error: invalid skill name "<name>", Error: skill "<name>" is unknown or no longer available, or Error: skill "<name>" is not available for model invocation. Provider-thrown lookup text is data-dependent and receives the same Error: <message> wrapper.
Only a failing call adds these retained tokens.
Append-only; newly visible content follows the reusable request prefix and does not invalidate existing KV-cache entries.
A whitespace-bounded /name token anywhere in a claimed user message, naming a user-invocable skill in the workspace catalog, injects that skill's full <skill_content> rendering (the exact result-template shape above) as a user-role instructions context appended after every other injection of that step — background first, the material to act on last. Only direct user input is scanned, the check runs on the loaded definition, and unknown or user-disabled names stay ordinary prose. This is the sole entry point for disable-model-invocation skills, which the catalog and the skill tool never expose; the catalog's closing sentence tells the model to follow the injected block instead of re-loading it.
Each gesture adds one rendered skill body to that turn as injected context — the same size as the tool result for the same skill, paid deterministically at the user's request instead of at the model's discretion. Repeated gestures for one skill within one step inject once.
Append-only; the injection lands after the reusable request prefix inside the step's message batch and does not invalidate existing KV-cache entries.
These limits define when the catalog or the loader is a poor fit. They are current package constraints, not a task backlog.
whenToUse, source, and provider metadata — routing is based only on name and a capped description; whenToUse remains provider metadata and is not rendered by the loaded wrapper either.