fec-debug
CommandFront-end problem diagnosis and repair: covering build failures, runtime errors, UI exceptions, and interface problems, using a…
Initialize frontend-craft project template, rules or downgrade instructions according to the current AI runtime.
> /plugin marketplace add bovinphang/frontend-craft> /plugin install frontend-craft@frontend-craft
name: fec-init description: Initialize frontend-craft project template, rules or downgrade instructions according to the current AI runtime.
Copy the project template provided by frontend-craft to the configuration directory corresponding to the runtime of the current project. Priority will be given to judging the runtime based on the existing configuration in the current directory; if it cannot be judged, it will be selected based on the tool the user is using.
1. Detect runtime:
2. Initialize by runtime, do not overwrite existing files without confirmation:
3. Under Claude runtime, copy the following template files from the plug-in's `${FRONTEND_CRAFT_ROOT}/templates/claude/` and `${FRONTEND_CRAFT_ROOT}/templates/shared/rules/` to `.claude/` in the project root directory:
4. Don’t just output a reminder after copying is complete. First check `package.json`, common framework configuration files and `.github/workflows/` in the project root directory, infer applicable rules, and then provide post-initialization configuration options to the user:
frontend-craft is a universal frontend plugin that brings the same opinionated engineering standards to all 15 AI coding assistants.
Front-end problem diagnosis and repair: covering build failures, runtime errors, UI exceptions, and interface problems, using a…
Sync README, docs, environment variables, scripts, API/routing/component descriptions and deployment instructions from code and…
Unified front-end planning entrance - implementation/architecture plan or testing strategy. The implementation path is taken by…
Identify and clean up front-end dead code, unused exports, outdated components, styles and dependencies under validation…
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.
Implement tasks incrementally — build, test, verify, commit. Add "auto" to run the whole plan in one approved pass.