david-li0406/meta-skill-evloving/hooks-automation
Claude Code and agent skill by david-li0406/meta-skill-evloving
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
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-automationSemi-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
This creates:
.claude/settings.jsonwith pre-configured hooks- Hook command documentation in
.claude/commands/hooks/ - Default hook handlers for common operations
Basic Hook Usage
Sub-Documentation
For detailed information, see the following files:
| Document | Contents | |
|---|---|---|
| Pre-Hooks | pre-edit, pre-bash, pre-task, pre-search | |
| Post-Hooks | post-edit, post-bash, post-task, post-search | |
| MCP Integration | MCP hooks, memory coordination, agent workflows | |
| Session Management | session-start, session-restore, session-end | |
| Configuration | Settings, git hooks, custom hooks |
Available Hooks
Pre-Operation Hooks
| Hook | Description | |
|---|---|---|
pre-edit | Validate and assign agents before file modifications | |
pre-bash | Check command safety and resource requirements | |
pre-task | Auto-spawn agents and prepare for complex tasks | |
pre-search | Prepare and optimize search operations |
Post-Operation Hooks
| Hook | Description | |
|---|---|---|
post-edit | Auto-format, validate, and update memory | |
post-bash | Log execution and update metrics | |
post-task | Performance analysis and decision storage | |
post-search | Cache results and improve patterns |
Session Hooks
| Hook | Description | |
|---|---|---|
session-start | Initialize new session | |
session-restore | Load previous session state | |
session-end | Cleanup and persist session state | |
notify | Custom notifications with swarm status |
MCP Integration Hooks
| Hook | Description | |
|---|---|---|
mcp-initialized | Persist swarm configuration | |
agent-spawned | Update agent roster and memory | |
task-orchestrated | Monitor task progress | |
neural-trained | Save pattern improvements |
Quick Reference
Most Common Commands
Hook Response Format
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
- Keep Hooks Lightweight - Target < 100ms execution time
- Use Async for Heavy Operations - Don't block the main flow
- Cache Aggressively - Store frequently accessed data
- Batch Related Operations - Combine multiple actions
- Use Memory Wisely - Set appropriate TTLs
Related Skills
sparc-methodology- Hooks enhance SPARC workflowspair-programming- Automated quality in pairing sessionsverification-quality- Truth-score validation in hooksswarm-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
- SKILL.md in the repositoryCheckingskill-flow/data/skills-refined-36k/skillsmp/hooks-automation/SKILL.md
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
[](https://verified-skill.com/skills/david-li0406/meta-skill-evloving/hooks-automation)