@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
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: fec-ui-checker
3
- description: 使用该子代理排查前端 UI 中的视觉缺陷、布局错乱、CSS 问题、响应式异常以及交互与设计不一致的问题,将报告保存为 Markdown 文件。支持从 Figma、Sketch、MasterGo、Pixso、墨刀、摹客获取设计数据,对比设计稿与实现结果,评估还原度并给出具体差异报告。
3
+ description: "Use this subagent to troubleshoot visual defects, layout confusion, CSS issues, responsive exceptions, and inconsistencies between interaction and design in the front-end UI, and save the report as a Markdown file. Supports obtaining design data from Figma, Sketch, MasterGo, Pixso, Moko, and Mock, compares the design draft with the implementation results, evaluates the degree of restoration, and provides a specific difference report."
4
4
  tools: Read, Edit, Write, MultiEdit, Glob, Grep, LS, Bash, WebFetch, mcp__figma__get_design_context, mcp__sketch__get_selection_as_image, mcp__mastergo__*, mcp__pixso__*, mcp__modao__*
5
5
  model: sonnet
6
6
  permissionMode: default
@@ -21,100 +21,100 @@ skills:
21
21
  - fec-validation-fix
22
22
  ---
23
23
 
24
- # UI 问题排查与设计还原度评估
24
+ # UI troubleshooting and design restoration evaluation
25
25
 
26
- 你是一名专注于设计还原度评估与 UI 问题排查的质量工程师。
26
+ You are a quality engineer focused on design reproducibility evaluation and UI problem troubleshooting.
27
27
 
28
- 关注重点:
28
+ Focus on:
29
29
 
30
- - 布局损坏
31
- - 溢出和裁剪
32
- - 间距或对齐错误
33
- - 样式优先级冲突
34
- - 响应式断点回归问题
35
- - 容器查询、触摸目标、安全区域和断点中间值问题
36
- - hover / focus / disabled 状态异常
37
- - 设计与实现不一致
38
- - 泛化模板感、视觉记忆点不足
39
- - 字体、色彩、动效和背景质感不成体系
40
- - Tailwind token、variant、暗色模式或动态 class 治理失控
30
+ - Broken layout
31
+ - Overflow and cropping
32
+ - Spacing or alignment errors
33
+ - Style priority conflict
34
+ - Responsive breakpoint regression problem
35
+ - Container query, touch target, safe area and breakpoint intermediate value issues
36
+ - hover / focus / disabled status abnormality
37
+ - Inconsistency between design and implementation
38
+ - Generalized template sense and insufficient visual memory points
39
+ - Fonts, colors, animations and background textures are fragmented
40
+ - Tailwind token, variant, dark mode or dynamic class management is out of control
41
41
 
42
- 工作流程:
42
+ Workflow:
43
43
 
44
- 1. 先定位最小可复现路径
45
- 2. 若项目存在 `design-system/<project>/pages/<page>.md`,先读取页面 override;再读取对应 `design-system/<project>/MASTER.md`
46
- 3. 检查组件结构和样式来源
47
- 4. 追踪问题来自 markup、CSS、Token、状态还是数据
48
- 5. 给出最小且稳妥的修复方案
49
- 6. 修改后进行验证
44
+ 1. First locate the minimum reproducible path
45
+ 2. If the project exists `design-system/<project>/pages/<page>.md`, first read the page override; then read the corresponding `design-system/<project>/MASTER.md`
46
+ 3. Check component structure and style sources
47
+ 4. Track whether the problem comes from markup, CSS, Token, state or data
48
+ 5. Provide minimal and stable repair solution
49
+ 6. Verify after modification
50
50
 
51
- 如果局部修复已足够,不要进行大范围重写。
51
+ Don't do a major rewrite if local fixes are enough.
52
52
 
53
- ## 检查流程
53
+ ## Check process
54
54
 
55
- 1. 从可用的设计工具获取设计数据(颜色、字体、间距、尺寸)
56
- - Figma / MasterGo / Pixso / 墨刀:通过 MCP 获取结构化数据
57
- - Sketch:通过 MCP 获取选区截图
58
- - 摹客:从用户提供的截图或标注中获取
59
- 2. 读取对应的实现代码
60
- 3. 如果存在设计系统文档,确认实现是否遵守 Master 与页面 override 的产品类型、token、图表、动效和 QA 规则
61
- 4. 逐项对比以下维度:
55
+ 1. Obtain design data (color, font, spacing, size) from available design tools
56
+ - Figma / MasterGo / Pixso / Mo Dao: Get structured data through MCP
57
+ - Sketch: Get a screenshot of the selection through MCP
58
+ - Mocke: Obtained from screenshots or annotations provided by users
59
+ 2. Read the corresponding implementation code
60
+ 3. If a design system document exists, confirm whether the implementation complies with the product type, token, chart, animation and QA rules of Master and page override
61
+ 4. Compare the following dimensions item by item:
62
62
 
63
- | 维度 | 权重 | 检查内容 |
63
+ | Dimensions | Weight | Check content |
64
64
  | --------- | ---- | ----------------------------------- |
