What problem does it solve?
This Skill provides an automated framework to coordinate Claude Code operations via a structured hooks system, enabling pre- and post-operation hooks, session management, memory coordination, Git integration, and cross-task learning.
Core Features & Use Cases
- Pre-Operation Hooks: Prepare and validate tasks, auto-assign agents, and prepare memory for context.
- Post-Operation Hooks: Auto-format, analyze, and store outcomes; train neural patterns for continuous improvement.
- MCP & Memory Coordination: Coordinate swarm tools and share state across agents, sessions, and tasks.
- Session Management & Git Integration: Manage session lifecycles and integrate with Git workflows for quality control.
- Use Cases: Orchestrating multi-agent development sprints, automated code reviews, and iterative learning across sessions.
Quick Start
Initialize the hooks system, start a session, and perform pre-task and post-task actions to see the automation in action. Then end the session to export metrics.
- Run: npx claude-flow init --hooks
- Start a session: npx claude-flow hook session-start --session-id "demo-session"
- Pre-task example: npx claude-flow hook pre-task --description "Implement feature" --auto-spawn-agents
- Edit and post-edit: npx claude-flow hook pre-edit --file "src/feature.js" --memory-key "demo/feature"
- End: npx claude-flow hook session-end --session-id "demo-session" --export-metrics --generate-summary