Skip to content
Back to skills

Run Gates

ASecurity

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.

  • 6 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 4, 2026
ai-agentspythonshellgit

Security analysis

A100/100

Pro scans all 7 files and shows the line behind each finding

Scanned December 4, 2026

npx -y skills add SanvioLabs/sanvio-factory --skill run-gates --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Run Gates?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Run Gates
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/sanviolabs-run-gates/badge)](https://www.skillsdirectory.com/skills/sanviolabs-run-gates)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: run-gates
description: 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.
license: MIT. From Stelliad, https://github.com/Stelliad/stelliad-skills, commit 65632a3. Notice in LICENSE beside this file
compatibility: Any repository. The evaluator is standard-library Python 3.9+ and uses PyYAML when it is installed. Gate names and conditions are yours to set via CUSTOMIZE.md.
metadata:
  version: "1.0"
  author: Sanvio Labs, Agentience
  source: https://github.com/Stelliad/stelliad-skills
  source-commit: "65632a3ba2c9610a672fe3806667e1ed52babb5e"
  argument-hint: "<gate_name> [--project <path>] | --list"
type: skill
scope: all
status: active
---

# 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](./SPEC.md) for the four core gates, how they compose, and why they block rather than advise
2. Copy [examples/.gates.yaml](./examples/.gates.yaml) to your repo root and [follow CUSTOMIZE.md](./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](./CUSTOMIZE.md) to adapt this skill for your organization.

Files in this skill

  • CUSTOMIZE.md6.3 KB
  • LICENSE1 KB
  • README.md2.7 KB
  • SKILL.md2.7 KB
  • SPEC.md9.1 KB
  • examples/.gates.yaml3.1 KB
  • scripts/check_gates.py21.7 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.