Wisdoverse/dsh-skills-manager-plugin ↗★ 0
@wisdoverse/dsh-skills-manager
DSH 技能管理器:支持通过触发钩子主动激活技能、GitHub 源码同步以及设置管理 UI,可在 frontmatter 中声明配置。
AI 分析
核心用途是智能化管理和触发技能。适合需要根据用户输入或工具调用状态自动激活特定技能,并支持从 GitHub 同步技能的用户。
安裝
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Wisdoverse/dsh-skills-manager-plugin說明文件
閱讀完整 README ↗Skill configuration
Declare activation and hooks directly in SKILL.md frontmatter:
---
name: repo-hardening
description: Review and harden a repository with build/test gates.
metadata:
activation: auto # auto | suggest | off
triggers:
- "harden"
- "build fails"
- "re:exit code \\d+"
hooks:
UserPromptSubmit:
inject: "Run build and tests before reaching a conclusion."
PreToolUse:
- tool: bash
when: "git push" # substring or re:
decision: deny # allow | deny | ask
reason: "Direct pushes are not allowed"
PostToolUse:
- tool: bash
when: "re:exit code [1-9]"
action: activate
SessionStart:
activate: true
---
Activation modes
| Mode | Behavior |
|---|---|
auto | A match injects the complete skill immediately |
suggest | A match adds a lightweight reminder so the model can load the skill |
off | The skill never participates automatically but remains manually invocable |
Codex-style manual and disabled values are accepted as aliases for off. If activation is omitted, skills with explicit triggers default to auto; all others default to suggest.
Triggers and policies
- Plain trigger strings use case-insensitive substring matching.
- Values prefixed with
re:are treated as regular expressions; invalid expressions are ignored. PreToolUse.toolaccepts a concrete tool name or*.- Tool policies return
allow,deny, oraskwith an optional reason. - User overrides can be stored outside upstream SKILL.md files so updates do not erase local policy.
Example overrides:
skill_manager set-triggers ponytail-review triggers=["review this diff","over-engineering"]
skill_manager set-hooks repo-hardening hooks={"PostToolUse":[{"tool":"bash","when":"re:exit code [1-9]","action":"activate"}]}