Hooks Automation
Automated coordination, formatting, and learning from Claude Code operations using intelligent hooks with MCP integration. Includes pre$post task hooks, session management, Git integration, memory coordination, and neural pattern training for enhanced development workflows.
npx skills add ruvnet/ruflo --skill hooks-automation --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
What it does
Intelligent automation system that coordinates, validates, and learns from Claude Code operations through hooks integrated with MCP tools and neural pattern training.
How it works
- Pre-Operation Hooks validate, prepare, and auto-assign agents before operations.
- Post-Operation Hooks format, analyze, and train patterns after operations.
- Session Management persists state, restores context, and generates summaries.
- Memory Coordination synchronizes knowledge across swarm agents.
- Git Integration provides automated commit hooks with quality verification.
- Neural Training enables continuous learning from successful patterns.
- MCP Integration coordinates with swarm tools.
Prerequisites align with CLI and hook configuration, including: Claude Flow CLI installed (npm install -g claude-flow@alpha), Claude Code with hooks, and .claude$settings.json with hook configurations.
When to use it
Triggered by operations in the development workflow via pre- and post-operation hooks, as well as session and MCP-related hooks. Use pre-task to auto-spawn agents and prepare tasks; use post-edit to format and store in memory; use session-end to save state and metrics.
What it can touch
- Tools:
claude-code,codex(as declared) - Commands include:
npx claude-flow init --hooks,npx claude-flow hook pre-task,npx claude-flow hook post-edit,npx claude-flow hook session-end, and more as shown in the complete hook set. - Configuration updates to
.claude$settings.jsonand hook command documentation in.claude$commands$hooks/.
Caveats
- Prerequisites must be met (Claude Flow CLI, Claude Code with hooks, and settings file).
- Optional MCP servers and Git repository configuration enhance functionality but are not required.
- The skill relies on CLI-based automation and documentation availability for hooks; behavior is defined by the provided commands and options.
# Hooks Automation Intelligent automation system that coordinates, validates, and learns from Claude Code operations through hooks integrated with MCP tools and neural pattern training. ## What This Skill Does This skill provides a comprehensive hook system that automatically manages development operations, coordinates swarm agents, maintains session state, and continuously learns from coding patterns. It enables automated agent assignment, code formatting, performance tracking, and cross-session memory persistence. **Key Capabilities:** - **Pre-Operation Hooks**: Validate, prepare, and auto-assign agents before operations - **Post-Operation Hooks**: Format, analyze, and train patterns after operations - **Session Management**: Persist state, restore context, generate summaries - **Memory Coordination**: Synchronize knowledge across swarm agents - **Git Integration**: Automated commit hooks with quality verification - **Neural Training**: Continuous learning from successful patterns - **MCP Integration**: Seamless coordination with swarm tools ## Prerequisites **Required:** - Claude Flow CLI installed (`npm install -g claude-flow@alpha`) - Claude Code with hooks enabled - `.claude$
- What This Skill Does
- Prerequisites
- Quick Start
- Initialize Hooks System
- Basic Hook Usage
- Complete Guide
- Available Hooks
- Configuration
- MCP Tool Integration
- Memory Coordination Protocol
- Hook Response Format
- Git Integration
- Agent Coordination Workflow
- Custom Hook Creation
Initialize with default hooks configuration npx claude-flow init --hooks Pre-task hook (auto-spawns agents) npx claude-flow hook pre-task --description "Implement authentication" Post-edit hook (auto-formats and stores in memory) npx claude-flow hook post-edit --file "src$auth.js" --memory-key "auth$login" Session end hook (saves state and metrics) npx claude-flow hook session-end --session-id "dev-session" --export-metrics npx claude-flow hook pre-edit [options] npx claude-flow hook pre-edit --file "src$auth$login.js"
What does the Hooks Automation skill do?
Automated coordination, formatting, and learning from Claude Code operations using intelligent hooks with MCP integration. Includes pre$post task hooks, session management, Git integration, memory coordination, and neural pattern training for enhanced development workflows.
How do I install it?
Run `npx skills add ruvnet/ruflo --skill hooks-automation --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From ruvnet/ruflo, a repository with 67,015 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.