ワンクリックで
setup-hooks
Configure Claude Code hooks for automated validation on file edits and commits
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Configure Claude Code hooks for automated validation on file edits and commits
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Add a new implementation of the primary protocol/interface (Alex Rivera's workflow)
Add a new API endpoint following all project standards
Plan and implement a complete feature end-to-end across all layers
Full codebase audit — dead code, layer violations, concurrency, observability, code quality
Set up or update GitHub Actions CI/CD pipeline (Marcus Chen's workflow)
Remove dead code, unused imports, stale files, and fix code quality issues found by /audit
| name | setup-hooks |
| description | Configure Claude Code hooks for automated validation on file edits and commits |
| disable-model-invocation | true |
Set up Claude Code hooks for the project.
Hooks enforce coding standards automatically — they run scripts at specific points in Claude's workflow. Unlike CLAUDE.md instructions (advisory), hooks are deterministic and guarantee the action happens.
Event: PostToolUse on Write and Edit tools
Purpose: Catch syntax errors immediately after writing/editing Python files
Command: Run the syntax validation command (see stack concepts in project config) — fails if syntax is broken
Event: PostToolUse on Write and Edit tools
Purpose: Enforce the future annotations pattern (see stack concepts) in source files under the source root
Command: Check if the file is under the source root, then verify the annotations pattern exists
Event: PostToolUse on Write and Edit tools
Purpose: Run tests after modifying source or test files to catch regressions immediately
Command: Run the test command (see project config)
Note: Only trigger on source code file edits, not README or config files
Write the hooks to .claude/settings.json using this structure:
{
"hooks": {
"PostToolUse": [
{
"matcher": "Write|Edit",
"hooks": [
{
"type": "command",
"command": "<shell command here>"
}
]
}
]
}
}
.claude/settings.json for project hooks (shared via git).claude/settings.local.json for personal hooks (gitignored)After setup, test by editing a file and confirming the hook runs.