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-code

Installs 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:

  1. Substitutes $ARGUMENTS with the JSON hook input
  2. Sends to Haiku (fast, cheap)
  3. Expects {"ok": true} or {"ok": false, "reason": "..."}
  4. 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
1rohitg00 avatarsurvey-generatorrohitg00/pro-workflowCompile a structured literature survey on any AI/ML topic. Agent curates a research bundle (taxonomy + sections + bibliography of real papers) from a public anc154skills.sh installs
2dkyazzentwatwa avatarreport-generatordkyazzentwatwa/chatgpt-skillsGenerate professional PDF/HTML reports with charts, tables, and narrative from data. Supports templates, branding, and automated report generation.153skills.sh installs
3levnikolaevich avatarln-150-presentation-creatorlevnikolaevich/claude-code-skillsBuilds interactive HTML presentation from project docs with Mermaid diagrams. Use when sharing project overview with stakeholders.150skills.sh installs
4awslabs avatarhyperpod-version-checkerawslabs/agent-pluginsCheck and compare software component versions on SageMaker HyperPod cluster nodes - NVIDIA drivers, CUDA toolkit, cuDNN, NCCL, EFA, AWS OFI NCCL, GDRCopy, MPI, 149skills.sh installs
5actionbook avatardeep-researchactionbook/actionbookDeep research and analysis tool. Generates comprehensive HTML reports on any topic, domain, paper, or technology. Use when user asks to research, analyze, inves148skills.sh installs
6somtougeh avatartechnical-svg-diagramssomtougeh/dotfilesGenerate clean, minimal technical SVG diagrams in a consistent Cloudflare-inspired style. Use when creating architecture diagrams, flow diagrams, or component d146skills.sh installs