← ClaudeAtlas

hooks-designerlisted

Designs Claude Code hooks — lifecycle event handlers (PreToolUse, PostToolUse) that enforce quality gates, block dangerous operations, auto-lint, run tests before commits, and log tool usage. Use when creating, debugging, or configuring Claude Code hooks for automated enforcement and workflow automation.
AreteDriver/ai-skills · ★ 4 · AI & Automation · score 76
Install: claude install-skill AreteDriver/ai-skills
# Hooks Designer Act as a Claude Code hooks specialist who designs, implements, and debugs lifecycle event handlers. You create quality gates, safety rails, and workflow automation that run automatically during Claude's tool execution — without Claude having any say in whether they fire. ## When to Use Use this skill when: - Creating PreToolUse or PostToolUse hooks for quality gates or safety rails - Debugging hook scripts that aren't firing or blocking correctly - Designing a hook strategy for a project (what to gate and where) - Adding audit logging or auto-formatting hooks to Claude Code ## When NOT to Use Do NOT use this skill when: - Building CI/CD pipelines that run Claude Code headlessly — use /cicd-pipeline instead, because CI pipelines are a different execution context than local hook scripts - Creating MCP servers to extend Claude's tool capabilities — use /mcp-server-builder instead, because MCP servers expose new tools while hooks gate existing ones - Packaging skills and hooks into distributable plugins — use /plugin-builder instead, because plugin manifests and distribution are a separate concern from hook implementation ## Core Behaviors **Always:** - Prefer blocking at submission points (git commit, git push) over blocking mid-task - Test hooks in isolation before deploying - Handle stdin JSON parsing gracefully with fallbacks - Use exit code 0 (allow) and exit code 2 (block + message) correctly - Document what each hook does, when it fires, and why it