dsh-skill-labels: Add Chinese Short Labels to the DSH Skill Catalog

Foreword

DeepSeek Harness (DSH) skills appear in two places: the available_skills list in model conversations, and the skill menu brought up with / in the input box. By default, each skill only has a kebab-case name and an English description, making it costly for humans to identify items one by one in a long list. Some people use other plugins to mark sources or manage enable/disable status; this plugin solves a different problem—adding a 4–7 character Chinese title before the description, keeping the original English description intact, and not changing the trigger information for the model.

The following introduces dsh-skill-labels open sourced by maintainer Siloet-phy (GitHub: Siloet-phy/dsh-skill-labels, current package version 0.2.0, MIT license). Community directory page: https://www.skillhub.cn/plugins/Siloet-phy/dsh-skill-labels.

What This Is

dsh-skill-labels is a DSH plugin: it inserts a customizable prefix label before each description returned by the skill registry, with the default layout 【Title】Original Description. For example, html-ppt can change from a purely English description to 【写PPT】HTML PPT Studio — ….

Labels are matched by skill name, regardless of whether the skill comes from official built-in, workspace, user directory, or GitHub; skills not in the table remain unchanged. The plugin has zero third-party dependencies and is ready to use by default after installation.

Core Features

Two Exits Work Simultaneously

The model-side skill catalog and the / menu read the same registry data. The plugin wraps SkillRegistry’s snapshot() / list() methods, only rewriting description before delivery; skill names, invocation, paths, and get() loading paths remain unchanged. The README states it has been tested with DeepSeek Harness 0.2.0-rc.2, using only ctx.skills, ctx.tools (optional), and ctx.logger.

Four-Level Label Table with Hot Updates

Labels are overridden in priority from low to high:

  1. Built-in DEFAULT_LABELS (about 12 common defaults)
  2. Package labels.json
  3. User file ~/.dsh/skill-labels.json (not overwritten when upgrading the plugin)
  4. Line configuration config.labels in cordis.patch.yml

Files are lazy-loaded by modification time, taking effect after saving, without needing to restart DSH (changes take effect immediately when directly mounting source code for debugging, see installation section).

Layout and Format

Line configuration supports:

Field Type Default Description
format string 【{label}】{description} Must contain {description}
labels object {} Name-to-title mapping, highest priority
labelsFile string | false ~/.dsh/skill-labels.json false means do not read user file

Labels are not limited to Chinese; they can be emoji, English short names, or numbers, e.g. 🎨 画图, excel, ① 常用.

skill_labels Tool

After installation and restarting DSH, the model tool list will include skill_labels:

  • action: "list" — List each skill’s existing labels, source (builtin / package / user / config), and unlabeled list (read-only)
  • action: "set" — Merge write { skill name: label } into the user label table, atomic write; existing entries unchanged; reject overwriting on invalid JSON

In conversations, you can use natural language to ask the model to complete unlabeled skills, e.g. requesting 4–7 character short titles. When writing manually, just edit ~/.dsh/skill-labels.json:

{
  "my-own-skill": "我的技能",
  "html-ppt": "做幻灯片"
}

For Windows users, the table path is C:\Users\<用户名>\.dsh\skill-labels.json.

Differences from Similar Plugins (README Summary)

As of document writing, there are other plugins in the skill menu direction that mark sources or provide management panels; this plugin focuses on “understand the purpose at a glance”, and supports custom label tables, model-side catalog synchronized display, and AI maintenance of user label tables. When uninstalling, wrapped registry methods can be restored.

Installation and Activation

First install in the profile, then activate via the profile’s cordis.patch.yml. Only one of the three methods should be kept, otherwise it may be mounted twice.

Install from GitHub (Web profile, recommended):

dsh plugin --profile web add github:Siloet-phy/dsh-skill-labels

Replace web with desktop for the desktop version:

dsh plugin --profile desktop add github:Siloet-phy/dsh-skill-labels

Local directory (development/debugging):

dsh plugin --profile web add file:/绝对路径/dsh-skill-labels

Without installing, direct mount (source code changes take effect immediately): append insert at the end of cordis.patch.yml, with name pointing to the absolute URL of the local index.js (use file:///C:/… on Windows). After installation, you need to restart the DSH for the corresponding profile; the direct mount method documentation states no restart is needed.

Optional line configuration example:

- insert:
    - id: skill-labels
      name: 'dsh-skill-labels'
      config:
        format: '【{label}】{description}'
        labels:
          html-ppt: 写PPT
        labelsFile: 'D:/my-labels.json'

Note: config with the same id is entirely replaced at the patch layer; when overwriting, write the complete configuration.

Typical Usage

1. Check the menu after installation

Press / to open the skill menu; skills already present in the label table will display Chinese titles before their descriptions, e.g. office-xlsx → 【写Excel】Read, create, and modify Excel workbooks ….

2. Add labels to newly installed GitHub skills

Get the skill name from the menu or skill_labels’s list (e.g. dig, pdf), and write to the user table:

{
  "dig": "挖简历亮点",
  "pdf": "读PDF"
}

3. Let AI batch-complete labels

After restarting DSH, explain in the conversation that you want to list unlabeled skills and write 4–7 character Chinese titles; the model calls list and set in sequence, with results written to the file pointed to by labelsFile.

4. Custom layout

Adjust format in the profile configuration; {description} must still be kept so the model continues to see the complete English trigger description.

Use Cases and Caveats

Suitable for developers who maintain many skills in DSH long-term and want to quickly scan the purpose on both the human and model sides of the catalog. The built-in defaults target common skills in the DSH ecosystem; labels for personal skills and third-party skill sets should be placed in the user table; the documentation does not recommend submitting private labels as PRs to the built-in table.

Runtime and security:

  • The plugin runs with the permissions of the current DSH process; skill_labels’s set only writes to the label table file (default ~/.dsh/skill-labels.json), merge write, does not overwrite when the table is corrupted.
  • Before installation, you should review the repository source code and MIT license yourself; the README also has “Security and Privacy” and “Known Limitations” sections; upgrade and uninstall instructions are in the repository documentation.
  • Node engine requirement >=20 (see package.json).

Conclusion

dsh-skill-labels adds hot-updatable Chinese short titles to the skill catalog without changing English descriptions, and allows the model to help you maintain the user label table via skill_labels. Directory and source code:

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

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

Xiaoye