fec-debug
Front-end problem diagnosis and repair: covering build failures, runtime errors, UI exceptions, and interface problems, using a unified diagnostic framework to…
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
How it fires
How this command gets triggered: by you, by Claude, or both.
/fec-initContext preview
What this command does when you run it.
Initialize frontend-craft project template, rules or downgrade instructions according to the current AI runtime.
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.
Repo: bovinphang/frontend-craft
Front-end problem diagnosis and repair: covering build failures, runtime errors, UI exceptions, and interface problems, using a unified diagnostic framework to…
Sync README, docs, environment variables, scripts, API/routing/component descriptions and deployment instructions from code and project sources of truth.
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.