65
- | 颜色 | 25% | 背景色、文字色、边框色与 token 对应 |
66
- | 间距 | 25% | padding/margin/gap 与设计一致 |
67
- | 字体 | 20% | 字号、字重、行高、字间距 |
68
- | 尺寸 | 15% | 组件宽高、图标尺寸 |
69
- | 圆角/阴影 | 10% | border-radius、box-shadow |
70
- | 响应式 | 5% | 各断点布局正确 |
65
+ | Color | 25% | Background color, text color, and border color correspond to token |
66
+ | Spacing | 25% | padding/margin/gap consistent with design |
67
+ | Font | 20% | Font size, font weight, line height, font spacing |
68
+ | Size | 15% | Component width and height, icon size |
69
+ | rounded corners/shadow | 10% | border-radius, box-shadow |
70
+ | Responsive | 5% | Each breakpoint is laid out correctly |
71
71
 
72
- 若任务不是设计稿还原,而是产品化 UI 质量检查,还需要补充评估:
72
+ If the task is not to restore the design draft, but to inspect the quality of the productized UI, additional evaluation is required:
73
73
 
74
- - 首屏主体是否明确,是否直接支撑核心任务
75
- - 视觉锚点是否贴合业务,而不是通用装饰
76
- - 字体层级、色彩角色、动效节奏和背景质感是否一致
77
- - 是否存在默认紫色渐变、空泛 hero、卡片堆叠、单一色相或无语境字体等模板化痕迹
78
- - 是否忽略 `design-system/MASTER.md` 或页面 override 中已定义的行业风险、图表选择、状态覆盖和交付前 QA
74
+ - Whether the subject of the first screen is clear and whether it directly supports the core tasks
75
+ - Whether the visual anchor is relevant to the business rather than a general decoration
76
+ - Whether the font level, color roles, animation rhythm and background texture are consistent
77
+ - Are there any traces of templating such as default purple gradient, empty hero, card stacking, single hue or non-contextual fonts?
78
+ - Whether to ignore industry risks, chart selection, status overrides and pre-delivery QA defined in `design-system/MASTER.md` or page override
79
79
 
80
- ## 输出格式
80
+ ## Output format
81
81
 
82
82
  ```
83
- # 设计还原度报告
83
+ # Design restoration report
84
84
 
85
- > 生成时间: YYYY-MM-DD HH:mm
86
- > 评审工具: frontend-craft
87
- > 设计工具: Figma / Sketch / MasterGo / Pixso / 墨刀 / 摹客
85
+ > Generation time: YYYY-MM-DD HH:mm
86
+ > Review tool: frontend-craft
87
+ > Design tools: Figma / Sketch / MasterGo / Pixso / Ink Knife / Mockup
88
88
 
89
- **总体得分**: XX/100
89
+ **Overall Score**: XX/100
90
90
 
91
- ## 颜色 (XX/25)
92
- ✅ 背景色: --color-bg-primary 正确
93
- ❌ 按钮色: 使用了 #3B82F6,应为 --color-brand-500
91
+ ## Color (XX/25)
92
+ ✅ Background color: --color-bg-primary correct
93
+ ❌ Button color: used #3B82F6, should be --color-brand-500
94
94
 
95
- ## 间距 (XX/25)
95
+ ## Spacing (XX/25)
96
96
  ...
97
97
 
98
- ## 字体 (XX/20)
98
+ ## Font (XX/20)
99
99
  ...
100
100
 
101
- ## 尺寸 (XX/15)
101
+ ## Size (XX/15)
102
102
  ...
103
103
 
104
- ## 圆角/阴影 (XX/10)
104
+ ## Rounded Corners/Shadow (XX/10)
105
105
  ...
106
106
 
107
- ## 响应式 (XX/5)
107
+ ## Responsive (XX/5)
108
108
  ...
109
109
 
110
- ## 需要调整的项目(按优先级)
110
+ ## Items that need adjustment (by priority)
111
111
  1. ...
112
112
  ```
113
113
 
114
- ## 报告文件输出
114
+ ## Report file output
115
115
 
116
- 检查完成后,必须将报告内容使用 Write 工具保存为 Markdown 文件:
116
+ After the check is completed, the report content must be saved as a Markdown file using the Write tool:
117
117
 
118
- - 目录:项目根目录下的 `reports/`(如不存在则创建)
119
- - 文件名:`ui-fidelity-review-YYYY-MM-DD-HHmmss.md`(使用当前时间戳)
120
- - 保存后告知用户报告文件路径
118
+ - Directory: `reports/` in the project root directory (create it if it does not exist)
119
+ - Filename: `ui-fidelity-review-YYYY-MM-DD-HHmmss.md` (use current timestamp)
120
+ - Inform the user of the report file path after saving
@@ -1,30 +1,30 @@
1
1
  ---
2
2
  name: fec-debug
3
- description: 前端问题诊断与修复:覆盖构建失败、运行时错误、UI 异常、接口问题,使用统一诊断框架按类型分流。
3
+ description: "Front-end problem diagnosis and repair: covering build failures, runtime errors, UI exceptions, and interface problems, using a unified diagnostic framework to classify problems by type."
4
4
  ---
5
5
 
6
- 按 `fec-debug-framework` 执行前端问题诊断与修复。先分类问题类型(build / runtime / ui / api),再进入对应诊断模块执行 5 步法(分类→收集→假设→验证→修复)。复杂或跨类型问题可委托 **`fec-debugger`** 子代理。
6
+ Press `fec-debug-framework` to perform front-end problem diagnosis and repair. First classify the problem type (build/runtime/ui/api), and then enter the corresponding diagnosis module to perform the 5-step method (classification → collection → hypothesis → verification → repair). Complex or cross-type issues can be delegated to the **`fec-debugger`** subagent.
7
7
 
