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".
This workflow skill coordinates multiple parallel agents to maintain project hygiene. It triggers when you say "run housekeeping" or "clean up project state" to reconcile issues with implementation reality, update roadmap documentation, organize completed work, and identify documentation drift.
/plugin marketplace add samjhecht/wrangler/plugin install wrangler@samjhecht-pluginsThis skill inherits all available tools. When active, it can use any tool Claude has access to.
You 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.
MANDATORY: When using this skill, announce it at the start with:
š§ Using Skill: housekeeping | [brief purpose based on context]
Example:
š§ Using Skill: housekeeping | [Provide context-specific example of what you're doing]
This creates an audit trail showing which skills were applied during the session.
.wrangler/ROADMAP_NEXT_STEPS.md to reflect current realityThis 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 refresh-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: Three independent tasks with no dependencies - run simultaneously for speed.
Launch three 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/completed/ directory for archival
Approach:
issues_list with status: ["closed", "cancelled"]).wrangler/issues/completed/ directory exists, create if not.wrangler/issues/ root directory.wrangler/issues/completed/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
Why sequential: Needs results from all Phase 2 agents.
Task: Compile comprehensive housekeeping report
Approach:
Output: Housekeeping summary report
Execute governance refresh yourself:
refresh-metrics skill using Skill toolUse three separate Task tool calls in a single message to dispatch parallel agents:
I'm launching four 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]
CRITICAL: All four 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
## 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/completed/`
### 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:
Health Metrics:
These metrics help identify:
To run Phase 2 agents in true parallel, you MUST:
Example (correct parallel execution):
I'm launching three parallel agents for Phase 2 housekeeping:
[Task tool call for Agent A]
[Task tool call for Agent B]
[Task tool call for Agent C]
All three agents are now running in parallel...
Example (incorrect - sequential execution):
Launching Agent A...
[Wait for Agent A]
Now launching Agent B...
[Wait for Agent B]
Now launching Agent C...
Each Phase 2 agent operates on independent data:
This ensures no conflicts or race conditions.
Housekeeping is idempotent - running it multiple times is safe:
Future enhancements could add more parallel agents:
Agent D: Dependency Updates
Agent E: Test Coverage Analysis
Agent F: Performance Regression Detection
Agent G: Code Quality Metrics
The workflow framework is designed to scale to arbitrary parallel agents.
Housekeeping is successful when:
ā
Governance metrics refreshed across all documents
ā
Roadmap Next Steps accurately reflects current state and priorities
ā
Constitutional compliance verified and gaps identified
ā
All completed issues are marked as closed
ā
All closed issues are archived in .wrangler/issues/completed/
ā
Issue descriptions match implementation reality
ā
Documentation drift is identified and catalogued (including governance compliance)
ā
Summary report provides actionable insights
ā
Workflow completes in reasonable time (< 5 minutes for typical project)
When to run housekeeping:
Automation potential:
Master defensive Bash programming techniques for production-grade scripts. Use when writing robust shell scripts, CI/CD pipelines, or system utilities requiring fault tolerance and safety.