keep-green
Installation
SKILL.md
Keep Green
Keep the current branch green by running the full gate, repairing breaks, and committing the fix.
Steps
- Detect the project's check commands —
package.jsonscripts,Makefile,cargo, orpyproject.toml. - Run in order: typecheck → tests → build. Stop at the first red gate.
- Read the failure output. Fix minimally — do not refactor beyond the break.
- Re-run the failed gate until it passes, then run the full sequence to confirm nothing regressed.
- Commit from the repo root with a conventional message:
fix: <what was broken>.
Constraints
- Never push to main/master.
- Never run migrations or touch
.env/secrets. - Never deploy.
- Give up after 3 attempts on the same failure — report the blocker instead of guessing.