agentleFS
NoobyGainsNoobyGains/godmode/skills/quality-gate/SKILL.md

quality-gate

Skill107 starsChanged 9 months agoMITView on GitHub

Use when finishing tasks, shipping significant features, or before landing changes to ensure work meets standards through automated review

29 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use deploy.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • VercelSkill

    deploy

    Deploy applications to Vercel. Use when the user says "deploy", "deploy to Vercel", "push to production", "deploy my app", or "go live".

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

10 rules. 0 are common, 10 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 23 edited versions we read keep these.

  • 10

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    No exceptions. No workarounds.

    line 16
  2. Distinctive:

    Before initiating a review, confirm:

    line 20
  3. Distinctive:

    All changes are committed (no dirty working tree)

    line 23
  4. Distinctive:

    If any condition is unmet, resolve it before requesting review.

    line 29
  5. Distinctive:

    After each task in delegated-execution workflows

    line 34
  6. Distinctive:

    After completing a significant feature

    line 35
  7. Distinctive:

    Before landing on the trunk branch

    line 36
  8. Distinctive:

    When stuck (an outside perspective often unblocks)

    line 39
  9. Distinctive:

    Before starting a large refactor (establish a baseline)

    line 40
  10. Distinctive:

    After resolving a tricky defect

    line 41

“Common” is measured: kept by at least 6 in 10 of the 23 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Quality Gate

Dispatch the code-reviewer agent (agents/code-reviewer.md) to surface defects before they propagate.

Core principle: Inspect early, inspect often.

Prime Directive

NO LANDING WITHOUT REVIEW

No exceptions. No workarounds. No shortcuts.

The Entry Protocol

Before initiating a review, confirm:

  1. The test suite passes on the current branch
  2. All changes are committed (no dirty working tree)
  3. You have determined BASE_SHA and HEAD_SHA
  4. You can articulate what was built and why
  5. You know the plan or specification to review against
  6. You have scoped the review correctly (single task vs. batch)

If any condition is unmet, resolve it before requesting review.

When to Initiate

Required:

  • After each task in delegated-execution workflows
  • After completing a significant feature
  • Before landing on the trunk branch

Discretionary but recommended:

  • When stuck (an outside perspective often unblocks)
  • Before starting a large refactor (establish a baseline)
  • After resolving a tricky defect

How to Initiate

1. Capture the commit range:

BASE_SHA=$(git rev-parse HEAD~1)  # or origin/main
HEAD_SHA=$(git rev-parse HEAD)

2. Launch a code-reviewer subagent:

Dispatch the code-reviewer agent (agents/code-reviewer.md) using the Agent tool. Fill in the template at code-reviewer.md.

Template placeholders:

  • {WHAT_WAS_IMPLEMENTED} — What was just built
  • {PLAN_OR_REQUIREMENTS} — What it should satisfy
  • {BASE_SHA} — Starting commit
  • {HEAD_SHA} — Ending commit
  • {DESCRIPTION} — Brief narrative

3. Respond to findings:

  • Resolve Critical findings immediately
  • Resolve Important findings before advancing
  • Log Minor findings for a future pass
  • Object with evidence if the reviewer is mistaken

Walkthrough

[Just completed Task 3: Add data validation layer]

You: Initiating quality gate before proceeding.

BASE_SHA=$(git log --oneline | grep "Task 2" | head -1 | awk '{print $1}')
HEAD_SHA=$(git rev-parse HEAD)

[Launch code-reviewer agent (agents/code-reviewer.md)]
  WHAT_WAS_IMPLEMENTED: Input validation and sanitization for all API endpoints
  PLAN_OR_REQUIREMENTS: Task 3 from docs/plans/api-hardening-plan.md
  BASE_SHA: c4e19a7
  HEAD_SHA: 8b2f305
  DESCRIPTION: Added validateRequest() and sanitizeInput() with 5 rule types

[Subagent returns]:
  Strengths: Comprehensive rule coverage, solid test assertions
  Issues:
    Important: Missing rate-limit header on validation error responses
    Minor: Hardcoded threshold (50) for payload size check
  Assessment: Ready to proceed after addressing Important item

You: [Fix rate-limit header]
[Continue to Task 4]

Cognitive Traps

RationalizationTruth
"It's a tiny change — no review needed"Small diffs cause large outages. Review everything.
"I tested it exhaustively"Testing and review catch fundamentally different classes of issues.
"Review will slow momentum"Fixing production incidents slows momentum far more.
"The reviewer won't follow this code"If a reviewer cannot follow it, neither will the next engineer.
"I'll batch review on the next PR"Quality debt compounds. Review now or pay compounded interest later.

Integration

godmode:delegated-execution:

  • Review after EACH delegated task
  • Surface defects before they cascade
  • Resolve before starting the next task

godmode:task-runner:

  • Review after each batch of tasks
  • Collect feedback, apply corrections, continue

Ad-Hoc Development:

  • Review before landing
  • Review when blocked

Guardrails

Prohibited:

  • Skipping review because "it's straightforward"
  • Ignoring Critical findings
  • Advancing with unresolved Important findings
  • Dismissing valid technical feedback without evidence
  • Landing changes with open Critical or Important items

Mandatory:

  • Review after every task in delegated-execution
  • Include BASE_SHA and HEAD_SHA in every review request
  • Respond to Critical findings immediately
  • Object with code or test evidence when disputing feedback
  • Request clarification when feedback is vague

Process Diagram

START: Work finished
  |
  +-- Suite green? --NO--> Fix tests first
  |        |
  |       YES
  |        |
  +-- Changes committed? --NO--> Commit changes
  |        |
  |       YES
  |        |
  +-- Determine BASE_SHA and HEAD_SHA
  |        |
  +-- Launch code-reviewer agent (agents/code-reviewer.md)
  |        |
  +-- Wait for results
  |        |
  +-- Critical items? --YES--> Fix now, re-review
  |        |
  |       NO
  |        |
  +-- Important items? --YES--> Fix before advancing
  |        |
  |       NO
  |        |
  +-- Log Minor items for later
  |        |
  +-- ADVANCE to next task

See reviewer template at: quality-gate/code-reviewer.md

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.