From frontend-craft
Safely removes dead frontend code, unused exports, stale components, obsolete routes, and unused dependencies using knip, depcheck, ts-prune, ESLint, or manual review. Validates each batch to avoid breaking behavior.
How this skill is triggered — by the user, by Claude, or both
Slash command
/frontend-craft:fec-refactor-cleanThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Identify and clean up unused front-end code under validation protection, reducing technical debt while avoiding accidentally deleting dynamic references, routing entries, configuration files, and runtime conventions.
Identify and clean up unused front-end code under validation protection, reducing technical debt while avoiding accidentally deleting dynamic references, routing entries, configuration files, and runtime conventions.
rg to check references, exports, routes, registration points and document entries.When writing a cleanup report, load references/report-template.md.
reports/refactor-clean-YYYY-MM-DD-HHmmss.md.npx claudepluginhub bovinphang/frontend-craftSafely removes dead imports, unused files, and broken references in Next.js/React/Node.js fullstack apps. Run before launch or handoff to convert AI-generated code into a maintainable production baseline.
Identifies unused imports, variables, functions, unreachable code, dependencies, and CSS for safe removal. Generates reports categorizing safe-to-remove, potentially unused, and review-required items.
Detects unused files, dependencies, exports, and types in JavaScript/TypeScript projects using Knip. Plugins support React, Next.js, Vite, Vitest, Jest for codebase cleanup, bundle optimization, CI hygiene.