@bovinphang/frontend-craft 2.7.0 → 2.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (502) hide show
  1. package/.claude-plugin/marketplace.json +3 -3
  2. package/.claude-plugin/plugin.json +1 -1
  3. package/CHANGELOG.md +378 -305
  4. package/CHANGELOG.zh-CN.md +377 -304
  5. package/CONTRIBUTING.md +371 -361
  6. package/CONTRIBUTING.zh-CN.md +371 -361
  7. package/README.md +545 -493
  8. package/README.openclaw.md +359 -264
  9. package/README.openclaw.zh-CN.md +359 -264
  10. package/README.zh-CN.md +545 -493
  11. package/agents/fec-architect.md +70 -70
  12. package/agents/fec-code-reviewer.md +103 -82
  13. package/agents/fec-debugger.md +20 -20
  14. package/agents/fec-design-token-mapper.md +36 -36
  15. package/agents/fec-doc-updater.md +13 -13
  16. package/agents/fec-e2e-runner.md +45 -45
  17. package/agents/fec-figma-implementer.md +59 -59
  18. package/agents/fec-performance-optimizer.md +128 -128
  19. package/agents/fec-refactor-cleaner.md +17 -14
  20. package/agents/fec-refactoring-expert.md +81 -0
  21. package/agents/fec-security-reviewer.md +82 -67
  22. package/agents/fec-test-planner.md +27 -27
  23. package/agents/fec-typescript-reviewer.md +103 -87
  24. package/agents/fec-ui-checker.md +64 -64
  25. package/commands/fec-debug.md +19 -19
  26. package/commands/fec-doc-sync.md +11 -11
  27. package/commands/fec-init.md +37 -38
  28. package/commands/fec-plan.md +58 -58
  29. package/commands/fec-refactor-clean.md +11 -11
  30. package/commands/fec-refactor-plan.md +17 -0
  31. package/commands/fec-refactor.md +18 -0
  32. package/commands/fec-review.md +71 -41
  33. package/commands/fec-scaffold.md +41 -41
  34. package/commands/fec-smell.md +17 -0
  35. package/commands/fec-tdd.md +17 -13
  36. package/dist/bin/frontend-craft.js +190 -36
  37. package/dist/hooks/fec-run-tests.js +5 -1
  38. package/dist/hooks/fec-session-start.js +1 -1
  39. package/docs/example-prompts.md +157 -137
  40. package/docs/ja-JP/README.md +534 -493
  41. package/docs/ko-KR/README.md +534 -493
  42. package/docs/project-structure.md +151 -123
  43. package/docs/refactoring/README.md +50 -0
  44. package/docs/refactoring/catalog.md +105 -0
  45. package/docs/refactoring/smell-refactoring-matrix.md +41 -0
  46. package/docs/review-and-diagram-workflows.md +39 -0
  47. package/docs/runtimes/antigravity.md +18 -10
  48. package/docs/runtimes/augment.md +18 -10
  49. package/docs/runtimes/claude.md +191 -177
  50. package/docs/runtimes/claude.zh-CN.md +189 -175
  51. package/docs/runtimes/cline.md +18 -10
  52. package/docs/runtimes/codebuddy.md +18 -10
  53. package/docs/runtimes/codex.md +18 -10
  54. package/docs/runtimes/compatibility.md +27 -0
  55. package/docs/runtimes/copilot.md +18 -10
  56. package/docs/runtimes/cursor.md +18 -10
  57. package/docs/runtimes/gemini.md +18 -10
  58. package/docs/runtimes/kilo.md +18 -10
  59. package/docs/runtimes/openclaw.md +18 -10
  60. package/docs/runtimes/opencode.md +18 -10
  61. package/docs/runtimes/qoder.md +18 -19
  62. package/docs/runtimes/trae.md +18 -10
  63. package/docs/runtimes/windsurf.md +18 -10
  64. package/docs/superpowers/plans/2026-09-26-content-integrity.md +145 -0
  65. package/docs/superpowers/plans/2026-09-26-diagram-quality.md +170 -0
  66. package/docs/superpowers/specs/2026-09-26-diagram-quality-design.md +77 -0
  67. package/docs/superpowers/specs/2026-09-26-project-optimization-design.md +95 -0
  68. package/docs/zh-CN/example-prompts.md +157 -137
  69. package/docs/zh-CN/project-structure.md +148 -123
  70. package/docs/zh-CN/review-and-diagram-workflows.md +39 -0
  71. package/docs/zh-TW/README.md +534 -493
  72. package/localized/zh-CN/agents/fec-architect.md +125 -0
  73. package/localized/zh-CN/agents/fec-code-reviewer.md +171 -0
  74. package/localized/zh-CN/agents/fec-debugger.md +44 -0
  75. package/localized/zh-CN/agents/fec-design-token-mapper.md +75 -0
  76. package/localized/zh-CN/agents/fec-doc-updater.md +30 -0
  77. package/localized/zh-CN/agents/fec-e2e-runner.md +107 -0
  78. package/localized/zh-CN/agents/fec-figma-implementer.md +104 -0
  79. package/localized/zh-CN/agents/fec-performance-optimizer.md +293 -0
  80. package/localized/zh-CN/agents/fec-refactor-cleaner.md +35 -0
  81. package/localized/zh-CN/agents/fec-refactoring-expert.md +53 -0
  82. package/localized/zh-CN/agents/fec-security-reviewer.md +132 -0
  83. package/localized/zh-CN/agents/fec-test-planner.md +50 -0
  84. package/localized/zh-CN/agents/fec-typescript-reviewer.md +158 -0
  85. package/localized/zh-CN/agents/fec-ui-checker.md +120 -0
  86. package/localized/zh-CN/commands/fec-debug.md +30 -0
  87. package/localized/zh-CN/commands/fec-doc-sync.md +19 -0
  88. package/localized/zh-CN/commands/fec-init.md +70 -0
  89. package/localized/zh-CN/commands/fec-plan.md +94 -0
  90. package/localized/zh-CN/commands/fec-refactor-clean.md +19 -0
  91. package/localized/zh-CN/commands/fec-refactor-plan.md +15 -0
  92. package/localized/zh-CN/commands/fec-refactor.md +14 -0
  93. package/localized/zh-CN/commands/fec-review.md +97 -0
  94. package/localized/zh-CN/commands/fec-scaffold.md +205 -0
  95. package/localized/zh-CN/commands/fec-smell.md +13 -0
  96. package/localized/zh-CN/commands/fec-tdd.md +25 -0
  97. package/localized/zh-CN/skills/TEMPLATE.md +155 -0
  98. package/localized/zh-CN/skills/eval_queries.json +1257 -0
  99. package/localized/zh-CN/skills/fec-accessibility-check/SKILL.md +39 -0
  100. package/localized/zh-CN/skills/fec-accessibility-check/references/report-template.md +23 -0
  101. package/localized/zh-CN/skills/fec-accessibility-check/references/screen-reader-testing.md +33 -0
  102. package/localized/zh-CN/skills/fec-alchemy/SKILL.md +74 -0
  103. package/localized/zh-CN/skills/fec-alchemy/assets/absorption-plan-template.md +47 -0
  104. package/localized/zh-CN/skills/fec-alchemy/assets/intake-template.md +55 -0
  105. package/localized/zh-CN/skills/fec-alchemy/assets/review-checklist.md +31 -0
  106. package/localized/zh-CN/skills/fec-alchemy/references/methodology.md +94 -0
  107. package/localized/zh-CN/skills/fec-alchemy/references/originality-and-licensing.md +57 -0
  108. package/localized/zh-CN/skills/fec-api-integration/SKILL.md +78 -0
  109. package/localized/zh-CN/skills/fec-api-integration/references/integration-patterns.md +80 -0
  110. package/localized/zh-CN/skills/fec-backend-requirements-handoff/SKILL.md +45 -0
  111. package/localized/zh-CN/skills/fec-browser-storage/SKILL.md +34 -0
  112. package/localized/zh-CN/skills/fec-browser-storage/references/storage-patterns.md +65 -0
  113. package/localized/zh-CN/skills/fec-canvas-threejs/SKILL.md +66 -0
  114. package/localized/zh-CN/skills/fec-canvas-threejs/references/rendering-patterns.md +67 -0
  115. package/localized/zh-CN/skills/fec-canvas-threejs/references/shader-webgl-patterns.md +67 -0
  116. package/localized/zh-CN/skills/fec-code-review/SKILL.md +162 -0
  117. package/localized/zh-CN/skills/fec-code-review/references/report-template.md +39 -0
  118. package/localized/zh-CN/skills/fec-code-smells/SKILL.md +33 -0
  119. package/localized/zh-CN/skills/fec-code-smells/references/detection-guide.md +25 -0
  120. package/localized/zh-CN/skills/fec-code-smells/references/smell-catalog.md +817 -0
  121. package/localized/zh-CN/skills/fec-code-smells/references/smell-to-refactoring-map.md +265 -0
  122. package/localized/zh-CN/skills/fec-component-testing/SKILL.md +119 -0
  123. package/localized/zh-CN/skills/fec-data-fetching/SKILL.md +62 -0
  124. package/localized/zh-CN/skills/fec-data-fetching/references/query-patterns.md +103 -0
  125. package/localized/zh-CN/skills/fec-debug-framework/SKILL.md +157 -0
  126. package/localized/zh-CN/skills/fec-debug-framework/references/report-template.md +58 -0
  127. package/localized/zh-CN/skills/fec-dependency-upgrade/SKILL.md +34 -0
  128. package/localized/zh-CN/skills/fec-dependency-upgrade/references/dependency-upgrade-workflow.md +56 -0
  129. package/localized/zh-CN/skills/fec-doc-sync/SKILL.md +39 -0
  130. package/localized/zh-CN/skills/fec-drawio-studio/SKILL.md +73 -0
  131. package/localized/zh-CN/skills/fec-drawio-studio/data/THIRD_PARTY_NOTICES.md +10 -0
  132. package/localized/zh-CN/skills/fec-drawio-studio/data/brand-icons.json +878 -0
  133. package/localized/zh-CN/skills/fec-drawio-studio/data/shape-index.json +83570 -0
  134. package/localized/zh-CN/skills/fec-drawio-studio/references/data-residency.md +27 -0
  135. package/localized/zh-CN/skills/fec-drawio-studio/references/diagram-patterns.md +60 -0
  136. package/localized/zh-CN/skills/fec-drawio-studio/references/flowchart-quality.md +49 -0
  137. package/localized/zh-CN/skills/fec-drawio-studio/references/layout-and-export.md +72 -0
  138. package/localized/zh-CN/skills/fec-drawio-studio/references/troubleshooting.md +29 -0
  139. package/localized/zh-CN/skills/fec-drawio-studio/references/xml-and-mermaid.md +58 -0
  140. package/localized/zh-CN/skills/fec-drawio-studio/scripts/brand-symbols.mjs +99 -0
  141. package/localized/zh-CN/skills/fec-drawio-studio/scripts/diagram-lint.mjs +205 -0
  142. package/localized/zh-CN/skills/fec-drawio-studio/scripts/diagram-url.mjs +102 -0
  143. package/localized/zh-CN/skills/fec-drawio-studio/scripts/drawio-export.mjs +134 -0
  144. package/localized/zh-CN/skills/fec-drawio-studio/scripts/layout-graph.mjs +107 -0
  145. package/localized/zh-CN/skills/fec-drawio-studio/scripts/png-embed-fix.mjs +26 -0
  146. package/localized/zh-CN/skills/fec-drawio-studio/scripts/scan-go-packages.mjs +36 -0
  147. package/localized/zh-CN/skills/fec-drawio-studio/scripts/scan-js-modules.mjs +52 -0
  148. package/localized/zh-CN/skills/fec-drawio-studio/scripts/scan-python-classes.mjs +30 -0
  149. package/localized/zh-CN/skills/fec-drawio-studio/scripts/scan-python-modules.mjs +55 -0
  150. package/localized/zh-CN/skills/fec-drawio-studio/scripts/scan-rust-modules.mjs +35 -0
  151. package/localized/zh-CN/skills/fec-drawio-studio/scripts/scan-ts-modules.mjs +7 -0
  152. package/localized/zh-CN/skills/fec-drawio-studio/scripts/shape-query.mjs +121 -0
  153. package/localized/zh-CN/skills/fec-drawio-studio/scripts/studio-core.mjs +139 -0
  154. package/localized/zh-CN/skills/fec-drawio-studio/styles/built-in/corporate.json +49 -0
  155. package/localized/zh-CN/skills/fec-drawio-studio/styles/built-in/default.json +49 -0
  156. package/localized/zh-CN/skills/fec-drawio-studio/styles/built-in/handdrawn.json +49 -0
  157. package/localized/zh-CN/skills/fec-drawio-studio/styles/schema.json +112 -0
  158. package/localized/zh-CN/skills/fec-e2e-testing/SKILL.md +42 -0
  159. package/localized/zh-CN/skills/fec-e2e-testing/references/e2e-ci-reporting.md +62 -0
  160. package/localized/zh-CN/skills/fec-e2e-testing/references/e2e-special-scenarios.md +52 -0
  161. package/localized/zh-CN/skills/fec-e2e-testing/references/e2e-visual-regression.md +60 -0
  162. package/localized/zh-CN/skills/fec-e2e-testing/references/playwright-patterns.md +95 -0
  163. package/localized/zh-CN/skills/fec-form-handling/SKILL.md +76 -0
  164. package/localized/zh-CN/skills/fec-form-handling/references/advanced-form-patterns.md +101 -0
  165. package/localized/zh-CN/skills/fec-image-generation/SKILL.md +110 -0
  166. package/localized/zh-CN/skills/fec-image-generation/assets/interactive-diagram.html +371 -0
  167. package/localized/zh-CN/skills/fec-image-generation/assets/quality-examples/README.md +14 -0
  168. package/localized/zh-CN/skills/fec-image-generation/assets/quality-examples/architecture.json +121 -0
  169. package/localized/zh-CN/skills/fec-image-generation/assets/quality-examples/invalid-explicit.json +41 -0
  170. package/localized/zh-CN/skills/fec-image-generation/assets/quality-examples/sequence.json +53 -0
  171. package/localized/zh-CN/skills/fec-image-generation/assets/quality-examples/sequence.mmd +21 -0
  172. package/localized/zh-CN/skills/fec-image-generation/assets/quality-examples/workflow.json +98 -0
  173. package/localized/zh-CN/skills/fec-image-generation/assets/quality-examples/workflow.mmd +7 -0
  174. package/localized/zh-CN/skills/fec-image-generation/references/artifact-routing.md +80 -0
  175. package/localized/zh-CN/skills/fec-image-generation/references/diagram-workflows.md +81 -0
  176. package/localized/zh-CN/skills/fec-image-generation/references/html-technical-diagrams.md +243 -0
  177. package/localized/zh-CN/skills/fec-image-generation/references/png-qa-autofix.md +37 -0
  178. package/localized/zh-CN/skills/fec-image-generation/scripts/diagram-browser.mjs +90 -0
  179. package/localized/zh-CN/skills/fec-image-generation/scripts/diagram-layout.mjs +176 -0
  180. package/localized/zh-CN/skills/fec-image-generation/scripts/export-diagram.mjs +332 -0
  181. package/localized/zh-CN/skills/fec-image-generation/scripts/interactive-diagram-server.mjs +654 -0
  182. package/localized/zh-CN/skills/fec-image-generation/scripts/mermaid-render.mjs +64 -0
  183. package/localized/zh-CN/skills/fec-image-generation/scripts/png-qa.mjs +462 -0
  184. package/localized/zh-CN/skills/fec-image-generation/scripts/tech-diagram-render.mjs +1537 -0
  185. package/localized/zh-CN/skills/fec-implement-from-design/SKILL.md +129 -0
  186. package/localized/zh-CN/skills/fec-implement-from-design/references/design-plan-template.md +36 -0
  187. package/localized/zh-CN/skills/fec-legacy-to-modern-migration/SKILL.md +46 -0
  188. package/localized/zh-CN/skills/fec-legacy-to-modern-migration/references/migration-execution-checklist.md +110 -0
  189. package/localized/zh-CN/skills/fec-legacy-to-modern-migration/references/migration-report-template.md +41 -0
  190. package/localized/zh-CN/skills/fec-legacy-to-modern-migration/references/migration-strategy-and-mapping.md +48 -0
  191. package/localized/zh-CN/skills/fec-legacy-web-standard/SKILL.md +35 -0
  192. package/localized/zh-CN/skills/fec-legacy-web-standard/references/legacy-patterns.md +85 -0
  193. package/localized/zh-CN/skills/fec-list-virtualization/SKILL.md +34 -0
  194. package/localized/zh-CN/skills/fec-list-virtualization/references/virtualization-patterns.md +80 -0
  195. package/localized/zh-CN/skills/fec-monorepo-project-standard/SKILL.md +142 -0
  196. package/localized/zh-CN/skills/fec-motion-interaction/SKILL.md +73 -0
  197. package/localized/zh-CN/skills/fec-motion-interaction/references/motion-patterns.md +112 -0
  198. package/localized/zh-CN/skills/fec-nextjs-project-standard/SKILL.md +123 -0
  199. package/localized/zh-CN/skills/fec-nuxt-project-standard/SKILL.md +122 -0
  200. package/localized/zh-CN/skills/fec-performance-optimization/SKILL.md +80 -0
  201. package/localized/zh-CN/skills/fec-performance-optimization/references/framework-performance-patterns.md +38 -0
  202. package/localized/zh-CN/skills/fec-performance-optimization/references/report-template.md +59 -0
  203. package/localized/zh-CN/skills/fec-pwa-implementation/SKILL.md +35 -0
  204. package/localized/zh-CN/skills/fec-pwa-implementation/references/manifest-and-icons.md +53 -0
  205. package/localized/zh-CN/skills/fec-pwa-implementation/references/service-worker-workbox.md +68 -0
  206. package/localized/zh-CN/skills/fec-react-project-standard/SKILL.md +91 -0
  207. package/localized/zh-CN/skills/fec-react-project-standard/references/react-performance-patterns.md +35 -0
  208. package/localized/zh-CN/skills/fec-react-project-standard/references/react-project-structure.md +197 -0
  209. package/localized/zh-CN/skills/fec-react-project-standard/references/react-quality-patterns.md +131 -0
  210. package/localized/zh-CN/skills/fec-react-project-standard/references/react-runtime-patterns.md +293 -0
  211. package/localized/zh-CN/skills/fec-refactor-clean/SKILL.md +54 -0
  212. package/localized/zh-CN/skills/fec-refactor-clean/references/report-template.md +42 -0
  213. package/localized/zh-CN/skills/fec-refactoring/SKILL.md +83 -0
  214. package/localized/zh-CN/skills/fec-refactoring/references/principles.md +43 -0
  215. package/localized/zh-CN/skills/fec-refactoring/references/refactoring-vs-feature-change.md +25 -0
  216. package/localized/zh-CN/skills/fec-refactoring/references/when-to-refactor.md +17 -0
  217. package/localized/zh-CN/skills/fec-refactoring/references/workflow.md +59 -0
  218. package/localized/zh-CN/skills/fec-refactoring-api/SKILL.md +25 -0
  219. package/localized/zh-CN/skills/fec-refactoring-api/references/api-refactorings.md +496 -0
  220. package/localized/zh-CN/skills/fec-refactoring-catalog/SKILL.md +21 -0
  221. package/localized/zh-CN/skills/fec-refactoring-catalog/references/catalog-index.md +99 -0
  222. package/localized/zh-CN/skills/fec-refactoring-catalog/references/composition-guide.md +49 -0
  223. package/localized/zh-CN/skills/fec-refactoring-catalog/references/selection-guide.md +41 -0
  224. package/localized/zh-CN/skills/fec-refactoring-control/SKILL.md +25 -0
  225. package/localized/zh-CN/skills/fec-refactoring-control/references/conditional-refactorings.md +299 -0
  226. package/localized/zh-CN/skills/fec-refactoring-data/SKILL.md +25 -0
  227. package/localized/zh-CN/skills/fec-refactoring-data/references/data-refactorings.md +248 -0
  228. package/localized/zh-CN/skills/fec-refactoring-encapsulation/SKILL.md +25 -0
  229. package/localized/zh-CN/skills/fec-refactoring-encapsulation/references/encapsulation-refactorings.md +452 -0
  230. package/localized/zh-CN/skills/fec-refactoring-functions/SKILL.md +25 -0
  231. package/localized/zh-CN/skills/fec-refactoring-functions/references/function-refactorings.md +567 -0
  232. package/localized/zh-CN/skills/fec-refactoring-inheritance/SKILL.md +25 -0
  233. package/localized/zh-CN/skills/fec-refactoring-inheritance/references/inheritance-refactorings.md +550 -0
  234. package/localized/zh-CN/skills/fec-refactoring-move-features/SKILL.md +25 -0
  235. package/localized/zh-CN/skills/fec-refactoring-move-features/references/moving-refactorings.md +453 -0
  236. package/localized/zh-CN/skills/fec-refactoring-validation/SKILL.md +52 -0
  237. package/localized/zh-CN/skills/fec-refactoring-validation/references/behavior-preservation.md +15 -0
  238. package/localized/zh-CN/skills/fec-refactoring-validation/references/refactoring-test-checklist.md +25 -0
  239. package/localized/zh-CN/skills/fec-responsive-layout/SKILL.md +34 -0
  240. package/localized/zh-CN/skills/fec-responsive-layout/references/responsive-layout-patterns.md +70 -0
  241. package/localized/zh-CN/skills/fec-route-protection/SKILL.md +135 -0
  242. package/localized/zh-CN/skills/fec-security-review/SKILL.md +54 -0
  243. package/localized/zh-CN/skills/fec-security-review/references/report-template.md +37 -0
  244. package/localized/zh-CN/skills/fec-security-review/references/security-checklist.md +64 -0
  245. package/localized/zh-CN/skills/fec-source-driven-development/SKILL.md +87 -0
  246. package/localized/zh-CN/skills/fec-state-management/SKILL.md +140 -0
  247. package/localized/zh-CN/skills/fec-state-management/references/state-patterns.md +109 -0
  248. package/localized/zh-CN/skills/fec-storybook-component-doc/SKILL.md +37 -0
  249. package/localized/zh-CN/skills/fec-storybook-component-doc/references/story-patterns.md +118 -0
  250. package/localized/zh-CN/skills/fec-svg-animation/SKILL.md +148 -0
  251. package/localized/zh-CN/skills/fec-tailwind-design-system/SKILL.md +34 -0
  252. package/localized/zh-CN/skills/fec-tailwind-design-system/references/tailwind-system-patterns.md +59 -0
  253. package/localized/zh-CN/skills/fec-tdd-workflow/SKILL.md +55 -0
  254. package/localized/zh-CN/skills/fec-testing-strategy/SKILL.md +45 -0
  255. package/localized/zh-CN/skills/fec-typescript-project-standard/SKILL.md +54 -0
  256. package/localized/zh-CN/skills/fec-typescript-project-standard/references/type-safety-patterns.md +102 -0
  257. package/localized/zh-CN/skills/fec-typescript-project-standard/references/type-safety.md +148 -0
  258. package/localized/zh-CN/skills/fec-ui-design/SKILL.md +108 -0
  259. package/localized/zh-CN/skills/fec-ui-design/data/product-rules.json +231 -0
  260. package/localized/zh-CN/skills/fec-ui-design/data/stack-ui-rules.json +146 -0
  261. package/localized/zh-CN/skills/fec-ui-design/data/style-archetypes.json +373 -0
  262. package/localized/zh-CN/skills/fec-ui-design/data/ux-quality-rules.json +203 -0
  263. package/localized/zh-CN/skills/fec-ui-design/references/design-intelligence.md +97 -0
  264. package/localized/zh-CN/skills/fec-ui-design/references/master-page-overrides.md +30 -0
  265. package/localized/zh-CN/skills/fec-ui-design/references/pre-delivery-checklist.md +39 -0
  266. package/localized/zh-CN/skills/fec-ui-design/scripts/design-system.mjs +648 -0
  267. package/localized/zh-CN/skills/fec-validation-fix/SKILL.md +51 -0
  268. package/localized/zh-CN/skills/fec-validation-fix/references/report-template.md +43 -0
  269. package/localized/zh-CN/skills/fec-vite-project-standard/SKILL.md +83 -0
  270. package/localized/zh-CN/skills/fec-vue3-project-standard/SKILL.md +58 -0
  271. package/localized/zh-CN/skills/fec-vue3-project-standard/references/vue3-composables-routing.md +162 -0
  272. package/localized/zh-CN/skills/fec-vue3-project-standard/references/vue3-performance-patterns.md +13 -0
  273. package/localized/zh-CN/skills/fec-vue3-project-standard/references/vue3-project-structure.md +176 -0
  274. package/localized/zh-CN/skills/fec-vue3-project-standard/references/vue3-state-api-quality.md +216 -0
  275. package/localized/zh-CN/skills/fec-web-video-presentation/SKILL.md +61 -0
  276. package/localized/zh-CN/skills/fec-web-video-presentation/data/starter-themes.json +59 -0
  277. package/localized/zh-CN/skills/fec-web-video-presentation/references/chapter-craft.md +37 -0
  278. package/localized/zh-CN/skills/fec-web-video-presentation/references/content-plan.md +38 -0
  279. package/localized/zh-CN/skills/fec-web-video-presentation/references/recording-and-audio.md +33 -0
  280. package/localized/zh-CN/skills/fec-web-video-presentation/references/theme-system.md +36 -0
  281. package/localized/zh-CN/skills/fec-web-video-presentation/scripts/create-video-presentation.mjs +430 -0
  282. package/localized/zh-CN/skills/fec-web-workers/SKILL.md +35 -0
  283. package/localized/zh-CN/skills/fec-web-workers/references/advanced-workers.md +54 -0
  284. package/localized/zh-CN/skills/fec-web-workers/references/basic-worker.md +67 -0
  285. package/localized/zh-CN/skills/metadata.json +2004 -0
  286. package/localized/zh-CN/skills/relations.json +1023 -0
  287. package/localized/zh-CN/templates/claude/CLAUDE.md +106 -0
  288. package/localized/zh-CN/templates/claude/settings.json +62 -0
  289. package/localized/zh-CN/templates/codex/AGENTS.md +105 -0
  290. package/localized/zh-CN/templates/codex/config.toml +32 -0
  291. package/localized/zh-CN/templates/openclaw/AGENTS.md +101 -0
  292. package/localized/zh-CN/templates/openclaw/OPENCLAW-CONFIG.md +12 -0
  293. package/localized/zh-CN/templates/shared/rules/fec-agent-workflow.md +55 -0
  294. package/localized/zh-CN/templates/shared/rules/fec-api-layer.md +99 -0
  295. package/localized/zh-CN/templates/shared/rules/fec-ci-cd.md +40 -0
  296. package/localized/zh-CN/templates/shared/rules/fec-code-comments.md +33 -0
  297. package/localized/zh-CN/templates/shared/rules/fec-design-system.md +72 -0
  298. package/localized/zh-CN/templates/shared/rules/fec-error-handling.md +56 -0
  299. package/localized/zh-CN/templates/shared/rules/fec-git-conventions.md +73 -0
  300. package/localized/zh-CN/templates/shared/rules/fec-i18n.md +64 -0
  301. package/localized/zh-CN/templates/shared/rules/fec-naming-conventions.md +120 -0
  302. package/localized/zh-CN/templates/shared/rules/fec-performance.md +101 -0
  303. package/localized/zh-CN/templates/shared/rules/fec-react.md +82 -0
  304. package/localized/zh-CN/templates/shared/rules/fec-refactoring.md +47 -0
  305. package/localized/zh-CN/templates/shared/rules/fec-rendering-patterns.md +40 -0
  306. package/localized/zh-CN/templates/shared/rules/fec-responsive-design.md +50 -0
  307. package/localized/zh-CN/templates/shared/rules/fec-source-driven-development.md +31 -0
  308. package/localized/zh-CN/templates/shared/rules/fec-state-management.md +60 -0
  309. package/localized/zh-CN/templates/shared/rules/fec-testing.md +98 -0
  310. package/localized/zh-CN/templates/shared/rules/fec-typescript.md +112 -0
  311. package/localized/zh-CN/templates/shared/rules/fec-vue.md +64 -0
  312. package/localized/zh-CN/templates/shared/rules/fec-working-modes.md +50 -0
  313. package/openclaw.plugin.json +2 -3
  314. package/package.json +28 -17
  315. package/skills/TEMPLATE.md +74 -74
  316. package/skills/eval_queries.json +922 -678
  317. package/skills/fec-accessibility-check/SKILL.md +21 -21
  318. package/skills/fec-accessibility-check/references/report-template.md +12 -12
  319. package/skills/fec-accessibility-check/references/screen-reader-testing.md +24 -24
  320. package/skills/fec-alchemy/SKILL.md +50 -50
  321. package/skills/fec-alchemy/assets/absorption-plan-template.md +32 -32
  322. package/skills/fec-alchemy/assets/intake-template.md +55 -55
  323. package/skills/fec-alchemy/assets/review-checklist.md +23 -23
  324. package/skills/fec-alchemy/references/methodology.md +66 -66
  325. package/skills/fec-alchemy/references/originality-and-licensing.md +42 -42
  326. package/skills/fec-api-integration/SKILL.md +61 -61
  327. package/skills/fec-api-integration/references/integration-patterns.md +30 -30
  328. package/skills/fec-backend-requirements-handoff/SKILL.md +25 -25
  329. package/skills/fec-browser-storage/SKILL.md +16 -16
  330. package/skills/fec-browser-storage/references/storage-patterns.md +16 -16
  331. package/skills/fec-canvas-threejs/SKILL.md +21 -21
  332. package/skills/fec-canvas-threejs/references/rendering-patterns.md +10 -10
  333. package/skills/fec-canvas-threejs/references/shader-webgl-patterns.md +37 -37
  334. package/skills/fec-code-review/SKILL.md +113 -94
  335. package/skills/fec-code-review/references/report-template.md +23 -13
  336. package/skills/fec-code-smells/SKILL.md +33 -0
  337. package/skills/fec-code-smells/references/detection-guide.md +25 -0
  338. package/skills/fec-code-smells/references/smell-catalog.md +861 -0
  339. package/skills/fec-code-smells/references/smell-to-refactoring-map.md +265 -0
  340. package/skills/fec-component-testing/SKILL.md +39 -39
  341. package/skills/fec-data-fetching/SKILL.md +16 -16
  342. package/skills/fec-data-fetching/references/query-patterns.md +27 -27
  343. package/skills/fec-debug-framework/SKILL.md +95 -95
  344. package/skills/fec-debug-framework/references/report-template.md +34 -34
  345. package/skills/fec-dependency-upgrade/SKILL.md +17 -17
  346. package/skills/fec-dependency-upgrade/references/dependency-upgrade-workflow.md +31 -31
  347. package/skills/fec-doc-sync/SKILL.md +23 -23
  348. package/skills/fec-drawio-studio/SKILL.md +42 -38
  349. package/skills/fec-drawio-studio/data/THIRD_PARTY_NOTICES.md +1 -1
  350. package/skills/fec-drawio-studio/data/shape-index.json +83570 -0
  351. package/skills/fec-drawio-studio/references/diagram-patterns.md +19 -0
  352. package/skills/fec-drawio-studio/references/flowchart-quality.md +49 -0
  353. package/skills/fec-drawio-studio/references/layout-and-export.md +18 -3
  354. package/skills/fec-drawio-studio/references/xml-and-mermaid.md +5 -1
  355. package/skills/fec-drawio-studio/scripts/diagram-lint.mjs +62 -0
  356. package/skills/fec-drawio-studio/scripts/drawio-export.mjs +134 -0
  357. package/skills/fec-drawio-studio/scripts/shape-query.mjs +55 -15
  358. package/skills/fec-e2e-testing/SKILL.md +24 -24
  359. package/skills/fec-e2e-testing/references/e2e-ci-reporting.md +20 -20
  360. package/skills/fec-e2e-testing/references/e2e-special-scenarios.md +10 -10
  361. package/skills/fec-e2e-testing/references/e2e-visual-regression.md +17 -17
  362. package/skills/fec-e2e-testing/references/playwright-patterns.md +6 -6
  363. package/skills/fec-form-handling/SKILL.md +21 -21
  364. package/skills/fec-form-handling/references/advanced-form-patterns.md +41 -41
  365. package/skills/fec-image-generation/SKILL.md +84 -29
  366. package/skills/fec-image-generation/assets/interactive-diagram.html +371 -0
  367. package/skills/fec-image-generation/assets/quality-examples/README.md +14 -0
  368. package/skills/fec-image-generation/assets/quality-examples/architecture.json +121 -0
  369. package/skills/fec-image-generation/assets/quality-examples/invalid-explicit.json +41 -0
  370. package/skills/fec-image-generation/assets/quality-examples/sequence.json +53 -0
  371. package/skills/fec-image-generation/assets/quality-examples/sequence.mmd +21 -0
  372. package/skills/fec-image-generation/assets/quality-examples/workflow.json +98 -0
  373. package/skills/fec-image-generation/assets/quality-examples/workflow.mmd +7 -0
  374. package/skills/fec-image-generation/references/diagram-workflows.md +41 -3
  375. package/skills/fec-image-generation/references/html-technical-diagrams.md +243 -0
  376. package/skills/fec-image-generation/references/png-qa-autofix.md +9 -2
  377. package/skills/fec-image-generation/scripts/diagram-browser.mjs +90 -0
  378. package/skills/fec-image-generation/scripts/diagram-layout.mjs +176 -0
  379. package/skills/fec-image-generation/scripts/export-diagram.mjs +332 -0
  380. package/skills/fec-image-generation/scripts/interactive-diagram-server.mjs +654 -0
  381. package/skills/fec-image-generation/scripts/mermaid-render.mjs +64 -0
  382. package/skills/fec-image-generation/scripts/png-qa.mjs +35 -4
  383. package/skills/fec-image-generation/scripts/tech-diagram-render.mjs +1537 -0
  384. package/skills/fec-implement-from-design/SKILL.md +81 -81
  385. package/skills/fec-implement-from-design/references/design-plan-template.md +16 -16
  386. package/skills/fec-legacy-to-modern-migration/SKILL.md +29 -29
  387. package/skills/fec-legacy-to-modern-migration/references/migration-execution-checklist.md +81 -81
  388. package/skills/fec-legacy-to-modern-migration/references/migration-report-template.md +37 -37
  389. package/skills/fec-legacy-to-modern-migration/references/migration-strategy-and-mapping.md +31 -31
  390. package/skills/fec-legacy-web-standard/SKILL.md +17 -17
  391. package/skills/fec-legacy-web-standard/references/legacy-patterns.md +16 -16
  392. package/skills/fec-list-virtualization/SKILL.md +16 -16
  393. package/skills/fec-list-virtualization/references/virtualization-patterns.md +31 -31
  394. package/skills/fec-monorepo-project-standard/SKILL.md +52 -52
  395. package/skills/fec-motion-interaction/SKILL.md +51 -51
  396. package/skills/fec-motion-interaction/references/motion-patterns.md +11 -11
  397. package/skills/fec-nextjs-project-standard/SKILL.md +64 -64
  398. package/skills/fec-nuxt-project-standard/SKILL.md +57 -57
  399. package/skills/fec-performance-optimization/SKILL.md +54 -54
  400. package/skills/fec-performance-optimization/references/framework-performance-patterns.md +23 -23
  401. package/skills/fec-performance-optimization/references/report-template.md +31 -31
  402. package/skills/fec-pwa-implementation/SKILL.md +17 -17
  403. package/skills/fec-pwa-implementation/references/manifest-and-icons.md +12 -12
  404. package/skills/fec-pwa-implementation/references/service-worker-workbox.md +13 -13
  405. package/skills/fec-react-project-standard/SKILL.md +72 -72
  406. package/skills/fec-react-project-standard/references/react-performance-patterns.md +28 -28
  407. package/skills/fec-react-project-standard/references/react-project-structure.md +112 -112
  408. package/skills/fec-react-project-standard/references/react-quality-patterns.md +72 -72
  409. package/skills/fec-react-project-standard/references/react-runtime-patterns.md +94 -94
  410. package/skills/fec-refactor-clean/SKILL.md +33 -30
  411. package/skills/fec-refactor-clean/references/report-template.md +23 -23
  412. package/skills/fec-refactoring/SKILL.md +83 -0
  413. package/skills/fec-refactoring/references/principles.md +60 -0
  414. package/skills/fec-refactoring/references/refactoring-vs-feature-change.md +27 -0
  415. package/skills/fec-refactoring/references/when-to-refactor.md +31 -0
  416. package/skills/fec-refactoring/references/workflow.md +90 -0
  417. package/skills/fec-refactoring-api/SKILL.md +25 -0
  418. package/skills/fec-refactoring-api/references/api-refactorings.md +496 -0
  419. package/skills/fec-refactoring-catalog/SKILL.md +28 -0
  420. package/skills/fec-refactoring-catalog/references/catalog-index.md +99 -0
  421. package/skills/fec-refactoring-catalog/references/composition-guide.md +49 -0
  422. package/skills/fec-refactoring-catalog/references/selection-guide.md +47 -0
  423. package/skills/fec-refactoring-control/SKILL.md +25 -0
  424. package/skills/fec-refactoring-control/references/conditional-refactorings.md +299 -0
  425. package/skills/fec-refactoring-data/SKILL.md +25 -0
  426. package/skills/fec-refactoring-data/references/data-refactorings.md +248 -0
  427. package/skills/fec-refactoring-encapsulation/SKILL.md +25 -0
  428. package/skills/fec-refactoring-encapsulation/references/encapsulation-refactorings.md +452 -0
  429. package/skills/fec-refactoring-functions/SKILL.md +25 -0
  430. package/skills/fec-refactoring-functions/references/function-refactorings.md +567 -0
  431. package/skills/fec-refactoring-inheritance/SKILL.md +25 -0
  432. package/skills/fec-refactoring-inheritance/references/inheritance-refactorings.md +550 -0
  433. package/skills/fec-refactoring-move-features/SKILL.md +25 -0
  434. package/skills/fec-refactoring-move-features/references/moving-refactorings.md +453 -0
  435. package/skills/fec-refactoring-validation/SKILL.md +59 -0
  436. package/skills/fec-refactoring-validation/references/behavior-preservation.md +53 -0
  437. package/skills/fec-refactoring-validation/references/refactoring-test-checklist.md +42 -0
  438. package/skills/fec-responsive-layout/SKILL.md +17 -17
  439. package/skills/fec-responsive-layout/references/responsive-layout-patterns.md +37 -37
  440. package/skills/fec-route-protection/SKILL.md +26 -26
  441. package/skills/fec-security-review/SKILL.md +36 -20
  442. package/skills/fec-security-review/references/report-template.md +22 -12
  443. package/skills/fec-security-review/references/security-checklist.md +27 -27
  444. package/skills/fec-source-driven-development/SKILL.md +59 -59
  445. package/skills/fec-state-management/SKILL.md +34 -34
  446. package/skills/fec-state-management/references/state-patterns.md +19 -19
  447. package/skills/fec-storybook-component-doc/SKILL.md +19 -19
  448. package/skills/fec-storybook-component-doc/references/story-patterns.md +12 -12
  449. package/skills/fec-svg-animation/SKILL.md +32 -32
  450. package/skills/fec-tailwind-design-system/SKILL.md +17 -17
  451. package/skills/fec-tailwind-design-system/references/tailwind-system-patterns.md +36 -36
  452. package/skills/fec-tdd-workflow/SKILL.md +32 -28
  453. package/skills/fec-testing-strategy/SKILL.md +29 -29
  454. package/skills/fec-typescript-project-standard/SKILL.md +38 -38
  455. package/skills/fec-typescript-project-standard/references/type-safety-patterns.md +20 -20
  456. package/skills/fec-typescript-project-standard/references/type-safety.md +18 -18
  457. package/skills/fec-ui-design/SKILL.md +90 -90
  458. package/skills/fec-ui-design/references/design-intelligence.md +61 -61
  459. package/skills/fec-ui-design/references/master-page-overrides.md +15 -15
  460. package/skills/fec-ui-design/references/pre-delivery-checklist.md +38 -38
  461. package/skills/fec-validation-fix/SKILL.md +26 -26
  462. package/skills/fec-validation-fix/references/report-template.md +25 -25
  463. package/skills/fec-vite-project-standard/SKILL.md +39 -39
  464. package/skills/fec-vue3-project-standard/SKILL.md +38 -38
  465. package/skills/fec-vue3-project-standard/references/vue3-composables-routing.md +36 -36
  466. package/skills/fec-vue3-project-standard/references/vue3-performance-patterns.md +8 -8
  467. package/skills/fec-vue3-project-standard/references/vue3-project-structure.md +112 -112
  468. package/skills/fec-vue3-project-standard/references/vue3-state-api-quality.md +74 -74
  469. package/skills/fec-web-video-presentation/SKILL.md +33 -33
  470. package/skills/fec-web-workers/SKILL.md +16 -16
  471. package/skills/fec-web-workers/references/advanced-workers.md +13 -13
  472. package/skills/fec-web-workers/references/basic-worker.md +8 -8
  473. package/skills/metadata.json +485 -116
  474. package/skills/relations.json +268 -0
  475. package/templates/claude/CLAUDE.md +60 -60
  476. package/templates/codex/AGENTS.md +76 -76
  477. package/templates/codex/config.toml +4 -4
  478. package/templates/openclaw/AGENTS.md +68 -68
  479. package/templates/openclaw/OPENCLAW-CONFIG.md +8 -8
  480. package/templates/shared/rules/fec-agent-workflow.md +41 -40
  481. package/templates/shared/rules/fec-api-layer.md +52 -52
  482. package/templates/shared/rules/fec-ci-cd.md +29 -29
  483. package/templates/shared/rules/fec-code-comments.md +22 -22
  484. package/templates/shared/rules/fec-design-system.md +53 -53
  485. package/templates/shared/rules/fec-error-handling.md +40 -40
  486. package/templates/shared/rules/fec-git-conventions.md +42 -42
  487. package/templates/shared/rules/fec-i18n.md +48 -48
  488. package/templates/shared/rules/fec-naming-conventions.md +91 -91
  489. package/templates/shared/rules/fec-performance.md +78 -78
  490. package/templates/shared/rules/fec-react.md +58 -58
  491. package/templates/shared/rules/fec-refactoring.md +34 -34
  492. package/templates/shared/rules/fec-rendering-patterns.md +36 -36
  493. package/templates/shared/rules/fec-responsive-design.md +37 -37
  494. package/templates/shared/rules/fec-source-driven-development.md +22 -22
  495. package/templates/shared/rules/fec-state-management.md +56 -56
  496. package/templates/shared/rules/fec-testing.md +64 -64
  497. package/templates/shared/rules/fec-typescript.md +75 -75
  498. package/templates/shared/rules/fec-vue.md +42 -42
  499. package/templates/shared/rules/fec-working-modes.md +34 -34
  500. package/docs/superpowers/plans/2026-05-29-fec-debug.md +0 -491
  501. package/docs/superpowers/specs/2026-05-29-fec-debug-design.md +0 -340
  502. package/skills/fec-drawio-studio/data/shape-index.json.gz +0 -0
