Add optional phase archival to milestone completion and a standalone
/gsd:cleanup command for retroactive use. Phase dirs move to
.planning/milestones/v{X.Y}-phases/, reducing phases/ clutter after
multiple milestones.
Core changes:
- getArchivedPhaseDirs() and searchPhaseInDir() helpers in gsd-tools
- findPhaseInternal() searches archives when phase not found in current
- cmdPhasesList() accepts --include-archived flag
- cmdHistoryDigest() scans both current and archived phases
- cmdMilestoneComplete() accepts --archive-phases flag
- Workflow globs replaced with find-phase/phases-list CLI calls
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
576 B
576 B
name, description
| name | description |
|---|---|
| gsd:cleanup | Archive accumulated phase directories from completed milestones |
Use when .planning/phases/ has accumulated directories from past milestones.
<execution_context> @~/.claude/get-shit-done/workflows/cleanup.md </execution_context>
Follow the cleanup workflow at @~/.claude/get-shit-done/workflows/cleanup.md. Identify completed milestones, show a dry-run summary, and archive on confirmation.