| name | sweep-issues |
| description | Triages open GitHub issues. Closes finished meta parents by default; --deep adds human-gated tier-2 triage. |
| user-invocable | true |
| model | sonnet |
Sweeps the open-issue backlog.
- tier 1 — meta parents whose sub-issues are all closed. Closed on every run.
- tier 2 — issues whose referenced
tests/*.sh paths no longer exist. Listed on every run; closed only under --deep, one at a time with the user's approval.
The user types at most --deep and --dry-run. Passes 2 and 3 are this skill's own calls (SI-5, SI-7) — the user never supplies a TSV path.
Procedure
Read rules/github-issues.md before SI-1 — on-demand-only, never auto-injected; it owns the close paths, the status:migrated / status:cancelled labels, and meta-parent handling.
SI-1. Run bash "$AGENTS_CONFIG_DIR/bin/sweep-issues.sh" forwarding the user's flags verbatim (pass 1).
SI-2. Print stdout verbatim. Do not summarize or filter.
SI-3. Stop here when the output carries no <<<TIER2-GATE-SI3 block.
SI-4. With the block: use AskUserQuestion to separate false positives (artifact not built yet) from real staleness.
Write the survivors to ${WORKFLOW_PLANS_DIR:-$HOME/.workflow-plans}/<session-id>-sweep-issues-survivors.tsv.
Columns: / / . Copy columns 1-2 from the gate template rows.
∈ | | | | .
SI-5. Re-run with (pass 2) and print every line verbatim.
SI-6. Present the candidates plus their evidence in one batched .
Write only the approved rows to .
Columns: / / / . is the surviving issue for , else .
SI-7. Emit , re-run with (pass 3), then emit .
Report every line verbatim.