Introduction¶
In DeepSeek Harness (DSH), the body of a Skill’s SKILL.md is lazily loaded: the model only reads the body when it calls the skill tool. However, the Skill catalog is not lazy. The official tool-skill injects every model-callable Skill as an <available_skills> block before every step, so a Skill never used in a session still produces catalog-description overhead on every step. Previously there was no unified entry point for a pure chat session with no Skills offered from the start.
dsh-skill-switch, published by maintainer EdisonYang1982, is classified under Workflow in the SkillHub community directory. It provides per-session viewing and toggling of Skills, three session-posture presets, and the ability to move an entire family of interdependent Skills into or out of the host Skill Hub. Its goal is to reduce the Token cost of unused Skills along two dimensions: per-session and per-family.
What This Is¶
In one sentence: Per-session skill switch for DeepSeek Harness—it displays which Skills are loaded in the current session above the input box, allows them to be toggled off individually, and supports one-click pure chat sessions with no Skills; at the same time it supports mounting or parking an entire Skill family outside the Hub.
The plugin is distributed under the npm package name dsh-skill-switch; the version in current materials is 0.1.0, license MIT. GitHub repository: EdisonYang1982/dsh-skill-switch; community directory page: skillhub.cn entry.
The Three Layers of Cost It Targets¶
The README breaks the design goal into three layers; the second layer delivers the largest real benefit:
| Layer | Mechanism | What it saves |
|---|---|---|
| 1 | Remove Skill from catalog | One description line |
| 2 | Model can’t see it, so it won’t be loaded | The entire SKILL.md body |
| 3 | After all are turned off, the skill tool itself is unloaded |
The JSON Schema is no longer injected either |
Layer 1 mainly serves Layer 2: after hiding the catalog line, the model no longer knows the Skill exists, thereby avoiding body loading. Layer 3 incurs almost no extra cost when everything is already turned off.
The README performed a character-count comparison (not Tokens, for reproducibility) on a real ~/.agents/skills Hub: with all 7 Hub Skills enabled, the catalog is about 749 characters; when a 27-Skill family of interdependent Skills is parked, the catalog cost is 0; when the same family is mounted, the cost is 5,559 characters (about 205 characters per line on average). The key point: merely “hiding” within the catalog still requires discovering the Skill first and then rendering a line; moving the catalog out of the Hub means the registry never sees it at all, so the cost is 0 while parked.
Core Features¶
Session Strip¶
Each session has a collapsible strip above the Composer that shows which Skills the current session will load. Each Skill has an independent toggle, and three posture presets are provided (the config’s defaultMode and workSkills relate to these; see below).
Per-Session Toggling¶
The rationale is that session intents differ: brainstorming doesn’t need to pay catalog lines for a coding toolset; “no Skills in this session” should be one click away, rather than repeatedly explaining it to the model.
Skill Groups (skillGroups)¶
Some Skill families are large and members reference each other via relative paths (e.g. lark-doc → ../lark-shared), so they cannot be split toggled per single Skill: enabling just one would break references, while listing all would pay the full catalog lines on every step.
Skill groups park an entire Skill family outside the Hub in parkDir, and move the whole group into hubDir when needed:
| State | Catalog cost | Member location |
|---|---|---|
| Parked | 0 | parkDir |
| Mounted | One line per member | hubDir |
The strip shows group state with dashed/solid chips (e.g. ⬡ Feishu CLI 27 when parked); clicking mounts or parks the entire group.
Sync Script (syncScript)¶
The host scans Skills from the Hub directory, not from arbitrary paths where authors store their Skills. If the Skill repository is elsewhere (network drive, sync directory), syncScript can be configured to point to an absolute-path sync script; the strip will show a Sync skills button. Clicking it runs the script, invalidates the catalog cache, and refreshes all open strips. Hub → strip display is auto-updated by file watching and SSE; repository → Hub copying is deliberately manual, avoiding the hidden cost of scanning on a network mount every time.
Replaces the Official skill Tool¶
Important before installing: the plugin disables @deepseek-ai/dsh-tool-skill via cordis.patch.yml, and registers its own skill tool and session-catalog implementation; the implementation is a port of the official logic with per-session filtering added, not a wrapper around the official plugin. If you rely on the exact behavior of the official tool-skill, you should read the Why it takes over tool-skill section in the repository README before installing.
Installation & Activation¶
The materials give two paths: local link build, and post-publish profile installation.
Local build and link into a profile:
# 1. Build (inside the plugin directory)
npm install && npm run build
# 2. Link it into a profile: add to <profile>/package.json
# dependencies: { "dsh-skill-switch": "link:/path/to/dsh-skill-switch" }
# dsh.profile.bundles: [..., "dsh-skill-switch"]
# 3. Let the plugin resolve @deepseek-ai/* from the profile
ln -s ~/.dsh/profiles/node_modules <plugin>/node_modules
After publishing (README example):
dsh plugin --profile web add dsh-skill-switch
After installation you must restart DSH. The plugin runs under the DSH process’s permissions; before installing you should review the source code and the MIT license yourself, and confirm that you accept the behavior of replacing the official skill tool.
Configuration¶
Default values live in the plugin’s own cordis.patch.yml; environment-specific items go in your profile patch (<profile>/cordis.patch.yml), corresponding to the line id skill-switch:
- id: skill-switch
name: dsh-skill-switch
config:
defaultMode: all # posture a new session starts in: all | none | work
workSkills: [] # skills the `work` posture enables
syncScript: '' # absolute path of a sync script; empty hides the control
hubDir: '' # absolute path of the hub the host scans (needed for skillGroups)
skillGroups: [] # all-or-nothing bundles, see below
defaultMode: allis close to stock behavior, toggling off as needed; setting it tononemeans new sessions offer no Skills by default, opening them on demand.- When using
skillGroups, you must fill inhubDirand each group’sparkDiretc.
Skill group example (from the README):
hubDir: '/home/you/.agents/skills'
skillGroups:
- id: lark
label: 'Feishu CLI'
description: '27 Feishu skills, mounted and parked as one unit'
parkDir: '/home/you/.agents-parked/lark'
discover: true # read members from parkDir; no hand-maintained list
Typical Usage¶
- After installing and restarting DSH, open any session, expand the Skill strip above the Composer, and see which Skills are in the current session’s catalog.
- Turn off Skills the session doesn’t need, or switch to postures such as
none/work(the “work” set is defined bydefaultModeandworkSkillsin the profile). - If
skillGroupsis configured, click the corresponding chip on the strip to move the whole group between the Hub andparkDir; large families not used for long periods are recommended to stay parked, avoiding catalog-line costs on every step. - If the Skill source is not under the Hub path, configure
syncScriptand click Sync skills when you need to update Hub contents; the button recovers about 2 seconds after success, and on failure error output is retained for troubleshooting.
Use Cases & Notes¶
Suitable for: DSH users who mount many Skills locally or in a profile and whose sessions have clearly different purposes; users with dozens of interdependent Skill families that can only be enabled as a whole, wanting to physically move them out of the Hub when unused to save catalog costs.
Notes:
- The plugin replaces the official
@deepseek-ai/dsh-tool-skill; when upgrading DSH or Cordis, pay attention to whether peer dependencies still match (the ranges for@deepseek-ai/cordis,dsh-agent,dsh-skill, etc. are listed in package.json). - The community directory SkillHub is an independent site, with no official affiliation to DeepSeek / High-Flyer; star counts and other metadata are per the directory page (GitHub stars in current materials: 0).
- All installation/configuration commands and field names follow the README and
cordis.patch.ymlabove; do not fabricatedsh plugin add github:...forms based on the plugin name.
Conclusion¶
dsh-skill-switch decomposes the Token cost of Skills into three layers—“catalog lines,” “body loading,” and “tool Schema”—and uses two mechanisms, per-session toggling and whole-family park/mount, so that pure chat and unused Skill families don’t have to pay on every step. For details, behavior-difference notes, and the Chinese README, see the GitHub repository and the SkillHub plugin page.