8
- ## 问题类型速查
8
+ ## Question type quick check
9
9
 
10
- | 类型 | 典型场景 |
10
+ | Type | Typical Scenario |
11
11
  | ------- | ----------------------------------------------- |
12
- | build | lint/type-check/test/build/CI 失败 |
13
- | runtime | JS 异常、白屏、组件渲染错误、路由异常、状态丢失 |
14
- | ui | 样式错位、交互异常、动画卡顿、响应式问题 |
15
- | api | 请求失败、超时、数据不一致、CORS、缓存问题 |
12
+ | build | lint/type-check/test/build/CI failed |
13
+ | runtime | JS exception, white screen, component rendering error, routing exception, state loss |
14
+ | ui | style misalignment, abnormal interaction, animation lag, responsiveness issues |
15
+ | api | Request failure, timeout, data inconsistency, CORS, cache issues |
16
16
 
17
- ## 执行步骤
17
+ ## Execution steps
18
18
 
19
- 1. 读取用户描述的问题,按 `fec-debug-framework` Step 1 分类问题类型。
20
- 2. 进入对应诊断模块,执行 Step 2 收集证据。
21
- 3. 基于证据提出假设(Step 3),逐一验证(Step 4)。
22
- 4. 确认根因后执行最小修复(Step 5),运行受影响验证命令。
23
- 5. 输出诊断报告到 `reports/debug-YYYY-MM-DD-HHmmss.md`。
19
+ 1. Read the problems described by users and classify the problem types according to `fec-debug-framework` Step 1.
20
+ 2. Enter the corresponding diagnostic module and perform Step 2 to collect evidence.
21
+ 3. Propose hypotheses based on evidence (Step 3) and verify them one by one (Step 4).
22
+ 4. After confirming the root cause, perform minimal repair (Step 5) and run the affected verification command.
23
+ 5. Output the diagnostic report to `reports/debug-YYYY-MM-DD-HHmmss.md`.
24
24
 
25
- ## 强约束
25
+ ##Strong constraints
26
26
 
27
- - 不通过关闭规则、删除测试或降低类型安全来「修复」问题
28
- - 不顺手重构无关代码
29
- - 不在缺少证据时猜测根因
30
- - 修复后必须验证,不能只改不测
27
+ - Don't "fix" the problem by turning off rules, removing tests, or reducing type safety
28
+ - Not easily refactoring irrelevant code
29
+ - Don't guess at root cause when evidence is lacking
30
+ - It must be verified after repairing, you cannot just change it for accidents
@@ -1,19 +1,19 @@
1
1
  ---
2
2
  name: fec-doc-sync
3
- description: 从代码和项目事实源同步 README、docs、环境变量、脚本、API/路由/组件说明和部署说明。
3
+ description: Sync README, docs, environment variables, scripts, API/routing/component descriptions and deployment instructions from code and project sources of truth.
4
4
  ---
5
5
 
6
- 按 `fec-doc-sync` 同步前端工程文档。复杂多语言更新可委托 **`fec-doc-updater`**。
6
+ Press `fec-doc-sync` to synchronize front-end project documents. Complex multi-language updates can be delegated to **`fec-doc-updater`**.
7
7
 
8
- ## 执行步骤
8
+ ## Execution steps
9
9
 
10
- 1. 读取事实来源:`package.json`、lockfile、config、`.env.example`、路由、API clients/server routes、types/schemas、组件、测试、CI、build/deploy config。
11
- 2. 比对 README、docs、ADR、changelog、example prompts、setup/deploy/env docs。
12
- 3. 更新稳定的命令、环境变量、路由/API 行为、组件说明、部署步骤、版本约束和迁移说明。
13
- 4. 多语言文档保持关键信息一致。
14
- 5. 当目标仓库本身是 skill/agent/command 分发仓库时,也同步能力表、metadata、runtime docs 和 marketplace 描述。
15
- 6. 运行文档一致性、typecheck、测试、构建或相关打包检查。
10
+ 1. Read sources of truth: `package.json`, lockfile, config, `.env.example`, routes, API clients/server routes, types/schemas, components, tests, CI, build/deploy config.
11
+ 2. Compare README, docs, ADR, changelog, example prompts, setup/deploy/env docs.
12
+ 3. Update stable commands, environment variables, routing/API behavior, component descriptions, deployment steps, version constraints, and migration instructions.
13
+ 4. Keep key information consistent across multi-language documents.
14
+ 5. When the target warehouse itself is a skill/agent/command distribution warehouse, the capability table, metadata, runtime docs and marketplace description are also synchronized.
15
+ 6. Run document consistency, typecheck, test, build or related packaging checks.
16
16
 
17
- ## 输出要求
17
+ ## Output requirements
18
18
 
19
- 总结更新范围、事实来源、验证命令和仍需人工校对的翻译风险。
19
+ Summarize update scope, sources of fact, verification orders and translation risks that still require manual proofreading.
@@ -1,40 +1,40 @@
1
1
  ---
2
2
  name: fec-init
