- Início
- Plugins
- Ferramentas e funções
- dsh-capability-index
dsh-capability-index
fubai-fenzhi/dsh-capability-index
Capability index for DSH: one tool plus one on-demand skill that lists installed plugin tools and skills by suite. Measured on a 5-suite ecosystem (17 publish tools, 3 Bilibili tools, 1 procedure tool, 1 index tool, 3 on-demand skills): the index costs about 120 resident tokens per turn while workflows load on demand (~600 tokens per hit); the experience-card suite cuts per-hit context by 86.5% (6,491 → 879 tokens). 5 npm packages, 4/4 catalog PRs merged on imsai, video demo live on Bilibili.
Instalar
dsh plugin --profile web add github:fubai-fenzhi/dsh-capability-indexREADME
dsh-capability-index
DSH 能力索引:一个工具 + 一个按需技能,按插件套列出当前 profile 已安装的工具和技能,帮 agent 跨套发现「用哪套」。
实测数据(我们自己维护的 5 个套件)
| 指标 | 数值 |
|---|---|
| 插件套件 | 5 个(procedures / whale-console / publish-helper / bilibili-upload / capability-index) |
| 工具 | publish_* 17 个、bili_* 3 个、procedures 1 个、capability_index 1 个 |
| 按需技能 | 3 个(publish-release / bilibili-upload / capability-index) |
| 索引常驻成本 | 约 120 token/轮 |
| 技能加载 | 命中约 600 token/次,不命中 0 |
| 经验卡实测 | 单次命中省 86.5%(整库 6,491 → 一行指针 879 token) |
| 常驻钩子 | 约 440 token/轮(经验卡) |
| npm | 5 个包已发布(capability-index 审批中) |
| 市场 | imsai 4/4 已合并;awesome 3 条已收录 + 2 PR 在审 |
| 视频演示 | BV11f1JzYEyo(B 站已上线) |
对比:把流程写进常驻提示约 900–1500 token/轮;「插件 + 技能」模式约 300–900,省 40–70%。
工具
capability_index
| 参数 | 说明 |
|---|---|
query | 可选关键词过滤(如 bilibili、publish、memory) |
maxTools | 最多列出的工具数(默认 120) |
输出分两段:TOOLS(按前缀分组)和 SKILLS(含 whenToUse 提示)。
自带技能
capability-index:需要判断「有没有现成能力」或「多个插件重叠」时按需加载(不常驻)。
为什么省 token
- 工具只多一个
capability_index,schema 很小 - 技能只在命中时加载
- 避免 agent 为了找能力反复试错/重造轮子
Plugins relacionados
archify (deepseek-harness)
tt-a1i/archify
WeKnora (dsh-weknora)
tencent/weknora
next-ai-draw-io (dsh-plugin)
dayuanjiang/next-ai-draw-io
AiToEarn (dsh-plugin-aitoearn)
yikart/aitoearn