Preface¶
The skills in DeepSeek Harness (DSH) employ a mechanism of global discovery and session injection. Since the metadata in SKILL.md lacks “scope-limiting” configurations, when a specific skill is irrelevant to the current project, it cannot internally declare itself blocked; it must rely on external toggles. This plugin aims to bridge this gap by providing visualized, project-level management capabilities.
Plugin Positioning¶
dsh-skill-switch is a project-level skill toggle and global deletion plugin for DSH (DeepSeek Harness). It introduces a “Skill Switch” tab within the session, listing the current project’s skills in a table. It supports one-click toggling, deleting all copies, validity/error determination, and a detailed view.
Core Features¶
- Project-level Blocking: Controls the visibility of skills for the current project via toggle files.
- One-click Toggling: Quickly switch the display status of skills within the panel.
- Delete All Copies: Removes copies of a specified skill across all known roots in one operation.
- Validity / Error Determination: Analyzes whether a skill is valid and identifies the specific reason for failure.
- Detail View: Displays the specific disk location and copy status of skills.
Installation and Activation¶
This is a standard DSH dual-half plugin and can be installed via the official dsh plugin command.
dsh plugin --profile desktop add -w github:twenty-3rd/dsh-skill-switch
After installation, DSH must be restarted. Adding a new bundle alters the host-side composition, and refreshing the page will not activate it. Upon restart, a “Skill Switch” entry will appear in the view tab bar.
Typical Usage¶
- Open any session.
- Click “Skill Switch” in the view tab bar.
- Use the inline toggles to switch states.
The plugin performs a “valid” determination for each skill:
* Valid = A (Present in the skill registry) ∧ B (Actively callable by the model) ∧ C (Explicitly callable by the user).
* If any condition is unmet, it displays an “Error” and specifies the exact reason.
Security Boundaries and Limitations¶
- Source Restriction: This package only supports GitHub repositories / local paths; npm installation is not provided.
- Security Boundary: Paths are derived entirely from server-side scanning; the client can only pass names. Every path pending deletion must pass a verification ensuring it is “strictly located within its belonging root.”
- Lifecycle: The panel and
/skill-switch/api/*routes disappear along with the fiber dispose.
Summary¶
dsh-skill-switch addresses the lack of project-level skill blocking in DSH, providing visualized toggling, deletion, and diagnostic capabilities. It is suitable for developers requiring fine-grained control over the scope of skills.