dsh-skill-lazy
by boomzikazita
DSH 技能目录懒加载:只注入名称+一行摘要,按需检索(约 500 token)
DSH skill catalog lazy loading: name+one-line summary injection, on-demand search (~500 tokens)
安装
dsh plugin --profile web add github:boomzikazita/dsh-skill-lazyGitHub 源码安装:首次需按提示配置 allowBuilds 构建授权后重试
安装与环境配置指引、插件开发教程见 DSH 中文社区文档 ↗
安装即在你的机器上以你的权限运行第三方代码——它可读写文件、使用凭据、访问网络,DSH 的工具审批不会为插件代码加沙箱。「检测到 manifest」仅代表发现 dsh.bundle / dsh.plugin 清单,不构成兼容性或安全审查;安装前请审阅源码,不熟悉的插件先在不含密钥的环境试用。
README
目录
Lazy skill catalog loading for DeepSeek Harness (DSH). Save tokens on every session by injecting only skill names + one-line summaries instead of the full catalog, and look up full descriptions on demand via skill_search.
Why
By default, DSH injects the full skill catalog — the name plus up to a 500-character description of every installed skill — into the context of every new session. With dozens of skills installed this costs roughly 3K tokens of persistent context per session, even though the model rarely touches most of those skills.
dsh-skill-lazy replaces that full dump with a compact catalog: just the skill name and a one-line summary (≤ 40 characters by default). Full descriptions stay one skill_search call away and are only fetched when actually needed.
How it works
First pass: compact catalog injection
- On every agent pre-step, the plugin rewrites the official
skill-catalogmessage into a<system-reminder>block where each skill appears as`name`: one-line summary. - Entries are sorted by call frequency (most-used first), falling back to alphabetical order for ties.
- The underlying
source.entriesof the catalog message is left untouched, so the harness's own digest/deduplication logic is unaffected.
On demand: skill_search
- Registers a
skill_searchtool that queries the full catalog by keywords and returns hits grouped by MECE domains (mutually exclusive groups, collectively exhaustive coverage), each with its full description, usage count, and a domain-coverage report that flags empty or weak domains. - Query scoring covers exact name matches, description substring matches, tokenized keywords, and Chinese 2-gram overlap.
Usage tracking
- A
tools/post-executehook records everyskilltool invocation intousage.json(runtime data — see .gitignore). The accumulated counts drive catalog ordering. - An optional proactive match hint (top-3 skills with relevance ≥ threshold) can be injected right after a user message.
skill_mece_check
- A
skill_mece_checktool runs before creating or evaluating a skill: it checks mutual exclusivity (keyword overlap against every existing skill, with overlap ratio) and collective exhaustiveness (domain coverage matrix with empty/weak domain flags), then recommends whether to create a new skill or extend an existing one.
cost_audit
- A
cost_audittoken-cost watchdog (added 2026-08-21) tallies the character/token cost of every plugin tooldescriptionand every skill directorydescription, compares against budgets (tool descriptions default 1500 tokens; skill directory default 800 tokens), and flags anything over budget for slimming or collapsing. - Single tool descriptions longer than 700 characters are marked for slimming — the detail belongs in the skill's own docs, not in the injected description.
Installation
dsh plugin --profile web add github:boomzikazita/dsh-skill-lazy
The plugin mounts via its bundle patch (cordis.patch.yml), which adds the skill-lazy bundle to the profile's dsh.profile.bundles.
Configuration
| Option | Default | Description |
|---|---|---|
catalogDescriptionMaxLength |
40 |
Max characters of the one-line summary per skill in the compact catalog. |
topK |
6 |
Max hits per domain group returned by skill_search (clamped to 1–20). |
sortByUsage |
true |
Sort catalog entries by recorded call frequency (fallback: alphabetical). |
matchThreshold |
6 |
Minimum relevance score for the proactive match hint. |
Example bundle patch with custom config:
- insert:
- id: skill-lazy
name: 'dsh-skill-lazy'
config:
catalogDescriptionMaxLength: 40
topK: 6
Requirements
- DeepSeek Harness with
@deepseek-ai/dsh-tools≥ 0.1.0-rc.6 (peer dependency — it is not bundled).
License
MIT © 2026 boomzikazita. See LICENSE.
原始 README: https://github.com/boomzikazita/dsh-skill-lazy/blob/main/README.md ↗
同类插件
查看全部 →
archify
Agent 技能:生成美观、可校验的架构图、工作流图、时序图、数据流图与生命周期图——自包含 HTML、带动画与清晰导出

dsh-turn-rewind
对话回退:基于持久 Change Ledger 回滚会话与工作区状态。

dsh-plugin-cc
把 DeepSeek Harness 接入 Claude Code:评审、批评、委派与会话导入

dsh-interconnect
跨实例互联:经 interconnect 服务在多个 DSH 实例间转发消息与事件。

dsh-chat-import
把 13 家 coding agent(Claude Code、Codex、ChatGPT、Cursor、Gemini、opencode 等)的完整对话历史导入为可续聊的 DeepSeek Harness 会话,并支持反向导出回 Claude Code。

dsh-crew
DSH 插件:从 Claude Code / Codex 向 DSH agent 派活——原生 subagent 进度、宿主内 worker 会话(分级预设),以及为纯文本宿主补上视觉与图像生成的多模态桥