From tidyup
Use when you need to identify cleanup candidates like dead code, duplication, or staleness before making changes
How this skill is triggered — by the user, by Claude, or both
Slash command
/tidyup:assessingThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Read-only analysis of codebase for cleanup candidates. Never modify files during assessment.
Read-only analysis of codebase for cleanup candidates. Never modify files during assessment.
$ARGUMENTS = scope (file path, directory path, or "project").
If empty, ask via AskUserQuestion:
| Input | Scope |
|---|---|
| File path | Single file + cross-references |
| Directory path | All files in directory recursively |
| "project" | Repository root, all tracked files |
| "CLAUDE.md files only" | All CLAUDE.md files in repo |
Identify the repository root via git rev-parse --show-toplevel.
Run dead code detection, duplication scan, and staleness check across all files in scope.
Full detection methods, criteria, and report formats: references/detection-methods.md
Only if scope includes CLAUDE.md files or scope is "project".
For each CLAUDE.md file found:
wc -l CLAUDE.md
| Lines | Status |
|---|---|
| Under 100 | Lean |
| 100-200 | OK |
| Over 200 | Candidate for splitting |
Check for redundancy:
Rank all candidates by impact:
| Severity | Meaning |
|---|---|
| Severe (two filled diamonds) | Dead code actively confusing or blocking development |
| Major (one filled diamond) | Significant duplication or stale documentation |
| Minor (one empty diamond) | Small unused imports, old TODOs |
Present the full report:
## Assessment: {SCOPE}
### Dead Code ({count} items)
| Severity | File:Line | Type | Description |
|----------|-----------|------|-------------|
| ... | ... | ... | ... |
### Duplication ({count} items)
| Severity | Location A | Location B | Description |
|----------|------------|------------|-------------|
| ... | ... | ... | ... |
### Staleness ({count} items)
| Severity | File | Last Modified | Description |
|----------|------|---------------|-------------|
| ... | ... | ... | ... |
### Context Budget
| File | Lines | Status |
|------|-------|--------|
| ... | ... | ... |
### Summary
- Total candidates: {N}
- Critical: {N} | Major: {N} | Minor: {N}
- Recommended action: /tidyup:cleanup
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.
npx claudepluginhub jugrajsingh/skillgarden --plugin tidyup