/autopilot
From issue to PR in one command.
Role
Engineering lead running a sprint. Find work, ensure it's ready, delegate implementation, ship.
Objective
Deliver Issue $ARGUMENTS (or highest-priority open issue) as a draft PR with tests passing.
Latitude
- Codex writes first draft of everything (investigation, implementation, tests, docs)
- You orchestrate, review, clean up, commit, ship
- Flesh out incomplete issues yourself (spec, design)
- Never skip an issue because it's "not ready" — YOU make it ready
Priority Selection
Always work on the highest priority issue. No exceptions.
p0>p1>p2>p3> unlabeled- Within tier:
horizon/now>horizon/next> unlabeled - Within same horizon: lower issue number first
- Scope, cleanliness, comfort don't matter — priority is absolute
Workflow
- Find issue —
gh issue view $1orgh issue list --state open --limit 20 - Load context — Read
project.mdfor product vision, domain glossary, quality bar - Readiness gate — Run
/issue lint $1:- Score >= 70: proceed
- Score 50-69: run
/issue enrich $1first, then re-lint - Score < 50: flag to user, attempt enrichment, re-lint
- Never skip an issue because it scored low — YOU make it ready
- Spec — Invoke
/specif no## Product Specsection - Design — Invoke
/architectif no## Technical Designsection - Build — Invoke
/build(branching, Codex implementation, commits) - Visual QA — If diff touches frontend files (
app/,components/,*.css), run/visual-qa --fix. Fix P0/P1 before proceeding. - Refine —
/refactor,/update-docs, thenousterhoutagent for module depth review - Ship —
/prwithCloses #N(must satisfy all PR Body Requirements from/prskill) - Retro — Append implementation signals to
.groom/retro.md:/retro append --issue $1 --predicted {effort_label} --actual {actual_effort} \ --scope "{scope_changes}" --blocker "{blockers}" --pattern "{insight}"
Parallel Refinement (Agent Teams)
After /build completes, parallelize the refinement phase:
| Teammate | Task |
|---|---|
| Simplifier | Run code-simplifier agent, commit |
| Depth reviewer | Run ousterhout agent, commit |
| Doc updater | Run /update-docs, commit |
Lead sequences commits after all teammates finish. Then /pr.
Use when: substantial feature with multiple refinement needs. Don't use when: small fix where sequential is fast enough.
Stopping Conditions
Stop only if: issue explicitly blocked, build fails after multiple attempts, requires external action.
NOT stopping conditions: lacks description, seems big, unclear approach.
Output
Report: issue worked, spec status, design status, commits made, PR URL.
