Loading...
Loading...
Scaffold Claude Code hooks into a real project after auditing the project structure in detail. Use when a user wants Claude Code hook setup, hook refactors, full hook-event scaffolding, or managed updates to existing .claude hooks. This skill verifies the live official Claude Code hook docs first, audits the target repo, then generates a bash-first hook scaffold with a hooks README, repeatable merge behavior, and coverage for every current hook event. Trigger on: Claude Code hooks, scaffold hooks, hook events, update hooks, hook architecture, .claude/settings.json. Do NOT use for generic Git hooks, Husky-only setup, or non-Claude agents.
npx skill4agent add jpcaparas/skills scaffold-cc-hooks.claude/settings*.json.claude/hooks/additiveoverhaul/hooks~/.claude.jsonreferences/hook-events.mdreferences/scaffold-layout.md| Task | Action |
|---|---|
| Verify the current official hook model | Read the live official docs at |
| Audit a target repo | Run |
| Check whether Claude Code trusts the target workspace | Run |
| Enable workspace trust for the target workspace | Run |
| Understand the event catalog | Read |
| Decide additive vs overhaul | Read |
| Generate or refresh the managed hook scaffold | Run `scripts/scaffold_hooks.sh --project /path/to/project --plan /path/to/plan.json --mode additive |
| Merge generated hooks into settings | Let |
| Regenerate the hooks README in a target project | Run |
assets/hook-events.json.claude/settings.json.claude/settings.local.json.claude/hooks/CLAUDE.md.claude/rules/.claude/hooks/README.mdhasTrustDialogAccepted~/.claude.json/hooksscripts/check_workspace_trust.sh /path/to/project --jsonuntrustedscripts/check_workspace_trust.sh /path/to/project --enablehttps://code.claude.com/docs/en/hookshttps://code.claude.com/docs/en/hooks-guidehttps://reading.sh/claude-code-hooks-a-bookmarkable-guide-to-git-automation-11b4516adc5dhttps://reading.sh/claude-code-async-hooks-what-they-are-and-when-to-use-them-61b21cd71aad~/.claude.json.envdirenv.envrcscripts/audit_project.shreferences/project-analysis.mdifadditiveoverhauloverhauladditive$CLAUDE_PROJECT_DIR.claude/hooks/generated.claude/settings.json.claude/settings.local.json| Need | Read |
|---|---|
| Full audit checklist and what to inspect first | |
| Current official event list and support matrix | |
| Managed folder layout and plan file shape | |
| Additive versus overhaul behavior | |
Async, | |
scripts/audit_project.shscripts/check_workspace_trust.shscripts/scaffold_hooks.shscripts/merge_settings.shscripts/render_hooks_readme.sh.claude/hooks/README.mdasyncifStopstop_hook_activePermissionRequest-phasTrustDialogAccepted~/.claude.json.projects["/absolute/path/to/project"]scripts/check_workspace_trust.shreferences/gotchas.md