返回目录
模型与 MCP 插件

dsh-skill-on-demand

qqmqq/dsh-skill-on-demand

DSH plugin: keeps the session skill catalog out of every request — skills are listed on demand, the ones a task needs are recorded once, and only a picked skill is loaded by name.

Stars
0
Forks
0
Issues
0
更新
19 天前

PROJECT TOPICS

项目标签

INSTALL REFERENCE

安装参考

未验证
dsh plugin --profile web add github:qqmqq/dsh-skill-on-demand

该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。

PROJECT README

README

dsh-skill-on-demand

English | 中文

DeepSeek Harness injects every installed skill's full description into each request. With dozens of skills that is tens of thousands of tokens re-sent every turn, most of it about skills the task never touches. Removing the catalog outright saves the tokens but makes skills invisible: the model stops calling them.

This plugin lands in the middle: a one-line index of every skill (name + a short clause from its description), injected once per session, and full instructions loaded only on demand.

What it does

Before With this plugin
Full 500-char description per skill, re-sent every turn One line per skill (name: <28-char clause>), once per session
Nothing searchable mid-session skill_list query=关键词 ranks the full descriptions and returns the closest matches
Nothing records what a task uses skill_pick optionally records the chosen skills
Every body reachable but unmeasured skill loads exactly one full body, by name

The index is about a third of the full catalog, so the model can still read what each skill does; the expensive full descriptions and bodies stay out until needed.

How the full catalog is removed

@deepseek-ai/dsh-tool-skill publishes its catalog only while ctx.tools.get('skill', agent) resolves to its own tool registration. This plugin registers a same-name skill tool in each agent's own scope (the nearest scope wins), so that check fails and the catalog stops being published. The replacement tool does the same job — load one skill's instructions by exact name.

Presets that never mounted a skill tool are left untouched.

Deterministic hints

Three one-line hints restore discoverability where it matters, still cheap:

  • A request that reads like browser work (网页 / 浏览器 / 抓取 / 登录 / screenshot / browser …) → name the browser_* tools (or browser-skill if the tools are absent).
  • A web_* tool call fails → point at browser_session → browser_page → browser_inspect.
  • Every message is matched against all skill descriptions locally (CJK bigrams + latin words, common phrases filtered); up to three matches are named with an 80-character description, once each per session.

Install

dsh plugin --profile web add dsh-skill-on-demand

Restart the harness afterwards; the bundle is loaded at boot.

Verify

Start a new session and ask anything. The first turn should show the compact <available_skills> index, one line per skill, and skill_list query=简历 should return resume-builder.

Limitations

  • The 28-character clause is a truncation, not a summary; a few skills need skill_list query= or skill to be understood.
  • Selection via skill_pick is optional and per session.
  • A session that already carried the full catalog still shows it, plus the shipped plugin's "no skills available" correction. Start a fresh session for a clean slate.
  • If a preset registered skill in the agent's own layer, registration fails and the plugin degrades to "picker tools available, full catalog unchanged".

Development

index.js is a single Host plugin, no build step. Run the self-check from inside the installed package, so module resolution reaches the harness's own @deepseek-ai/* packages:

node <profile>/node_modules/dsh-skill-on-demand/scripts/selftest.mjs

License

MIT

CLASSIFICATION EVIDENCE

分类依据

项目类型插件
功能分类模型与 MCP
规则置信度中

系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。