3
- description: 按当前 AI runtime 初始化 frontend-craft 项目模板、rules 或降级说明。
3
+ description: Initialize frontend-craft project template, rules or downgrade instructions according to the current AI runtime.
4
4
  ---
5
5
 
6
- 将 frontend-craft 提供的项目模板复制到当前项目对应 runtime 的配置目录中。优先根据当前目录已有配置判断 runtime;无法判断时,按用户正在使用的工具选择。
6
+ Copy the project template provided by frontend-craft to the configuration directory corresponding to the runtime of the current project. Priority will be given to judging the runtime based on the existing configuration in the current directory; if it cannot be judged, it will be selected based on the tool the user is using.
7
7
 
8
- ## 执行步骤
8
+ ## Execution steps
9
9
 
10
- 1. 检测 runtime:
11
- - 存在 `.claude/` 或 Claude Code 插件环境 → `claude`
12
- - 存在 `.codex/` 或 `AGENTS.md` → `codex`
13
- - 存在 `.openclaw/`、`OPENCLAW-CONFIG.md` 或 `openclaw.plugin.json` → `openclaw`
14
- - 存在 `.qoder/`、`.qoder/settings.json`、`.qoder/rules/` 或 `.qoder/skills/` → `qoder`
15
- - 存在 `.cursor/` → `cursor`
16
- - 存在 `.windsurf/` → `windsurf`
17
- - 存在 `.opencode/` → `opencode`
18
- - 存在 `.kilo/` → `kilo`
19
- - 存在 `.gemini/` 或 `GEMINI.md` → `gemini`
20
- - 存在 `.github/copilot-instructions.md` 或 `.github/instructions/` → `copilot`
21
- - 存在 `.trae/`、`.augment/`、`.codebuddy/`、`.clinerules` 时按对应 runtime 处理
22
- - 仍无法判断时,询问用户当前要初始化的 runtime。
10
+ 1. Detect runtime:
11
+ - Existence of `.claude/` or Claude Code plug-in environment → `claude`
12
+ - `.codex/` or `AGENTS.md` exists → `codex`
13
+ - Existence of `.openclaw/`, `OPENCLAW-CONFIG.md` or `openclaw.plugin.json` → `openclaw`
14
+ - Existence of `.qoder/`, `.qoder/settings.json`, `.qoder/rules/` or `.qoder/skills/` → `qoder`
15
+ - exists `.cursor/` → `cursor`
16
+ - exists `.windsurf/` → `windsurf`
17
+ - exists `.opencode/` → `opencode`
18
+ - exists `.kilo/` → `kilo`
19
+ - exists `.gemini/` or `GEMINI.md` → `gemini`
20
+ - Exist `.github/copilot-instructions.md` or `.github/instructions/` → `copilot`
21
+ - When `.trae/`, `.augment/`, `.codebuddy/`, `.clinerules` exist, they will be processed according to the corresponding runtime
22
+ - When still unable to determine, ask the user for the runtime currently to be initialized.
23
23
 
24
- 2. 按 runtime 初始化,不要在未确认时覆盖已有文件:
25
- - `claude`:复制 Claude 模板、hooks、commands、agents、skills 与 shared rules 到 `.claude/`;如 `.claude/CLAUDE.md` 已存在,先确认。
26
- - `codex`:复制 `templates/codex/AGENTS.md` 到项目根目录(如不存在)、`templates/codex/config.toml` 到 `.codex/config.toml`、shared rules 到 `.codex/rules/`;skills/agents 应由 CLI 安装流程负责。
27
- - `openclaw`:复制 `templates/openclaw/*.md` 到项目根目录、commands/skills 到 `.openclaw/`;如文件已存在,先确认。
28
- - `qoder`:复制 skills 到 `.qoder/skills/`、commands 到 `.qoder/commands/`、agents 到 `.qoder/agents/`、shared rules 到 `.qoder/rules/`、hook scripts 到 `.qoder/hooks/`,并生成或合并 `.qoder/settings.json` 的 hooks 配置。
29
- - `cursor`:复制 shared rules 到 `.cursor/rules/*.mdc`,保留 `fec-` skills 目录;说明 Cursor 不支持本插件 hooks。
30
- - `windsurf`:复制 commands 到 `.windsurf/workflows/`、shared rules 到 `.windsurf/rules/`、skills 到 `.windsurf/skills/`。
31
- - `opencode` / `kilo`:复制 commands 到 `.opencode/command/` 或 `.kilo/command/`,skills 到对应 `skills/`;OpenCode 可补 `.opencode/opencode.jsonc`。
32
- - `gemini`:复制 skills 到 `.gemini/extensions/frontend-craft/skills/`,如无 `GEMINI.md` 则由 Claude 模板改写生成。
33
- - `copilot`:合并 shared rules 到 `.github/instructions/frontend-craft.instructions.md`,commands 到 `.github/prompts/`。
34
- - `trae` / `cline`:只写入规则 bundle,并明确这是 rules-only 降级模式。
35
- - `antigravity` / `augment` / `codebuddy`:只安装 skills;输出“此 runtime 当前无 commands/hooks 原生适配”。
24
+ 2. Initialize by runtime, do not overwrite existing files without confirmation:
25
+ - `claude`: Copy Claude templates, hooks, commands, agents, skills and shared rules to `.claude/`; if `.claude/CLAUDE.md` already exists, confirm first.
26
+ - `codex`: Copy `templates/codex/AGENTS.md` to the project root (if it does not exist), `templates/codex/config.toml` to `.codex/config.toml`, shared rules to `.codex/rules/`; skills/agents should be taken care of by the CLI installation process.
27
+ - `openclaw`: Copy `templates/openclaw/*.md` to the project root directory and commands/skills to `.openclaw/`; if the file already exists, confirm first.
28
+ - `qoder`: Copy skills to `.qoder/skills/`, commands to `.qoder/commands/`, agents to `.qoder/agents/`, shared rules to `.qoder/rules/`, hook scripts to `.qoder/hooks/`, and generate or merge the hooks configuration of `.qoder/settings.json`.
29
+ - `cursor`: Copy shared rules to `.cursor/rules/*.mdc`, retain the `fec-` skills directory; Note that Cursor does not support hooks of this plug-in.
30
+ - `windsurf`: Copy commands to `.windsurf/workflows/`, shared rules to `.windsurf/rules/`, and skills to `.windsurf/skills/`.
31
+ - `opencode` / `kilo`: Copy commands to `.opencode/command/` or `.kilo/command/`, and skills to the corresponding `skills/`; OpenCode can complement `.opencode/opencode.jsonc`.
32
+ - `gemini`: Copy skills to `.gemini/extensions/frontend-craft/skills/`. If there is no `GEMINI.md`, it will be generated by rewriting the Claude template.
33
+ - `copilot`: merge shared rules into `.github/instructions/frontend-craft.instructions.md`, commands into `.github/prompts/`.
34
+ - `trae` / `cline`: Write only rules bundles, and make it clear that this is rules-only downgrade mode.
35
+ - `antigravity` / `augment` / `codebuddy`: only install skills; output "This runtime currently has no commands/hooks native adaptation".
36
36
 
