插件目录 / Developer / dsh-skill-gate
dsh-skill-gate
已验证 · 实测可装 Bryan-cmf
功能简介
DSH-Plugin: skill trigger/selection gate - user picks from described candidates when the model triggers a skill; 10s no-choice falls back to the system default.
可用 — 实测通过,早期项目
DSH-Plugin: skill trigger/selection gate - user picks from described candidates when the model triggers a skill; 10s no-choice falls back to the system default. 实测能干净安装、正常启动。早期项目,但功能可用。
「已验证」表示我们的自动化 CI 在干净 profile 里实际执行了 dsh plugin add 并启动成功——仅此而已。功能描述与版本兼容性均为作者声明。这不是安全审计,也不代表对第三方代码的背书。
README
🚪 Skill Gate — DSH-Plugin
技能觸發與選擇閘門:系統按關鍵詞觸發技能時,把候選技能(含描述)交給用戶選擇;10 秒內未選擇 → 自動使用系統默認。
⚠️ ** superseded by
@bryan-cmf/dsh-skill-ledger** — the blocking "gate" idea lives on there as a non-blocking alternative-skill hint row (multi-select chips → prompt draft → you press Enter). This repo is archived as the design-history record.
A DeepSeek Harness host
plugin that gives the user the final say over which skill the agent uses.
How it works
- The model triggers a skill (
skilltool call, keyword-driven as usual). tools/executewaterfall intercepts the dispatch and opens the native
question UI: 系統建議的技能 + 其他候選技能,每項帶描述。- User picks → the original call is short-circuited with an explanatory
result, and a synthetic instruction is injected so the model loads the
chosen skill instead. - No answer within
timeoutMs(default 10s) → the system default (the
requested skill) proceeds untouched.
🧠 技能選擇
系統將使用技能「ak-hk-stock-dd」。要改用其他技能嗎?
(10 秒內未選擇將自動使用「ak-hk-stock-dd」)
[ak-hk-stock-dd] 系統建議(預設)
[serenity-skill] 供應鏈瓶頸投資研究方法論
[dcf-valuation] Discounted cash flow valuation…
Install
Path A — Host composition (recommended)
"dsh": { "profile": { "bundles": ["@bryan-cmf/dsh-skill-gate"] } }
Path B — Agent preset row
- id: skill-gate
name: '@bryan-cmf/dsh-skill-gate'
Requirements
- DSH
>= 0.1.0-rc.6(services:skills,userQuestions,timer; all in
the shippeddsh-basebundle —userQuestionsneeds the browser UI)
Configuration
| Key | Default | Meaning |
|---|---|---|
enabled |
true |
Master switch |
timeoutMs |
10000 |
User decision window; on expiry the system default applies |
maxCandidates |
5 |
Max options offered (includes the system default) |
Design notes
- One gate at a time: a second skill call while a question is open passes
through untouched (no stacked questions). - No userQuestions provider (headless) → the gate passes everything through.
- The override is delivered through the sanctioned
agent.inject()synthetic
user-message channel, so the model's next step loads the chosen skill. - Companion:
@bryan-cmf/dsh-infra-observability
records every gate outcome as ordinary tool usage.
Development
pnpm install --store-dir .pnpm-store
pnpm build
License
MIT
安装
装一次目录插件,之后本站所有插件都能让 DeepSeek Harness 自动找、自动装:
dsh plugin add dshbase-catalog 然后对 agent 说「帮我装 dsh-skill-gate」,它会在目录里找到并自动安装。文档:dshbase-catalog · 已验证场景包。
该插件是 GitHub 源码(未发 npm)——直接从仓库装:
Web profile:
dsh plugin --profile web add github:Bryan-cmf/dsh-skill-gate Headless(CLI)profile:
dsh plugin --profile headless add github:Bryan-cmf/dsh-skill-gate 实测报告
验证通过:从 GitHub 源码完成 L1 安装 + L2 加载 + L3 运行(dsh 0.1.0-rc.6)。