cc-sessions-hooks
CommunityDevelop robust cc-sessions hooks, enforce framework integrity.
Authorgrandinh
Version1.0.0
Installs0
System Documentation
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
PreToolUsehook, ensuring it respects DAIC modes and handles state safely.
Quick Start
Add a PreToolUse hook to validate task manifest format before any tool execution.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: cc-sessions-hooks Download link: https://github.com/grandinh/claude-chaos-express/archive/main.zip#cc-sessions-hooks Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.