commands/gsd/complete-milestone.md
Purpose: Create historical record of shipped version, archive milestone artifacts (roadmap + requirements), and prepare for next milestone. Output: Milestone archived (roadmap + requirements), PROJECT.md evolved, git tagged. </objective>
<execution_context> Load these files NOW (before proceeding):
User input:
Follow complete-milestone.md workflow:
Check for audit:
.planning/v{{version}}-MILESTONE-AUDIT.md/gsd-audit-milestone firstgaps_found: recommend closing the gaps inline
(the audit output already enumerates them — insert closure phases
via /gsd-phase --insert <N> plus the standard
discuss/plan/execute chain) before proceeding.passed: proceed to step 1## Pre-flight Check
{If no v{{version}}-MILESTONE-AUDIT.md:}
⚠ No milestone audit found. Run `/gsd-audit-milestone` first to verify
requirements coverage, cross-phase integration, and E2E flows.
{If audit has gaps:}
⚠ Milestone audit found gaps. The audit output already enumerates the
unsatisfied requirements, cross-phase issues, and broken flows — insert
a closure phase per gap with `/gsd-phase --insert <N>` and run the
standard `/gsd-discuss-phase` → `/gsd-plan-phase` → `/gsd-execute-phase`
chain. Or proceed anyway to accept the gaps as tech debt.
{If audit passed:}
✓ Milestone audit passed. Proceeding with completion.
Verify readiness:
Gather stats:
Extract accomplishments:
Archive milestone:
.planning/milestones/v{{version}}-ROADMAP.mdArchive requirements:
.planning/milestones/v{{version}}-REQUIREMENTS.md.planning/REQUIREMENTS.md (fresh one created for next milestone)Update PROJECT.md:
<details> (if v1.1+)Commit and tag:
chore: archive v{{version}} milestonegit tag -a v{{version}} -m "[milestone summary]"Offer next steps:
/gsd-new-milestone — start next milestone (questioning → research → requirements → roadmap)<success_criteria>
.planning/milestones/v{{version}}-ROADMAP.md.planning/milestones/v{{version}}-REQUIREMENTS.md.planning/REQUIREMENTS.md deleted (fresh for next milestone)<critical_rules>
/gsd-new-milestone which includes requirements definition
</critical_rules>