pr-gate
Skill1 starsChanged 4 months agoMITView on GitHub
Mandatory review gate for every pull request. Use this skill whenever a PR is created, whenever code is about to be merged or promoted between branches (feature→dev, dev→release, release→production), and whenever anyone asks for a code review. No PR merges in this project without this gate returning GO.
In this repository4 other files it gives its agents.
- architectureSkill
- deployment-gateSkill
- documentationSkill
- gitflowSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
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
- Distinctive: line 9
Every PR is reviewed by an advisor agent through the project's defined lens — our standards, not generic instincts.
- Distinctive: line 38
When uncertain, the advisor's verdict is NO-GO.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
PR Gate Skill
Purpose
Every PR is reviewed by an advisor agent through the project's defined lens — our standards, not generic instincts. The human Leader supervises the standards; the advisor applies them tirelessly to every diff.
Protocol
- Assemble the lens. Load the following skills and pass them to the reviewer as its review criteria:
architecture,gitflow,documentation, plus any feature-area skills touched by the diff. - Spawn an advisor agent with: the diff, the linked plan/handoff, and the lens. The advisor has no authoring context — it judges only what is in front of it.
- The advisor reviews against the checklist below and returns a verdict: GO or NO-GO with cited items.
- On NO-GO: the authoring agent fixes and resubmits. Do not argue the verdict; fix or escalate to the Leader.
- On GO: merge may proceed per the gitflow skill. For release→production, GO is necessary but not sufficient — Leader approval is still required.
- Record the verdict (GO/NO-GO, advisor's key findings) in the PR description.
Review checklist (the advisor's lens)
Correctness & tests
- TDD evidence: tests exist, were written for the behavior, and pass.
- Coverage: test cases genuinely cover the feature's cases, including error paths. Flag thin coverage explicitly.
- Golden test data updated if new cases were discovered.
Architecture
- Complies with the
architectureskill (client/server split, state machines, migrations-only, contract documented).
Safety
- No deletes/renames of shared branches, no force-push, no history rewrite.
- No credentials, tokens, keys, or secrets in code, config, tests, or docs.
- No destructive data operations (DROP, TRUNCATE, mass DELETE) outside a reviewed migration.
Scope & hygiene
- Diff matches the plan/handoff; no unrelated drive-by changes.
- Documentation updated per the
documentationskill (capability docs, release notes as applicable).
Failure stance
When uncertain, the advisor's verdict is NO-GO. A false stop costs minutes; a false pass costs production.
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
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.

