fec-doc-sync
Sync README, docs, environment variables, scripts, API/routing/component descriptions and deployment instructions from code and project sources of truth.
Front-end problem diagnosis and repair: covering build failures, runtime errors, UI exceptions, and interface problems, using a unified diagnostic framework to classify problems by type.
> /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.
/fec-debugContext preview
What this command does when you run it.
Front-end problem diagnosis and repair: covering build failures, runtime errors, UI exceptions, and interface problems, using a unified diagnostic framework to classify problems by type.
name: fec-debug description: Front-end problem diagnosis and repair: covering build failures, runtime errors, UI exceptions, and interface problems, using a unified diagnostic framework to classify problems by type.
Press `fec-debug-framework` to perform front-end problem diagnosis and repair. First classify the problem type (build/runtime/ui/api), and then enter the corresponding diagnosis module to perform the 5-step method (classification → collection → hypothesis → verification → repair). Complex or cross-type issues can be delegated to the **`fec-debugger`** subagent.
| Type | Typical Scenario | | ------- | ----------------------------------------------- | | build | lint/type-check/test/build/CI failed | | runtime | JS exception, white screen, component rendering error, routing exception, state loss | | ui | style misalignment, abnormal interaction, animation lag, responsiveness issues | | api | Request failure, timeout, data inconsistency, CORS, cache issues |
1. Read the problems described by users and classify the problem types according to `fec-debug-framework` Step 1. 2. Enter the corresponding diagnostic module and perform Step 2 to collect evidence. 3. Propose hypotheses based on evidence (Step 3) and verify them one by one (Step 4). 4. After confirming the root cause, perform minimal repair (Step 5) and run the affected verification command. 5. Output the diagnostic report to `reports/debug-YYYY-MM-DD-HHmmss.md`.
##Strong constraints
frontend-craft is a universal frontend plugin that brings the same opinionated engineering standards to all 15 AI coding assistants.
Repo: bovinphang/frontend-craft
Sync README, docs, environment variables, scripts, API/routing/component descriptions and deployment instructions from code and project sources of truth.
Initialize frontend-craft project template, rules or downgrade instructions according to the current AI runtime.
Unified front-end planning entrance - implementation/architecture plan or testing strategy. The implementation path is taken by default; when the user clearly…
Identify and clean up front-end dead code, unused exports, outdated components, styles and dependencies under validation protection.
Build an ordered behavior-preserving frontend refactoring plan from evidence without editing business code.
Execute controlled behavior-preserving frontend refactoring with small steps, verification, rollback, and proof reporting.