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>
19 lines
576 B
Markdown
19 lines
576 B
Markdown
---
|
|
name: gsd:cleanup
|
|
description: Archive accumulated phase directories from completed milestones
|
|
---
|
|
<objective>
|
|
Archive phase directories from completed milestones into `.planning/milestones/v{X.Y}-phases/`.
|
|
|
|
Use when `.planning/phases/` has accumulated directories from past milestones.
|
|
</objective>
|
|
|
|
<execution_context>
|
|
@~/.claude/get-shit-done/workflows/cleanup.md
|
|
</execution_context>
|
|
|
|
<process>
|
|
Follow the cleanup workflow at @~/.claude/get-shit-done/workflows/cleanup.md.
|
|
Identify completed milestones, show a dry-run summary, and archive on confirmation.
|
|
</process>
|