hook-development
This skill should be used when the user asks to "create a hook", "add a PreToolUse/PostToolUse/Stop hook", "validate tool use", "wire command hooks", "use ${PLUGIN_ROOT}", "set up event-driven automation", "block dangerous commands", or mentions hook events (PreToolUse, PostToolUse, Stop, SubagentStart, SubagentStop, SessionStart, UserPromptSubmit). Provides comprehensive guidance for creating and implementing DeepSeek Harness plugin hooks with focus on the command-hook contract and the matcher model.
Pinned to revision 3f9f99660575, so it is the text this page describes rather than whatever the author pushed since.
Files
- skills/hook-development/SKILL.md
- skills/hook-development/examples/load-context.sh
- skills/hook-development/examples/validate-bash.sh
- skills/hook-development/examples/validate-write.sh
- skills/hook-development/references/advanced.md
- skills/hook-development/references/migration.md
- skills/hook-development/references/patterns.md
- skills/hook-development/scripts/README.md
- skills/hook-development/scripts/hook-linter.sh
- skills/hook-development/scripts/test-hook.sh
- skills/hook-development/scripts/validate-hook-schema.sh
Every link opens the file at its source, pinned to the revision this page describes.