Perform comprehensive project housekeeping - update roadmap, reconcile issues with implementation reality, organize completed work, and identify drift. This is a workflow skill that coordinates multiple parallel subagents for efficiency. Use when user says something like "run housekeeping", "do your housekeeping" or "clean up project state".
Coordinates parallel agents to reconcile issues, organize files, update roadmaps, and detect documentation drift.
npx claudepluginhub bacchus-labs/wranglerThis skill inherits all available tools. When active, it can use any tool Claude has access to.
references/detailed-guide.mdYou are the housekeeping workflow coordinator. Your job is to ensure the project's documentation and issue tracking accurately reflects reality, organize completed work, and provide a clear snapshot of current state and next steps.
This is a workflow skill - it coordinates multiple subagents in parallel for maximum efficiency.
Why sequential: Need current state understanding before dispatching parallel agents.
Task: Update governance documents to reflect current reality
Approach:
1.1 Refresh Governance Metrics
Use the refreshing-metrics skill (invoke with Skill tool) to update:
.wrangler/issues/README.md - Issue counts and status percentages.wrangler/specifications/README.md - Spec counts and constitutional compliance.wrangler/ROADMAP_NEXT_STEPS.md - Implementation status and overall % complete1.2 Update Roadmap Next Steps
After metrics refresh, manually review and update Next Steps:
.wrangler/ROADMAP_NEXT_STEPS.md1.3 Verify Constitutional Compliance
Check if any specifications lack constitutional alignment:
# Find specs missing constitutional alignment
grep -L "Constitutional Alignment" .wrangler/specifications/*.md | grep -v "_CONSTITUTION\|_ROADMAP\|README"
If found, note for Agent C (Documentation Drift) to flag.
Output:
Why parallel: Five independent tasks with no dependencies - run simultaneously for speed.
Launch five parallel subagents using the Task tool:
Task: Review all open issues and ensure they match implementation reality
Approach:
issues_list with status: ["open", "in_progress"])issues_mark_complete or issues_update to closeissues_update to reflect actual implementationissues_update to mark status appropriatelyOutput: List of actions taken and current state summary
Task: Move completed/closed issues to .wrangler/issues/archived/ directory for archival
Approach:
issues_list with status: ["closed", "cancelled"]).wrangler/issues/archived/ directory exists, create if not.wrangler/issues/ root directory.wrangler/issues/archived/Output: Organization summary with file counts
Task: Identify areas where documentation may not reflect implementation reality, including governance compliance
Approach:
.wrangler/CONSTITUTION.md.wrangler/ROADMAP.mdOutput: List of documentation drift issues with recommendations, including governance compliance issues
Task: Clean up and organize markdown files at project root
Approach:
Output: Organized root directory with action summary
Task: Remove git worktrees whose associated feature PRs have been merged
Approach:
git worktree list --porcelain)git status --porcelain)git log @{upstream}..HEAD)gh pr list --head "$BRANCH" --state all)git worktree remove /path)git branch -d branch-name)git worktree prune)CRITICAL SAFETY RULES:
Output: Worktree cleanup summary with kept/removed counts and reasons
Why sequential: Needs results from all Phase 2 agents.
Task: Compile comprehensive housekeeping report
Approach:
Output: Housekeeping summary report
Execute governance refresh yourself:
refreshing-metrics skill using Skill toolUse five separate Task tool calls in a single message to dispatch parallel agents:
I'm launching five parallel housekeeping agents:
[Use Task tool - Agent A: Open Issues Reconciliation]
[Use Task tool - Agent B: Completed Issues Organization]
[Use Task tool - Agent C: Documentation Drift Detection]
[Use Task tool - Agent D: Root Directory Organization]
[Use Task tool - Agent E: Dangling Worktree Cleanup]
CRITICAL: All five Task tool calls must be in a single response to execute truly in parallel.
Wait for all agents to complete, then compile summary report.
# Housekeeping Report - [Date]
## Summary
Housekeeping workflow completed successfully.
**Duration:** [X] minutes total
- Phase 1 (Governance refresh): [X] minutes
- Phase 2 (Parallel reconciliation): [X] minutes
- Phase 3 (Report generation): [X] minutes
## Governance Refresh
✅ **Metrics Updated**:
- `.wrangler/issues/README.md` - Updated issue counts and status percentages
- `.wrangler/specifications/README.md` - Updated spec counts and constitutional compliance
- `.wrangler/ROADMAP_NEXT_STEPS.md` - Updated implementation status
**Overall Project Completion**: ~[X]% ([+/-]% since last housekeeping)
**Completed since last housekeeping:**
- [Item 1]
- [Item 2]
**Current priorities:**
- [Priority 1]
- [Priority 2]
**Blockers identified:**
- [Blocker 1 if any]
**Constitutional Compliance**:
- Specifications with alignment: [X]/[Y] ([Z]%)
- Specifications needing alignment sections: [count]
## Issue Reconciliation
**Agent A - Open Issues:**
- Issues reviewed: [count]
- Issues closed: [count]
- Issues updated for drift: [count]
- Status: ✅ Complete
**Agent B - Completed Issues Organization:**
- Completed issues found: [count]
- Issues moved to archive: [count]
- Status: ✅ Complete
**Agent C - Documentation Drift:**
- Documentation files reviewed: [count]
- Drift issues found: [count]
- High severity: [count]
- Medium severity: [count]
- Low severity: [count]
- Constitutional compliance gaps: [count]
- Status: ✅ Complete
**Agent D - Root Directory Organization:**
- Files processed: [count]
- Deleted (obsolete): [count]
- Moved to memos/: [count]
- Moved to docs/: [count]
- Moved to devops/docs/: [count]
- Status: ✅ Complete
**Agent E - Dangling Worktree Cleanup:**
- Worktrees checked: [count]
- Worktrees removed (PR merged): [count]
- Worktrees kept: [count]
- Branches deleted: [count]
- Status: ✅ Complete
## Actions Taken
### Issues Closed
- #000XXX - [Issue title] - Reason: [completed/cancelled]
### Issues Updated
- #000XXX - [Issue title] - Change: [what was updated]
### Files Organized
- Moved [X] issues to `issues/archived/`
### Worktrees Cleaned Up
- Removed [X] worktrees (merged PRs)
- Kept [Y] worktrees (active development)
### Documentation Drift Issues
**High Priority:**
- [ ] [Issue 1 description]
**Medium Priority:**
- [ ] [Issue 2 description]
**Low Priority:**
- [ ] [Issue 3 description]
## Recommendations
1. [Recommendation 1]
2. [Recommendation 2]
## Metrics
- Total issues in system: [count]
- Open issues: [count]
- In progress: [count]
- Completed: [count]
- Issue completion rate: [X]%
- Documentation coverage: [assessment]
---
_Housekeeping workflow v1.0 - Generated by wrangler:housekeeping_
User: "Run housekeeping"
Agent Response:
.wrangler/ROADMAP_NEXT_STEPS.md..."User: "We just finished the authentication feature sprint, run housekeeping"
Agent Response:
Track these metrics for workflow optimization:
Efficiency Metrics:
Action Metrics:
For detailed information, see:
references/detailed-guide.md - Complete workflow details, examples, and troubleshooting