Mechanical rename produced by scripts/msd-rename.cjs: gsd/Gsd/GSD -> msd/Msd/MSD across contents and paths, upstream package/repo coordinates -> @golem15/msd-core and golem15com/msd-core. Deep links into upstream history, sibling upstream packages, the GSD-2 import feature, CHANGELOG.md and .changeset/ are kept as-is. Hand edits on top: MSD block-letter banner and logos, LICENSE copyright line, package/plugin identity, regenerated lockfile, install-tree fixtures, derived registries and benchmark baseline; migration checksum baseline re-locked (MSD keeps its own install state, so no install had applied the old sums); sort-order and regex-escaped expectations in tests adjusted.
66 lines
1.9 KiB
Markdown
66 lines
1.9 KiB
Markdown
---
|
|
name: msd:review-backlog
|
|
description: Review and promote backlog items to active milestone
|
|
allowed-tools:
|
|
- Read
|
|
- Write
|
|
- Bash
|
|
- Grep
|
|
- AskUserQuestion
|
|
requires: [phase, review]
|
|
---
|
|
|
|
<objective>
|
|
Review all 999.x backlog items and optionally promote them into the active
|
|
milestone sequence or remove stale entries.
|
|
</objective>
|
|
|
|
<process>
|
|
|
|
1. **List backlog items:**
|
|
```bash
|
|
_BACKLOG=( .planning/phases/999* )
|
|
if [ -e "${_BACKLOG[0]}" ]; then ls -d "${_BACKLOG[@]}"; else echo "No backlog items found"; fi
|
|
```
|
|
|
|
2. **Read ROADMAP.md** and extract all 999.x phase entries:
|
|
```bash
|
|
cat .planning/ROADMAP.md
|
|
```
|
|
Show each backlog item with its description, any accumulated context (CONTEXT.md, RESEARCH.md), and creation date.
|
|
|
|
3. **Present the list to the user** via AskUserQuestion:
|
|
- For each backlog item, show: phase number, description, accumulated artifacts
|
|
- Options per item: **Promote** (move to active), **Keep** (leave in backlog), **Remove** (delete)
|
|
|
|
4. **For items to PROMOTE:**
|
|
- Find the next sequential phase number in the active milestone
|
|
- Rename the directory from `999.x-slug` to `{new_num}-slug`:
|
|
```bash
|
|
NEW_NUM=$(msd-tools query phase.add "${DESCRIPTION}" --raw)
|
|
```
|
|
- Move accumulated artifacts to the new phase directory
|
|
- Update ROADMAP.md: move the entry from `## Backlog` section to the active phase list
|
|
- Remove `(BACKLOG)` marker
|
|
- Add appropriate `**Depends on:**` field
|
|
|
|
5. **For items to REMOVE:**
|
|
- Delete the phase directory
|
|
- Remove the entry from ROADMAP.md `## Backlog` section
|
|
|
|
6. **Commit changes:**
|
|
```bash
|
|
msd-tools query commit "docs: review backlog — promoted N, removed M" --files .planning/ROADMAP.md
|
|
```
|
|
|
|
7. **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}
|
|
```
|
|
|
|
</process>
|