Introduction¶
In DeepSeek Harness (DSH), each skill has its own independent rule set. If you want a particular skill to remain active throughout the current session, you typically need to re-invoke it in every response. Frequently toggling skill session states interrupts the conversation flow and increases operational overhead.
The plugin dsh-skill-switch provides session-level skill toggles. Once a skill is enabled, its rules are continuously applied to all responses in the session without needing to be re-invoked; when disabled, the skill remains in the catalog and can still be called on demand via commands.
Plugin Overview¶
- Plugin name: dsh-skill-switch
- Maintainer: dai428
- Category: Workflow
- Core value: Provides per-session toggle control for DSH skills, persistently applying skill rules at a specified level and reducing repetitive invocations
Core Features¶
Skill Toggle States¶
The plugin controls the state of skills in the current session via the “Skills” button. This button appears in the Composer toolbar, after the permission control section. When the panel is opened, each skill displays a toggle along with its current state:
- On-demand: The skill only responds when explicitly requested, maintaining its default behavior
- Persistent: The skill’s rules are continuously injected into all responses
- Persistent
: Persistent at a specific level
After switching to “Persistent,” the skill’s rules appear in the request as a “persistent prompt,” eliminating the need to re-invoke the skill.
Session Scope¶
Each session independently maintains its own toggle state. After session restoration or forking, the toggle state is recovered from the log and does not need to be reconfigured.
Automatic Skill Discovery¶
The skill list is sourced from the session’s skill catalog. After installing a new skill, it appears in the toggle panel without any plugin configuration changes.
Multi-Level Support¶
If a skill declares levels (e.g., lite, full, ultra), you can select a specific level to persist when enabling. Rules for different levels are distinguished in the skill definition, and the plugin filters rule content based on the selected level.
Pure Command-Line Operations¶
In addition to panel control, toggles can also be set via the command line:
/skill-switch caveman on
/skill-switch caveman ultra
/skill-switch caveman off
Installation and Activation¶
The plugin is installed via npm:
dsh plugin add @zhangwansen123/dsh-skill-switch
It also supports installation from a tarball or local checkout:
dsh plugin add ./zhangwansen123-dsh-skill-switch-1.0.1.tgz
dsh plugin add ./skill-switch
No additional configuration is required after installation. The plugin requires DSH version >=0.2.2-rc.2 <0.3.0.
Configuration Example¶
Specify the default state and level for skills in the plugin configuration:
- id: skill-switch
name: '@zhangwansen123/dsh-skill-switch'
config:
skills:
caveman:
title: Caveman
levels: [lite, full, ultra, wenyan-lite, wenyan-full, wenyan-ultra]
defaultEnabled: false
defaultLevel: full
defaultEnabled: false: New sessions default to on-demand mode; set totrueto have the skill be persistent from the start of the sessiondefaultLevel: The default level used when persistingsection: Specifies the namespace for the persistent prompt (defaults to the skill name)
Skills not included in the configuration can still appear in the panel, but only display the “On-demand” state with no level options.
Use Cases¶
- Conversations that require continuously applying a specific skill style (e.g., “Caveman Mode,” “Classical Chinese Mode”)
- Sessions where you need to frequently switch between skills while keeping configuration consistent
- Multi-level skills where you need to lock a fixed level for the session
Notes¶
- The plugin runs with the privileges of the current DSH process; review the source code and license before installation
- Toggle state is only persisted to the session log; switching to another session requires reconfiguration
- Disabling persistence only reverts the skill to on-demand mode; it is not uninstalled or hidden
- Only skills listed in the configuration can provide level options
Summary¶
dsh-skill-switch enables skill rules to remain continuously effective through a session-level toggle mechanism, reducing repetitive invocations. It is built on Harness’s ctx.systemPrompt.section() and ctx.skills.get() mechanisms, does not modify skill source code, and rules automatically update when skills are upgraded.
- Catalog page: https://www.skillhub.cn/plugins/dai428/dsh-skill-switch
- GitHub: https://github.com/dai428/dsh-skill-switch