Wisdoverse/dsh-skills-manager-plugin ↗★ 0
@wisdoverse/dsh-skills-manager
Skill manager for DeepSeek Harness: proactive skill activation with trigger hooks, GitHub source sync, and a Settings management UI.
安装
$
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"}]}