agentleFS
StelliadStelliad/stelliad-skills/skills/run-gates/SKILL.md

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.

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
  1. Very specific:

    Run --list, then run one gate, then wire it into CI

    line 26
  2. Very specific:

    Add --json when another tool will read the result.

    line 36
  3. Distinctive:

    Always run the script. Never evaluate a gate by reading files and judging.

    line 48
  4. Very specific:

    Never edit .gates.yaml to make a failing gate pass.

    line 49

≈ “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.

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

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

  1. Read SPEC.md for the four core gates, how they compose, and why they block rather than advise
  2. Copy examples/.gates.yaml to your repo root and follow CUSTOMIZE.md to bind each condition to your stack
  3. Run --list, then run one gate, then wire it into CI

Procedure

  1. Resolve the project. A path you're given, or the current directory. If it's ambiguous, ask which repository.
  2. No gate named? List them and ask which one: python3 scripts/check_gates.py --list --project <path>
  3. Run the gate: python3 scripts/check_gates.py <gate> --project <path> Add --json when another tool will read the result.
  4. Report by exit code. 0 passed. 1 blocked: show each failed condition with its fix line. 2 the gate couldn't be evaluated (no gates file, unknown gate, bad YAML, or a malformed gate such as a misspelled requires:): show the reason the script printed, and offer to fix the file or help write one. A 2 is never a pass.
  5. 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.yaml to make a failing gate pass. Weakening a condition is a decision for whoever owns the gate, made in review.
  • A command condition runs with your shell and credentials. Read an unfamiliar repository's .gates.yaml before running it.

See CUSTOMIZE.md to adapt this skill for your organization.

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.