Skip to content
Development
Command

/fec-refactor-plan

Build an ordered behavior-preserving frontend refactoring plan from evidence without editing business code.

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-plan

Context preview

What this command does when you run it.

Build an ordered behavior-preserving frontend refactoring plan from evidence without editing business code.

Command definition

fec-refactor-plan.md
name: fec-refactor-plan
description: Build an ordered behavior-preserving frontend refactoring plan from evidence without editing business code.

This command is **PLAN ONLY**. Do not edit business code.

Workflow

1. Validate current project facts and any supplied smell diagnosis. 2. Record the observable behavior contract and available verification baseline. 3. Select the smallest candidate technique whose preconditions fit each diagnosed cause. 4. Order only necessary prerequisites and keep each step independently verifiable. 5. Classify every step `SAFE`, `CAUTION`, or `DANGER`. 6. For every step include: target, technique, intent, dependency/order reason, preconditions, risk, expected files/functions, expected observable behavior change (`NONE`), verification command/method, and rollback boundary. 7. Include a Diff Budget and stop conditions. 8. Save the result to `reports/refactoring/plan-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.