Skip to content
Development
Skill

/fec-refactoring

Use when restructuring existing frontend code while preserving observable behavior, including responsibility extraction, module movement, conditional simplification, API cleanup, or data organization. Do not use for new feature behavior, behavior-changing bug fixes, dependency

From plugin
frontend-craft
2256 skills14 agents11 commands5 hooks
+1

Claude Code

$ npx -y skills add bovinphang/frontend-craft --skill fec-refactoring --agent claude-code

SKILL.md

fec-refactoring.SKILL.md
name: fec-refactoring
description: Use when restructuring existing frontend code while preserving observable behavior, including responsibility extraction, module movement, conditional simplification, API cleanup, or data organization. Do not use for new feature behavior, behavior-changing bug fixes, dependency or framework migrations, or proven dead-code cleanup.

Frontend behavior-preserving refactoring

Follow the [common refactoring method](references/common/refactoring.md): GREEN → REFACTOR → GREEN. Its shared contract defines Behavior Preservation, Green Baseline First, One Refactoring at a Time, Verify Every Step, Revert Before Repairing, and the Diff Budget.

Frontend observable boundaries

Identify props/emits/slots, hooks/composables, DOM, loading/error/empty states, focus/keyboard behavior, routes/URLs, state ownership and object identity, requests, caches, lifecycles, SSR/hydration, exports and dynamic registration.

Frontend risk and scope

Assess authentication, permissions, routing, storage, SSR/hydration, network contracts and architecture-wide state movement by their actual effects. A technique name does not establish SAFE risk.

Domain references

  • [Domain evidence and observable contracts](references/principles.md)
  • [Frontend validation ladder](references/workflow.md)
  • [When to refactor](references/when-to-refactor.md)
  • [Boundary with behavior changes](references/refactoring-vs-feature-change.md)

Deliver the common method's PASS, PARTIAL or NOT PROVEN verdict, per-step Diff Budget, executed verification and residual risk.

Read more
@bovinphang
Ships withfrontend-craft

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

2256 skills14 agents6 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
22
Star history of bovinphang/frontend-craft on GitHub, a chart by star-history.com

Other skills on frontend-craft.

fec-alchemy

fec-alchemy

Use when absorbing ideas, capabilities, workflows, architecture, quality systems, ecosystem extensions, or engineering practices…

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills11d309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc12d293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react2d252k
@facebook@facebookInstall Skill

Questions about fec-refactoring.

Which coding agents can use fec-refactoring?
fec-refactoring installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.