What problem does it solve? Claude Code executes tools without built-in enforcement of project-specific rules, so teams lack automated guardrails for tests-before-commit, protected paths, and audit logging. This Skill designs PreToolUse and PostToolUse hook scripts that run automatically during tool execution to enforce those rules. ## Core Features & Use Cases - Quality Gates: Create hooks that block git commits until tests pass, using marker-file patterns to keep hooks fast. - Safety Rails: Block writes to protected directories (.git, node_modules, .env) and prevent force-pushes to main or production branches. - Observability: Log every tool invocation as structured JSON lines with timestamps, session IDs, and project paths. - Use Case: A team wants Claude to never commit code without passing tests. Use this Skill to generate a PreToolUse tdd-guard hook plus a PostToolUse marker hook, wire them into .claude/settings.json, and debug them with sample stdin JSON. ## Quick Start Ask Claude to design a PreToolUse hook that blocks git commits unless the test suite has passed in the current session.