DeepSeek Harness 插件

dsh-skill-lazy

DSH skill catalog lazy loading: inject only name + one-line summary per skill (~500 tokens), full summaries via on-demand search(skill 目录懒加载,按需检索)(英文原文)

跳到安装方式

来源信息

GitHub 仓库
boomzikazita/dsh-skill-lazy
最近更新
2026年8月20日
分类
文档与渲染
GitHub stars
0
载体类型
plugin
目录证据
上游声明已找到 dsh.bundle
证据路径
package.json#dsh.bundle
核对版本
0.1.0-rc.8
上游核对日期
2026-08-20

该证据由上游目录提供。本站没有安装、运行或安全审核这个插件。

安装

默认先复制一段 Prompt,让 Agent 读 GitHub 仓库和源码;需要自己装时再切到命令。

复制这段 Prompt,发给 DSH、Codex 或其他 Agent,让它先读 GitHub 仓库和源码。

请先不要安装或执行任何命令。阅读这个插件的 GitHub 仓库、README 和关键源码,然后用清楚、直接的方式回答以下问题,帮助我判断它是否适合我的需求:

1. 这个插件是什么,解决什么问题;
2. 适合哪些用户和典型使用场景;
3. 安装后如何使用,并给出一个最小使用示例;
4. 有哪些已知限制,以及隐私、安全、兼容性或维护风险;
5. 给出“推荐 / 有条件推荐 / 不推荐”的明确建议和理由。

请区分仓库明确说明、根据源码推断和未知信息。证据不足时请明确说明,不要猜测或照抄 README。

GitHub:https://github.com/boomzikazita/dsh-skill-lazy
插件名:dsh-skill-lazy
作者:boomzikazita

检查来源文件

安装前先看这个插件目录里的 README 和其他文件。

文件资源管理器3 个文件
README.md来源说明 · 只读预览

dsh-skill-lazy

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-catalog message 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.entries of the catalog message is left untouched, so the harness's own digest/deduplication logic is unaffected.

On demand: skill_search

  • Registers a skill_search tool 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-execute hook records every skill tool invocation into usage.json (runtime data — see [.gitignore](.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_check tool 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_audit token-cost watchdog (added 2026-08-21) tallies the character/token cost of every plugin tool description and every skill directory description, 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

OptionDefaultDescription
catalogDescriptionMaxLength40Max characters of the one-line summary per skill in the compact catalog.
topK6Max hits per domain group returned by skill_search (clamped to 1–20).
sortByUsagetrueSort catalog entries by recorded call frequency (fallback: alphabetical).
matchThreshold6Minimum 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](LICENSE).