david-li0406/meta-skill-evloving/hooks-automation

Claude Code and agent skill by david-li0406/meta-skill-evloving

Trust tier 3
  • community
  • ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Source check pending

Checking that the SKILL.md file is still in the repository.

Automated coordination, formatting, and learning from Claude Code operations using intelligent hooks with MCP integration

Install

npx vskill@latest install david-li0406/meta-skill-evloving/hooks-automation

Semi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard

SKILL.md

The same SKILL.md was published earlier as majiayu000/claude-skill-registry/hooks-automation.

Hooks Automation

Behavioral Classification

Type: Autonomous Execution

This skill provides hooks that execute automatically in response to Claude Code operations. No interactive decisions required.

Trigger Points:

  • Pre-operation: Validates and prepares before edits, commands, tasks
  • Post-operation: Formats, analyzes, and trains after operations
  • Session: Manages state across sessions
  • MCP: Coordinates with swarm agents

Overview

Intelligent automation system that coordinates, validates, and learns from Claude Code operations through hooks integrated with MCP tools and neural pattern training.

Key Capabilities:

  • Pre-Operation Hooks: Validate, prepare, and auto-assign agents
  • Post-Operation Hooks: Format, analyze, and train patterns
  • Session Management: Persist state, restore context
  • Memory Coordination: Synchronize knowledge across swarm agents
  • Git Integration: Automated commit hooks with quality verification
  • Neural Training: Continuous learning from successful patterns

Quick Start

Initialize Hooks System
bash
# Initialize with default hooks configuration
npx claude-flow init --hooks

This creates:

  • .claude/settings.json with pre-configured hooks
  • Hook command documentation in .claude/commands/hooks/
  • Default hook handlers for common operations
Basic Hook Usage
bash
# 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

Sub-Documentation

For detailed information, see the following files:

DocumentContents
Pre-Hookspre-edit, pre-bash, pre-task, pre-search
Post-Hookspost-edit, post-bash, post-task, post-search
MCP IntegrationMCP hooks, memory coordination, agent workflows
Session Managementsession-start, session-restore, session-end
ConfigurationSettings, git hooks, custom hooks

Available Hooks

Pre-Operation Hooks
HookDescription
pre-editValidate and assign agents before file modifications
pre-bashCheck command safety and resource requirements
pre-taskAuto-spawn agents and prepare for complex tasks
pre-searchPrepare and optimize search operations
Post-Operation Hooks
HookDescription
post-editAuto-format, validate, and update memory
post-bashLog execution and update metrics
post-taskPerformance analysis and decision storage
post-searchCache results and improve patterns
Session Hooks
HookDescription
session-startInitialize new session
session-restoreLoad previous session state
session-endCleanup and persist session state
notifyCustom notifications with swarm status
MCP Integration Hooks
HookDescription
mcp-initializedPersist swarm configuration
agent-spawnedUpdate agent roster and memory
task-orchestratedMonitor task progress
neural-trainedSave pattern improvements

Quick Reference

Most Common Commands
bash
# Pre-task preparation
npx claude-flow hook pre-task --description "Task description"
# Post-edit with memory storage
npx claude-flow hook post-edit --file "path/to/file" --memory-key "key"
# Session management
npx claude-flow hook session-start --session-id "my-session"
npx claude-flow hook session-end --session-id "my-session" --export-metrics
# Notifications
npx claude-flow hook notify --message "Task completed" --broadcast
Hook Response Format
json
{
"continue": true,
"reason": "All validations passed",
"metadata": {
"agent_assigned": "backend-dev",
"syntax_valid": true
}
}

Benefits

  • Automatic Agent Assignment: Right agent for every file type
  • Consistent Code Formatting: Language-specific formatters
  • Continuous Learning: Neural patterns improve over time
  • Cross-Session Memory: Context persists between sessions
  • Performance Tracking: Comprehensive metrics and analytics
  • Quality Gates: Pre-commit validation and verification

Performance Tips

  1. Keep Hooks Lightweight - Target < 100ms execution time
  2. Use Async for Heavy Operations - Don't block the main flow
  3. Cache Aggressively - Store frequently accessed data
  4. Batch Related Operations - Combine multiple actions
  5. Use Memory Wisely - Set appropriate TTLs

Related Skills

  • sparc-methodology - Hooks enhance SPARC workflows
  • pair-programming - Automated quality in pairing sessions
  • verification-quality - Truth-score validation in hooks
  • swarm-advanced - Multi-agent coordination via hooks

Version: 2.0.0 Last Updated: 2025-01-24

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Refreshed 20 Oct 2026, a month ago.

Extension points

  • hookPre/post lifecycle hooks

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/david-li0406/meta-skill-evloving/hooks-automation/badge)](https://verified-skill.com/skills/david-li0406/meta-skill-evloving/hooks-automation)

Something wrong with this skill or its page? Tell us.