Quality Gates for AI-Generated Code

Prevent low-quality AI commits by forcing automated checks (lint/tests/token rules) before the PR ca. Tools: Claude Code, Other. Stage: Handoff

Tools: Claude Code, Other. Stage: Handoff

1. Define **hooks** to run on key moments (before commit, before PR update, after tool run). 2. Run **lint + tests + token checks**; if anything fails, stop and return errors to Claude to fix. 3. Enforce required checks using branch protection so failures block merges. 4. Keep a short "definition of done" checklist for the agent.

Open full workflow