Introduction¶
DeepSeek Harness (DSH) adopts a “everything is a plugin” architecture, where skills are directories defined through frontmatter. Many community skills are first published on the WorkBuddy Skills Marketplace, and their directory structures don’t fully align with DSH’s requirements. A direct migration would trigger safe-name validation errors or duplicate registration. dsh-workbuddy-skills opens the WorkBuddy Skills Marketplace within DSH, consolidating directory scanning, id normalization, deduplication, and cleaning into a single import operation, copying entire skill packages into DSH’s global skills directory—usable immediately without a restart.
What It Is¶
dsh-workbuddy-skills is a DSH client plugin maintained by panweizong. It scans WorkBuddy’s skills directory, normalizes each package (id normalization, frontmatter trimming, file filtering), and then copies the selected skills into DSH’s global skills directory via the settings panel. The plugin has zero runtime dependencies and is MIT-licensed.
Core Features¶
Scanning & Normalization¶
The plugin scans the source directory (default ~/.workbuddy/skills) under DSH Settings → WorkBuddy Skills Marketplace and displays skills in a card grid:
- Target id: resolved in the order of frontmatter
name→slug→ directory name with suffix stripped; illegal characters are replaced with-, ensuring the id matches the frontmatter and conforms to DSH rules - Deduplication: when multiple copies share the same id, the one with the most recent
SKILL.mdmodification time is kept; the rest are marked as duplicate and excluded - Frontmatter: only
name/description/version/licenseare retained; body content is preserved as-is. WorkBuddy-specific fields (slug,displayName,summary,description_zh,argument-hint,intent,theme,best_for, etc.) along with_meta.json,_skillhub_meta.json,_user_meta.json,skill-card.md,上架说明.md,使用指南.md,开发者声明.mdare filtered out - Description fallback: looked up in the order
description→description_zh→description_en→summary→ first paragraph of the body - Nested sub-skills: e.g.,
lark-unified/skills/meegle—the entire tree is copied, not registered individually - Change detection: if the SHA-256 of the rebuilt
SKILL.mdmatches the target file, it’s marked assameand skipped - Icons: the first found among
_icon.png/icon.png/_icon.svg/icon.svg/_icon.jpg/icon.jpg/logo.pngwithin the package is rendered via the/api/iconread-only proxy; when no icon exists, a letter block with a color derived from the id hash serves as a fallback
Import & Overwrite Protection¶
- By default, only a manifest is generated without writing to disk; skills are imported after you check them
- Existing skills are skipped by default; enabling “Update Existing” allows overwriting, with a backup created at
<target>/.backup/<id>-<timestamp>/before overwriting - Safety limits: ≤500 files per skill, ≤4 MiB per file, ≤16 MiB total;
..and absolute paths are rejected - Backups for overwrites and deletions are both written to the target’s
.backup/subdirectory; skills in symbolic-link form are never deleted (symlinks are not followed)
Access Control¶
Every route handler’s first line invokes DSH’s own trust gate ctx.connection.requestRejection({ headers }) (Host/Origin validation + browser authentication), making it impossible for any web page to invoke the API. If the connection service is unavailable, a 503 is returned.
Path Settings¶
The scan source and import target can be configured in two places, with priority: panel settings > patch config > built-in defaults.
-
Panel settings (recommended, takes effect immediately): Enter the source directory / target directory in the “Path Settings” section at the top of the panel, then click “Save”. This writes to
<dshHome>/storages/workbuddy-skills/settings.json({version, sourcePath, targetPath, updatedAt}). The file is re-read on every request, so after saving, the next scan takes effect immediately without restarting or reloading the plugin. Leaving fields empty falls back to defaults; clicking “Restore Defaults” clears both fields. Only absolute paths or paths starting with~are accepted; paths containing control characters or relative paths are rejected (HTTP 400). -
Patch config (effective at installation time, serves as defaults): Add the following under the
configsection incordis.patch.yml:
- insert:
- id: dsh-workbuddy-skills
name: 'dsh-workbuddy-skills'
config:
sourcePath: 'C:\Users\me\.workbuddy\skills'
targetPath: 'C:\Users\me\.dsh\skills'
dshHome: 'C:\Users\me\.dsh'
overwrite: false
backup: true
After making changes, reload the plugin (or disable → enable in Plugin Manager) for the new defaults to take effect.
Installation & Activation¶
Plugin Manager → Install by package name → dsh-workbuddy-skills.
Local / development build:
plugin_manager install_bundle target=<absolute-path>/dsh-workbuddy-skills
After installation, reload the plugin once (disable → enable in Plugin Manager), and WorkBuddy Skills Marketplace will appear under Settings.
Typical Usage¶
- Open DSH Settings → WorkBuddy Skills Marketplace
- Confirm the source directory and import target directory in the “Path Settings” section at the top of the panel (leave blank to use defaults
~/.workbuddy/skillsand<dshHome>/skills); changes take effect immediately after saving - The panel automatically scans and lists skills in a card grid (icon + skill name + description + status badge / version / file count & size / last import time)
- Use the search bar at the top to filter by id, source directory name, or description; switch tabs between
All/Not Installed/Updatable/Installed/Others; the “Installed N” pill in the top-right corner filters to show only installed skills - No skills are checked by default. For a single install, click “Install” directly on the card (shows “Update” for updatable status); for batch, check items then click “Import Selected” at the bottom
- When multiple source directories share the same id, only the most recent one is shown by default; duplicate copies don’t appear in the card grid. Use “Show Duplicate Copies (N)” on the right side of the tab bar to expand and view them
- When needed, check “Update Existing” and “Backup Before Overwrite”, then click “Dry Run” to preview the manifest (the card “Install” button and “Import Selected” share the same set of options)
- The results panel shows detailed breakdown of
imported/updated/skipped/failed - Installed cards display a “Delete” button: click once to change to “Confirm Delete / Cancel”; after confirmation, the skill is removed from DSH’s skills directory and the manifest is updated
After import, skills reside at ~/.dsh/skills/<id>/ and are loaded by DSH immediately—no restart needed.
Use Cases & Notes¶
This plugin is ideal for developers who have already published skills on the WorkBuddy Skills Marketplace and want to consolidate them into the DSH ecosystem. Before installing, review the source code and license to ensure compliance with your team’s policies.
The plugin runs with the current DSH process privileges. Access control is enforced through DSH’s own trust gate, making it impossible for any web page to invoke the API.
Closing¶
dsh-workbuddy-skills integrates the WorkBuddy Skills Marketplace into DSH, providing scanning, normalization, deduplication, and overwrite protection to make skill migration and maintenance more manageable. Directory page and source code below:
- Directory page: https://www.skillhub.cn/plugins/panweizong/dsh-workbuddy-skills
- GitHub: https://github.com/panweizong/dsh-workbuddy-skills