dsh-skill-switch: DSH Project-level Skill Toggle and Global Delete Plugin

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

  1. Project-level Blocking: Controls the visibility of skills for the current project via toggle files.
  2. One-click Toggling: Quickly switch the display status of skills within the panel.
  3. Delete All Copies: Removes copies of a specified skill across all known roots in one operation.
  4. Validity / Error Determination: Analyzes whether a skill is valid and identifies the specific reason for failure.
  5. 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

  1. Open any session.
  2. Click “Skill Switch” in the view tab bar.
  3. 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.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye