DeepSeek Harness 插件:dsh-skill-switcher

Introduction

DeepSeek Harness (DSH) turns the invocation state of every agent skill into a “one-click switch” — On / User Only / Off. Entry points are in the “Skills” popup of the input box toolbar and the Settings → Skills page. It only modifies two invocation fields in SKILL.md and comes with the skill_manager tool.

What is it

dsh-skill-switcher is a DeepSeek Harness plugin developed by maintainer yyliucha, categorized as admin-security. It elevates the management of skill invocation states from two fields in SKILL.md to a visual, searchable, and undoable one-click operation.

Core Features

Three-State Switch

The three modes correspond to field combinations in the SKILL.md frontmatter:

Mode Model Directory Visible / List Visible SKILL.md frontmatter
On visible visible No restriction fields
User only hidden visible disable-model-invocation: true
Off hidden hidden disable-model-invocation: true + user-invocable: false

The plugin only modifies these two fields; the rest of the file remains unchanged.

Settings Page Management

The settings page displays skills one row per item, with a three-state segmented controller on the right. Skills are grouped by source (Project / User / Custom / Built-in) and include a search box. Changes take effect immediately, and the skill directory refreshes automatically without requiring a restart.

Plugin Page Tab

The same management interface is also registered as the “Skill Management” tab in the plugin page, accessible without opening Settings. Both locations read and write to the same list and the same override record.

Real-time Discovery

Opening the page or clicking refresh rescans the skill root and rebuilds the skill directory cache. Newly added skills in the runtime will appear in the management interface without a restart and sync to the model’s invocable directory.

Input Box Left Menu

There is a compact “Skills” entry on the left side of the input box toolbar. The badge displays the count of non-“On” skills (only shows the count when all are “On”). Clicking opens a small popover, similar to the permission selector, featuring search, source grouping, one-click undo of the last switch, and the last write receipt. Each source group shows the first 6 lines before expanding; the rest are collapsed to “N more · Show All”. The panel has a maximum width of 520px and is constrained to the viewport on narrow screens. Typing in the search box expands all groups to ensure matching items are not collapsed or hidden. Clicking outside or pressing Escape closes it.

Session Skill Bar

Above the input box and below the status bar is a session skill bar displaying all skills loaded in the current session. Each skill is a chip, arranged in the order they were loaded, without collapsing or hiding. Skills currently loading show a ring icon instead of an asterisk. This entry is persistent: it does not reset after a turn ends; it is only rebuilt when switching sessions, and is reconstructed from the conversation history (refreshing the page or navigating history shows the same name).

Skill Details and Built-in Editor

Clicking the skill name opens an info card showing the path, source, file size, last modified time, and the full description. When the description exceeds 500 characters, it is truncated in the model directory, and the card provides a prompt. From the card, you can open the file to enter the built-in editor or copy the path.

The Edit / Archive buttons and the “New” button in the title bar do not write files directly. Instead, they send precise requests to the composer (absolute path, current switch state, archive target, description length limit), and the agent executes the write operation. All writes are logged for audit purposes.

The built-in editor is an experimental feature. “Edit” opens SKILL.md in a textarea, and “New” opens a creation form. The browser does not write files directly. Instead, it publishes requests via the plugin’s temporary configuration, which the host executes (frontmatter validation, 256KB limit, automatic backup, mtime conflict rejection), and then returns the result. Archiving moves the skill to <root>/.archive/<name>-<stamp>/ without hard deletion.

skill_manager Tool

Ask the agent in the chat (e.g., “turn off windows-ops”, “list skills”), or directly call the skill_manager tool with list or set parameters. The override written by the tool is the same as the one written by the UI, so the two remain synchronized.

Status is stored in the SKILL.md frontmatter of each skill, consistent with the fields already supported by the Harness skill system. No extra database is needed, and all operations are reversible. Only derived records (last requested mode, host list, last write receipt) are stored in the plugin’s temporary configuration.

Installation and Enablement

Installation command:

dsh plugin --profile <profile> add @jacksun1994/dsh-skill-switcher

You can also use Plugins → Install in the app to install via any of the following specs:

  • npm: @jacksun1994/dsh-skill-switcher
  • This repo: https://github.com/yyliucha/dsh-skill-switcher
  • Local checkout directory

After enabling the plugin, refresh the page and open Settings → Skills or Plugins → Skill Management. The same plugin package also adds a “Skills” control entry to the input box toolbar.

Requirements: DeepSeek Harness 0.2.2-alpha.3 or later. Starting from 0.2.2-rc.3, the Client Remote namespace is a separate sub-service, so the plugin declares remote.settings / remote.skills in the inject list.

Typical Usage

Switching Skills on the Settings Page

  1. Open Settings → Skills or Plugins → Skill Management.
  2. Find the target skill and click the segmented controller on the right.
  3. Select a mode: On / User Only / Off.
  4. The state takes effect immediately, and the skill directory refreshes automatically.

Quick Switching in the Input Box

  1. Click the “Skills” button in the input box toolbar on the left.
  2. Search or switch by source group in the popup.
  3. Use “Undo Last Switch” to quickly rollback.

Managing Skills via Tool

Call in chat:

{
  "name": "skill_manager",
  "arguments": {
    "command": "set",
    "skill": "windows-ops",
    "mode": "off"
  }
}

Or ask the agent to perform the operation in the conversation.

Applicable Scenarios and Notes

Suitable for scenarios where skill invocation states need frequent switching, and visual management and quick rollback are desired. The plugin runs with the current DSH process permissions; check the source code and license before installing.

Note: Only scans and writes to default skill roots: ~/.dsh/skills, ~/.agents/skills, and the current session’s .dsh/skills / .agents/skills (symbolic links are followed). Built-in skills (installed with DSH) are read-only. The settings page requires at least one session: the directory is read from the working directory of the selected session and agent presets.

Short Conclusion

dsh-skill-switcher elevates skill invocation management from file field manipulation to a visual, searchable, and undoable one-click switch, integrating seamlessly with the Harness skill system via the skill_manager tool. Through the session skill bar and the control on the left side of the input box, skill states can be managed quickly without leaving the conversation flow.

Directory page: https://www.skillhub.cn/plugins/yyliucha/dsh-skill-switcher
GitHub: https://github.com/yyliucha/dsh-skill-switcher

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

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

Xiaoye