npx claudepluginhub cyotee/cyotee-claude-plugins --plugin backlog# Prune Completed Tasks
Move completed task directories to tasks/archive/ and update INDEX.md.
## Instructions
1. **Read tasks/INDEX.md** and identify tasks with "Complete" status.
2. **If no completed tasks:**
3. **For each completed task:**
a. **Move task directory to archive:**
b. **Update INDEX.md:**
- Remove task from "Active Tasks" table
- Add to "Archived Tasks" section (or create if missing)
4. **Commit changes:**
5. **Show what was archived:**
## Archive Structure
After archiving:
## INDEX.md Archive Section
Add to bottom of INDEX.m.../pruneDelete pending instincts older than 30 days that were never promoted. Supports --max-age <days> for custom threshold and --dry-run to preview.
/pruneDeletes pending instincts older than 30 days that were never promoted. Supports --max-age for custom thresholds and --dry-run preview.
/pruneDeep-cleans codebase by pruning dead code, redundancies, inefficiencies, and orphaned assets; trims CLAUDE.md files. Uses parallel agents for analysis, user approval per category, applies changes on new git branch, runs tests for regressions. Optional scope path.
/pruneDelete pending instincts older than 30 days that were never promoted. Supports --max-age <days> for custom threshold and --dry-run to preview.
/pruneUse when auditing docs for staleness, broken links, or bloat. Also use when user says "docs feel stale", "prune docs", or when CLAUDE.md exceeds 120 lines.
Share bugs, ideas, or general feedback.
Move completed task directories to tasks/archive/ and update INDEX.md.
Read tasks/INDEX.md and identify tasks with "Complete" status.
If no completed tasks:
No completed tasks to archive.
Tasks are marked Complete after:
1. Implementation finished (TASK_COMPLETE promise)
2. Code review passed (REVIEW_COMPLETE promise)
3. /backlog:complete merges to main
Use /backlog to see task statuses.
For each completed task:
a. Move task directory to archive:
mv tasks/${PREFIX}-${NNN}-${name}/ tasks/archive/
b. Update INDEX.md:
Commit changes:
git add tasks/
git commit -m "chore: archive completed tasks"
Show what was archived:
═══════════════════════════════════════════════════════════════════
TASKS ARCHIVED
═══════════════════════════════════════════════════════════════════
Archived {N} completed tasks:
| Task | Title | Completed |
|------|-------|-----------|
| {PREFIX}-001 | V3 Mainnet Fork Tests | 2026-01-05 |
| {PREFIX}-002 | Slipstream Utils | 2026-01-07 |
Moved to: tasks/archive/
Remaining active tasks: {PREFIX}-003, {PREFIX}-004, {PREFIX}-005
Committed: chore: archive completed tasks
═══════════════════════════════════════════════════════════════════
After archiving:
tasks/
├── INDEX.md # Active tasks only
├── TEMPLATE.md
├── {PREFIX}-003-active-task/ # Still active
├── {PREFIX}-004-another-task/ # Still active
└── archive/
├── {PREFIX}-001-completed/ # Archived
└── {PREFIX}-002-completed/ # Archived
Add to bottom of INDEX.md:
## Archived Tasks
| ID | Title | Completed | Location |
|----|-------|-----------|----------|
| {PREFIX}-001 | V3 Mainnet Fork Tests | 2026-01-05 | archive/{PREFIX}-001-v3-mainnet-fork-tests/ |
| {PREFIX}-002 | Slipstream Utils | 2026-01-07 | archive/{PREFIX}-002-slipstream-utils/ |
To archive only specific tasks (future enhancement):
/backlog:prune {PREFIX}-001 {PREFIX}-002
Currently archives ALL completed tasks.
/backlog:read with full path to read archived tasks/backlog - See all task statuses/backlog:complete - Mark task as complete/design:from-review - Create new tasks from review findings