Skip to content
Development
Command

/fec-debug

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.

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

Command definition

fec-debug.md
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.

Question type quick check

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

Execution steps

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

  • Don't "fix" the problem by turning off rules, removing tests, or reducing type safety
  • Not easily refactoring irrelevant code
  • Don't guess at root cause when evidence is lacking
  • It must be verified after repairing, you cannot just change it for accidents
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 commands on frontend-craft.

fec-doc-sync

fec-doc-sync

Command

Sync README, docs, environment variables, scripts, API/routing/component descriptions and deployment instructions from code and…

fec-init

fec-init

Command

Initialize frontend-craft project template, rules or downgrade instructions according to the current AI runtime.

fec-plan

fec-plan

Command

Unified front-end planning entrance - implementation/architecture plan or testing strategy. The implementation path is taken by…

fec-refactor

fec-refactor

Command

Execute controlled behavior-preserving frontend refactoring with small steps, verification, rollback, and proof reporting.

More commands from other plugins.

build
Auto-invoked

build

Command

Implement tasks incrementally — build, test, verify, commit. Add "auto" to run the whole plan in one approved pass.

@addyosmani@addyosmaniInstall Command