dsh-skill-toggles: Manage DSH skill toggles by group

Introduction

In DeepSeek Harness (DSH), skills keep growing as plugins, user directories, and project configurations accumulate. During development or debugging, it is often necessary to temporarily turn off certain skills to prevent the model from seeing too many entries in <available_skills>, or to avoid accidentally triggering a skill tool that should not be used. If you rely solely on deleting files or editing configurations, the switching cost is high, and it is inconvenient to reuse the same “allow / deny” policy across different scenarios.

The dsh-skill-toggles introduced below (maintainer xiake-1, community category admin-security) is dedicated to enabling and disabling skills: it adopts blacklist semantics + groups. All skills are available by default; only skills explicitly listed in the blacklist of a “currently active group” are filtered out. A fresh installation, a missing state file, or a corrupted file is equivalent to “all enabled” — there will be no scenario where the skill list is emptied instantly after installation. The plugin only manages skills and does not handle MCP switching.

What Is This

dsh-skill-toggles is a skill toggles manager in the DSH plugin marketplace. It provides a Skills button in the chat UI and a floating panel on the left side, and registers a shadow skill provider at the Agent layer, so that disables take effect across three paths: the input box / skill menu, the model’s skill catalog, and the skill tool (see below for effective timing). Source code and documentation can be found in the GitHub repository, and the directory page is on SkillHub.

Core Mechanism: Blacklist and Groups

The effective rules can be summarized as follows:

  1. All enabled by default: Skills that do not appear in any “active group” blacklist remain available.
  2. Groups: A built-in default group (initially all enabled, editable, not deletable); custom groups can be created, renamed, and deleted. Each group has its own blacklist and an “enabled” toggle; switching a group’s enabled state activates or deactivates the entire group’s rules.
  3. Merged blacklist: The current effective blacklist = the union of blacklists from all “active” groups. A skill is filtered if it is disabled by any active group.
  4. Conflict indicator: In the skill list, if a skill is disabled by another active group, a “disabled by “××”” badge will appear.

Filtering is implemented via a per-agent shadow provider (skill-toggles-filter): list() only emits entries that satisfy “effective blacklist ∧ actually exists”, and rewrites the invocation to be non-callable; enabled skills are not re-emitted, preserving the original provider’s path and body loading behavior.

UI and Agent Tools

Panel Operations

  1. Open the “Skills” button in the chat input toolbar, and a floating panel appears on the left.
  2. In the Groups area, select or manage groups; under the currently selected group, each row’s toggle in the list only affects that group’s blacklist.
  3. The skill list supports searching and is sectioned by source (plugin packages / user / project / custom / other, collapsible); each section provides “Disable all / Enable all”.

Agent-Callable Tools

All of the following tools accept an optional group parameter, defaulting to the default group:

  • skill_toggles_list
  • skill_toggles_disable / skill_toggles_enable
  • skill_toggles_enable_all / skill_toggles_disable_all
  • skill_toggles_source_set
  • skill_toggles_group_create / skill_toggles_group_delete / skill_toggles_group_set_active

When Changes Take Effect

Path Effective timing
Input box / skill menu Next time the menu is opened (sub-second)
Model <available_skills> catalog Next message (host “persistent projection” mechanism, same as any plugin)
skill tool Immediately rejects disabled skills

Installation and Uninstallation

After installation, DSH needs to be restarted (a browser-side page reload is sufficient).

Plugin marketplace: Search for dsh-skill-toggles in dshmarket and install with one click.

npm:

dsh plugin --profile desktop add dsh-skill-toggles

Local source (replace the path with the absolute path of this repository):

dsh plugin --profile desktop add file:<absolute path of this repo>

Uninstall:

dsh plugin --profile desktop remove dsh-skill-toggles

On uninstall, postuninstall automatically removes the state directory <DSH_HOME>/dsh-skill-toggles/.

State Storage (for troubleshooting)

The state file (v2) is located at <DSH_HOME>/dsh-skill-toggles/state.json, with the shape { version:2, groups:[{id,name,disabled[]}], activeGroups[] }; it uses atomic writes and falls back to “all enabled” when corrupted. Older v1 flat documents are automatically migrated into the default group on load.

Typical Use Cases

  1. Debugging a single Agent: Create a group “debug”, disable only the disruptive skills in that group’s blacklist, and enable the group; keep other groups at default all-enabled.
  2. Tightening by source in bulk: In the panel, expand the “Plugin packages” or “Project” section, run “Disable all” for that section, and then re-enable the needed skills individually.
  3. Automation: Call skill_toggles_group_set_active or skill_toggles_disable in an Agent conversation, combined with the group parameter, to switch between different working profiles.

Suitable Scenarios and Considerations

Suitable for: Developers who need to frequently switch “which skills are visible and callable to the model and the user” within the same DSH environment; teams that want to use groups to save multiple blacklist policies.

Environment and compatibility (subject to the repository’s package.json): Node >=18; DSH declared as >=0.2.0-rc.1 <0.3.0, compatibility records include 0.2.0-rc.2. Before installing, please review the source code and the MIT license yourself, and understand that the plugin runs with the current DSH process permissions.

Known limitations (from the original README):

  • For cold sessions where the Agent is not activated, data is provided by the preset persistent scope, and its / menu may still show disabled skills until the session is activated (the model catalog and the skill tool are unaffected).
  • Mutually exclusive with the legacy plugin dsh-skills-mcp-group-manager (the stacking semantics of two shadow providers are uncontrollable); a warning is emitted at startup if detected.
  • After reinstalling or upgrading an already installed bundle, the host-side process may need to be restarted to pick up new code (Node module cache); the browser side does not have this issue.

The DSH ecosystem emphasizes “everything is a plugin”; SkillHub is a community directory and has no official affiliation with DeepSeek / High-Flyer.

Conclusion

dsh-skill-toggles manages skills with “all enabled by default + group blacklist union”, and provides both a panel and Agent tools as two entry points, avoiding a total skill wipe-out caused by misconfiguration. If you need fine-grained control over the skill exposure surface under admin-security capabilities, you can install and try it from the directory page or GitHub.

  • Directory page: https://www.skillhub.cn/plugins/xiake-1/dsh-skill-toggles
  • GitHub: https://github.com/xiake-1/dsh-skill-toggles
羽毛球分组比赛记分
小程序二维码

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

Xiaoye