37
- 3. Claude runtime 下,将以下模板文件从插件的 `${FRONTEND_CRAFT_ROOT}/templates/claude/` 与 `${FRONTEND_CRAFT_ROOT}/templates/shared/rules/` 复制到项目根目录的 `.claude/`:
37
+ 3. Under Claude runtime, copy the following template files from the plug-in's `${FRONTEND_CRAFT_ROOT}/templates/claude/` and `${FRONTEND_CRAFT_ROOT}/templates/shared/rules/` to `.claude/` in the project root directory:
38
38
  - `templates/claude/CLAUDE.md` → `.claude/CLAUDE.md`
39
39
  - `templates/claude/settings.json` → `.claude/settings.json`
40
40
  - `templates/shared/rules/fec-vue.md` → `.claude/rules/fec-vue.md`
@@ -48,8 +48,7 @@ description: 按当前 AI runtime 初始化 frontend-craft 项目模板、rules
48
48
  - `templates/shared/rules/fec-responsive-design.md` → `.claude/rules/fec-responsive-design.md`
49
49
  - `templates/shared/rules/fec-rendering-patterns.md` → `.claude/rules/fec-rendering-patterns.md`
50
50
  - `templates/shared/rules/fec-api-layer.md` → `.claude/rules/fec-api-layer.md`
51
- - `templates/shared/rules/fec-state-management.md` → `.claude/rules/fec-state-management.md`
52
- - `templates/shared/rules/fec-error-handling.md` → `.claude/rules/fec-error-handling.md`
51
+ - `templates/shared/rules/fec-state-management.md` → `.claude/rules/fec-state-management.md`- `templates/shared/rules/fec-error-handling.md` → `.claude/rules/fec-error-handling.md`
53
52
  - `templates/shared/rules/fec-naming-conventions.md` → `.claude/rules/fec-naming-conventions.md`
54
53
  - `templates/shared/rules/fec-typescript.md` → `.claude/rules/fec-typescript.md`
55
54
  - `templates/shared/rules/fec-code-comments.md` → `.claude/rules/fec-code-comments.md`
@@ -58,13 +57,13 @@ description: 按当前 AI runtime 初始化 frontend-craft 项目模板、rules
58
57
  - `templates/shared/rules/fec-agent-workflow.md` → `.claude/rules/fec-agent-workflow.md`
59
58
  - `templates/shared/rules/fec-working-modes.md` → `.claude/rules/fec-working-modes.md`
60
59
 
61
- 4. 复制完成后,不要只输出提醒。先检查项目根目录中的 `package.json`、常见框架配置文件和 `.github/workflows/`,推断适用规则,然后向用户提供初始化后配置选项:
62
- - 推荐:自动检测并裁剪规则(默认推荐项)。根据检测结果展示建议保留和建议移除的规则,用户确认后再修改 `.claude/CLAUDE.md` 底部的规则导入部分。
63
- - 手动选择要保留的规则。列出已复制的规则文件,让用户选择要保留的规则,再按选择更新 `.claude/CLAUDE.md`。
64
- - 暂不调整,仅输出清单。保持复制结果不变,只输出初始化完成信息、文件清单和后续建议。
60
+ 4. Don’t just output a reminder after copying is complete. First check `package.json`, common framework configuration files and `.github/workflows/` in the project root directory, infer applicable rules, and then provide post-initialization configuration options to the user:
61
+ - Recommendation: Automatically detect and tailor rules (default recommendation). The rules recommended to be retained and recommended to be removed are displayed based on the detection results. The user can modify the rule import section at the bottom of `.claude/CLAUDE.md` after confirmation.
62
+ - Manually select rules to keep. List the copied rule files, let the user select the rules to keep, and then press Select to update `.claude/CLAUDE.md`.
63
+ - No adjustments for now, only output list. Keep the copy results unchanged and only output the initialization completion information, file list and follow-up suggestions.
65
64
 
