
This adds AI-powered quality gates to your workflow using Claude Code's prompt hooks. Instead of writing complex regex or scripts, you write a natural language prompt that validates operations like git commits, file writes, or destructive commands. A small LLM (Haiku by default) checks each operation and blocks it if something's wrong. The conventional commit validator and API key leak prevention examples are solid starting points. It's clever for catching things static tools miss, like whether a commit message actually makes sense or if you're about to nuke an important directory. Just don't go overboard with gates or you'll slow yourself down waiting for validation on every action.
$ npx -y skills add rohitg00/pro-workflow --skill llm-gate --agent claude-codeInstalls into .claude/skills of the current project.
Use Claude Code's type: "prompt" hooks to create intelligent quality gates that use AI to verify operations.
Use when:
Claude Code supports hooks with type: "prompt" that run a small LLM (Haiku by default) to verify conditions:
{
"PreToolUse": [{
"matcher": "Bash",
"hooks": [{
"type": "prompt",
"if": "Bash(git commit*)",
"prompt": "Check if this git commit follows conventional commit format (<type>(<scope>): <summary>). The commit command is: $ARGUMENTS. Return {\"ok\": true} if valid, {\"ok\": false, \"reason\": \"...\"} if not.",
"model": "haiku",
"timeout": 15
}]
}]
}
The hook:
$ARGUMENTS with the JSON hook input{"ok": true} or {"ok": false, "reason": "..."}Sponsors