agentleFS
alexuraxinalexuraxin/retainer/skills/gate/SKILL.md

gate

Skill3 starsChanged 3 days agoMITView on GitHub

Full quality gate in one command — linters, types, import contracts, tests. The set of steps lives in the script, not in prose. Trigger words (RU+EN): гейт, прогони гейт, проверки, полный прогон / gate, run the gate, checks, full run.

  • Commits and pushes

33 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use new, build and 10 more.

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.
  • codebycoreySkill

    new

    Start a new change with a proposal. Use when starting a feature, creating a proposal, or beginning planned work.

    Also in 3 projects that use this

  • Microsoft AzureSkill

    build

    Build the TypeSpec Rust emitter from source. Run this after cloning the repo, after pulling changes, or when TypeScript source files have been modified.

    Also in 5 projects that use this

  • AWSSkill

    ship

    Finalize dev work on an issue branch — update docs, push, and open a PR.

    Also in 8 projects that use this

  • genomewalkerSkill

    checkpoint

    Save a checkpoint of task status, decisions, active files, and next steps

    Also in 3 projects that use this

  • VercelSkill

    investigate

    Investigate an issue report, or analyze the constraints of a proposed change, with strict, evidence-driven diagnosis.

    Also in 3 projects that use this

  • BlockSkill

    plan

    Draft a TDD, PRD, or lightweight plan in the conversation without committing it.

    Also in 4 projects that use this

The file

Files
SKILL.md

The gate — one command

bash scripts/gate.sh    # the command comes from <project>/.retainer/config.toml (gate_command):
                        # a path to the script or a build command (make ci, docker compose run …)

The step list is IN THE SCRIPT ITSELF, not in this file and not in the project rules. Reason: a list of steps rots — keep the list in prose and it diverges from reality (there was a case of "nine steps" when there were ten: graph freshness did not make the list). Prose says WHAT the gate holds; how many steps exactly and in what order — only the script knows.

What a typical gate holds (Python preset)

  • the rule guard (is the regulation not weakened);
  • linters and format: ruff format --check · ruff check · flake8 (WPS) · templates · JS (biome, if present);
  • import contracts: import-linter;
  • types: mypy (strict);
  • spelling: codespell;
  • tests: pytest with an N+1 detector and a coverage floor;
  • migrations (Django module).

Two levels, one check

The same gate hangs on the pre-push hook AND in CI (a from-scratch environment).

  • The hook is faster and catches earlier — the first line.
  • The guarantee is CI: git push --no-verify bypasses the hook entirely, and the hook itself is not guaranteed to be versioned and may be absent on another machine.

CI on a from-scratch environment catches what the local one does not see (example: .mo translations built by hand only on the developer's machine; a missing config section that silently disabled CI).

Acceptance = a GREEN gate, not "done"

"Done" without a green gate means nothing — the machine judges, not the agent's word. The full run goes locally until green on what leaves the machine, and the claim "done" is made after it; claims about parts along the way are proven by a targeted run of the subject, not the full suite. This also requires a working venv with dev dependencies — part of the task, not a separate step.

How many runs per task

The full run is one, on what leaves the machine. Along the way there is a targeted run of the subject of the edit and a mutation probe: they answer whether the check guards what is being edited. The full run answers a different question — is the tree intact — and that answer is needed once, when the edits are done.

An intermediate "done" is not proven by the full run: it is proven by a targeted run of the subject (the cost of a full run per hypothesis is named in "When NOT to apply"). What launches the full run and where the mutation probe lives is known to the project regulation; the step list — the gate script, as said above.

When NOT to apply

  • The gate is not a cause finder. It says "red" and on exactly what; WHY is the subject of [[diagnosing]]. Running the gate in circles instead of building a loop means paying with a full run for every hypothesis.
  • Not a measure of task readiness. A green gate means "the tree is not broken", not "the declared is done": the acceptance criteria are checked by the task cycle, not the gate.
  • Not a place for a new check one-off. A step is added to the gate script, not run beside it by hand: a check living outside the script runs only while it is remembered.
  • In a foreign tree without a dependency box the gate reddens on its own environment. That is "not checked", not "broken", and the reader must tell them apart.

Related: [[guardrails]] (linter configs under the guard), [[task-cycle]] (the gate is a cycle step and a DoD item).

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.