hook-integration

Installation
SKILL.md

Hook Integration for Skills

Skills can be designed to work with Claude Code's 12 hook events, enabling deep integration with harnesses like Clausitron.

Available Hook Events

Hook Event When It Fires Skill Integration Opportunity
PreToolUse Before any tool executes Validation skills, policy enforcement
PostToolUse After tool execution Logging skills, result enrichment
PostToolUseFailure When a tool fails Error analysis skills, recovery suggestions
UserPromptSubmit When user sends prompt Context injection, prompt enhancement
SessionStart Session begins Environment setup, context loading
SessionEnd Session ends Summary generation, cleanup
SubagentStart Subagent spawns Budget allocation, tracking
SubagentStop Subagent completes Result aggregation, cost tracking
Stop Agent stops State persistence, handoff notes
PreCompact Before context compaction Archive important context
PermissionRequest Permission dialog triggered Policy-based auto-decisions
Related skills
Installs
1
GitHub Stars
4
First Seen
Mar 29, 2026