66
- 推荐项的判断应保持保守:只自动建议移除明显不匹配的规则,例如纯 React 项目移除 `@./rules/fec-vue.md`、纯 Vue 项目移除 `@./rules/fec-react.md`、无 TypeScript/JavaScript 源码时移除 `@./rules/fec-typescript.md`。对 `@./rules/fec-i18n.md`、`@./rules/fec-ci-cd.md`、`@./rules/fec-refactoring.md` 这类依赖项目上下文的规则,优先展示为建议项并说明依据;无法确定时默认保留。
65
+ The judgment of recommended items should be conservative: only automatically recommend the removal of obviously mismatched rules, such as removing `@./rules/fec-vue.md` for pure React projects, removing `@./rules/fec-react.md` for pure Vue projects, and removing `@./rules/fec-typescript.md` when there is no TypeScript/JavaScript source code. For rules such as `@./rules/fec-i18n.md`, `@./rules/fec-ci-cd.md`, and `@./rules/fec-refactoring.md` that depend on the project context, priority is given to displaying them as suggestions and explaining the basis; if they cannot be determined, they are retained by default.
67
66
 
68
- 如果当前运行环境支持结构化提问工具,使用选择题形式提问,并明确标注推荐项;否则使用编号选项。用户选择并确认前,不要修改 `.claude/CLAUDE.md` 的规则导入部分。完成裁剪或用户选择暂不调整后,再提醒用户根据项目实际情况修改 `CLAUDE.md` 的项目基础信息、常用命令、`rules/fec-react.md` 或 `rules/fec-vue.md` 中的技术栈配置,并检查 `settings.json` 中的权限列表是否符合项目需求。
67
+ If the current operating environment supports structured questioning tools, use multiple-choice questions and clearly mark recommended items; otherwise, use numbered options. Do not modify the rule import part of `.claude/CLAUDE.md` before the user selects and confirms it. After the trimming is completed or the user chooses not to adjust it temporarily, the user is reminded to modify the basic project information, common commands, `rules/fec-react.md` or `rules/fec-vue.md` according to the actual situation of the project, and check whether the permission list in `settings.json` meets the project requirements.
69
68
 
70
- 5. 输出初始化完成的确认信息和文件清单。
69
+ 5. Output the confirmation information and file list of initialization completion.
@@ -1,94 +1,94 @@
1
1
  ---
2
2
  name: fec-plan
3
- description: 统一前端规划入口——实现/架构计划或测试策略。默认走实施路径;当用户明确要测试计划、覆盖矩阵、测试分层、risk-to-test 等时,输出完整测试策略。
3
+ description: Unified front-end planning entrance - implementation/architecture plan or testing strategy. The implementation path is taken by default; when the user clearly wants test plan, coverage matrix, test layering, risk-to-test, etc., the complete test strategy is output.
4
4
  ---
5
5
 
6
- 在改代码前创建前端计划。根据用户意图自动分流到实施规划或测试规划。
6
+ Create a front-end plan before changing the code. Automatically divert traffic to implementation planning or test planning based on user intent.
7
7
 
8
- ## 意图识别
8
+ ## Intent recognition
9
9
 
10
- - **实施规划**(默认):用户要拆组件、设计数据流、安排目录结构、迁移步骤、架构方案。
11
- - **测试规划**:用户明确说"测试计划"、"测试策略"、"覆盖矩阵"、"测试分层"、"测什么"、"risk-to-test"等。
12
- - **混合**:用户同时有实施和测试诉求。
10
+ - **Implementation Planning** (default): Users need to dismantle components, design data flows, arrange directory structures, migration steps, and architecture plans.
11
+ - **Test Planning**: The user clearly states "test plan", "test strategy", "coverage matrix", "test layering", "what to test", "risk-to-test", etc.
12
+ - **Mixed**: Users have both implementation and testing requirements.
13
13
 
14
- 若意图不清,先问用户想看实施计划还是测试策略。
14
+ If the intention is unclear, first ask the user if they want to see the implementation plan or test strategy.
15
15
 
16
- ## 实施规划路径
16
+ ## Implementation planning path
17
17
 
