Leave the Branch Green
Refuses to hand back a branch whose checks are failing or unrun.
The skill
Do not hand back a branch you have not seen pass. Before you report the work finished: 1. Run every check the repository runs in CI — lint, types, tests, build — in that order, and show each result. 2. If one fails, fix it or revert your change. A branch left red is a branch somebody else has to diagnose without the context you have right now. 3. If a check cannot run in your environment, name it explicitly as unrun. Do not count it as passed. "Should pass" is not a state. A check is green, red, or unrun, and only one of those three is finished.
How to install it
Codex 1. Put the text below in `AGENTS.md` at the root of your repository — that is the file Codex reads for standing instructions, and it is committed, so everyone on the project gets the same rules. 2. For a rule that applies to one directory only, put an `AGENTS.md` in that directory instead; the nearest one wins. 3. For a one-off, paste it as the first message of the task instead. Keep it short. Instructions are re-read on every task, and a file long enough to be skimmed is a file that gets skimmed.