Wisdoverse/dsh-skills-manager-plugin0

@wisdoverse/dsh-skills-manager

Skill manager for DeepSeek Harness: proactive skill activation with trigger hooks, GitHub source sync, and a Settings management UI.

包名
@wisdoverse/dsh-skills-manager
版本
1.0.1
许可证
MIT
最近更新
2026年8月28日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Wisdoverse/dsh-skills-manager-plugin

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

ModeBehavior
autoA match injects the complete skill immediately
suggestA match adds a lightweight reminder so the model can load the skill
offThe 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.tool accepts a concrete tool name or *.
  • Tool policies return allow, deny, or ask with 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"}]}