gates
Skill0 starsChanged 3 months agoMITView on GitHub
Use when about to claim work is complete/fixed/passing, when a task risks agent laziness (large, multi-step, previously half-done, or with acceptance criteria), or when running long-horizon/unattended work where quality must be verified before proceeding. Covers gates, gates ledgers, and autonomous gate semantics. Completion-claim discipline only; writing tests goes to testing or e2e-testing.
10 other projects use a version of this.
Adopted by
Most recently taken up by
- FiredMosquito831/my-writing-companiontheir own version, first seen Nov 1, 2026
- CorvusWing/CorvusWingtheir own version, first seen Oct 25, 2026
- harshanandak/forge-legacytheir own version, first seen Oct 17, 2026
- Fadi88/one-man-startuptheir own version, first seen Oct 15, 2026
- zajca/pohunektheir own version, first seen Oct 13, 2026
- The-40-Thieves/obsidian-tctheir own version, first seen Oct 8, 2026
Used with
Projects with it also use release.
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.
MicrosoftSkillrelease
Use ONLY when the user explicitly asks to cut/publish a Huabu desktop release or tag a version. Performs an outward action — bumps the version in apps/desktop/package.json, commits + annotated-tags vX.Y.Z, and pushes the branch + tag. That tag push auto-builds the macOS/Windows installers and publishes a GitHub Release. Provides `status`, `bump`, `tag-push`, and a one-command `run` (bump → tag-push).
Also in 3 projects that use this
Other versions10 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 10
- Nebulock-Inc/agentic-threat-hunting-framework★ 398same name
- Fadi88/one-man-startup★ 16same name
- The-40-Thieves/obsidian-tc★ 13same name
- zajca/pohunek★ 8same name
- akshaypimprikar/pragma★ 4same name
- harshanandak/forge-legacy★ 4same name
- FiredMosquito831/my-writing-companion★ 2same name
- CorvusWing/CorvusWing★ 1same name
- ninoverse/claude-mit-go-template★ 0same name
- ninoverse/claude-mit-rust-agent-template★ 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 repository110 other files it gives its agents.
- AGENTS.mdAGENTS.md
- skills/project-bootstrap/templates/agents.mdAGENTS.md
- a11y-auditSkill
- agentic-ragSkill
- agent-reachSkill
- ai3d-genSkill
- ai-coding-dictionarySkill
- ai-toolsSkill
- animation-directionSkill
- api-specSkill
- architecture-diagramsSkill
- architectureSkill
- ascii-artSkill
- ask-bundleSkill
- binary-triageSkill
- bragSkill
- brag-slimSkill
- career-opsSkill
- code-reviewSkill
- computer-useSkill
- context7Skill
- context-hygieneSkill
- creative-engineeringSkill
- cu-realtimeSkill
- data-analystSkill
- databaseSkill
- dead-wireSkill
- debuggingSkill
- deploySkill
- devin-configSkill
- dispatching-parallel-agentsSkill
- dmaSkill
- dockerSkill
- drift-reportSkill
- e2e-testingSkill
- edge-casesSkill
- executionSkill
- fact-checkSkill
- finishing-a-development-branchSkill
- firmware-probeSkill
- frontend-designSkill
- ghidraSkill
- ghSkill
- github-actionsSkill
- git-workflowsSkill
- grillingSkill
- handoffSkill
- humanizerSkill
- hyperframesSkill
- i18nSkill
- image-forensicsSkill
- impeccableSkill
- implement-layaSkill
- intakeSkill
- jiraSkill
- knowledge-modelingSkill
- laya-orchestratorSkill
- learn-modeSkill
- mcp-governanceSkill
- media-toolsSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
9 rules. 0 are common, 8 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 9 edited versions we read keep these.
8
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 17
RUN: execute it fresh and complete.
- Distinctive: line 18
READ: full output, exit code, failure count.
- Distinctive: line 19
VERIFY: output confirms the claim?
- Distinctive: line 21
ONLY THEN make the claim. Skip any step = lying, not verifying.
- Distinctive: line 55
If a fixed gate still fails and the workspace is unchanged since last failure → the gate may be wrong.
- Distinctive: line 60
Before dispatching an implementer, distill the spec into checkable assertions with commands:
- Very specific: line 92
Every runnable gate gets CHECK: + EXPECT:.
- Distinctive: line 94
Check fails → fix the work, not the check.
- Distinctive: line 99
Don't create a ledger for a trivial edit (<20 lines, one tool call).
“Common” is measured: kept by at least 6 in 10 of the 9 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
Gates
The Iron Law: NO COMPLETION CLAIMS WITHOUT FRESH VERIFICATION EVIDENCE.
Violating the letter of this rule is violating the spirit. If you haven't run the verification command in this message, you cannot claim it passes.
The Gate Function (before ANY claim of status/success)
- IDENTIFY: what command proves this claim?
- RUN: execute it fresh and complete.
- READ: full output, exit code, failure count.
- VERIFY: output confirms the claim? NO → state actual status + evidence. YES → claim WITH evidence.
- ONLY THEN make the claim. Skip any step = lying, not verifying.
| Claim | Requires | Not sufficient |
| Tests pass | Test output: 0 failures | Previous run, "should pass" |
| Lint clean | Linter output: 0 errors | Partial check |
| Build succeeds | Build exit 0 | Linter passing |
| Bug fixed | Original symptom test passes | Code changed |
| Regression test works | Red-green cycle verified | Test passes once |
| Agent completed | VCS diff verified | Agent said "success" |
| Requirements met | Line-by-line checklist | Tests passing |
Red flags — STOP: "should/probably/seems to", satisfaction before verification ("Great!", "Done!"), committing without verification, trusting agent reports, "just this once".
Security check before claiming done on API/DB/secrets/endpoints/infra work:
no secrets in diff, no new unauthenticated endpoints/public storage, no broad
IAM, no plaintext passwords. Any present → run security first.
Gate types (autonomous/long-horizon)
A gate is a command that must exit 0 before the task can be declared complete. Bounded (truncate output), idempotent, skippable only when nothing relevant changed since last failure, multi-level.
| Gate | When | Example | On failure |
| Pre-task | Before starting | git status --porcelain | Stop, ask user |
| Step | After each step | npm test -- --grep "<step>" | Retry with output |
| Integration | After combining | npm run build | Roll back to green |
| Final | Before "done" | npm run check | Cannot declare done |
| Security | Before push | python scripts/check-ai-signature.py | Block, fix |
If a fixed gate still fails and the workspace is unchanged since last failure → the gate may be wrong; stop and escalate.
Verification Functions (VFs) — the dual gate
Before dispatching an implementer, distill the spec into checkable assertions with commands:
VF1: API returns 200 for valid input → curl -s -o /dev/null -w "%{http_code}" localhost:3000/api -d '{"valid":"data"}'
VF3: Type checker passes → npx tsc --noEmitGate 1 (PRE): VFs go in the implementer's brief; it must run every VF and show output before claiming DONE. Gate 2 (POST): controller re-runs VFs independently; failure → re-enter fix loop. Can't write a VF → the requirement is ambiguous — clarify first.
Gates ledger (unlazy pattern)
For tasks at laziness risk — large, multi-step, previously half-done, or with
acceptance criteria — write the ledger BEFORE work. Path: .devin/ledgers/<task>.md
when tracked; otherwise the repo's tracked ledgers/ convention (record the
path decision).
# GATES: add OAuth2 login
- [ ] G1: valid fixture imports
CHECK: python -m pytest tests/import/test_valid.py
EXPECT: 1 passed
EVIDENCE: pending
ABANDON: G3 migration owner unavailable; recorded in issue 123Rules:
- Every runnable gate gets
CHECK:+EXPECT:; run it, replaceEVIDENCE: pendingwith the deciding snippet. - Check fails → fix the work, not the check.
- Manual gates only when no command can decide.
- Impossible step → explicit
ABANDON: <id> <reason>, never silent drop. - A ticked gate with
EVIDENCE: pendingis worse than an empty gate. - Re-run every runnable gate after claiming done; report met/unmet/abandoned.
- Don't create a ledger for a trivial edit (<20 lines, one tool call).
Anti-patterns: grading own gates without re-running; trusting "done" without recorded evidence; skipping ABANDON; gates as the ONLY verification (manual review still catches design issues); overly broad step gates (scope them).
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.