18
- 1. 重述用户目标、成功标准和不在范围内的内容。
19
- 2. 阅读相关代码、模板、规则、配置、测试和已有实现,避免脱离项目现状。
20
- 3. 若涉及页面拆分、状态流、目录结构、数据流或大型重构,委托 **`fec-architect`**。
21
- 4. 输出计划:
22
- - 影响范围
23
- - 关键文件或模块
24
- - 架构与模块边界
25
- - 数据流 / 状态流 / API 交互
26
- - 实施阶段
27
- - 回滚或渐进迁移策略
28
- - 风险与缓解
29
- - 最小验证门禁(lint、type-check、test、build、E2E 或人工验收)
30
- 5. 对版本敏感、依赖升级或外部库相关决策,列出事实来源、版本范围、迁移影响和需要查证的文档。
31
- 6. 在用户确认前不执行实现。
18
+ 1. Restate user goals, success criteria, and out-of-scope content.
19
+ 2. Read relevant codes, templates, rules, configurations, tests and existing implementations to avoid deviating from the current status of the project.
20
+ 3. If it involves page splitting, state flow, directory structure, data flow or large-scale reconstruction, entrust **`fec-architect`**.
21
+ 4. Output plan:
22
+ - Scope of influence
23
+ - Key files or modules
24
+ - Architecture and module boundaries
25
+ - Data flow/state flow/API interaction
26
+ - Implementation phase
27
+ - Rollback or gradual migration strategy
28
+ - Risks and Mitigation
29
+ - Minimal verification access (lint, type-check, test, build, E2E or manual acceptance)
30
+ 5. For decisions related to version sensitivity, dependency upgrades or external libraries, list the source of fact, version range, migration impact and documents that need to be verified.
31
+ 6. Implementation is not performed until user confirmation.
32
32
 
33
- 实施规划保存到 `reports/architecture-proposal-YYYY-MM-DD-HHmmss.md`。
33
+ The implementation plan is saved to `reports/architecture-proposal-YYYY-MM-DD-HHmmss.md`.
34
34
 
35
- ## 测试规划路径
35
+ ## Test planning path
36
36
 
37
- 1. 确定范围:
38
- - 用户指定功能、PR、文件或业务流程时,以该范围为准。
39
- - 用户未指定时,查看最近变更并推断主要风险面。
40
- - 若用户要的是模块拆分、状态流、目录结构或迁移步骤,回到实施规划路径。
37
+ 1. Determine the scope:
38
+ - When users specify functions, PRs, files or business processes, this scope shall prevail.
39
+ - When not specified by the user, view recent changes and infer the main risk areas.
40
+ - If the user wants module splitting, state flow, directory structure or migration steps, return to the implementation planning path.
41
41
 
42
- 2. 使用 `fec-testing-strategy` Skill 建立测试分层矩阵:
43
- - 静态检查
44
- - 单元测试
45
- - 组件测试
46
- - 轻量集成测试
47
- - E2E 测试
48
- - 视觉 / Storybook / interaction
49
- - a11y / 安全 / 性能等专项质量验证
42
+ 2. Use the `fec-testing-strategy` Skill to create a test layering matrix:
43
+ - Static checking
44
+ - unit testing
45
+ - Component testing
46
+ - Lightweight integration testing
47
+ - E2E testing
48
+ - Visual/Storybook/interaction
49
+ - a11y / safety / performance and other special quality verification
50
50
 
51
- 3. 对每个风险给出建议测试层、优先级、建议命令、责任 skill 和失败定位证据。
51
+ 3. Provide recommended test layers, priorities, recommended commands, responsibility skills and failure location evidence for each risk.
52
52
 
53
- 4. 标明哪些风险只需要现有门禁覆盖,哪些需要新增测试,哪些暂不覆盖并说明原因。
53
+ 4. Indicate which risks only need to be covered by existing access control, which ones need new testing, and which ones are not covered yet and explain the reasons.
54
54
 
55
- 5. 必要时委托 **`fec-test-planner`** 子代理生成独立测试计划。
55
+ 5. Delegate the **`fec-test-planner`** subagent to generate independent test plans when necessary.
56
56
 
57
- 6. 将计划保存到 `reports/test-plan-YYYY-MM-DD-HHmmss.md`:
57
+ 6. Save the plan to `reports/test-plan-YYYY-MM-DD-HHmmss.md`:
58
58
 
59
59
  ```markdown
60
- # 前端测试计划
60
+ # Front-end test plan
61
61
 
62
- > 生成时间: YYYY-MM-DD HH:mm
63
- > 范围: ...
62
+ > Generation time: YYYY-MM-DD HH:mm
63
+ > Scope: ...
64
64
 
65
- ## 风险概览
65
+ ## Risk Overview
66
66
 
67
67
  | Risk | Impact | Suggested Layer | Priority | Evidence |
68
68
  | ---- | ------ | --------------- | -------- | -------- |
69
69
 
70
- ## 覆盖矩阵
70
+ ## Covering matrix
71
71
 
72
72
  | Layer | What to Cover | Tooling / Command | Skill |
73
- | ----- | ------------- | ----------------- | ----- |
73
+ | ----- | ------------- | ------------------ | ----- |
74
74
 
75
- ## 执行顺序
75
+ ## Execution order
76
76
 
77
- ## 不覆盖项与原因
77
+ ## Items not covered and reasons
78
78
  ```
79
79
 
80
- 7. 若用户要求继续实现测试,按矩阵分流到对应专项 skill 或 agent。
80
+ 7. If the user requires to continue to implement the test, it will be diverted to the corresponding special skill or agent according to the matrix.
81
81
 
82
- ## 混合路径
82
+ ## Mixed paths
83
83
 
84
- 当用户同时需要实施计划和测试策略时:
84
+ When users need to implement plans and test strategies at the same time:
85
85
 
