review-gate
Skill9 starsChanged 3 months agoMITView on GitHub
Gate a diff before pushing or requesting review: verify exact-state identity, run deterministic checks, consume Test Strength and Resilience receipts, then run only the judgment lenses triggered by the change. Use before opening or updating a PR, for pre-review, or after an external review round. Scale the path from mechanical through high-risk and external-PR profiles.
- Reads credentials
10 other projects use a version of this.
Adopted by
Most recently taken up by
- znut/agent-skillstheir own version, first seen Sep 25, 2026
- 17-sss/agent-skillstheir own version, first seen Sep 22, 2026
- usk6666/yorishiro-proxytheir own version, first seen Sep 14, 2026
- tchughesiv/osac-ai-skillstheir own version, first seen Aug 13, 2026
- wakqasahmed/skillstheir own version, first seen Aug 12, 2026
- Adnova-Group/mustertheir own version, first seen Aug 10, 2026
Other versions10 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 10
- usk6666/yorishiro-proxy★ 16same name
- troykelly/claude-skills★ 11same name
- toverux/cantrips★ 3same name
- 17-sss/agent-skills★ 2same name
- Adnova-Group/muster★ 2same name
- wakqasahmed/skills★ 2same name
- znut/agent-skills★ 2same name
- farofy/ignite★ 0same name
- prasadmogulothu/agent-skills★ 0same name
- tchughesiv/osac-ai-skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository19 other files it gives its agents.
- before-afterSkill
- factory-loopSkill
- handoffSkill
- herdr-workstreamsSkill
- performance-proofSkill
- quality-baselineSkill
- resilience-auditSkill
- security-reviewSkill
- signature-reproSkill
- simplifySkill
- software-factorySkill
- test-strengthSkill
- trail-decisionsSkill
- work-intakeSkill
- workstream-reconcileSkill
- xrefSkill
- issue-intakeSkill
- record-a-caseSkill
- solution-gateSkill
The file
We split this skill into the rules it gives an agent
8 rules. 0 are common, 3 are distinctive, and 5 are very specific to this project.
0
Common
Most of the 10 edited versions we read keep these.
3
Distinctive
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 14
Run the packaged scripts/resolve-source-root.mjs, which honors RAILLY_SKILLS_REPO, to resolve the canonical Railly/skills checkout.
- Very specific: line 39
When radius supports the target language, save its Impact Map under the canonical Review Gate run directory.
- Distinctive: line 55
Read the lens catalog after the diff, conventions, profile, and receipts identify trigger families.
- Distinctive: line 59
Prefer an independent reviewer for high-risk work.
- Very specific: line 67
Run security-review when the diff or stated claim touches authentication, authorization, confidentiality, integrity, credentials, secrets, …
- Very specific: line 71
Read the run-report schema when materializing the exact-head verdict.
- Very specific: line 73
Run scripts/gate.sh report <run-report.json>.
- Distinctive: line 75
After an external review, harvest each escaped finding into the smallest durable destination: deterministic gate, triggered lens, project …
“Common” is measured: kept by at least 6 in 10 of the 10 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.
Files
Review gate
Review Gate decides whether one exact diff is ready for human promotion. It owns deterministic checks, claim review, triggered judgment lenses, empirical verification, and the final verdict. Test Strength owns behavioral falsification. Resilience Audit owns failure-path pressure. Security Review owns attacker modeling and vulnerability classification. Consume their receipts instead of repeating their procedures.
Canonical state and execution identity
Run the packaged scripts/resolve-source-root.mjs, which honors RAILLY_SKILLS_REPO, to resolve the canonical Railly/skills checkout. Never write cases, conventions, run reports, Impact Maps, or ledgers into the target repo, .agents/skills, .claude/skills, or another installed copy.
Read the work-item manifest first. Verify only drift-prone fields: target HEAD, dirty digest, authorization, profile, stage fingerprints, and executing skill revision. A stable pass requires an exact skill_revision and an executing package whose digest is tied to that revision. Run bun scripts/skills-doctor.mjs --installed <skills-root> --skill review-gate from the canonical checkout when identity is uncertain.
Use the manifest's runtime record. Prefer the packaged scripts/run-fx-review.mjs for an isolated reviewer. It reads the Vercel AI Gateway / vercel-ai-gateway credential from macOS Keychain, disables FX's stored-session lookup for that process, verifies that FX reports auth=AI_GATEWAY_API_KEY, and writes a sanitized JSON artifact. Never put the key in a prompt, artifact, manifest, or log. Cursor and cursor-agent are not supported Review Gate runtimes.
On the first runtime schema or capability failure, inspect the available capability once, never repeat the identical invalid call, and fall back in order: FX worker, native subagent, visible Herdr worker, sequential isolated pass, then unavailable. Record execution_mode, degraded_from, and independence_gap. More than one schema failure per operation or three in the whole turn is a protocol failure, not a reason to retry.
1. Select the profile
Honor the manifest profile:
| Profile | Review path |
mechanical | exact-state identity, applicable deterministic checks, narrow proof, one focused review pass |
standard | deterministic checks, claim inventory, triggered receipts and lenses, real-boundary proof |
high-risk | full proof ledger, required Test Strength or Resilience receipts when triggered, independent challenge |
external-pr | standard or high-risk obligations plus built-artifact dogfood before trusting authored tests |
Escalate the profile or wall-time budget only when new evidence exposes a new risk. Record the trigger in the manifest.
2. Load conventions and run deterministic checks
Load cases/<repo>/conventions.md from the canonical source root. If absent, compile it from target-repo instructions before review. Run every applicable check in scripts/gate.sh, starting with covered when an exact-head report is expected. A finding is fixed or acknowledged with evidence, never skipped silently.
When radius supports the target language, save its Impact Map under the canonical Review Gate run directory. Treat it as attention guidance, not proof.
3. Inventory claims and consume stage receipts
Build the contract, design, user-facing, and implementation claim inventory. Read the proof obligations for standard and high-risk work because those profiles must distinguish properties from proxies, carry assumptions, and map durable commit points.
Consume stage receipts from the work-item manifest:
- A Test Strength trigger requires a passing receipt tied to the current head, command, environment, contract digest, relevant paths, and Test Strength revision.
- A resilience trigger requires a passing receipt with forced failure partitions, cleanup ownership, retry evidence, and the same identity fields.
- A security trigger requires a passing Security Review receipt tied to the exact base, head, dirty digest, changed-path digest, and Security Review revision. An unresolved security blocker or verification gap makes the review incomplete.
- A missing, stale, unavailable, or failed required receipt makes the review incomplete. Review Gate does not recreate the missing method.
- A reusable receipt must show that the later diff cannot intersect its relevant paths or contract dependency cone. Final exact-head checks still run.
4. Run only triggered lenses
Read the lens catalog after the diff, conventions, profile, and receipts identify trigger families. Run each triggered lens as a focused pass over the frozen tree. Record every catalog lens as run or skipped with a reason.
Load the getByRole contract only when reviewing browser role lookup, accessibility-tree normalization, or getByRole behavior.
Prefer an independent reviewer for high-risk work. If the runtime degrades to a sequential isolated pass, preserve separate input and output artifacts but record the independence gap. Never present sequential self-review as cross-family independence.
5. Verify at the layer of the claim
For external PRs, drive the built artifact before trusting the contributor's tests. For other profiles, drive every changed user-visible boundary that carries a material claim. Force error paths. A missing environment is an explicit gap, not a pass.
Refute findings at their own layer. Verify exemptions with the same rigor as findings. Freeze the reviewed tree while any pass runs.
Run security-review when the diff or stated claim touches authentication, authorization, confidentiality, integrity, credentials, secrets, origin validation, tenant isolation, sandboxing, privilege, injection, or unsafe deserialization. Hardening and non-security observations remain visible but do not become blockers.
6. Emit one report and one receipt
Read the run-report schema when materializing the exact-head verdict. Treat schema-v1 JSON as the only authored report. Generate the human view with scripts/gate.sh render <run-report.json> <run-report.md>. Never maintain an independently authored prose twin.
Run scripts/gate.sh report <run-report.json>. A pass requires the exact current head, resolved required receipts, no open finding or gap, and required independence. Update the manifest's review stage atomically.
After an external review, harvest each escaped finding into the smallest durable destination: deterministic gate, triggered lens, project norm, or subsystem invariant. Record outcome fields including external findings, review rounds, human corrections, and escaped finding class.
Complete when
The exact state has a validated run report and manifest receipt, every required upstream receipt is current, all triggered checks and lenses have dispositions, empirical claims were exercised or named as gaps, and the verdict is pass, findings, or incomplete without ambiguity.
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.

