What problem does it solve?
Static linters and regex rules cannot catch semantic issues like malformed commit messages, risky destructive commands, or hardcoded secrets in file writes. This Skill configures Claude Code prompt hooks that use a small LLM to verify operations before they execute.
Core Features & Use Cases
- Prompt Hooks: Configure
type: "prompt" hooks that send tool-call input to Haiku and block operations returning {"ok": false}.
- Ready-Made Gates: Includes examples for conventional commit validation, destructive
rm command guarding, and API key leak prevention on file writes.
- Agent Hooks: Use
type: "agent" hooks for deeper verification, such as reviewing staged changes for security issues before a git push.
- Use Case: A team wants every commit to follow conventional commit format. Add a PreToolUse prompt hook matching
Bash(git commit*) so non-conforming commits are blocked with an explanatory reason.
Quick Start
Set up a Claude Code prompt hook that validates my git commit messages against conventional commit format using Haiku.