dsh-plugin-skill2cn: One-Click Chinese Localization and Restoration of DSH Skill Descriptions

Preface

In the process of using DeepSeek Harness (DSH), installed skills often come with English descriptions, leading to a fragmented reading experience. Manual translation is time-consuming and difficult to maintain. The dsh-plugin-skill2cn plugin aims to solve this pain point. It translates the description field of skills into Simplified Chinese via an LLM and provides a one-click restoration feature, taking effect without restarting DSH.

Plugin Overview

  • Name: dsh-plugin-skill2cn
  • Author: kaluosifa
  • Category: Networking Tools
  • License: MIT
  • Core Value: Reads the description from SKILL.md, translates it, and writes it back to the disk directly, while maintaining a manifest.json as a state backup.

Core Features

The plugin adds a “Skill Localization” page to the DSH settings interface, containing three tabs:

Untranslated Tab

Groups skills by source (Workspace / Global / Plugin Package). Each skill row includes a “Translate” button, and a “Translate All” batch operation is provided at the top.

Translated Tab

Displays the list of translated skills. Supports individual “Restore”, a toggle to view the original text, and a “Restore All” batch operation.

Batch Task Management

Batch translation uses asynchronous tasks with a concurrency limit of 3. Tasks provide real-time progress and a summary of successes and failures. If a translation fails, the entry remains on the panel and offers a “Retry” button.

New Skill Notification

When new skills are detected, a shell.overlay card pops up in the bottom right corner asking whether to translate them. Deprecated skills will not be asked again.

Model Settings

Provides three routing modes:
1. Follow Session Route: Uses the LLM configuration of the current session.
2. Configured Provider/Model: Selects from the model list configured in DSH.
3. Custom Endpoint: Supports OpenAI or Anthropic compatible protocols. Requires filling in Base URL, API Key, and Model Name. The Base URL must include a version segment (e.g., /v1).

Updates and Synchronization

When the panel is opened, if a skill has been overwritten by a plugin package upgrade, the entry will be silently cleared or marked as expired, allowing for re-translation.

CJK Heuristic Detection

Before a batch run, the plugin scans descriptions. If a description is already in Chinese, it is marked as “No translation needed” and skipped.

Installation and Activation

The plugin is installed via the official registry. Restart DSH after installation to load the host side.

dsh plugin --profile web add dsh-plugin-skill2cn

Development and Debugging

If you need to modify the plugin source code or build from source:

  1. Clone the repository and install dependencies (requires Node ≥ 22.13 and pnpm 11):
    git clone https://github.com/kaluosifa/dsh-plugin-skill2cn.git
    cd dsh-plugin-skill2cn
    pnpm install
  1. Run the build after modifying the code:
    pnpm build
The build process first generates the `lib-tsc` directory (to handle TypeScript decorators), then bundles into `lib/index.js` and `lib/client.js`.
  1. Install the locally built plugin:
    dsh plugin --profile web add .
  1. After modifying src/service.ts (host side) or src/client/** (client side), you need to rebuild and restart DSH or refresh the browser.

Uninstallation and Notes

Before uninstalling, please ensure you click “Restore All” in the “Translated” tab, because the plugin’s translation results are written directly to the disk, and uninstalling will not automatically roll back these files.

dsh plugin --profile <profile> remove dsh-plugin-skill2cn

Important Notes:
* Workspace Logic: The “Workspace” group follows the session’s session.header.cwd. This means it refers to the project directory currently opened by DSH, not the directory where the DSH process was launched. If DSH is started within a specific code checkout directory, the project skills of that directory itself will not become translation targets.
* Enumeration Logic: The skill list is enumerated based on the winner set of the ctx.skills registry.

Conclusion

dsh-plugin-skill2cn achieves automated localization and restoration of DSH skill descriptions through disk write-back and state backup mechanisms. This is a practical tool for users who need to manage a large number of local skills.

View Plugin Directory
Visit GitHub Repository

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

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

Xiaoye