From jlindley-skills
Full session of documentation cleanup, archiving, and backlog mining
How this skill is triggered — by the user, by Claude, or both
Slash command
/jlindley-skills:doc-cleanupThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Documentation reorganization that extracts value before deletion.
Documentation reorganization that extracts value before deletion.
Perform comprehensive documentation cleanup:
docs/architecture/history/This is a dedicated session for thorough doc cleanup, not a quick end-of-session task (use /wrap for that).
Scan documentation directories:
# Common locations
docs/plans/
docs/architecture/
docs/reviews/
docs/design/
[project-specific locations]
Categorize files:
Propose strategy:
## Cleanup Strategy
### KEEP (Archive to docs/architecture/history/)
- [List design docs with rationale]
- Total: X files
### DELETE (Git history preserves value)
- [List execution artifacts]
- Total: Y files
### REVIEW FOR BACKLOG
- [List files to mine]
- Estimated items: Z
**Proceed with this strategy?**
For each file marked for review:
Read the file
Extract potential backlog items from:
Present items ONE AT A TIME:
## Item X of Y: [Title]
**Source:** [filename:section]
**Context:** [Why mentioned, any supporting data]
**Current state:** [Already implemented? Duplicate? Still relevant?]
**Proposed backlog item:**
- Priority: [High/Medium/Low with rationale]
- Problem: [2-3 sentences]
- Related: [Links to source]
**Decision:** Add / Modify / Discard / Already exists as BX?
For "Add" decisions:
backlog-management skill for creationissue --new-idissue --listTrack decisions:
Archive design docs:
mkdir -p docs/architecture/history
git mv [design-doc] docs/architecture/history/
Delete execution artifacts:
rm [execution-reports]
rm [execution-logs]
rm [implementation-plans]
Create archive README if needed:
docs/architecture/history/CLAUDE.md explaining:
Verify cleanup:
ls docs/plans/ # Should be empty or minimal
ls docs/architecture/history/ # Should have design docs
Stage only doc changes:
git add docs/architecture/
git add docs/backlog/
git add -u docs/plans/
# DO NOT stage other working changes
Commit with summary:
docs: Clean up [directory] and archive design docs
- Archive X design documents to docs/architecture/history/
- Delete Y execution artifacts (logs, reports, plans)
- Create BZ, BZ+1, BZ+2 backlog items from mining
- [Any other relevant notes]
# Documentation Reorganization Complete
## Archives Created
- Moved to docs/architecture/history/:
- [filename]: [Why preserved]
- Total: X files
## Files Deleted
- Deleted Y execution artifacts (Z KB)
- Git history preserves them
## Backlog Items Created
- B7: [Title] (Priority) - [Source]
- B8: [Title] (Priority) - [Source]
- Total: N items
## Backlog Items Discarded
- [Title]: [Reason]
- Total: M items
## Repository State
- docs/plans/: [Empty / X files remaining]
- docs/architecture/history/: X design docs preserved
- Git: Clean commit, all changes staged
## Recommendations
1. [Any follow-up actions]
2. [Suggested cleanup for other directories]
# Interactive full cleanup
/doc-cleanup
# Focus on specific directory
/doc-cleanup docs/plans/
# Quick mode (minimal interaction)
/doc-cleanup --quick # Auto-discard "nice to have" items
backlog-management - For creating properly formatted backlog itemsissue --new-id - Generate next B-number for new itemsissue --list - Check existing backlog for duplicatesissue B6 - Display existing issues during duplicate checking/wrap - For lighter end-of-session cleanup (reference if user wants quick version)/doc-cleanupnpx claudepluginhub jlindley/jlindley-marketplace --plugin jlindley-skillsCleans up stale documentation and plan debris left by agentic coding work. Deletes obsolete docs, converts future work into issue trackers, and preserves human-facing guides.
Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.