run-gates
Skill4 starsChanged 2 months agoMITView on GitHub
Check a repository's gates before a merge, a deploy or a phase change by running the conditions in its .gates.yaml (files that must exist, patterns files must contain, commands that must exit clean, and other gates) and reporting pass or blocked with the fix for each failure.
In this repository27 other files it gives its agents.
- ai-contract-auditSkill
- anonymizeSkill
- compose-from-interviewSkill
- compose-scoreSkill
- coverage-gapsSkill
- create-specSkill
- create-ticketSkill
- design-printed-partSkill
- find-dead-codeSkill
- generate-readmeSkill
- generate-svgSkill
- implement-specSkill
- plan-specSkill
- recover-specSkill
- repo-auditSkill
- review-intakeSkill
- review-principlesSkill
- review-skillSkill
- review-specSkill
- review-ticketSkill
- secret-scanSkill
- stress-test-planSkill
- tech-doc-reviewSkill
- test-firstSkill
- third-party-complianceSkill
- triage-alertSkill
- verify-doneSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 26
Run --list, then run one gate, then wire it into CI
- Very specific: line 36
Add --json when another tool will read the result.
- Distinctive: line 48
Always run the script. Never evaluate a gate by reading files and judging.
- Very specific: line 49
Never edit .gates.yaml to make a failing gate pass.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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
run-gates
A gate is a list of conditions a repository has to meet before something irreversible happens. This skill runs them and reports the result. It never decides a gate passed by reading files itself.
Quick start
- Read SPEC.md for the four core gates, how they compose, and why they block rather than advise
- Copy examples/.gates.yaml to your repo root and follow CUSTOMIZE.md to bind each condition to your stack
- Run
--list, then run one gate, then wire it into CI
Procedure
- Resolve the project. A path you're given, or the current directory. If it's ambiguous, ask which repository.
- No gate named? List them and ask which one:
python3 scripts/check_gates.py --list --project <path> - Run the gate:
python3 scripts/check_gates.py <gate> --project <path>Add--jsonwhen another tool will read the result. - Report by exit code.
0passed.1blocked: show each failed condition with its fix line.2the gate couldn't be evaluated (no gates file, unknown gate, bad YAML, or a malformed gate such as a misspelledrequires:): show the reason the script printed, and offer to fix the file or help write one. A2is never a pass. - Remediate. For each failure, say what's missing, whether you can fix it now (create a file, add a config line) or it needs a person, then re-run the gate. The re-run is the evidence, not your edit.
Rules
- Always run the script. Never evaluate a gate by reading files and judging.
- Never edit
.gates.yamlto make a failing gate pass. Weakening a condition is a decision for whoever owns the gate, made in review. - A
commandcondition runs with your shell and credentials. Read an unfamiliar repository's.gates.yamlbefore running it.
See CUSTOMIZE.md to adapt this skill for your organization.
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.