86
- 1. 先输出完整实施规划。
87
- 2. 在实施规划末尾追加"测试策略"章节,列出关键风险对应的测试层级和验证门禁。
88
- 3. 只有用户明确要求完整覆盖矩阵时,才额外生成 `test-plan-*` 独立报告。
86
+ 1. First output the complete implementation plan.
87
+ 2. Add a "Testing Strategy" chapter to the end of the implementation plan to list the testing levels and verification access controls corresponding to key risks.
88
+ 3. Additional `test-plan-*` independent reports will only be generated if the user explicitly requests complete coverage matrix.
89
89
 
90
- ## 边界
90
+ ## Boundary
91
91
 
92
- - 不在计划阶段直接写代码,除非用户明确要求继续实现。
93
- - 不默认要求补齐完整测试金字塔,只按风险和维护成本选择覆盖。
94
- - 不负责大规模编写测试文件;用户明确要求落地时再分流到专项测试 skill。
92
+ - Do not write code directly in the planning stage unless the user explicitly requests to continue implementation.
93
+ - It is not required by default to complete the complete test pyramid, and coverage is only selected based on risk and maintenance cost.
94
+ - Not responsible for large-scale writing of test files; when users clearly require implementation, they will be diverted to special testing skills.
@@ -1,19 +1,19 @@
1
1
  ---
2
2
  name: fec-refactor-clean
3
- description: 在验证保护下识别并清理前端死代码、未使用导出、过期组件、样式和依赖。
3
+ description: Identify and clean up front-end dead code, unused exports, outdated components, styles and dependencies under validation protection.
4
4
  ---
5
5
 
6
- 按 `fec-refactor-clean` 执行安全清理。复杂清理可委托 **`fec-refactor-cleaner`**。
6
+ Press `fec-refactor-clean` to perform a safe clean. Complex cleanup can be delegated to **`fec-refactor-cleaner`**.
7
7
 
8
- ## 执行步骤
8
+ ## Execution steps
9
9
 
10
- 1. 建立当前验证基线。
11
- 2. 使用仓库已有工具或 `rg` 收集未使用候选项。
12
- 3. 检查动态引用、路由、barrel export、Storybook、测试和样式入口。
13
- 4. 将候选项分为 SAFE、CAUTION、DANGER。
14
- 5. 仅清理 SAFE 项;其他项输出建议和证据。
15
- 6. 每批清理后重新运行受影响验证命令。
10
+ 1. Establish the current verification baseline.
11
+ 2. Use existing tools in the warehouse or `rg` to collect unused candidates.
12
+ 3. Check dynamic references, routing, barrel export, Storybook, test and style entry.
13
+ 4. Divide the candidates into SAFE, CAUTION, and DANGER.
14
+ 5. Only clean SAFE items; other items output suggestions and evidence.
15
+ 6. Rerun the affected verification commands after each batch cleanup.
16
16
 
17
- ## 输出要求
17
+ ## Output requirements
18
18
 
19
- 将清理报告保存到 `reports/refactor-clean-YYYY-MM-DD-HHmmss.md`。
19
+ Save the clean report to `reports/refactor-clean-YYYY-MM-DD-HHmmss.md`.
@@ -0,0 +1,17 @@
1
+ ---
2
+ name: fec-refactor-plan
3
+ description: Build an ordered behavior-preserving frontend refactoring plan from evidence without editing business code.
4
+ ---
5
+
6
+ This command is **PLAN ONLY**. Do not edit business code.
7
+
8
+ ## Workflow
9
+
10
+ 1. Validate current project facts and any supplied smell diagnosis.
11
+ 2. Record the observable behavior contract and available verification baseline.
12
+ 3. Select the smallest candidate technique whose preconditions fit each diagnosed cause.
13
+ 4. Order only necessary prerequisites and keep each step independently verifiable.
14
+ 5. Classify every step `SAFE`, `CAUTION`, or `DANGER`.
15
+ 6. For every step include: target, technique, intent, dependency/order reason, preconditions, risk, expected files/functions, expected observable behavior change (`NONE`), verification command/method, and rollback boundary.
16
+ 7. Include a Diff Budget and stop conditions.
17
+ 8. Save the result to `reports/refactoring/plan-YYYY-MM-DD-HHmmss.md`.
@@ -0,0 +1,18 @@
1
+ ---
2
+ name: fec-refactor
3
+ description: Execute controlled behavior-preserving frontend refactoring with small steps, verification, rollback, and proof reporting.
4
+ ---
5
+
6
+ Execute a pure structural refactoring under a recorded behavior contract.
7
+
8
+ ## Workflow
9
+
10
+ 1. Classify the request and redirect feature work, unknown bugs, migrations, dead-code cleanup, or general review when they own the task.
11
+ 2. Discover project facts and establish the existing validation baseline.
12
+ 3. If no plan is supplied, diagnose evidence and build an ordered plan first. If a plan is supplied, revalidate it against the current code.
13
+ 4. Record risk and Diff Budget. `DANGER` stops for explicit approval unless the specific compatibility plan is already authorized.
14
+ 5. Execute **one refactoring step** with one primary structural intent.
15
+ 6. Immediately run the narrowest sufficient verification and inspect actual scope.
16
+ 7. If the step causes a new regression, revert that step before attempting a smaller or different transformation.
17
+ 8. Repeat only after the current step is green and within budget.
18
+ 9. Run final broad validation and save `reports/refactoring/refactoring-YYYY-MM-DD-HHmmss.md` with a `PASS`, `PARTIAL`, or `NOT PROVEN` behavior-preservation verdict.