What problem does it solve? Manually managing agent assignment, code formatting, session state, and cross-session memory in Claude Code workflows is repetitive and error-prone. This Skill automates those tasks through configurable hooks that run before and after operations, keeping coordination state consistent across agents and sessions. ## Core Features & Use Cases - Pre/Post-Operation Hooks: Validate syntax, auto-assign agents, format code, and train neural patterns around file edits, bash commands, tasks, and searches. - Session & Memory Management: Start, restore, and end sessions with persisted context, metrics export, and a three-phase memory coordination protocol shared across swarm agents. - Git & MCP Integration: Wire hooks into pre-commit/post-commit quality gates and coordinate with MCP tools like claude-flow for agent spawning and memory storage. - Use Case: A team running multi-agent refactoring configures post-edit hooks so every file change is auto-formatted, stored in coordination memory, and used to train patterns, while a session-end hook exports metrics and a summary report. ## Quick Start Set up the hooks system by running npx claude-flow init --hooks and then ask Claude to configure pre-edit and post-edit hooks in .claude/settings.json for automatic formatting and memory storage.