Install
openclaw skills install @bovinphang/fec-refactoringUse 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 migration
openclaw skills install @bovinphang/fec-refactoringRestructure live frontend code in small, evidence-backed steps while preserving the behavior users, callers, tests, routes, and integrations can observe.
Every execution follows these rules:
Pure refactoring uses GREEN → REFACTOR → GREEN. Do not manufacture a failing behavioral test merely to make a structural change look like feature TDD.
| Risk | Typical scope | Default action |
|---|---|---|
SAFE | Local/private code, stable contracts, easy rollback | Execute with step-level verification |
CAUTION | Cross-module movement, shared state, imports, hooks/composables, lifecycle | Execute only with adequate safety evidence |
DANGER | Public API, routes, persistence, network contracts, auth, SSR/hydration, broad state or inheritance redesign | Plan and stop for explicit approval unless already authorized |
Risk is contextual. A technique name alone never proves that a change is safe.
Before each executable step record:
Expected files: N
Expected functions/components: N
Expected public API changes: 0
Expected behavior changes: 0
If the actual diff materially exceeds that budget, stop and reassess instead of silently expanding into redesign.
SAFE without specific evidence.A small-step refactoring plan or implementation with explicit evidence, risk, Diff Budget, per-step verification, rollback history when applicable, and a final PASS/PARTIAL/NOT PROVEN behavior-preservation verdict.