
Llm Gate
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.
- skills.sh installs
- 158
- GitHub stars
- 2.9K
- last updated
- Jun 8, 2026
Install
$ npx -y skills add rohitg00/pro-workflow --skill llm-gate --agent claude-codeInstalls into .claude/skills of the current project.
Files
LLM Gate
Use Claude Code's type: "prompt" hooks to create intelligent quality gates that use AI to verify operations.
Trigger
Use when:
- Setting up commit message validation
- Enforcing code conventions beyond what linters catch
- Creating smart guardrails for specific operations
How Prompt Hooks Work
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:
- Substitutes
$ARGUMENTSwith the JSON hook input - Sends to Haiku (fast, cheap)
- Expects
{"ok": true}or{"ok": false, "reason": "..."} - If not ok → blocks the tool call with the reason
Example Gates
Sponsors
Details
- Repository
- github.com/rohitg00/pro-workflow
- Categories
- Frontend Development, Git & Pull Requests, Code Review & Quality, AI & Agent Building, Automation & Workflows
- First seen
- Jun 11, 2026
More from rohitg00/pro-workflow
All 35- Wiki Query157
- Wiki Builder156
- Survey Generator154
- Wiki Research Loop154
- Wiki Viewer153
- Skill Optimizer140
- Module Map
- Token Efficiency239
- Pro Workflow213
- Wrap Up210
- Deslop203
- Context Optimizer196
- Learn Rule194
- Session Handoff191
- Smart Commit190
- Compact Guard189
- Insights186
- Replay Learnings184
- Parallel Worktrees180
- Llm Council175
- Cost Tracker172
- Context Engineering171
- Mcp Audit169
- Orchestrate167