Hooks Automation

Run validated pre- and post-operation hook workflows for Claude Code development coordination.

Updated Feb 24, 2026
One-click install
npx skills add https://github.com/FrekiManagarm/dunlo --skill hooks-automation-frekimanagarm
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Hooks Automation
Source: https://github.com/FrekiManagarm/dunlo/tree/main/.claude/skills/hooks-automation
Command: npx skills add https://github.com/FrekiManagarm/dunlo --skill hooks-automation-frekimanagarm

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Hooks Automation reduces the friction and risk of coordinating multi-step Claude Code development work by automatically validating inputs, coordinating agents, formatting/learning from outputs, and persisting session and memory state across operations.

Core Features & Use Cases

  • Pre-Operation Hooks: Validate and prepare work (e.g., pre-edit agent assignment, pre-bash safety checks, pre-task agent spawning and memory loading) to prevent broken edits and unsafe commands.
  • Post-Operation Hooks: Auto-format, validate, log results/metrics, and train learnings/patterns after edits, bash runs, tasks, and searches.
  • Session & Memory Coordination: Persist/restore session state and synchronize coordination memory so later steps and swarm agents can reuse prior decisions and context.
  • Git & Quality Gates: Enable commit-time and repository workflow integrations to enforce validation and formatting consistently.

Quick Start

Initialize the hooks system by running: npx claude-flow init --hooks

Frequently Asked Questions about Hooks Automation

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate pre-operation safety checks for multi-agent Claude Code workflows?

Pre-operation hook workflows validate multi-agent Claude Code development by assigning pre-edit agents, running pre-bash safety checks, and loading memory before tasks to prevent broken edits and unsafe commands. This validation prepares work safely before execution.

How do I persist session state and synchronize memory across Claude Code agents?

Session and memory coordination hooks persist, restore, and synchronize session state across Claude Code operations. This ensures later steps and swarm agents reuse prior decisions and context by managing coordination memory throughout multi-agent workflows.

Can I enforce code formatting and validation automatically at Git commit time?

Git-quality gating hooks enable commit-time and repository workflow integrations to enforce validation and code formatting consistently. These post-operation hooks auto-format, validate, and log metrics after edits to maintain repository quality.

Do I need Claude Flow CLI to configure Claude Code hooks for agent coordination?

Yes, configuring Claude Code hooks for agent coordination requires a Claude Flow CLI setup and .claude settings hook configuration. You initialize the hooks system by running the npx claude-flow init --hooks command to enable validated workflows.

How does MCP integration work with Claude Code hook workflows for bash commands and searches?

MCP-coordinated tool usage applies hook workflows across tasks, searches, and bash commands to manage multi-agent coding operations. The integration runs validated pre- and post-operation hooks that coordinate tools, format outputs, and train neural patterns.