DeepSeek Harness Plugin Hub

Publish and manage complete Harness Profiles. Discover Plugins for your next setup.

Explore

PluginsPresetsDocsNews

Community

Publish a pluginContactReport an issue

Resources

Plugin Hub on GitHubDeepSeek HarnessSystem statusPrivacy notice
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

Independent and unofficial. Not affiliated with, authorized by, or endorsed by DeepSeek.

Skill Router — DSH Plugin for DeepSeek Harness
← Plugins
S

dsh-skill-router

Skill Router

RAG-style skill router for DeepSeek Harness: embeds skills, matches user tasks by similarity, and auto-injects the relevant skill bodies.

The plugin will be installed here. Keep web if you are unsure.

npx -y @deepseek-ai/dsh plugin --profile web add github:lau4tin1/dsh-skill-router#4f00f1bbd6f8f506479db6b46bb18d751b999547
READMECompatibilityVersions

Compatibility and provenance

Skill Router is published as dsh-skill-router and currently resolves to version 0.1.0. The Hub verifies its manifest and preserves the exact installation source for reproducible installs.

DSH compatibility
*
Runtime surfaces
any
Release source
github
Registry updated
9/15/2026

Versions

0.1.0stable
9/15/2026

Related plugins

Loading related plugins…

Latest
0.1.0
DSH
*
HMR
Process restart
Tree shaking
Safe tree shaking not declared
Unpacked size
Unavailable
Files
Unavailable
Surface
any
License
MIT
Source
github
GitHub
★ 0
Weekly downloads
0
Last push
9/17/2026
View source ↗
README badge

Click the badge to copy Markdown for your README.

Do you maintain this Plugin?Claim benefit · Priority security scan

Verify the GitHub repository declared in package.json to manage this listing. After you claim it, Hub will prioritize a security scan of the current version and publish the result when it passes.

Claim this Plugin →
Report an issue
DeepSeek Harness Plugin Hub
ProfilesPluginsCategoriesNewsDocsSign inManage Profiles
ProfilesPluginsCategoriesNewsDocsSign in

Related plugins

More verified plugins in productivity-workflow.

Acp App@deepseek-ai/dsh-acp-appThe dsh ACP profile bundle: automation-only JSON-RPC stdio and process lifecycle over dsh-baseClient Ui Task Board@linxin666/dsh-client-ui-task-boardHost-authoritative task board for the DSH Web GUI with real session execution, Host cron scheduling, and optional cross-platform idle-sleep protection; mounted without DSH source changes.Web All@linxin666/dsh-web-allDSH Web UI 全家桶聚合插件:一键安装全部功能插件(task-board / git-graph / pet / remote-web-ui / web-ui-settings / skin-center / community-plugins / compat shim)。compat 桥接层已并入本包(src/client),无需独立 compat npm 包。Deepseek Ipptdeepseek-ipptiPolloWork PPT Studio and its curated slide templates as a native DeepSeek Harness conversation view.

README

Skill Router for DeepSeek Harness

RAG-style skill routing plugin for DeepSeek Harness: embeds skills (their name + description + whenToUse routing surface), embeds each user task, keeps only the clearly-relevant skills with a gap-based selection rule, and auto-injects their full bodies into the prompt — no model round-trip to load a skill.

  • Design: see DESIGN.md.
  • Status: V1 complete and running — type-checks against the real DSH 0.1.5-rc.2 types, builds, mounts in a live DSH profile (verified in the web and headless profiles), and passes 20/24 bilingual routing prompts on real skills (node demo/e2e.ts).

Install

dsh plugin --profile web add dsh-skill-router

Installs into the web profile; swap web for another profile name to target it. Requires dsh and pnpm on PATH.

pnpm 12 build approval — the first install pulls native dependencies (onnxruntime-node, sharp, protobufjs) whose build scripts pnpm blocks by default. If dsh plugin stops with ERR_PNPM_IGNORED_BUILDS, open $DSH_HOME/profiles/<name>/pnpm-workspace.yaml, set the allowBuilds entries pnpm wrote there to true, then re-run the same dsh plugin ... add command.

The first real task downloads the embedding model once (~543MB, q8) into $DSH_HOME/skill-router/models, then runs fully offline.

Layout

  • src/index.ts — the Cordis plugin entry (name / inject / Config / apply).
  • src/selection.ts — the selection rule (largest-gap / ratio-to-max, weak floor).
  • src/similarity.ts — normalization + cosine similarity (pure).
  • src/embedding.ts — one real embedding model via transformers.js (ONNX).
  • src/skillIndex.ts — the index: build, embed, digest-diff sync on change.
  • src/config.ts — schemastery config schema + mappers.
  • src/render.ts — renders the injected <system-reminder> block (reuses DSH's renderSkillContent).
  • demo/e2e.ts — end-to-end routing test over downloaded skills.

Build

npm install        # toolchain (typescript, esbuild); DSH types come from a local checkout symlink
npm run typecheck  # tsc --noEmit against the real DSH types
npm run build      # esbuild -> lib/index.js (@deepseek-ai/* kept external)

Demo

Skills live in .agents/skills/ — a real DSH scanned root (rank 200, see DESIGN.md §14). The demo parses them the same way the registry would surface them:

node demo/e2e.ts           # plugin defaults
node demo/e2e.ts 0.2       # experiment with the minScore floor

Config (defaults)

enabled: true
embedding:
  model: Xenova/bge-m3                          # optional; any HF ONNX embedding model
  dtype: q8                                     # or fp32
cacheDir: ~/.dsh/skill-router                   # optional; models + index live here
rule: largest-gap                               # or ratio-to-max
minScore: 0.14                                  # confidence floor (precision > recall)
ratioThreshold: 0.75
maxSkills: 4
maxInjectedBytes: 65536

Languages

Chinese and English both work out of the box — the default model is multilingual, and a Chinese prompt matches an English skill description (and vice versa) by meaning, cross-lingual. One DSH registry rule to respect: skill names must stay kebab-case ASCII (pdf-tools), but description, whenToUse, and the body can be Chinese. The injected instruction block is bilingual (中文/English).

Embedding model

One engine: a real local model via transformers.js (ONNX) — dense semantic vectors; synonyms and paraphrases match, word sharing is not required. Default Xenova/bge-m3 (q8, ~543MB download, 1024-dim, [CLS] pooling) — flagship multilingual quality for Chinese + English. Alternatives via embedding.model: multilingual-e5-small (fast, needs query/passage prefixes — handled automatically), bge-large-en-v1.5, bge-large-zh-v1.5.

Scoring de-biases the vectors by subtracting the corpus mean ("centering"), which removes the shared direction that would otherwise make unrelated texts score ~0.8. Inference is pinned to a single thread so results are deterministic.

All heavy data lives OUTSIDE the working directory: the model downloads once from huggingface.co into <cacheDir>/models, and the skill-embedding index persists at <cacheDir>/skill-index.json (atomic writes, tagged with the model id), so unchanged skills are never re-embedded after a restart.

Dev note

node_modules/@deepseek-ai and node_modules/js-yaml are local symlinks into a DSH checkout for type-checking and demos; recreate them after a fresh install. At runtime a real DSH profile provides the @deepseek-ai/* packages (they are declared as peerDependencies and kept external by the build).