dshbase

插件目录 / Knowledge / dsh-skill-lazy

dsh-skill-lazy

已验证 · 实测可装 boomzikazita

✓ 持续维护 2 位贡献者 基于 1 个官方 DSH 包

查看 GitHub ↗ ← 返回插件目录

0Stars
0Forks
0未关闭 issue
—语言
2026-08-22最近推送
跨平台平台

功能简介

DSH skill catalog lazy loading: name+one-line summary injection, on-demand search (~500 tokens)

✅
我们的评价
可用 — 实测通过,早期项目

DSH skill catalog lazy loading: name+one-line summary injection, on-demand search (~500 tokens) 实测能干净安装、正常启动。早期项目,但功能可用。

「已验证」表示我们的自动化 CI 在干净 profile 里实际执行了 dsh plugin add 并启动成功——仅此而已。功能描述与版本兼容性均为作者声明。这不是安全审计,也不代表对第三方代码的背书。

README

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). 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

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.

安装

🧩 让 Agent 自动装(推荐)

装一次目录插件,之后本站所有插件都能让 DeepSeek Harness 自动找、自动装:

dsh plugin add dshbase-catalog

然后对 agent 说「帮我装 dsh-skill-lazy」,它会在目录里找到并自动安装。文档:dshbase-catalog · 已验证场景包。

该插件是 GitHub 源码(未发 npm)——直接从仓库装:

Web profile:

dsh plugin --profile web add github:boomzikazita/dsh-skill-lazy

Headless(CLI)profile:

dsh plugin --profile headless add github:boomzikazita/dsh-skill-lazy

实测报告

验证通过:从 GitHub 源码完成 L1 安装 + L2 加载 + L3 运行(dsh 0.1.0-rc.6)。

安全:尚未扫描——我们的每日静态扫描将很快覆盖它。

分享徽章

Knowledge 里更多

浏览全部 7819 个插件 →