From tidyup
Use when you have identified cleanup candidates and are ready to safely remove dead code, consolidate duplicates, and archive stale files
npx claudepluginhub jugrajsingh/skillgarden --plugin tidyupThis skill is limited to using the following tools:
Execute codebase cleanup with mandatory safety gates. Zero information loss — archive, never delete.
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.
Execute codebase cleanup with mandatory safety gates. Zero information loss — archive, never delete.
$ARGUMENTS = scope or path to previous assessment output.
If empty, ask via AskUserQuestion:
If no assessment exists:
tidyup:assessing skill to generate oneIf assessment provided:
Group candidates by action type:
| Action | Applies To |
|---|---|
| Remove | Dead code (unused imports, unreferenced functions, commented-out code) |
| Consolidate | Duplicate code blocks |
| Archive | Stale documentation, obsolete files |
Present each candidate via AskUserQuestion with multiSelect: true.
Format each option as: [severity] action: file:line — description
Example options:
[major] Remove: src/utils.py:45 — unreferenced function parse_legacy()[minor] Remove: src/api.py:3 — unused import os[major] Consolidate: src/a.py:20 + src/b.py:30 — duplicate validation logic[minor] Archive: docs/old-api.md — not modified in 80 commitsCRITICAL: Never auto-execute cleanup. Always get explicit user approval for every item.
Remove unused imports, unreferenced functions/classes, and commented-out code. Verify with grep after each removal — revert if references found.
Identify canonical location (prefer more complete, closer to shared/utils, or older). Extract to shared utility, update all call sites.
CRITICAL: Never delete files. Always archive to .archive/ with mirrored directory structure. Update .archive/MANIFEST.md.
Full step-by-step procedures for phases 3-5: references/cleanup-phases.md
Run detected test suite, revert any change that causes failures, and generate cleanup report.
Full verification procedure, test runner detection, and report template: references/verification.md