From essentials
Phased maintainability migration that transforms messy repos into product-shaped codebases via file splitting, typed boundaries, tests, feature folders, API consolidation, and a migration audit microsite.
How this skill is triggered — by the user, by Claude, or both
Slash command
/essentials:codebase-rehabThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Use this skill to move a repo from "works but hurts" to a product-shaped cluster of small, typed, tested, maintainable modules while keeping the current product essentially as-is. Treat this as the first maintainability/productization pass, not the broader production-readiness program.
Use this skill to move a repo from "works but hurts" to a product-shaped cluster of small, typed, tested, maintainable modules while keeping the current product essentially as-is. Treat this as the first maintainability/productization pass, not the broader production-readiness program.
This skill is for structural maintainability: code organization, typed boundaries, tests, feature folders, API consolidation, file-size reduction, styling cleanup, and audit evidence.
Do not expand the scope into a full production-readiness initiative. Observability/logging programs, security reviews, compliance, incident response, SLOs, runbooks, secrets posture, penetration testing, and deep reliability engineering belong in separate follow-on skills unless the user explicitly asks to include a small enabling change.
Run a quick non-mutating discovery pass before planning:
If the repo is live or user-facing, default to compatibility-preserving migrations and rollback paths.
For deeper discovery prompts and commands, see analysis-checklist.md.
Produce a plan that can evolve, but is complete enough for another agent to execute:
Use AskUserQuestion only for product tradeoffs that cannot be discovered from the repo.
Before broad edits:
Process the migration methodically:
Use up to the user-approved subagent concurrency. Assign workers to independent surfaces such as tests, CSS, server helpers, frontend feature extraction, type boundaries, and audit tooling. Do not let subagents edit the same hot files concurrently.
For execution rules and worker prompts, see execution-playbook.md.
At each checkpoint:
When the migration is stable, generate a static HTML audit microsite that answers:
Serve the microsite locally and return a clickable localhost or 127.0.0.1 URL.
Use audit-microsite.md for metrics, structure, and validation.
A successful antislop migration has:
npx claudepluginhub nicknisi/claude-plugins --plugin essentialsProvides structured workflow packs for 7 common Claude Code tasks: codebase exploration, bug fixing, safe refactoring, TDD, repo review before merge, CLAUDE.md generation, and migration planning.
Strict whole-codebase maintainability audit checking file sprawl, thin wrappers, leaked logic, and dependency freshness. Pushes structural simplification and code removal.
Audits codebases as a senior advisor, producing prioritized implementation plans for other agents to execute. Read-only — never edits code directly.