commands/gsd/review-backlog.md
List backlog items:
ls -d .planning/phases/999* 2>/dev/null || echo "No backlog items found"
Read ROADMAP.md and extract all 999.x phase entries:
cat .planning/ROADMAP.md
Show each backlog item with its description, any accumulated context (CONTEXT.md, RESEARCH.md), and creation date.
Present the list to the user via AskUserQuestion:
For items to PROMOTE:
999.x-slug to {new_num}-slug:
NEW_NUM=$(gsd-sdk query phase.add "${DESCRIPTION}" --raw)
## Backlog section to the active phase list(BACKLOG) marker**Depends on:** fieldFor items to REMOVE:
## Backlog sectionCommit changes:
gsd-sdk query commit "docs: review backlog — promoted N, removed M" --files .planning/ROADMAP.md
Report summary:
## 📋 Backlog Review Complete
Promoted: {list of promoted items with new phase numbers}
Kept: {list of items remaining in backlog}
Removed: {list of deleted items}