implement-queuelisted
Install: claude install-skill mattbutlerengineering/mattbutlerengineering
# Implement Queue
Work through the `ready` issue backlog: parallel implementation, serial merging.
**Priority principle: Security > CI fixes > Features > Audit findings.**
**Quality principle: every issue goes through the full implement-issue pipeline (TDD, gates, review) inside its worker. No shortcuts.**
```
Phase 0: Pre-flight (main green? open PRs?)
Phase 1: Claim batch (≤3 independent ready issues)
Phase 2: Implement in parallel worktree subagents → PRs
Phase 3: Serial merge train (oldest green PR first)
Phase 4: Loop or stop
```
## Phase 0: Pre-flight
**Main must be green** before any new work (green-main policy):
```bash
gh run list --branch main --limit 5 --json status,conclusion,name,databaseId \
| jq '[.[] | select(.conclusion == "failure")]'
```
If main is red: fixing it IS the iteration. Create/pick up a `ci-fix` issue, fix, and skip to Phase 3.
**Open PRs come before new issues.** Unfinished PRs are higher-value than fresh work:
```bash
gh pr list --state open --json number,title,headRefName,statusCheckRollup,mergeStateStatus
```
- CI green → feed into the Phase 3 merge train now.
- CI pending → note PR number; merge train will pick it up.
- CI failed → fix the failure (or label the linked issue `agent-failed` if unfixable this iteration).
Only proceed to Phase 1 once no open PR is in a failed state.
## Phase 1: Claim Batch
```bash
gh issue list --label "ready" --state open --json number,title,body,labels --limit 20
```
**Sort:** 1) security (`fix