package/README.md CHANGED
@@ -1,493 +1,545 @@
1
- <div align="center">
2
-
3
- <img src="assets/brand/frontend-craft.png" alt="frontend-craft logo" width="200" />
4
-
5
- # frontend-craft
6
-
7
- ### One toolkit. Every AI coding assistant. Production-grade frontend standards.
8
-
9
- [![Stars](https://img.shields.io/github/stars/bovinphang/frontend-craft?style=flat)](https://github.com/bovinphang/frontend-craft/stargazers)
10
- [![CI](https://github.com/bovinphang/frontend-craft/actions/workflows/ci.yml/badge.svg)](https://github.com/bovinphang/frontend-craft/actions/workflows/ci.yml)
11
- [![npm version](https://img.shields.io/npm/v/@bovinphang/frontend-craft)](https://www.npmjs.com/package/@bovinphang/frontend-craft)
12
- [![License](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
13
- ![Node](https://img.shields.io/badge/Node.js-22+-5FA04E?logo=node.js&logoColor=white)
14
- ![TypeScript](https://img.shields.io/badge/-TypeScript-3178C6?logo=typescript&logoColor=white)
15
- ![React](https://img.shields.io/badge/-React-61DAFB?logo=react&logoColor=black)
16
- ![Vue](https://img.shields.io/badge/-Vue-4FC08D?logo=vue.js&logoColor=white)
17
- ![Figma](https://img.shields.io/badge/-Figma-F24E1E?logo=figma&logoColor=white)
18
-
19
- **🌐 Language / 语言 / 語言 / 言語 / 언어**
20
-
21
- [**English**](README.md) · [简体中文](README.zh-CN.md) · [繁體中文](docs/zh-TW/README.md) · [日本語](docs/ja-JP/README.md) · [한국어](docs/ko-KR/README.md)
22
-
23
- </div>
24
-
25
- ---
26
-
27
- `frontend-craft` is a **universal frontend plugin** that brings the same opinionated engineering standards to all **15 AI coding assistants** listed below:
28
-
29
- `claude` `codex` `cursor` `windsurf` `opencode`
30
- `kilo` `gemini` `copilot` `antigravity` `augment`
31
- `trae` `codebuddy` `cline` `openclaw` `qoder`
32
-
33
- Per-runtime paths and caveats live in [`docs/runtimes/`](docs/runtimes/).
34
-
35
- It bundles **13 specialized agents**, **45 auto-activated skills**, **8 slash commands**, **5 event-driven hooks**, **MCP integrations** for 6 design-tool endpoints, and a complete **rules library** into a single installable package. Run one command, and every AI session on your team writes React, Vue, Next.js, or Nuxt the same way — typed, accessible, secure, and consistent.
36
-
37
- ---
38
-
39
- ## Why frontend-craft?
40
-
41
- | Problem | What frontend-craft does |
42
- | -------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- |
43
- | AI assistants write inconsistent, untyped, or insecure frontend code | **45 skills** encode team standards — auto-activated when the assistant touches matching files |
44
- | Each AI tool has its own plugin format | **One CLI** installs the same rules, agents, and hooks into 15 runtimes |
45
- | Design-to-code handoff is lossy | **MCP integrations** bring in richer context from Figma, Figma Desktop, Sketch, MasterGo, Pixso, and 墨刀 |
46
- | Reviews are ad-hoc and shallow | **13 agents** produce graded reports: code, security, a11y, performance, TS, UI fidelity |
47
- | No one remembers to run lint/tests | **Event-driven hooks** validate on save and session end — automatically |
48
- | New projects start from scratch every time | **`/fec-init`** scaffolds CLAUDE.md, rules, and settings in seconds |
49
-
50
- ---
51
-
52
- ## Install
53
-
54
- Requires **Node.js 22+**. Works on **Windows, macOS, and Linux**.
55
-
56
- ### Option 1 - Install the fec CLI globally (recommended)
57
-
58
- ```bash
59
- # 1. Install the fec command globally
60
- npm install -g @bovinphang/frontend-craft@latest
61
-
62
- # 2. Go to your frontend project
63
- cd your-project
64
-
65
- # 3. Choose the AI runtime(s) interactively
66
- fec setup
67
-
68
- # 4. Connect the current project
69
- fec setup codex
70
- fec setup claude
71
- fec setup all
72
-
73
- # 5. Connect globally, available across all projects
74
- fec setup codex --global
75
- fec setup claude --global
76
- fec setup all --global
77
-
78
- # 6. Preview / query
79
- fec install --all --dry-run --global
80
- fec list
81
- ```
82
-
83
- `npm install -g` only installs the `fec` terminal command. `fec setup` is the terminal CLI command for connecting frontend-craft to a project; it is not the in-assistant `/fec-init` slash command. In an interactive terminal, running only `fec setup` asks you to choose runtimes. `fec setup <runtime>` and `fec setup all` connect frontend-craft to the current project by default. Only pass `--global` when you want to connect frontend-craft to the selected AI tool's global config directory so it is available across projects.
84
-
85
- ### Option 2 — Temporary npx run (no global fec command)
86
-
87
- ```bash
88
- # 1. Interactive wizard
89
- npx @bovinphang/frontend-craft@latest
90
-
91
- # 2. Connect the current project
92
- npx @bovinphang/frontend-craft@latest install --local codex
93
- npx @bovinphang/frontend-craft@latest install --local claude
94
- npx @bovinphang/frontend-craft@latest install --all --local
95
-
96
- # 3. Connect globally, available across all projects
97
- npx @bovinphang/frontend-craft@latest install --global codex
98
- npx @bovinphang/frontend-craft@latest install --global claude
99
- npx @bovinphang/frontend-craft@latest install --all --global
100
-
101
- # 4. Preview / query
102
- npx @bovinphang/frontend-craft@latest install --all --dry-run --global
103
- npx @bovinphang/frontend-craft@latest list
104
- ```
105
-
106
- Use `npx` when you do not want to install a global `fec` command. Without arguments, it opens the interactive wizard: choose one or more runtimes, then choose whether to connect globally or into the current project. For scripted all-runtime installs, use `install --all --local` or `install --all --global`; do not write `install all`. For CI / scripts, always pass `--global` / `-g` or `--local` / `-l`; in non-TTY environments without an explicit location, the CLI defaults to `claude --global`.
107
-
108
- ### Option 3 — Claude Code Marketplace
109
-
110
- For Claude Code users, **Claude Code Marketplace** is the preferred single-source install. Use the CLI for Claude only when you need cross-runtime installs, scripted/offline file copies, or non-Marketplace environments.
111
-
112
- If Marketplace is already installed, the CLI will not install or update a second Claude copy, even with `--force`; update through Claude Code Marketplace instead. If a CLI-managed Claude install already exists in the other scope, interactive terminals ask whether to keep that source updated or uninstall it before switching. Non-interactive terminals stop and print the exact `update`, `uninstall`, and `install` commands to run.
113
-
114
- Full Claude-specific steps are in [docs/runtimes/claude.md](docs/runtimes/claude.md) · [简体中文](docs/runtimes/claude.zh-CN.md).
115
-
116
- ---
117
-
118
- ## Quick start
119
-
120
- Once installed, you have a full frontend engineering toolkit available in every AI session:
121
-
122
- ```text
123
- You: "Review my recent changes"
124
- → The fec-code-reviewer agent is dispatched, produces reports/code-review-*.md
125
-
126
- You: "/fec-review"
127
- → Runs a structured review across architecture, types, rendering, styles, a11y
128
-
129
- You: "Implement the checkout page from this Figma link"
130
- → The fec-figma-implementer agent reads the design via MCP, emits components and a report
131
-
132
- You: "/fec-scaffold dashboard feature"
133
- → Creates a page / feature / component directory tree following project conventions
134
-
135
- You: "/fec-refactor-clean"
136
- → Classifies and safely removes dead code, unused exports, styles, and deps
137
- ```
138
-
139
- All slash commands below are shown for **Claude Code**; other runtimes expose the same capabilities through their own command systems (see [`docs/runtimes/`](docs/runtimes/)).
140
-
141
- ---
142
-
143
- ## Example prompts
144
-
145
- For a complete scenario-based prompt library, see [docs/example-prompts.md](docs/example-prompts.md).
146
-
147
- ```text
148
- You: "Review my recent changes before merge. Focus on architecture, type safety, rendering behavior, styles, accessibility, and missing tests."
149
- You: "Before coding, plan the account billing feature: route structure, component boundaries, data flow, state ownership, validation flow, and rollout risks."
150
- You: "Build a multi-step registration form; choose the right form and schema validation approach for this project, with file upload, conditional fields, async validation, and accessible errors."
151
- You: "Implement the UI from Figma node 123:456. Use existing design tokens and components, match spacing and responsive states, and document assumptions."
152
- You: "`/fec-refactor-clean` Clean up dead code in this module."
153
- ```
154
-
155
- ---
156
-
157
- ## What’s inside
158
-
159
- ### Commands
160
-
161
- Slash commands are the primary entry points for structured workflows. Most produce a timestamped Markdown report under `reports/`.
162
-
163
- | Command | Purpose | Report |
164
- | --------------------- | ---------------------------------------------------------------------- | ------------------------------------------------ |
165
- | `/fec-init` | Initialize project templates (CLAUDE.md, rules, settings) | — |
166
- | `/fec-review` | Structured review of specified or recently changed files | `code-review-*.md` |
167
- | `/fec-scaffold` | Create page / feature / component boilerplate by convention | — |
168
- | `/fec-plan` | Unified planning: implementation architecture or test strategy | `architecture-proposal-*.md` or `test-plan-*.md` |
169
- | `/fec-tdd` | Red → green → refactor loop for frontend TDD | — |
170
- | `/fec-debug` | Diagnose and fix frontend issues: build, runtime, UI, and API failures | `debug-*.md` |
171
- | `/fec-refactor-clean` | Classify and safely remove dead code, unused exports, styles, and deps | `refactor-clean-*.md` |
172
- | `/fec-doc-sync` | Sync READMEs, docs, env notes, scripts, API/route notes, and deploy docs | — |
173
-
174
- ### Skills (auto-activated)
175
-
176
- Skills are workflow definitions that activate automatically based on file patterns, frameworks, or task context. They encode review dimensions, output conventions, and report formats.
177
-
178
- The skills below are grouped by use case so you can quickly find project standards, implementation, testing, review, design, migration, project evolution, and documentation workflows.
179
-
180
- **Project standards** — conventions enforced whenever matching frameworks are detected:
181
-
182
- | Skill | Scope |
183
- | ------------------------------- | --------------------------------------------------------------------- |
184
- | `fec-react-project-standard` | React + TypeScript (structure, components, routing, state, API layer) |
185
- | `fec-vue3-project-standard` | Vue 3 + TypeScript (structure, components, routing, Pinia, API layer) |
186
- | `fec-nextjs-project-standard` | Next.js 14+ App Router, SSR/SSG, streaming, metadata |
187
- | `fec-nuxt-project-standard` | Nuxt 3 SSR/SSG, composables, data fetching, middleware |
188
- | `fec-vite-project-standard` | Vite config, env safety, HMR, dev proxy, build optimization |
189
- | `fec-monorepo-project-standard` | pnpm workspace, Turborepo, Nx structure and task orchestration |
190
- | `fec-typescript-project-standard` | TypeScript config, public API types, declarations, DTOs, generics |
191
-
192
- **Implementation capabilities** — activated when building specific frontend behavior:
193
-
194
- | Skill | Scope |
195
- | ------------------------- | ------------------------------------------------------------------------- |
196
- | `fec-data-fetching` | Server-state fetching, caching, invalidation, SSR, infinite loading |
197
- | `fec-api-integration` | Typed API clients, auth refresh, uploads, realtime integration |
198
- | `fec-state-management` | State ownership, store selection, URL state, server/form/local boundaries |
199
- | `fec-form-handling` | Framework-aware forms, schema validation, dynamic fields, uploads |
200
- | `fec-browser-storage` | localStorage / sessionStorage / IndexedDB / Cookies selection |
201
- | `fec-route-protection` | Auth and permission routes for React Router, Next.js, Vue Router, Nuxt |
202
- | `fec-pwa-implementation` | Manifest, service worker, offline cache, install prompts |
203
- | `fec-web-workers` | Web Worker integration, transferables, Comlink, worker pools |
204
- | `fec-canvas-threejs` | Canvas 2D, Three.js, React Three Fiber, WebGL |
205
- | `fec-svg-animation` | CSS / Framer Motion / GSAP SVG animation with reduced-motion |
206
- | `fec-list-virtualization` | Framework-aware list virtualization, measurement, grids, infinite scroll |
207
-
208
- **Testing** — activated when planning or authoring frontend test coverage:
209
-
210
- | Skill | Scope |
211
- | ----------------------- | ------------------------------------------------------------------------ |
212
- | `fec-testing-strategy` | Layer selection across static, unit, component, integration, E2E, visual |
213
- | `fec-component-testing` | React Testing Library / Vue Test Utils with regression scenarios |
214
- | `fec-e2e-testing` | Playwright / Cypress E2E with Page Object and CI integration |
215
- | `fec-tdd-workflow` | Test-first frontend implementation with red-green-refactor |
216
-
217
- **Review & quality** — activated during review, validation, or cleanup workflows:
218
-
219
- | Skill | Scope |
220
- | ------------------------------ | ----------------------------------------------------------------------------- |
221
- | `fec-code-review` | Architecture, types, rendering, styles, a11y review |
222
- | `fec-debug-framework` | Systematic diagnostics for build, runtime, UI, and API/data failures |
223
- | `fec-security-review` | XSS, CSRF, sensitive data leakage, input validation |
224
- | `fec-accessibility-check` | WCAG 2.2, keyboard, focus, touch, and screen-reader behavior |
225
- | `fec-dependency-upgrade` | Dependency upgrades, lockfile review, CVE remediation, migration verification |
226
- | `fec-validation-fix` | Run and repair lint, type-check, test, build in one pass |
227
- | `fec-performance-optimization` | Core Web Vitals, bundle, rendering, memory, network, and budget reviews |
228
- | `fec-refactor-clean` | Safe dead-code, unused export, style, route, dependency cleanup |
229
-
230
- **Design UI** — activated for design-to-code, design systems, and visual polish:
231
-
232
- | Skill | Scope |
233
- | ----------------------------- | ----------------------------------------------------------------------------- |
234
- | `fec-ui-design` | Product-context UI direction, anti-generic design dials, media strategy, states, visual QA |
235
- | `fec-image-generation` | Diagrams, image generation/editing, visual assets, PNG QA and repair loops |
236
- | `fec-drawio-studio` | Editable draw.io / diagrams.net technical diagrams, XML/Mermaid/CSV URL handoff, shape lookup, auto-layout, code maps |
237
- | `fec-web-video-presentation` | Recordable 16:9 step-driven web presentations from articles, scripts, lessons, and demos |
238
- | `fec-tailwind-design-system` | Tailwind tokens, theme extension, variants, class governance, dark mode |
239
- | `fec-responsive-layout` | Mobile-first layouts, container queries, data-dense responsive UI |
240
- | `fec-motion-interaction` | Context-aware motion intensity, page transitions, scroll animation, reduced motion |
241
- | `fec-implement-from-design` | Build UI from design tools, screenshots, or section-level visual references |
242
- | `fec-storybook-component-doc` | Storybook component docs, design-system presentation, isolated state previews |
243
-
244
- **Legacy migration** — activated during modernization work:
245
-
246
- | Skill | Scope |
247
- | -------------------------------- | ---------------------------------------------------------- |
248
- | `fec-legacy-web-standard` | Standards for JS + jQuery + HTML maintenance |
249
- | `fec-legacy-to-modern-migration` | Legacy frontend modernization, target-stack selection, phased workflow |
250
-
251
- **Project evolution** — activated when absorbing reference systems into project-native improvements:
252
-
253
- | Skill | Scope |
254
- | ------------- | ---------------------------------------------------------------------- |
255
- | `fec-alchemy` | Absorb reference system ideas through original, project-native redesign |
256
-
257
- **Maintenance docs** — activated during documentation upkeep:
258
-
259
- | Skill | Scope |
260
- | ------------------------------- | -------------------------------------------------------------------------------------- |
261
- | `fec-backend-requirements-handoff` | Frontend-to-backend handoff for UI data needs, actions, states, rules, and questions |
262
- | `fec-doc-sync` | Keep frontend docs in sync with code, config, scripts, routes, APIs, env, and deploy facts |
263
- | `fec-source-driven-development` | Verify version-sensitive frontend decisions against project facts and official sources |
264
-
265
- ### Agents
266
-
267
- Agents are specialized sub-agents dispatched by the main assistant to handle a focused task. Each returns a structured report.
268
-
269
- | Agent | Focus | Report |
270
- | --------------------------- | -------------------------------------------------------------------------- | ---------------------------- |
271
- | `fec-code-reviewer` | React/Vue/Next/Nuxt, TS, styles, client-side security (confidence-based) | `code-review-*.md` |
272
- | `fec-typescript-reviewer` | Type safety, async correctness, idiomatic patterns (report-only) | `typescript-review-*.md` |
273
- | `fec-security-reviewer` | XSS, client secrets, dangerous DOM/APIs, CSP, dependency audit | `security-review-*.md` |
274
- | `fec-performance-optimizer` | Bundle size, render performance, network bottlenecks | `performance-review-*.md` |
275
- | `fec-architect` | Page splitting, component architecture, state flow, directory planning | `architecture-proposal-*.md` |
276
- | `fec-test-planner` | Risk-to-layer matrix: static, unit, component, E2E, visual, a11y, security | `test-plan-*.md` |
277
- | `fec-debugger` | Complex frontend diagnostics for build, runtime, UI, and API failures | `debug-*.md` |
278
- | `fec-refactor-cleaner` | Classify and safely remove unused code, exports, styles, routes, deps | `refactor-clean-*.md` |
279
- | `fec-e2e-runner` | E2E authoring and runs (Playwright/Cypress), flaky quarantine, traces | `e2e-summary-*.md` |
280
- | `fec-doc-updater` | Sync README, runtime docs, structure, capability tables, metadata | — |
281
- | `fec-ui-checker` | Visual issue debugging and design fidelity evaluation | `ui-fidelity-review-*.md` |
282
- | `fec-figma-implementer` | Precise UI implementation from Figma/Sketch/MasterGo/Pixso/墨刀 designs | `design-implementation-*.md` |
283
- | `fec-design-token-mapper` | Map design variables to project Design Tokens | `token-mapping-*.md` |
284
-
285
- ### Hooks (event-driven)
286
-
287
- Hooks run automatically on AI assistant events — no invocation needed.
288
-
289
- | Event | Behavior |
290
- | ------------------------- | -------------------------------------------------------------- |
291
- | `SessionStart` | Clean Claude cache, then detect project framework and package manager |
292
- | `PreToolUse(Bash)` | Block dangerous commands (`rm -rf`, force push, etc.) |
293
- | `PostToolUse(Write/Edit)` | Auto-format modified files with Prettier |
294
- | `Stop` | Run lint, type-check, test, and build on session end |
295
- | `Notification` | Cross-platform desktop notifications (macOS / Linux / Windows) |
296
-
297
- ### MCP integration
298
-
299
- Plug your AI assistant into design tools for design-to-code workflows with richer design context.
300
-
301
- | Service | Capabilities |
302
- | ----------------- | ---------------------------------------------------- |
303
- | **Figma** | Read design context and variable definitions |
304
- | **Figma Desktop** | Figma desktop client integration |
305
- | **Sketch** | Read design selection screenshots |
306
- | **MasterGo** | Read DSL structure, component hierarchy, styles |
307
- | **Pixso** | Local MCP: frame data, code snippets, image assets |
308
- | **墨刀** | Prototype data, design descriptions, HTML import |
309
- | **摹客** | Screenshot/annotation/exported-CSS workflow (no MCP) |
310
-
311
- ### Project templates (`/fec-init`)
312
-
313
- Run `/fec-init` to scaffold a ready-to-use rules library and project config into `.claude/`:
314
-
315
- <details>
316
- <summary>Click to see all 20 template files</summary>
317
-
318
- | File | Purpose |
319
- | ---------------------------------------- | --------------------------------------------------------------------- |
320
- | `CLAUDE.md` | Project description, commands, working principles, security |
321
- | `settings.json` | Permission whitelist/blacklist, environment variables |
322
- | `rules/fec-vue.md` | Vue 3 component standards and anti-patterns |
323
- | `rules/fec-react.md` | React component standards and anti-patterns |
324
- | `rules/fec-design-system.md` | Design system, tokens, accessibility |
325
- | `rules/fec-testing.md` | Testing and validation rules |
326
- | `rules/fec-git-conventions.md` | Conventional Commits |
327
- | `rules/fec-i18n.md` | Internationalization copy standards |
328
- | `rules/fec-performance.md` | Frontend performance rules |
329
- | `rules/fec-rendering-patterns.md` | Rendering lifecycle, hydration, SSR/CSR, and update patterns |
330
- | `rules/fec-responsive-design.md` | Responsive layout, breakpoints, touch targets, and viewport behavior |
331
- | `rules/fec-source-driven-development.md` | Source-driven decisions, official docs, version-sensitive assumptions |
332
- | `rules/fec-api-layer.md` | API layer typing and error handling |
333
- | `rules/fec-state-management.md` | State classification, strategy, anti-patterns |
334
- | `rules/fec-error-handling.md` | Error layering, Error Boundary, fallback UI, reporting |
335
- | `rules/fec-naming-conventions.md` | Unified naming for files, components, variables, routes, API, CSS |
336
- | `rules/fec-code-comments.md` | When and how to write frontend comments |
337
- | `rules/fec-ci-cd.md` | CI/CD pipeline stages, GitHub Actions / GitLab CI, secrets |
338
- | `rules/fec-refactoring.md` | Refactoring constraints and feature-parity requirements |
339
- | `rules/fec-agent-workflow.md` | Agent collaboration boundaries and delegation |
340
- | `rules/fec-working-modes.md` | Research, planning, development, review, finishing modes |
341
-
342
- </details>
343
-
344
- ---
345
-
346
- ## Configuration
347
-
348
- ### Prerequisites
349
-
350
- - **Node.js 22+**
351
- - **npm, pnpm, or yarn**
352
- - **Git Bash or a compatible shell** (Windows only, when your AI runtime invokes shell-based commands)
353
-
354
- ### MCP design-tool tokens
355
-
356
- Set the environment variable for whichever design tool your team uses:
357
-
358
- | Variable | Tool | How to get |
359
- | ---------------- | --------------------- | ----------------------------------------------------- |
360
- | `FIGMA_API_KEY` | Figma / Figma Desktop | Figma account settings → Personal Access Tokens |
361
- | `SKETCH_API_KEY` | Sketch | Sketch developer settings |
362
- | `MG_MCP_TOKEN` | MasterGo | MasterGo account settings → Security → Generate Token |
363
- | `MODAO_TOKEN` | 墨刀 | 墨刀 AI feature page → access token |
364
-
365
- > **Pixso** uses a local MCP server — enable MCP in the Pixso client, no env var needed.
366
- > **摹客** has no MCP integration; works via screenshots and exported CSS.
367
-
368
- Add to your shell config for persistence:
369
-
370
- ```bash
371
- # macOS / Linux — append to ~/.bashrc or ~/.zshrc
372
- export FIGMA_API_KEY="your-figma-api-key"
373
- export SKETCH_API_KEY="your-sketch-api-key"
374
- export MG_MCP_TOKEN="your-mastergo-token"
375
- export MODAO_TOKEN="your-modao-token"
376
- ```
377
-
378
- ```powershell
379
- # Windows — set as system environment variables, or in PowerShell:
380
- $env:FIGMA_API_KEY = "your-figma-api-key"
381
- $env:SKETCH_API_KEY = "your-sketch-api-key"
382
- $env:MG_MCP_TOKEN = "your-mastergo-token"
383
- $env:MODAO_TOKEN = "your-modao-token"
384
- ```
385
-
386
- ---
387
-
388
- ## Reports
389
-
390
- Every review, analysis, and evaluation writes a timestamped Markdown report to `reports/`. These serve as an audit trail and a handoff artifact for PRs.
391
-
392
- <details>
393
- <summary>Click to see all 16 report types</summary>
394
-
395
- | Report type | Filename pattern | Produced by |
396
- | ---------------------- | -------------------------------------------- | ------------------------------------------------------------------- |
397
- | Code review | `code-review-YYYY-MM-DD-HHmmss.md` | `/fec-review`, `fec-code-review`, `fec-code-reviewer` |
398
- | Debug diagnostics | `debug-YYYY-MM-DD-HHmmss.md` | `/fec-debug`, `fec-debug-framework`, `fec-debugger` |
399
- | TypeScript / JS review | `typescript-review-YYYY-MM-DD-HHmmss.md` | `fec-typescript-reviewer` |
400
- | Security review | `security-review-YYYY-MM-DD-HHmmss.md` | `fec-security-review`, `fec-security-reviewer` |
401
- | Accessibility | `accessibility-review-YYYY-MM-DD-HHmmss.md` | `fec-accessibility-check` |
402
- | Performance | `performance-review-YYYY-MM-DD-HHmmss.md` | `fec-performance-optimizer` |
403
- | Architecture | `architecture-proposal-YYYY-MM-DD-HHmmss.md` | `fec-architect` |
404
- | Design fidelity | `ui-fidelity-review-YYYY-MM-DD-HHmmss.md` | `fec-ui-checker` |
405
- | Design implementation | `design-implementation-YYYY-MM-DD-HHmmss.md` | `fec-figma-implementer` |
406
- | Token mapping | `token-mapping-YYYY-MM-DD-HHmmss.md` | `fec-design-token-mapper` |
407
- | Design plan | `design-plan-YYYY-MM-DD-HHmmss.md` | `fec-implement-from-design` |
408
- | Test plan | `test-plan-YYYY-MM-DD-HHmmss.md` | `/fec-plan`, `fec-testing-strategy`, `fec-test-planner` |
409
- | Validation fix | `validation-fix-YYYY-MM-DD-HHmmss.md` | `fec-validation-fix` |
410
- | Refactor clean | `refactor-clean-YYYY-MM-DD-HHmmss.md` | `/fec-refactor-clean`, `fec-refactor-clean`, `fec-refactor-cleaner` |
411
- | E2E run summary | `e2e-summary-YYYY-MM-DD-HHmmss.md` | `fec-e2e-runner` (optional) |
412
- | Migration plan | `migration-plan-YYYY-MM-DD-HHmmss.md` | `fec-legacy-to-modern-migration` |
413
-
414
- </details>
415
-
416
- > **Tip:** add `reports/` to `.gitignore` to keep the auto-generated reports out of version control — or commit them to preserve a team review history.
417
-
418
- ---
419
-
420
- ## Update and Remove
421
-
422
- `fec` is the short command for `frontend-craft`. If you have not installed the global `fec` command, use the same arguments with `npx @bovinphang/frontend-craft@latest`, for example `npx @bovinphang/frontend-craft@latest update`.
423
-
424
- ### Update
425
-
426
- ```bash
427
- fec update # Update all discovered CLI-managed installs
428
- fec update <runtime> --local # Update one local CLI-managed install
429
- fec update <runtime> --global # Update one global CLI-managed install
430
- fec upgrade <runtime> --global # `upgrade` is an alias for `update`
431
- ```
432
-
433
- ### Remove
434
-
435
- ```bash
436
- fec uninstall # Remove all discovered CLI-managed installs
437
- fec remove # `remove` is an alias for `uninstall`
438
- fec uninstall <runtime> # Remove a specific runtime install
439
- fec remove <runtime> # Same removal through the alias
440
- fec uninstall --global # Remove discovered global installs only
441
- fec remove --local # Remove discovered local installs only
442
- fec uninstall <runtime> --dry-run # Preview removals
443
- fec uninstall <runtime> --force # Remove modified managed files too
444
- ```
445
-
446
- The CLI writes `frontend-craft.manifest.json` into the runtime directory. `update` discovers those manifests automatically when no runtime is provided and **skips files you’ve modified locally**, so customizations survive updates.
447
-
448
- `uninstall`/`remove` only deletes files recorded in the manifest. It skips modified files by default; add `--force` only when you want to remove modified managed files too. `--force` does not override a Claude Code Marketplace install.
449
-
450
- For **Claude Code Marketplace** or **submodule** installs, see [docs/runtimes/claude.md](docs/runtimes/claude.md) · [简体中文](docs/runtimes/claude.zh-CN.md). `/fec-init` only initializes project config; it is not a second plugin install.
451
-
452
- ---
453
-
454
- ## Legacy Skills CLI
455
-
456
- If your team already uses the standalone [Skills CLI](https://skills.sh/docs/cli), it can still install just the workflow skill packages from [`skills/`](skills/):
457
-
458
- ```bash
459
- npx skills add bovinphang/frontend-craft # follow prompts, or add -g for global
460
- npx skills update # update to latest
461
- npx skills check # preview available updates
462
- ```
463
-
464
- | CLI | Installs |
465
- | -------------------- | ------------------------------------------------------------------- |
466
- | `npx @bovinphang/frontend-craft` | Skills + runtime-specific agents, commands, hooks, rules, templates |
467
- | `npx skills` | Skills only (for existing Skills CLI workflows) |
468
-
469
- To disable telemetry: `DISABLE_TELEMETRY=1`. Details: [skills.sh CLI docs](https://skills.sh/docs/cli).
470
-
471
- ---
472
-
473
- ## Community
474
-
475
- - [Contributing Guide](CONTRIBUTING.md) — development setup, PR checklist, localization policy ([简体中文](CONTRIBUTING.zh-CN.md))
476
- - [Security Policy](SECURITY.md) — private vulnerability reporting ([简体中文](SECURITY.zh-CN.md))
477
- - [Code of Conduct](CODE_OF_CONDUCT.md) — community standards ([简体中文](CODE_OF_CONDUCT.zh-CN.md))
478
- - [Changelog](CHANGELOG.md) — release notes ([简体中文](CHANGELOG.zh-CN.md))
479
- - [Project structure](docs/project-structure.md) — full directory layout and file responsibilities ([简体中文](docs/zh-CN/project-structure.md))
480
-
481
- ---
482
-
483
- ## License
484
-
485
- [MIT](LICENSE) — use freely, modify as needed, contribute back if you can.
486
-
487
- ---
488
-
489
- <div align="center">
490
-
491
- **If frontend-craft helps your team ship better code, [give it a Star](https://github.com/bovinphang/frontend-craft).**
492
-
493
- </div>
1
+ <div align="center">
2
+
3
+ <img src="assets/brand/frontend-craft.png" alt="frontend-craft logo" width="200" />
4
+
5
+ # frontend-craft
6
+
7
+ ### One toolkit. Every AI coding assistant. Production-grade frontend standards.
8
+
9
+ [![Stars](https://img.shields.io/github/stars/bovinphang/frontend-craft?style=flat)](https://github.com/bovinphang/frontend-craft/stargazers)
10
+ [![CI](https://github.com/bovinphang/frontend-craft/actions/workflows/ci.yml/badge.svg)](https://github.com/bovinphang/frontend-craft/actions/workflows/ci.yml)
11
+ [![npm version](https://img.shields.io/npm/v/@bovinphang/frontend-craft)](https://www.npmjs.com/package/@bovinphang/frontend-craft)
12
+ [![License](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
13
+ ![Node](https://img.shields.io/badge/Node.js-22+-5FA04E?logo=node.js&logoColor=white)
14
+ ![TypeScript](https://img.shields.io/badge/-TypeScript-3178C6?logo=typescript&logoColor=white)
15
+ ![React](https://img.shields.io/badge/-React-61DAFB?logo=react&logoColor=black)
16
+ ![Vue](https://img.shields.io/badge/-Vue-4FC08D?logo=vue.js&logoColor=white)
17
+ ![Figma](https://img.shields.io/badge/-Figma-F24E1E?logo=figma&logoColor=white)
18
+
19
+ **🌐 Language / 语言 / 語言 / 言語 / 언어**
20
+
21
+ [**English**](README.md) · [简体中文](README.zh-CN.md) · [繁體中文](docs/zh-TW/README.md) · [日本語](docs/ja-JP/README.md) · [한국어](docs/ko-KR/README.md)
22
+
23
+ </div>
24
+
25
+
26
+ [Runtime compatibility and upgrade notes](docs/runtimes/compatibility.md)
27
+
28
+ ---
29
+
30
+ `frontend-craft` is a **universal frontend plugin** that brings the same opinionated engineering standards to all **15 AI coding assistants** listed below:
31
+
32
+ `claude` `codex` `cursor` `windsurf` `opencode`
33
+ `kilo` `gemini` `copilot` `antigravity` `augment`
34
+ `trae` `codebuddy` `cline` `openclaw` `qoder`
35
+
36
+ Per-runtime paths and caveats live in [`docs/runtimes/`](docs/runtimes/).
37
+
38
+ It bundles **14 specialized agents**, **56 auto-activated skills**, **11 slash commands**, **5 event-driven hooks**, **MCP integrations** for 6 design-tool endpoints, and a complete **rules library** into a single installable package. Run one command, and every AI session on your team writes React, Vue, Next.js, or Nuxt the same way — typed, accessible, secure, and consistent.
39
+
40
+ ---
41
+
42
+ ## Why frontend-craft?
43
+
44
+ | Problem | What frontend-craft does |
45
+ | -------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- |
46
+ | AI assistants write inconsistent, untyped, or insecure frontend code | **56 skills** encode team standards — auto-activated when the assistant touches matching files |
47
+ | Each AI tool has its own plugin format | **One CLI** installs the same rules, agents, and hooks into 15 runtimes |
48
+ | Design-to-code handoff is lossy | **MCP integrations** bring in richer context from Figma, Figma Desktop, Sketch, MasterGo, Pixso, and 墨刀 |
49
+ | Reviews are ad-hoc and shallow | **14 agents** produce graded reports: code, security, a11y, performance, TS, UI fidelity |
50
+ | No one remembers to run lint/tests | **Event-driven hooks** validate on save and session end — automatically |
51
+ | New projects start from scratch every time | **`/fec-init`** scaffolds CLAUDE.md, rules, and settings in seconds |
52
+
53
+ ---
54
+
55
+ ## Install
56
+
57
+ Requires **Node.js 22+**. Works on **Windows, macOS, and Linux**.
58
+
59
+ ### Option 1 - Install the fec CLI globally (recommended)
60
+
61
+ ```bash
62
+ # 1. Install the fec command globally
63
+ npm install -g @bovinphang/frontend-craft@latest
64
+
65
+ # 2. Go to your frontend project
66
+ cd your-project
67
+
68
+ # 3. Choose the AI runtime(s) interactively
69
+ fec setup
70
+
71
+ # 4. Connect the current project
72
+ fec setup codex
73
+ fec setup claude
74
+ fec setup all
75
+
76
+ # 5. Connect globally, available across all projects
77
+ fec setup codex --global
78
+ fec setup claude --global
79
+ fec setup all --global
80
+
81
+ # 6. Preview / query
82
+ fec install --all --dry-run --global
83
+ fec list
84
+ ```
85
+
86
+ `npm install -g` only installs the `fec` terminal command. `fec setup` is the terminal CLI command for connecting frontend-craft to a project; it is not the in-assistant `/fec-init` slash command. In an interactive terminal, running only `fec setup` asks you to choose runtimes. `fec setup <runtime>` and `fec setup all` connect frontend-craft to the current project by default. Only pass `--global` when you want to connect frontend-craft to the selected AI tool's global config directory so it is available across projects.
87
+
88
+ ### Option 2 — Temporary npx run (no global fec command)
89
+
90
+ ```bash
91
+ # 1. Interactive wizard
92
+ npx @bovinphang/frontend-craft@latest
93
+
94
+ # 2. Connect the current project
95
+ npx @bovinphang/frontend-craft@latest install --local codex
96
+ npx @bovinphang/frontend-craft@latest install --local claude
97
+ npx @bovinphang/frontend-craft@latest install --all --local
98
+
99
+ # 3. Connect globally, available across all projects
100
+ npx @bovinphang/frontend-craft@latest install --global codex
101
+ npx @bovinphang/frontend-craft@latest install --global claude
102
+ npx @bovinphang/frontend-craft@latest install --all --global
103
+
104
+ # 4. Preview / query
105
+ npx @bovinphang/frontend-craft@latest install --all --dry-run --global
106
+ npx @bovinphang/frontend-craft@latest list
107
+ ```
108
+
109
+ Use `npx` when you do not want to install a global `fec` command. Without arguments, it opens the interactive wizard: choose one or more runtimes, then choose whether to connect globally or into the current project. For scripted all-runtime installs, use `install --all --local` or `install --all --global`; do not write `install all`. For CI / scripts, always pass `--global` / `-g` or `--local` / `-l`; in non-TTY environments without an explicit location, the CLI defaults to `claude --global`.
110
+
111
+ ### Option 3 — Claude Code Marketplace
112
+
113
+ For Claude Code users, **Claude Code Marketplace** is the preferred single-source install. Use the CLI for Claude only when you need cross-runtime installs, scripted/offline file copies, or non-Marketplace environments.
114
+
115
+ If Marketplace is already installed, the CLI will not install or update a second Claude copy, even with `--force`; update through Claude Code Marketplace instead. If a CLI-managed Claude install already exists in the other scope, interactive terminals ask whether to keep that source updated or uninstall it before switching. Non-interactive terminals stop and print the exact `update`, `uninstall`, and `install` commands to run.
116
+
117
+ Full Claude-specific steps are in [docs/runtimes/claude.md](docs/runtimes/claude.md) · [简体中文](docs/runtimes/claude.zh-CN.md).
118
+
119
+ ---
120
+
121
+ ## Quick start
122
+
123
+ Once installed, you have a full frontend engineering toolkit available in every AI session:
124
+
125
+ ```text
126
+ You: "Review my recent changes"
127
+ → The fec-code-reviewer agent is dispatched, produces reports/code-review-*.md
128
+
129
+ You: "/fec-review"
130
+ → Runs a structured review across architecture, types, rendering, styles, a11y
131
+
132
+ You: "Implement the checkout page from this Figma link"
133
+ → The fec-figma-implementer agent reads the design via MCP, emits components and a report
134
+
135
+ You: "/fec-scaffold dashboard feature"
136
+ → Creates a page / feature / component directory tree following project conventions
137
+
138
+ You: "/fec-refactor-clean"
139
+ → Classifies and safely removes dead code, unused exports, styles, and deps
140
+
141
+ You: "/fec-refactor src/features/compose"
142
+ → Diagnoses structural smells, builds a small-step plan, refactors one behavior-preserving step at a time, and validates every step
143
+ ```
144
+
145
+ All slash commands below are shown for **Claude Code**; other runtimes expose the same capabilities through their own command systems (see [`docs/runtimes/`](docs/runtimes/)).
146
+
147
+ ---
148
+
149
+ ## Example prompts
150
+
151
+ For a complete scenario-based prompt library, see [docs/example-prompts.md](docs/example-prompts.md).
152
+
153
+ ```text
154
+ You: "Review my recent changes before merge. Focus on architecture, type safety, rendering behavior, styles, accessibility, and missing tests."
155
+ You: "Before coding, plan the account billing feature: route structure, component boundaries, data flow, state ownership, validation flow, and rollout risks."
156
+ You: "Build a multi-step registration form; choose the right form and schema validation approach for this project, with file upload, conditional fields, async validation, and accessible errors."
157
+ You: "Implement the UI from Figma node 123:456. Use existing design tokens and components, match spacing and responsive states, and document assumptions."
158
+ You: "`/fec-refactor-clean` Clean up dead code in this module."
159
+ You: "`/fec-smell` Diagnose structural smells in this module without editing."
160
+ You: "`/fec-refactor-plan` Build a behavior-preserving small-step refactoring plan."
161
+ You: "`/fec-refactor` Refactor this module without changing observable behavior."
162
+ ```
163
+
164
+ ---
165
+
166
+ ## What’s inside
167
+
168
+ ### Commands
169
+
170
+ Slash commands are the primary entry points for structured workflows. Most produce a timestamped Markdown report under `reports/`.
171
+
172
+ | Command | Purpose | Report |
173
+ | --------------------- | ---------------------------------------------------------------------- | ------------------------------------------------ |
174
+ | `/fec-init` | Initialize project templates (CLAUDE.md, rules, settings) | — |
175
+ | `/fec-review` | Review the full project by default; explicit file/directory or change scope | `code-review-*.md` |
176
+ | `/fec-scaffold` | Create page / feature / component boilerplate by convention | — |
177
+ | `/fec-plan` | Unified planning: implementation architecture or test strategy | `architecture-proposal-*.md` or `test-plan-*.md` |
178
+ | `/fec-tdd` | Red → green → refactor loop for frontend TDD | — |
179
+ | `/fec-debug` | Diagnose and fix frontend issues: build, runtime, UI, and API failures | `debug-*.md` |
180
+ | `/fec-refactor-clean` | Classify and safely remove dead code, unused exports, styles, and deps | `refactor-clean-*.md` |
181
+ | `/fec-smell` | Diagnose code smells with evidence; do not edit business code | `refactoring/smell-*.md` |
182
+ | `/fec-refactor-plan` | Build an ordered behavior-preserving refactoring plan | `refactoring/plan-*.md` |
183
+ | `/fec-refactor` | Execute one validated behavior-preserving refactoring step at a time | `refactoring/refactoring-*.md` |
184
+ | `/fec-doc-sync` | Sync READMEs, docs, env notes, scripts, API/route notes, and deploy docs | — |
185
+
186
+ ### Review scope
187
+
188
+ `/fec-review`, the code/TypeScript/security review agents, and their review skills use three modes:
189
+
190
+ - **Change review:** explicitly request recent/current/staged changes, a PR or a commit, or use an established change context. With no changes, report that there is nothing to review; do not automatically review recent commits.
191
+ - **Targeted review:** specify a file or directory to review existing code, including unchanged code, without requiring a Git diff.
192
+ - **Project review (default):** with no scope or change context, or when the entire project is requested, inventory project-owned frontend code, related tests, configuration and dependency declarations, then review by module.
193
+
194
+ A file/directory request reviews its full contents; add "recent changes" to review only its diff. Bare `/fec-review` reviews the project even when changes exist. State mode and scope before review. Automatic review after edits must pass the current change scope explicitly.
195
+
196
+ Examples: `/fec-review`,`/fec-review review recent changes`, `/fec-review review src/components/Button.tsx`, `/fec-review review src/features/`, and `/fec-review review the entire project`. These are natural-language instructions, not CLI flags. Explicit scope takes precedence over the default.
197
+
198
+ Dependency directories, build outputs, caches, generated files and third-party code are excluded by default. Reports record the mode, target scope, reviewed and unreviewed files/modules, exclusions, completion status and verification results. Limited coverage is marked partial; reading callers or running project-wide lint/typecheck does not establish manual review coverage. Change reviews retain merge recommendations; targeted/project reviews assess risk within reviewed scope. The frontend review does not replace a backend audit, and reviewers do not edit business code unless repairs are requested.
199
+
200
+ ### Skills (auto-activated)
201
+
202
+ Skills are workflow definitions that activate automatically based on file patterns, frameworks, or task context. They encode review dimensions, output conventions, and report formats.
203
+
204
+ The skills below are grouped by use case so you can quickly find project standards, implementation, testing, review, design, migration, project evolution, and documentation workflows.
205
+
206
+ **Project standards** — conventions enforced whenever matching frameworks are detected:
207
+
208
+ | Skill | Scope |
209
+ | ------------------------------- | --------------------------------------------------------------------- |
210
+ | `fec-react-project-standard` | React + TypeScript (structure, components, routing, state, API layer) |
211
+ | `fec-vue3-project-standard` | Vue 3 + TypeScript (structure, components, routing, Pinia, API layer) |
212
+ | `fec-nextjs-project-standard` | Next.js 14+ App Router, SSR/SSG, streaming, metadata |
213
+ | `fec-nuxt-project-standard` | Nuxt 3 SSR/SSG, composables, data fetching, middleware |
214
+ | `fec-vite-project-standard` | Vite config, env safety, HMR, dev proxy, build optimization |
215
+ | `fec-monorepo-project-standard` | pnpm workspace, Turborepo, Nx structure and task orchestration |
216
+ | `fec-typescript-project-standard` | TypeScript config, public API types, declarations, DTOs, generics |
217
+
218
+ **Implementation capabilities** — activated when building specific frontend behavior:
219
+
220
+ | Skill | Scope |
221
+ | ------------------------- | ------------------------------------------------------------------------- |
222
+ | `fec-data-fetching` | Server-state fetching, caching, invalidation, SSR, infinite loading |
223
+ | `fec-api-integration` | Typed API clients, auth refresh, uploads, realtime integration |
224
+ | `fec-state-management` | State ownership, store selection, URL state, server/form/local boundaries |
225
+ | `fec-form-handling` | Framework-aware forms, schema validation, dynamic fields, uploads |
226
+ | `fec-browser-storage` | localStorage / sessionStorage / IndexedDB / Cookies selection |
227
+ | `fec-route-protection` | Auth and permission routes for React Router, Next.js, Vue Router, Nuxt |
228
+ | `fec-pwa-implementation` | Manifest, service worker, offline cache, install prompts |
229
+ | `fec-web-workers` | Web Worker integration, transferables, Comlink, worker pools |
230
+ | `fec-canvas-threejs` | Canvas 2D, Three.js, React Three Fiber, WebGL |
231
+ | `fec-svg-animation` | CSS / Framer Motion / GSAP SVG animation with reduced-motion |
232
+ | `fec-list-virtualization` | Framework-aware list virtualization, measurement, grids, infinite scroll |
233
+
234
+ **Testing** — activated when planning or authoring frontend test coverage:
235
+
236
+ | Skill | Scope |
237
+ | ----------------------- | ------------------------------------------------------------------------ |
238
+ | `fec-testing-strategy` | Layer selection across static, unit, component, integration, E2E, visual |
239
+ | `fec-component-testing` | React Testing Library / Vue Test Utils with regression scenarios |
240
+ | `fec-e2e-testing` | Playwright / Cypress E2E with Page Object and CI integration |
241
+ | `fec-tdd-workflow` | Test-first frontend implementation with red-green-refactor |
242
+
243
+ **Review & quality** — activated during review, validation, or cleanup workflows:
244
+
245
+ | Skill | Scope |
246
+ | ------------------------------ | ----------------------------------------------------------------------------- |
247
+ | `fec-code-review` | Correctness, maintainability, types, rendering, and verification review |
248
+ | `fec-debug-framework` | Systematic diagnostics for build, runtime, UI, and API/data failures |
249
+ | `fec-security-review` | Browser-side XSS, CSRF, token exposure, unsafe DOM, and third-party risks |
250
+ | `fec-accessibility-check` | WCAG 2.2, keyboard, focus, touch, and screen-reader behavior |
251
+ | `fec-dependency-upgrade` | Dependency upgrades, lockfile review, CVE remediation, migration verification |
252
+ | `fec-validation-fix` | Run and repair lint, type-check, test, build in one pass |
253
+ | `fec-performance-optimization` | Core Web Vitals, bundle, rendering, memory, network, and budget reviews |
254
+ | `fec-refactor-clean` | Safe dead-code, unused export, style, route, dependency cleanup |
255
+
256
+ **Refactoring** — activated for evidence-based, behavior-preserving structural improvement:
257
+
258
+ | Skill | Purpose |
259
+ | --- | --- |
260
+ | `fec-refactoring` | Orchestrate classification, baseline, safety, small-step execution, rollback, and proof |
261
+ | `fec-code-smells` | Diagnose the 24 canonical code smells with evidence and false-positive checks |
262
+ | `fec-refactoring-catalog` | Select and compose techniques from the complete 61-item catalog |
263
+ | `fec-refactoring-functions` | Function decomposition, naming, variable, parameter-object, and phase refactorings |
264
+ | `fec-refactoring-encapsulation` | Record, collection, primitive, class, delegate, and algorithm encapsulation refactorings |
265
+ | `fec-refactoring-move-features` | Move functions/fields/statements, split loops, pipelines, and dead-code routing |
266
+ | `fec-refactoring-data` | Variable/field and reference/value data refactorings |
267
+ | `fec-refactoring-control` | Conditional decomposition, guards, polymorphic dispatch, special cases, assertions |
268
+ | `fec-refactoring-api` | Query/modifier, parameter, flag, factory, command, and API-shape refactorings |
269
+ | `fec-refactoring-inheritance` | Inheritance/delegation refactorings with composition-first frontend adaptations |
270
+ | `fec-refactoring-validation` | Behavior-preservation contracts, coverage levels, verification ladder, proof verdicts |
271
+
272
+ **Design UI** — activated for design-to-code, design systems, and visual polish:
273
+
274
+ | Skill | Scope |
275
+ | ----------------------------- | ----------------------------------------------------------------------------- |
276
+ | `fec-ui-design` | Product-context UI direction, anti-generic design dials, media strategy, states, visual QA |
277
+ | `fec-image-generation` | System blueprints, process workflows, interactive live diagrams, HTML/SVG/PNG exports, image generation/editing, visual assets, and PNG QA |
278
+ | `fec-drawio-studio` | Editable draw.io / diagrams.net technical diagrams, XML/Mermaid/CSV URL handoff, shape lookup, auto-layout, code maps |
279
+ | `fec-web-video-presentation` | Recordable 16:9 step-driven web presentations from articles, scripts, lessons, and demos |
280
+ | `fec-tailwind-design-system` | Tailwind tokens, theme extension, variants, class governance, dark mode |
281
+ | `fec-responsive-layout` | Mobile-first layouts, container queries, data-dense responsive UI |
282
+ | `fec-motion-interaction` | Context-aware motion intensity, page transitions, scroll animation, reduced motion |
283
+ | `fec-implement-from-design` | Build UI from design tools, screenshots, or section-level visual references |
284
+ | `fec-storybook-component-doc` | Storybook component docs, design-system presentation, isolated state previews |
285
+
286
+ Technical diagram quality: `fec-image-generation` prefers local Mermaid for standard sequence/workflow diagrams and the draw.io workflow for editable architecture, with JSON/HTML fallback when tools are unavailable. Export a browser-measured manifest scaled to the PNG, run QA and inspect the final image. Preserve complete text, explicit layout and relationships; repair the source for at most two automatic rounds and report unresolved issues. Reproducible fixtures are in `skills/fec-image-generation/assets/quality-examples/`.
287
+
288
+ [Review and technical diagram guide](docs/review-and-diagram-workflows.md).
289
+
290
+ **Legacy migration** — activated during modernization work:
291
+
292
+ | Skill | Scope |
293
+ | -------------------------------- | ---------------------------------------------------------- |
294
+ | `fec-legacy-web-standard` | Standards for JS + jQuery + HTML maintenance |
295
+ | `fec-legacy-to-modern-migration` | Legacy frontend modernization, target-stack selection, phased workflow |
296
+
297
+ **Project evolution** — activated when absorbing reference systems into project-native improvements:
298
+
299
+ | Skill | Scope |
300
+ | ------------- | ---------------------------------------------------------------------- |
301
+ | `fec-alchemy` | Absorb reference system ideas through original, project-native redesign |
302
+
303
+ **Maintenance docs** — activated during documentation upkeep:
304
+
305
+ | Skill | Scope |
306
+ | ------------------------------- | -------------------------------------------------------------------------------------- |
307
+ | `fec-backend-requirements-handoff` | Frontend-to-backend handoff for UI data needs, actions, states, rules, and questions |
308
+ | `fec-doc-sync` | Keep frontend docs in sync with code, config, scripts, routes, APIs, env, and deploy facts |
309
+ | `fec-source-driven-development` | Verify version-sensitive frontend decisions against project facts and official sources |
310
+
311
+ ### Agents
312
+
313
+ Agents are specialized sub-agents dispatched by the main assistant to handle a focused task. Each returns a structured report.
314
+
315
+ | Agent | Focus | Report |
316
+ | --------------------------- | -------------------------------------------------------------------------- | ---------------------------- |
317
+ | `fec-code-reviewer` | React/Vue/Next/Nuxt, TS, styles, client-side security (confidence-based) | `code-review-*.md` |
318
+ | `fec-typescript-reviewer` | Type safety, async correctness, idiomatic patterns (report-only) | `typescript-review-*.md` |
319
+ | `fec-security-reviewer` | XSS, client secrets, dangerous DOM/APIs, CSP, dependency audit | `security-review-*.md` |
320
+ | `fec-performance-optimizer` | Bundle size, render performance, network bottlenecks | `performance-review-*.md` |
321
+ | `fec-architect` | Page splitting, component architecture, state flow, directory planning | `architecture-proposal-*.md` |
322
+ | `fec-test-planner` | Risk-to-layer matrix: static, unit, component, E2E, visual, a11y, security | `test-plan-*.md` |
323
+ | `fec-debugger` | Complex frontend diagnostics for build, runtime, UI, and API failures | `debug-*.md` |
324
+ | `fec-refactor-cleaner` | Classify and safely remove unused code, exports, styles, routes, deps | `refactor-clean-*.md` |
325
+ | `fec-refactoring-expert` | Evidence-based behavior-preserving refactoring orchestration | `refactoring/refactoring-*.md` |
326
+ | `fec-e2e-runner` | E2E authoring and runs (Playwright/Cypress), flaky quarantine, traces | `e2e-summary-*.md` |
327
+ | `fec-doc-updater` | Sync README, runtime docs, structure, capability tables, metadata | — |
328
+ | `fec-ui-checker` | Visual issue debugging and design fidelity evaluation | `ui-fidelity-review-*.md` |
329
+ | `fec-figma-implementer` | Precise UI implementation from Figma/Sketch/MasterGo/Pixso/墨刀 designs | `design-implementation-*.md` |
330
+ | `fec-design-token-mapper` | Map design variables to project Design Tokens | `token-mapping-*.md` |
331
+
332
+ ### Hooks (event-driven)
333
+
334
+ Hooks run automatically on AI assistant events — no invocation needed.
335
+
336
+ | Event | Behavior |
337
+ | ------------------------- | -------------------------------------------------------------- |
338
+ | `SessionStart` | Clean Claude cache, then detect project framework and package manager |
339
+ | `PreToolUse(Bash)` | Block dangerous commands (`rm -rf`, force push, etc.) |
340
+ | `PostToolUse(Write/Edit)` | Auto-format modified files with Prettier |
341
+ | `Stop` | Run available validation scripts once, report failures, and block only when configured |
342
+ | `Notification` | Cross-platform desktop notifications (macOS / Linux / Windows) |
343
+
344
+ Stop validation is advisory by default: failures are reported without blocking the session. Set `FRONTEND_CRAFT_VALIDATION_MODE=blocking` to return a failure status. The hook uses `packageManager` from `package.json` when present, otherwise a single lockfile; conflicting lockfiles default to npm.
345
+
346
+ ### MCP integration
347
+
348
+ Plug your AI assistant into design tools for design-to-code workflows with richer design context.
349
+
350
+ | Service | Capabilities |
351
+ | ----------------- | ---------------------------------------------------- |
352
+ | **Figma** | Read design context and variable definitions |
353
+ | **Figma Desktop** | Figma desktop client integration |
354
+ | **Sketch** | Read design selection screenshots |
355
+ | **MasterGo** | Read DSL structure, component hierarchy, styles |
356
+ | **Pixso** | Local MCP: frame data, code snippets, image assets |
357
+ | **墨刀** | Prototype data, design descriptions, HTML import |
358
+ | **摹客** | Screenshot/annotation/exported-CSS workflow (no MCP) |
359
+
360
+ ### Project templates (`/fec-init`)
361
+
362
+ Run `/fec-init` to scaffold a ready-to-use rules library and project config into `.claude/`:
363
+
364
+ <details>
365
+ <summary>Click to see all 20 template files</summary>
366
+
367
+ | File | Purpose |
368
+ | ---------------------------------------- | --------------------------------------------------------------------- |
369
+ | `CLAUDE.md` | Project description, commands, working principles, security |
370
+ | `settings.json` | Permission whitelist/blacklist, environment variables |
371
+ | `rules/fec-vue.md` | Vue 3 component standards and anti-patterns |
372
+ | `rules/fec-react.md` | React component standards and anti-patterns |
373
+ | `rules/fec-design-system.md` | Design system, tokens, accessibility |
374
+ | `rules/fec-testing.md` | Testing and validation rules |
375
+ | `rules/fec-git-conventions.md` | Conventional Commits |
376
+ | `rules/fec-i18n.md` | Internationalization copy standards |
377
+ | `rules/fec-performance.md` | Frontend performance rules |
378
+ | `rules/fec-rendering-patterns.md` | Rendering lifecycle, hydration, SSR/CSR, and update patterns |
379
+ | `rules/fec-responsive-design.md` | Responsive layout, breakpoints, touch targets, and viewport behavior |
380
+ | `rules/fec-source-driven-development.md` | Source-driven decisions, official docs, version-sensitive assumptions |
381
+ | `rules/fec-api-layer.md` | API layer typing and error handling |
382
+ | `rules/fec-state-management.md` | State classification, strategy, anti-patterns |
383
+ | `rules/fec-error-handling.md` | Error layering, Error Boundary, fallback UI, reporting |
384
+ | `rules/fec-naming-conventions.md` | Unified naming for files, components, variables, routes, API, CSS |
385
+ | `rules/fec-code-comments.md` | When and how to write frontend comments |
386
+ | `rules/fec-ci-cd.md` | CI/CD pipeline stages, GitHub Actions / GitLab CI, secrets |
387
+ | `rules/fec-refactoring.md` | Refactoring constraints and feature-parity requirements |
388
+ | `rules/fec-agent-workflow.md` | Agent collaboration boundaries and delegation |
389
+ | `rules/fec-working-modes.md` | Research, planning, development, review, finishing modes |
390
+
391
+ </details>
392
+
393
+ ---
394
+
395
+ ## Configuration
396
+
397
+ ### Prerequisites
398
+
399
+ - **Node.js 22+**
400
+ - **npm, pnpm, or yarn**
401
+ - **Git Bash or a compatible shell** (Windows only, when your AI runtime invokes shell-based commands)
402
+
403
+ ### MCP design-tool tokens
404
+
405
+ Set the environment variable for whichever design tool your team uses:
406
+
407
+ | Variable | Tool | How to get |
408
+ | ---------------- | --------------------- | ----------------------------------------------------- |
409
+ | `FIGMA_API_KEY` | Figma / Figma Desktop | Figma account settings → Personal Access Tokens |
410
+ | `SKETCH_API_KEY` | Sketch | Sketch developer settings |
411
+ | `MG_MCP_TOKEN` | MasterGo | MasterGo account settings → Security → Generate Token |
412
+ | `MODAO_TOKEN` | 墨刀 | 墨刀 AI feature page → access token |
413
+
414
+ > **Pixso** uses a local MCP server — enable MCP in the Pixso client, no env var needed.
415
+ > **摹客** has no MCP integration; works via screenshots and exported CSS.
416
+
417
+ Add to your shell config for persistence:
418
+
419
+ ```bash
420
+ # macOS / Linux — append to ~/.bashrc or ~/.zshrc
421
+ export FIGMA_API_KEY="your-figma-api-key"
422
+ export SKETCH_API_KEY="your-sketch-api-key"
423
+ export MG_MCP_TOKEN="your-mastergo-token"
424
+ export MODAO_TOKEN="your-modao-token"
425
+ ```
426
+
427
+ ```powershell
428
+ # Windows — set as system environment variables, or in PowerShell:
429
+ $env:FIGMA_API_KEY = "your-figma-api-key"
430
+ $env:SKETCH_API_KEY = "your-sketch-api-key"
431
+ $env:MG_MCP_TOKEN = "your-mastergo-token"
432
+ $env:MODAO_TOKEN = "your-modao-token"
433
+ ```
434
+
435
+ ---
436
+
437
+ ## Reports
438
+
439
+ Every review, analysis, and evaluation writes a timestamped Markdown report to `reports/`. These serve as an audit trail and a handoff artifact for PRs.
440
+
441
+ <details>
442
+ <summary>Click to see all 19 report types</summary>
443
+
444
+ | Report type | Filename pattern | Produced by |
445
+ | ---------------------- | -------------------------------------------- | ------------------------------------------------------------------- |
446
+ | Code review | `code-review-YYYY-MM-DD-HHmmss.md` | `/fec-review`, `fec-code-review`, `fec-code-reviewer` |
447
+ | Debug diagnostics | `debug-YYYY-MM-DD-HHmmss.md` | `/fec-debug`, `fec-debug-framework`, `fec-debugger` |
448
+ | TypeScript / JS review | `typescript-review-YYYY-MM-DD-HHmmss.md` | `fec-typescript-reviewer` |
449
+ | Security review | `security-review-YYYY-MM-DD-HHmmss.md` | `fec-security-review`, `fec-security-reviewer` |
450
+ | Accessibility | `accessibility-review-YYYY-MM-DD-HHmmss.md` | `fec-accessibility-check` |
451
+ | Performance | `performance-review-YYYY-MM-DD-HHmmss.md` | `fec-performance-optimizer` |
452
+ | Architecture | `architecture-proposal-YYYY-MM-DD-HHmmss.md` | `fec-architect` |
453
+ | Design fidelity | `ui-fidelity-review-YYYY-MM-DD-HHmmss.md` | `fec-ui-checker` |
454
+ | Design implementation | `design-implementation-YYYY-MM-DD-HHmmss.md` | `fec-figma-implementer` |
455
+ | Token mapping | `token-mapping-YYYY-MM-DD-HHmmss.md` | `fec-design-token-mapper` |
456
+ | Design plan | `design-plan-YYYY-MM-DD-HHmmss.md` | `fec-implement-from-design` |
457
+ | Test plan | `test-plan-YYYY-MM-DD-HHmmss.md` | `/fec-plan`, `fec-testing-strategy`, `fec-test-planner` |
458
+ | Validation fix | `validation-fix-YYYY-MM-DD-HHmmss.md` | `fec-validation-fix` |
459
+ | Refactor clean | `refactor-clean-YYYY-MM-DD-HHmmss.md` | `/fec-refactor-clean`, `fec-refactor-clean`, `fec-refactor-cleaner` |
460
+ | Smell diagnosis | `refactoring/smell-YYYY-MM-DD-HHmmss.md` | `/fec-smell`, `fec-code-smells` |
461
+ | Refactoring plan | `refactoring/plan-YYYY-MM-DD-HHmmss.md` | `/fec-refactor-plan`, `fec-refactoring` |
462
+ | Refactoring execution | `refactoring/refactoring-YYYY-MM-DD-HHmmss.md` | `/fec-refactor`, `fec-refactoring`, `fec-refactoring-expert` |
463
+ | E2E run summary | `e2e-summary-YYYY-MM-DD-HHmmss.md` | `fec-e2e-runner` (optional) |
464
+ | Migration plan | `migration-plan-YYYY-MM-DD-HHmmss.md` | `fec-legacy-to-modern-migration` |
465
+
466
+ </details>
467
+
468
+ > **Tip:** add `reports/` to `.gitignore` to keep the auto-generated reports out of version control — or commit them to preserve a team review history.
469
+
470
+ ---
471
+
472
+ ## Update and Remove
473
+
474
+ `fec` is the short command for `frontend-craft`. If you have not installed the global `fec` command, use the same arguments with `npx @bovinphang/frontend-craft@latest`, for example `npx @bovinphang/frontend-craft@latest update`.
475
+
476
+ ### Update
477
+
478
+ ```bash
479
+ fec update # Update all discovered CLI-managed installs
480
+ fec update <runtime> --local # Update one local CLI-managed install
481
+ fec update <runtime> --global # Update one global CLI-managed install
482
+ fec upgrade <runtime> --global # `upgrade` is an alias for `update`
483
+ ```
484
+
485
+ ### Remove
486
+
487
+ ```bash
488
+ fec uninstall # Remove all discovered CLI-managed installs
489
+ fec remove # `remove` is an alias for `uninstall`
490
+ fec uninstall <runtime> # Remove a specific runtime install
491
+ fec remove <runtime> # Same removal through the alias
492
+ fec uninstall --global # Remove discovered global installs only
493
+ fec remove --local # Remove discovered local installs only
494
+ fec uninstall <runtime> --dry-run # Preview removals
495
+ fec uninstall <runtime> --force # Remove modified managed files too
496
+ ```
497
+
498
+ The CLI writes `frontend-craft.manifest.json` into the runtime directory. `update` discovers those manifests automatically when no runtime is provided and **skips files you’ve modified locally**, so customizations survive updates.
499
+
500
+ `uninstall`/`remove` only deletes files recorded in the manifest. It skips modified files by default; add `--force` only when you want to remove modified managed files too. `--force` does not override a Claude Code Marketplace install.
501
+
502
+ For **Claude Code Marketplace** or **submodule** installs, see [docs/runtimes/claude.md](docs/runtimes/claude.md) · [简体中文](docs/runtimes/claude.zh-CN.md). `/fec-init` only initializes project config; it is not a second plugin install.
503
+
504
+ ---
505
+
506
+ ## Legacy Skills CLI
507
+
508
+ If your team already uses the standalone [Skills CLI](https://skills.sh/docs/cli), it can still install just the workflow skill packages from [`skills/`](skills/):
509
+
510
+ ```bash
511
+ npx skills add bovinphang/frontend-craft # follow prompts, or add -g for global
512
+ npx skills update # update to latest
513
+ npx skills check # preview available updates
514
+ ```
515
+
516
+ | CLI | Installs |
517
+ | -------------------- | ------------------------------------------------------------------- |
518
+ | `npx @bovinphang/frontend-craft` | Skills + runtime-specific agents, commands, hooks, rules, templates |
519
+ | `npx skills` | Skills only (for existing Skills CLI workflows) |
520
+
521
+ To disable telemetry: `DISABLE_TELEMETRY=1`. Details: [skills.sh CLI docs](https://skills.sh/docs/cli).
522
+
523
+ ---
524
+
525
+ ## Community
526
+
527
+ - [Contributing Guide](CONTRIBUTING.md) — development setup, PR checklist, localization policy ([简体中文](CONTRIBUTING.zh-CN.md))
528
+ - [Security Policy](SECURITY.md) — private vulnerability reporting ([简体中文](SECURITY.zh-CN.md))
529
+ - [Code of Conduct](CODE_OF_CONDUCT.md) — community standards ([简体中文](CODE_OF_CONDUCT.zh-CN.md))
530
+ - [Changelog](CHANGELOG.md) — release notes ([简体中文](CHANGELOG.zh-CN.md))
531
+ - [Project structure](docs/project-structure.md) — full directory layout and file responsibilities ([简体中文](docs/zh-CN/project-structure.md))
532
+
533
+ ---
534
+
535
+ ## License
536
+
537
+ [MIT](LICENSE) — use freely, modify as needed, contribute back if you can.
538
+
539
+ ---
540
+
541
+ <div align="center">
542
+
543
+ **If frontend-craft helps your team ship better code, [give it a Star](https://github.com/bovinphang/frontend-craft).**
544
+
545
+ </div>