gsd-cleanup

Archives completed milestone phase folders from .planning/phases to .planning/milestones after dry-run preview and user confirmation.

Updated May 15, 2026
One-click install
npx skills add https://github.com/Pear-Commerce/pear-ai-skills --skill gsd-cleanup-pear-commerce
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gsd-cleanup
Source: https://github.com/Pear-Commerce/pear-ai-skills/tree/main/skills/gsd-cleanup
Command: npx skills add https://github.com/Pear-Commerce/pear-ai-skills --skill gsd-cleanup-pear-commerce

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

When using the GSD (Get Shit Done) project workflow, the .planning/phases/ directory accumulates folders from completed milestones over time, creating clutter that makes it hard to locate active phase work and maintain a clean project structure. This Skill automates the process of sorting and archiving these old phase directories to eliminate that clutter.

Core Features & Use Cases

  • Automatic Completed Milestone Detection: Scans your project's .planning/phases/ directory to identify phase folders belonging to finished milestones without manual sorting.
  • Safe Dry-Run Preview: Generates a full summary of all directories that will be archived before any changes are made, so you can verify the action is correct.
  • Confirmed Archiving: Moves identified phase directories to the proper .planning/milestones/v{X.Y}-phases/ storage path only after you give explicit approval.
  • Use Case: After wrapping up a 6-month product development milestone with 18 completed phases, use this Skill to instantly move all those old phase folders out of your active workspace instead of manually sorting dozens of directories.

Quick Start

Invoke the gsd-cleanup skill to archive all accumulated phase directories from completed milestones in your project's planning folder.

Frequently Asked Questions about gsd-cleanup

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I archive completed milestone phase directories in a GSD project planning workspace?

To archive completed milestone phase directories, scan the `.planning/phases/` path and move outdated folders to the `.planning/milestones/` archive. This eliminates clutter from finished milestones and keeps active project planning workspaces tidy.

Can I preview phase directory archival before moving files in the GSD workflow?

Yes, you can preview phase directory archival using a dry-run summary. The GSD cleanup workflow generates a full preview of all completed milestone directories scheduled for archiving, requiring your explicit confirmation before moving any files to the milestone storage path.

What is the best way to clean up old phase folders from finished milestones?

The best way to clean up old phase folders is automating the sorting process. Scanning `.planning/phases/` detects folders belonging to finished milestones and moves them to `.planning/milestones/v{X.Y}-phases/` storage, instantly clearing dozens of accumulated directories without manual sorting.

Does the GSD cleanup workflow require manual file sorting for phase archival?

No, the GSD cleanup workflow does not require manual file sorting. It automatically detects completed milestone phase folders within the `.planning/phases/` directory and batches them for archival, requiring only your final approval to execute the directory moves.

When should I run a planning directory cleanup to archive milestone phases?

You should run a planning directory cleanup when accumulated phase folders from completed milestones create clutter. After wrapping up a large product development milestone with numerous finished phases, archiving them keeps your active workspace navigable and maintains a clean project structure.