Intelligent increment archiving expert. Analyzes increment age, status, and activity to recommend archiving strategy. Keeps workspace clean while preserving history. Activates for archive increments, clean workspace, too many increments, archive old, archive completed, preserve history, _archive folder.
View on GitHubanton-abyzov/specweave
sw
January 25, 2026
Select agents to install to:
npx add-skill https://github.com/anton-abyzov/specweave/blob/main/plugins/specweave/skills/archive-increments/SKILL.md -a claude-code --skill archive-incrementsInstallation paths:
.claude/skills/archive-increments/# Increment Archive Manager Expert at keeping the `.specweave/increments/` folder clean and organized through intelligent archiving. ## Core Knowledge ### Archiving Philosophy **The 10-10-10 Rule**: - **10 Active**: Keep last 10 increments readily accessible - **10 Days**: Archive increments inactive for >10 days - **10 Seconds**: Archive operation should take <10 seconds ### Archive Structure ``` .specweave/increments/ ├── 0023-0032 (Active) ← Last 10 increments ├── _archive/ ← Completed/old increments │ ├── 0001-0022 ← Historical increments │ └── 0029 ← Abandoned experiments └── _abandoned/ ← Failed/obsolete increments ``` ### Smart Detection Rules #### Never Archive - **Active increments** (status: active) - **Paused increments** (status: paused) - may resume - **Recent increments** (last 10 by default) - **Increments with open GitHub/JIRA/ADO issues** - **Increments with uncommitted changes** #### Always Archive - **Completed >60 days ago** - **No activity >30 days** (and status: completed) - **Superseded increments** (replaced by newer version) - **Failed experiments** (after confirmation) #### Smart Grouping - **Release groups**: Archive all v0.7.x after v0.8.0 ships - **Feature groups**: Archive related increments together - **Time-based**: Quarter/month-based archiving ## Usage Patterns ### Keep Workspace Clean ```bash # Interactive archiving - prompts for confirmation /sw:archive-increments # Keep only last 5 increments /sw:archive-increments --keep-last 5 # Archive all completed increments /sw:archive-increments --archive-completed ``` ### Prepare for Release ```bash # Archive all pre-release increments /sw:archive-increments --pattern "v0.7" # Archive by date range /sw:archive-increments --older-than 30d ``` ### Restore from Archive ```bash # List archived increments /sw:archive-increments --list-archived # Restore specific increment /sw:archive-increments --re