Hooks Automation

Automates pre/post-operation hooks for agent coordination, formatting, and session management.

Updated May 8, 2026
One-click install
npx skills add https://github.com/FrekiManagarm/d-chambaud --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/d-chambaud/tree/main/.agents/skills/hooks-automation
Command: npx skills add https://github.com/FrekiManagarm/d-chambaud --skill hooks-automation-frekimanagarm

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Manually coordinating agents, formatting code, tracking sessions, and persisting context across development workflows is repetitive and error-prone. This Skill automates those tasks through configurable pre/post-operation hooks integrated with MCP tools and memory coordination. ## 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 state persistence, metrics export, and cross-agent memory synchronization. - Git & MCP Integration: Wire hooks into Git pre-commit/post-commit flows and coordinate with swarm tools like agent spawning and neural training. - Use Case: A team running multi-agent refactoring uses pre-task hooks to spawn agents, post-edit hooks to auto-format and store decisions in memory, and session-end hooks to export metrics and summaries. ## Quick Start Initialize the hooks system by running npx Codex-flow init --hooks and then ask the agent to set up pre-edit and post-edit hooks for your project files.

Frequently Asked Questions about Hooks Automation

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

FAQPage Schema
How do I set up pre-edit and post-edit hooks in Codex?▼

Add hook entries to .Codex/settings.json under PreToolUse and PostToolUse with matchers for Write, Edit, or MultiEdit. Each hook runs npx Codex-flow hook pre-edit or post-edit with the file path passed via the tool parameters.

How do I initialize the hooks automation system?▼

Run npx Codex-flow init --hooks to generate a default configuration. This creates .Codex/settings.json with pre-configured hooks, hook command documentation, and default handlers for common operations.

Does hooks automation require MCP servers to work?▼

MCP servers are optional. Basic hooks like formatting and validation run standalone, but coordination features such as memory sync, agent spawning, and neural training require MCP servers like Codex-flow, ruv-swarm, or flow-nexus.

Why are my configured hooks not executing?▼

Check that .Codex/settings.json has valid syntax, the matcher patterns match your tool names, and the Codex-flow CLI is in your PATH. Enable debug mode with CLAUDE_FLOW_DEBUG=true and review the hook execution logs.

Can hooks integrate with Git pre-commit checks?▼

Yes, you can call hook commands from .git/hooks/pre-commit or husky scripts. Typical setups validate syntax and auto-format staged files before commit, then run tests and quality gates before push.