用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/ruvnet/agentic-flow --skill hooks-automation命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
CLI modernization and hooks system enhancement for claude-flow v3. Implements interactive prompts, command decomposition, enhanced hooks integration, and intelligent workflow automation.
Core module implementation for claude-flow v3. Implements DDD domains, clean architecture patterns, dependency injection, and modular TypeScript codebase with comprehensive testing.
Domain-Driven Design architecture for claude-flow v3. Implements modular, bounded context architecture with clean separation of concerns and microkernel pattern.
基于 SOC 职业分类
正在显示 SKILL.md
| name | hooks-automation |
| description | Configure Claude Code hooks for automated coordination and learning |
| version | 1.0.0 |
| invocable | true |
| author | agentic-flow |
| capabilities | ["pre_edit_hooks","post_edit_hooks","session_management","metrics_tracking"] |
Configure intelligent hooks for automated coordination, formatting, and learning.
Triggered before Claude Code tools execute.
{
"PreToolUse": [
{
"matcher": "Edit|Write|MultiEdit",
"hooks": [{
"type": "command",
"command": "npx agentic-flow@alpha hooks pre-edit \"$TOOL_INPUT_file_path\""
}]
},
{
"matcher": "Bash",
"hooks": [{
"type": "command",
"command": "npx agentic-flow@alpha hooks pre-command \"$TOOL_INPUT_command\""
}]
}
]
}
Triggered after successful tool execution.
{
"PostToolUse": [
{
"matcher": "Edit|Write|MultiEdit",
"hooks": [{
"type": "command",
"command": "npx agentic-flow@alpha hooks post-edit \"$TOOL_INPUT_file_path\" --success"
}]
}
]
}
Triggered at session start/end.
{
"SessionStart": [{
"hooks": [{
"type": "command",
"command": "npx agentic-flow@alpha hooks intelligence stats --json"
}]
}],
"SessionEnd": [{
"hooks": [{
"type": "command",
"command": "npx agentic-flow@alpha hooks metrics --session --json"
}]
}]
}
# Pre-edit: Check for patterns, validate
npx agentic-flow@alpha hooks pre-edit "src/api.ts"
# Post-edit: Format, learn pattern
npx agentic-flow@alpha hooks post-edit "src/api.ts" --success
# Pre-command: Validate safety
npx agentic-flow@alpha hooks pre-command "npm install"
# Post-command: Track result
npx agentic-flow@alpha hooks post-command "npm install"
# Intelligence routing
npx agentic-flow@alpha hooks route "implement OAuth"
# Session metrics
npx agentic-flow@alpha hooks metrics --session
Hooks automatically assign specialized agents based on file type:
.ts, .tsx → TypeScript agent.py → Python agent.md → Documentation agenttest.* → Testing agentPre-command hooks validate for:
Post-edit hooks learn:
Session hooks track:
Full hook configuration in .claude/settings.json:
{
"hooks": {
"PreToolUse": [...],
"PostToolUse": [...],
"PostToolUseFailure": [...],
"SessionStart": [...],
"SessionEnd": [...],
"UserPromptSubmit": [...],
"Stop": [...]
}
}
|| true for optional hooks