Skip to content
Development
Command

/overview

Automatically coordinate, format, and learn from Claude Code operations using hooks.

From plugin
open-code-review
32998 skills132 agents98 commands2 MCP
Install
$ npx -y skills add spencermarx/open-code-review --agent claude-code

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/overview

Context preview

What this command does when you run it.

Automatically coordinate, format, and learn from Claude Code operations using hooks.

Command definition

overview.md

Claude Code Hooks for claude-flow

Purpose

Automatically coordinate, format, and learn from Claude Code operations using hooks.

Available Hooks

Pre-Operation Hooks

  • **pre-edit**: Validate and assign agents before file modifications
  • **pre-bash**: Check command safety and resource requirements
  • **pre-task**: Auto-spawn agents for complex tasks

Post-Operation Hooks

  • **post-edit**: Auto-format code and train neural patterns
  • **post-bash**: Log execution and update metrics
  • **post-search**: Cache results and improve search patterns

MCP Integration Hooks

  • **mcp-initialized**: Persist swarm configuration
  • **agent-spawned**: Update agent roster
  • **task-orchestrated**: Monitor task progress
  • **neural-trained**: Save pattern improvements

Session Hooks

  • **notify**: Custom notifications with swarm status
  • **session-end**: Generate summary and save state
  • **session-restore**: Load previous session state

Configuration

Hooks are configured in `.claude/settings.json`:

{
  "hooks": {
    "PreToolUse": [
      {
        "matcher": "^(Write|Edit|MultiEdit)$",
        "hooks": [{
          "type": "command",
          "command": "npx claude-flow hook pre-edit --file '${tool.params.file_path}'"
        }]
      }
    ]
  }
}

Benefits

  • ๐Ÿค– Automatic agent assignment based on file type
  • ๐ŸŽจ Consistent code formatting
  • ๐Ÿง  Continuous neural pattern improvement
  • ๐Ÿ’พ Cross-session memory persistence
  • ๐Ÿ“Š Performance metrics tracking

See Also

  • [Pre-Edit Hook](./pre-edit.md)
  • [Post-Edit Hook](./post-edit.md)
  • [Session End Hook](./session-end.md)
Read more
Ships withopen-code-review

AI-powered multi-agent code review. Simulates a customizable team of Engineers performing code review with built-in discourse.

Get the whole plugin, auto-invoked