# one-minute-ci
Makes a coding agent speed up your CI without letting it lie: a pull request gets its result in under 1 minute, and a green check still means what it meant before.
## Install
```bash
npx skills add kleenpulse/one-minute-ci
```
Works with Claude Code, Codex, Cursor, Copilot, and anything else that reads `SKILL.md`. The audit script needs [Bun](https://bun.sh) and an authenticated [`gh`](https://cli.github.com).
## Credit
The target, the three rules that outrank speed, the budgets and the tool defaults come from a prompt by **Pontus Abrahamsson** ([@pontusab](https://x.com/pontusab)): ["Updated: prompt to get your CI under 1 minute."](https://x.com/pontusab/status/2123771160261529982) (20 Nov 2026).
This skill turns that prompt into something an agent can run and be checked against. The audit script, the proofs, the recipes and the self-check are this skill's own additions, and so are the rules marked *(added)* in `SKILL.md`. It is not affiliated with or endorsed by Pontus Abrahamsson, Blacksmith or hk.
## Why this one
Ask an agent to "make CI faster" and the quickest path is to check less: add a retry, skip the slow test, turn lint into a warning, ignore some paths. The pipeline gets faster and the green check gets weaker, and nobody notices until a bug ships.
This skill makes that path unavailable. It measures first, with a script that can't flatter the repo. It fixes the biggest cost, one small PR at a time, with before and after numbers from real runs. And it has a searchable list of the shortcuts it will not take.
## What it does
- **Audits the last 150 pull request runs** with `references/audit.ts`: PR wall-clock at p50 and p95 against a target of under 1 minute and under 2, then four buckets per job (blocked behind another job, waiting for a runner, setup, running).
- **Keeps the headline honest:** commits with a cancelled, unfinished or re-run run are dropped and counted, and failed commits are timed apart, since a failure often arrives sooner than a pass.
- **Shows its work:** prints how every step was classified, lists the ones it could not classify, and names the checks that can't fail the job today (`|| true`, `continue-on-error`).
- **Holds a budget per stage:** runner pickup under 5 s, setup under 15 s, slowest job under 35 s, lint and format under 1 s each, typecheck under 5 s, tests under 30 s per shard, local hooks under 9 s. A job that goes over fails.
- **Moves the toolchain to Bun** (`bun test`, `bun check`, `bun fmt`, `bun lint`), runners to Blacksmith and local hooks to hk, each proven side by side with the old tool before the switch.
- **Proves the shards ran everything** with `references/shard-proof.ts`, and proves test selection by hiding a real change from it and watching CI go red.
- **Brings you one list** of what only you can do (accounts, secrets, bigger bills, repo settings), each with its expected monthly cost.
- **Ends with totals:** CI time and cost, before and after, from real runs.
## What it refuses to do
- Add a retry, a wider timeout or a skipped test to make a run pass
- Turn off a lint rule or shorten the list of required checks
- Add `|| true`, `continue-on-error`, `paths-ignore` or `if: always()` to get to green
- Let test selection decide what merges; the full suite runs in a merge queue before main
- Delete a test inside a speed-up PR, or ever delete tests for authorization, privacy, migrations or concurrency
- Remove a `needs:` that puts a security scan ahead of install or code execution
- Re-run a slow or failing job to replace it with a better one
- Trust `bun lint`, `bun fmt` or `bun check` because "it ran": a `package.json` script with the same name takes over silently, so it checks `bun --help` and uses `--no-script`
- Report an estimate as a measurement
- Keep going past the point where the target needs one of its rules broken; it reports how fast it got and stops
## Usage
- "Our CI is slow. Get it under a minute."
- "Audit our GitHub Actions and tell me where the time goes"
- "Why does my PR take 10 minutes to go green?"
- "Move our lint, format and typecheck to Bun"
- "Shard the tests and prove nothing got dropped"
- "The e2e test is flaky, just add a retry" (it will refuse, and find the cause)
Run the audit on its own, without an agent:
```bash
bun references/audit.ts owner/repo
bun references/audit.ts owner/repo --runs 150 --json
```
## What was checked
Every command in `references/recipes.md` was run, or read in the tool's own help or official docs, on 21 Nov 2026, and the file says which version. Two things worth knowing before you start:
- On Bun 1.4.5 (stable), `bun check` and `bun fmt` are built in. `bun lint` is only in the canary (1.4.6-canary.1 at the time). The skill makes the agent confirm this on the version your repo pins.
- Blacksmith's warm-machine and custom-image settings, hk's `pre-push` syntax, and `bun check`'s relation to TypeScript 7 were not checked here. The skill states those as rules in words and points to the tools' own docs.
The audit script has unit tests: `bun test references/`.
## License
MIT