Skip to content
Development
Command

/fec-refactor-clean

Identify and clean up front-end dead code, unused exports, outdated components, styles and dependencies under validation protection.

From plugin
frontend-craft
2111 skills14 agents11 commands5 hooks
+1
Install
> /plugin marketplace add bovinphang/frontend-craft
> /plugin install frontend-craft@frontend-craft

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/fec-refactor-clean

Context preview

What this command does when you run it.

Identify and clean up front-end dead code, unused exports, outdated components, styles and dependencies under validation protection.

Command definition

fec-refactor-clean.md
name: fec-refactor-clean
description: Identify and clean up front-end dead code, unused exports, outdated components, styles and dependencies under validation protection.

Press `fec-refactor-clean` to perform a safe clean. Complex cleanup can be delegated to **`fec-refactor-cleaner`**.

Execution steps

1. Establish the current verification baseline. 2. Use existing tools in the warehouse or `rg` to collect unused candidates. 3. Check dynamic references, routing, barrel export, Storybook, test and style entry. 4. Divide the candidates into SAFE, CAUTION, and DANGER. 5. Only clean SAFE items; other items output suggestions and evidence. 6. Rerun the affected verification commands after each batch cleanup.

Output requirements

Save the clean report to `reports/refactor-clean-YYYY-MM-DD-HHmmss.md`.

Ships withfrontend-craft

frontend-craft is a universal frontend plugin that brings the same opinionated engineering standards to all 15 AI coding assistants.

Get the whole plugin

Other commands on frontend-craft.