gsd:add-backlog
GitHub将未排期的想法作为待办事项添加到项目路线图,使用999.x编号系统。自动分配序号、更新ROADMAP.md并创建对应的阶段目录,确保状态一致且避免重复检测。
Trigger Scenarios
Install
npx skills add davepoon/buildwithclaude --skill gsd:add-backlog -g -y
SKILL.md
Frontmatter
{
"name": "gsd:add-backlog",
"description": "Add an idea to the backlog parking lot (999.x numbering)",
"allowed-tools": [
"Read",
"Write",
"Bash"
],
"argument-hint": "<description>"
}
-
Read ROADMAP.md to find existing backlog entries:
cat .planning/ROADMAP.md -
Find next backlog number:
NEXT=$(gsd-sdk query phase.next-decimal 999 --raw)If no 999.x phases exist, start at 999.1.
-
Add to ROADMAP.md under a
## Backlogsection. If the section doesn't exist, create it at the end. Write the ROADMAP entry BEFORE creating the directory — this ensures directory existence is always a reliable indicator that the phase is already registered, which prevents false duplicate detection in any hook that checks for existing 999.x directories (#2280):## Backlog ### Phase {NEXT}: {description} (BACKLOG) **Goal:** [Captured for future planning] **Requirements:** TBD **Plans:** 0 plans Plans: - [ ] TBD (promote with /gsd:review-backlog when ready) -
Create the phase directory:
SLUG=$(gsd-sdk query generate-slug "$ARGUMENTS" --raw) mkdir -p ".planning/phases/${NEXT}-${SLUG}" touch ".planning/phases/${NEXT}-${SLUG}/.gitkeep" -
Commit:
gsd-sdk query commit "docs: add backlog item ${NEXT} — ${ARGUMENTS}" .planning/ROADMAP.md ".planning/phases/${NEXT}-${SLUG}/.gitkeep" -
Report:
## 📋 Backlog Item Added Phase {NEXT}: {description} Directory: .planning/phases/{NEXT}-{slug}/ This item lives in the backlog parking lot. Use /gsd:discuss-phase {NEXT} to explore it further. Use /gsd:review-backlog to promote items to active milestone.
Version History
- 502fc01 Current 2026-07-05 15:11


