From tidyup
Use when you need to identify cleanup candidates like dead code, duplication, or staleness before making changes
npx claudepluginhub jugrajsingh/skillgarden --plugin tidyupThis skill is limited to using the following tools:
Read-only analysis of codebase for cleanup candidates. Never modify files during assessment.
Guides Next.js Cache Components and Partial Prerendering (PPR) with cacheComponents enabled. Implements 'use cache', cacheLife(), cacheTag(), revalidateTag(), static/dynamic optimization, and cache debugging.
Guides building MCP servers enabling LLMs to interact with external services via tools. Covers best practices, TypeScript/Node (MCP SDK), Python (FastMCP).
Generates original PNG/PDF visual art via design philosophy manifestos for posters, graphics, and static designs on user request.
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