What problem does it solve?
Creating and debugging hooks for the cc-sessions framework is critical for enforcing DAIC discipline, write-gating, and overall framework integrity. This Skill provides specialized guidance for this complex and sensitive task.
Core Features & Use Cases
- Hook Development Guidance: Assists in creating, modifying, and debugging various hook types (UserPromptSubmit, PreToolUse, PostToolUse, SessionStart) with proper structure and error handling.
- Write-Gating Enforcement: Provides patterns and best practices for implementing and extending critical write-gating logic within
sessions_enforce.js, ensuring framework safety.
- Shared State Management: Guides safe and atomic access to shared session state within hooks, preventing state corruption and ensuring consistency.
- Use Case: If you need to implement a new framework-level validation that fires before any tool execution, this Skill will guide you through creating a
PreToolUse hook, ensuring it respects DAIC modes and handles state safely.
Quick Start
Add a PreToolUse hook to validate task manifest format before any tool execution.