dsh-skill-center: Sidebar Skill Center and Runtime Registration

Introduction

There are two common forms for using skills in DeepSeek Harness (DSH): single-file .md located in ~/.dsh/skills, or WorkBuddy-style directories containing a SKILL.md. As the number of skills grows, discovering them and knowing their status requires digging through folders. Worse, when the @deepseek-ai/dsh-skill-filesystem is not activated in a profile, the skill tool often fails to list these file-based skills—the files exist on disk, but the session cannot access them.

dsh-skill-center (maintained by mwk719) is a DSH client plugin that adds a “Skill Center” entry to the sidebar. It displays skills from configurable source directories as cards, allows viewing the full SKILL.md, and uses a toggle switch to register or remove skills from the model’s available skill list. It has zero dependencies, requires no build step, contains no telemetry, and collects no data.

What is this

The plugin provides a skill browser in the center pane of the DSH Web GUI: tabs at the top separate skills by source directory, and skills are displayed in card blocks. Cards can be enabled/disabled, the folder can be opened via a menu, and clicking a card pops up details to view the full text. Source directories can be added, deleted, or modified within the interface and are persisted to ~/.dsh/skill-center.json.

It is categorized as a client-side plugin (dsh.client.platform is web in package.json). The current version is 1.1.0, requiring DSH >=0.2.0-rc.1, and is licensed under MIT.

Core Features

  • Sidebar registration panel (sidebar.panellist, order: 42).
  • One tab per source directory (showing display name + skill count), with the root path and source marker (Built-in default / Plugin config / Customized) indicated on the right; search only applies to the current tab.
  • Cards are in an adaptive grid: initial avatar, skill name, description (up to 3 lines), menu, and enablement toggle; disabled skills show “Disabled” and reduced opacity.

Enable / Disable and Session Visibility

For standard skills (directories containing SKILL.md or single-file .md), the toggle atomically rewrites the disable-model-invocation field in the file’s frontmatter (writing true to disable, or removing the line to enable; creating a minimal block if no frontmatter exists). It does not delete files or move directories.

The host registers enabled skills into the DSH skill table via ctx.skills.register upon mounting and after every enable/disable or source directory change; disabled or missing files are removed. The header badge “Session Connected X/Y” reflects the current registration results; unconnected cards are marked with a reason (e.g., duplicate skill name, invalid name). In profiles where @deepseek-ai/dsh-skill-filesystem is not activated, this provides a separate pathway for file-based skills to enter the session.

Note: Registry changes take effect immediately for new sessions; started sessions retain the snapshot from launch.

Details, Menu, and Source Directories

  • Click a card → modal displays the full SKILL.md text (marked “Truncated” if over 512KB), with an option to open the containing folder.
  • Menu: Open Folder (Windows explorer.exe /select, macOS open -R, Linux open directory), Copy Path, Enable/Disable.
  • The “Source Directories” editor allows modifying id / Display Name / Path, and supports adding, deleting, and restoring defaults. It validates the id (lowercase alphanumeric and hyphens), absolute paths, and ensures at least one directory exists before saving.

Default Scan Directories

Group Directory Skill Form
dsh-skills ~/.dsh/skills Single-file .md
workbuddy-skills ~/.workbuddy/skills Directory + SKILL.md

These are defaults only; group names, ids, and paths can be modified in the interface or preset via the plugin’s config.groups.

Expert Groups / Agents

Directories without SKILL.md but containing .codebuddy-plugin/plugin.json or .claude-plugin/plugin.json with non-empty agents[] are listed as agents (kind: agent). The toggle for these items only writes to the agents field in skill-center.json and does not modify any files within the directory; when enabled, they are registered into the skill table via lead prompts.

Skills with symbolic links or junctions in their path can be listed and read, but rewriting is refused and the toggle is disabled.

Implementation and Security Boundaries

  • The host half (backend) uses only Node built-in modules; the browser half (frontend) uses only the react provided by the loader, with no third-party packages and no build step.
  • API routes (e.g., /api/skill-center/list, set-enabled, groups) accept only same-origin loopback requests; write operations rely on the server’s latest scan and do not trust path inputs from the client.
  • Zero telemetry, zero external transmission; persistence is limited to ~/.dsh/skill-center.json (read-only scans otherwise); write operations only occur when the user clicks enable/disable.

Installation and Activation

Execute the following in the target profile (commands from the repository README):

dsh plugin --profile <profile> add github:mwk719/dsh-skill-center

You can also use a full git URL, local link:<repo-path>/dsh-skill-center, or install via the plugin marketplace dshmarket in Settings → Plugins. To uninstall:

dsh plugin --profile <profile> remove dsh-skill-center

After installation, simply refresh the page; a DSH app restart is only required if the host half lib/index.js has been modified.

Typical Usage

  1. Install the plugin and refresh the DSH Web interface, then open “Skill Center” in the sidebar.
  2. Switch between dsh-skills / workbuddy-skills (or your custom sources) using the top tabs, and use the search to filter the current tab.
  3. Click a card to read the full SKILL.md; use the card toggle to determine whether the skill is connected to the current profile’s runtime skill table (check against the header “Session Connected X/Y”).
  4. If skills are scattered in other directories, open “Source Directories” in the header, add a row with an absolute path, and save.
  5. To edit files in the file explorer, use the card “⋯” → “Open Folder”.

Use Cases and Notes

Who it is for: Developers who have accumulated many local SKILL.md or WorkBuddy skill/expert group directories, wish to unify browsing and toggling, and are using profiles that do not rely on or have not enabled the filesystem skill provider.

Recommendations before installation: The plugin reads and writes your configured skill directories and ~/.dsh/skill-center.json with the permissions of the current DSH process. Before installing, please browse the GitHub source code and MIT license to ensure the paths and frontmatter writing behavior meet your expectations. The community directory SkillHub Plugin Page and DeepSeek / Hithink are not officially affiliated; the DSH ecosystem itself follows an “everything is a plugin” extension model.

Conclusion

dsh-skill-center consolidates “a glance + a toggle = can the session use this skill” into a single sidebar panel: it scans ~/.dsh/skills and ~/.workbuddy/skills by default, supports extendable sources, and fills the gap when the filesystem provider is inactive via runtime registration, all while maintaining zero dependencies and local privacy boundaries.

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

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

Xiaoye