dsh-skill-zh-overlay: Chinese Annotation Overlay for Skill Panel Cards

Preface

When browsing skills using dsh-skill-mcp-panel in DeepSeek Harness (DSH), the description visible after expanding a card mostly comes directly from the SKILL.md frontmatter of each skill. These descriptions are almost always in English. Long paragraphs are slow to read and it is difficult to judge at a glance “when to use this skill.”

The panel itself does not maintain a Chinese dictionary; it simply pastes the original text. dsh-skill-zh-overlay is a layer of explanation added on top of the panel: when a card is expanded, a Chinese overview, category tags, and a bulleted list appear at the top first; the panel’s original English text is collapsed by default and can be expanded by clicking “Original” when needed. For English skills not yet included, the host generates an explanation on the fly using your current default model upon the first click and writes it to the cache; if the original text is already in Chinese, it is automatically skipped to avoid stacking two layers of Chinese.

What is this

  • Plugin Name: dsh-skill-zh-overlay
  • Maintainer: blacktaoK
  • Category: Memory (Community Directory Classification)
  • License: MIT (see repository README)
  • Prerequisite: dsh-skill-mcp-panel is installed

The implementation consists of a “Host bundle + Frontend patch for the panel’s client.js”: The host merges the mapping table and cache, injects global data, and provides an on-demand generation interface; the patch renders the Chinese block in the card expansion area. If the panel is not installed or its lib/client.js cannot be found, the log will show a prompt, the Chinese block will not take effect, but it will not affect the startup of DSH or other plugins.

What you will see after expanding a card

After a skill card is expanded, the Chinese explanation is rendered above the original text. From top to bottom, it roughly follows this layout:

  1. “Chinese Explanation” badge and category tags (e.g., Visualization · Charts)
  2. A one-sentence Chinese introduction
  3. Bulleted list (when to use, points to note)
  4. Divider line
  5. Source information, “Original” button, and “Original collapsed” prompt

Four behavioral principles (consistent with the README):

  • The overlay does not redundantly copy the English original text already present in the line below on the panel.
  • Skills whose original text is already in Chinese will not have an overlay added (if the Chinese character ratio in non-whitespace characters is ≥ 30%, it is judged as Chinese original text).
  • When there is no available Chinese, it will not stuff a “No description available” placeholder box; either generate real content or do not add the block.
  • If Chinese is needed but not included, generation is triggered when the user clicks to open the card.

Where does the Chinese explanation come from

Data is retrieved by priority, and retrieval stops once found:

Order Source Description
1 data/skill-zh-map.json Manually written, highest priority
2 data/auto-zh.json Cache persisted after automatic generation
3 Results generated within the current process In-memory cache
4 On-site model invocation Generated by the host using the current default model

The trigger method for Step 4: When a card without Chinese is clicked, the frontend first displays “Generating Chinese explanation…”, the request enters a queue, and up to 8 items are sent in a batch via POST to /skill-zh-overlay/api/explain. The host requires the model to output JSON in the format {zh, tag, bullets}, writes it to data/auto-zh.json, and returns it to the frontend, where the placeholder block is replaced immediately without refreshing the page. The experience reference provided in the README is: first-time generation takes about 2 seconds, cache hits take about 0.1 seconds.

Cache is bound to the original text: each cache record contains the first 16 bits of the English original text’s sha1; if the SKILL.md description changes, the fingerprint does not match, the old translation is invalidated, and it is regenerated on the next click. Handwritten entries in skill-zh-map.json always override automatically generated entries with the same name; if a skill needs to force the absence of an overlay, you can set "noOverlay": true in the handwritten table.

Installation and Activation

Official installation command (from README):

dsh plugin add dsh-skill-zh-overlay

After installation, simply restart DSH once; the decorative scripts are written by the plugin at startup, so no additional scripts need to be run.

If dsh-skill-mcp-panel is not installed, you should install the panel plugin first, otherwise the Chinese overlay of this plugin will not take effect.

When installing from source or specifying a profile, the README provides the install.ps1 path (copying generation, registering package.json, etc.); when installing via dsh plugin add, you do not need to execute install.ps1 again.

Typical Usage

Daily Use: After installation and restart, open the skill panel and expand any English skill card. Those with existing handwritten or cached entries will display the Chinese block immediately; those without will automatically generate upon first expansion.

Long-term fixed wording or disabling the overlay: Edit data/skill-zh-map.json within the plugin package. After editing, restart DSH (the handwritten table is read once at startup). The automatic cache data/auto-zh.json can have entries deleted, followed by a restart to trigger regeneration.

Example format of the mapping table:

{
  "_readme": "Keys starting with _ are comments and will be ignored",

  "skill-name": {
    "zh": "A one-sentence Chinese introduction, displayed at the top of the card expansion area.",
    "tag": "Category tag, displayed as a small badge",
    "bullets": ["Key point one", "Key point two (2-4 items, clearly explaining when to use / potential pitfalls)"],
    "noOverlay": "Optional; true = Force no overlay"
  }
}

The skill-name must match the name on the card (corresponding to data-skill-name in the DOM). The repository README lists 8 handwritten English skills (such as archify, hindsight-coding-agent, office-docx, etc.); other English skills can go through automatic generation, while those with original text already in Chinese (such as work-report-writer) will be automatically skipped.

Optional Configuration

In the config section of cordis.patch.yml (all can be omitted):

provider: ''        # Blank = Use your current default model
model: ''           # Same as above
autoGenerate: true  # false = Turn off on-demand generation, use handwritten mapping only

On-demand generation goes through the /skill-zh-overlay/api prefix, decoupled from the main DSH route; the generation side has a single call maxTokens: 700, a timeout of 60 seconds, and a maximum of 8 items per batch (see the “Principles” section in the README).

Applicable Scenarios and Notes

Suitable for: Developers who frequently select skills via dsh-skill-mcp-panel in the DSH Web interface, want Chinese overviews and key points for English descriptions, but do not want to manually maintain translations for every new skill.

Notes:

  • The plugin runs with the permissions of the current DSH process and applies idempotent patches to dsh-skill-mcp-panel’s lib/client.js; before installation, it is recommended to review the GitHub repository source code and MIT license.
  • Automatic generation depends on your configured default model and network; if parsing fails, the skill will appear in missing in the response, and you can click again to retry.
  • The community directory SkillHub Plugin Page and GitHub are maintained by the community and have no official affiliation with DeepSeek / High-Flyer; the DSH ecosystem adheres to “Everything is a plugin”, and this plugin is an enhancement to the panel experience, not a built-in capability of DSH.

Conclusion

dsh-skill-zh-overlay compresses the English explanations on skill cards into a scannable Chinese overlay, using handwritten mappings to ensure the wording for common skills, while others are generated on demand with a cache invalidation strategy based on original text fingerprints. If you are already using the Skill MCP Panel, a single dsh plugin add plus a restart is enough to try it out.

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

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

Xiaoye