@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,123 +1,148 @@
1
- # 项目结构
2
-
3
- `frontend-craft` 的详细目录布局。
4
-
5
- ## 仓库布局
6
-
7
- ```text
8
- frontend-craft/
9
- |-- .claude-plugin/ # Claude Code 插件与 marketplace 清单
10
- | |-- plugin.json # 插件元数据
11
- | |-- marketplace.json # Marketplace 目录元数据
12
- |
13
- |-- agents/ # 用于委托的专业子代理
14
- | |-- fec-architect.md # 页面拆分、组件架构、状态流
15
- | |-- fec-code-reviewer.md # 前端专项代码评审(质量、安全、无障碍)
16
- | |-- fec-security-reviewer.md # 前端攻击面:XSS、密钥、CSP、依赖
17
- | |-- fec-test-planner.md # 测试策略、风险矩阵、覆盖规划
18
- | |-- fec-debugger.md # 复杂构建/运行时/UI/API 问题诊断
19
- | |-- fec-refactor-cleaner.md # 死代码和未使用依赖清理
20
- | |-- fec-doc-updater.md # README/runtime 文档/能力表同步
21
- | |-- fec-e2e-runner.md # E2E 编写、执行、flaky 治理、产物、CI
22
- | |-- fec-typescript-reviewer.md # TS/JS 类型安全、异步、报告式评审
23
- | |-- fec-performance-optimizer.md # 性能瓶颈分析与优化
24
- | |-- fec-ui-checker.md # UI 视觉问题与设计还原度评估
25
- | |-- fec-figma-implementer.md # 从设计稿精确实现 UI
26
- | |-- fec-design-token-mapper.md # 将设计变量映射到 Design Tokens
27
- |
28
- |-- skills/ # 工作流定义和领域知识
29
- | |-- fec-code-review/ # 架构、类型、渲染、样式、无障碍
30
- | |-- fec-security-review/ # XSS、CSRF、敏感数据、输入校验
31
- | |-- fec-accessibility-check/ # WCAG 2.2、键盘、焦点和屏幕阅读器无障碍检查
32
- | |-- fec-react-project-standard/ # React + TypeScript 项目规范
33
- | |-- fec-vue3-project-standard/ # Vue 3 + TypeScript 项目规范
34
- | |-- fec-implement-from-design/ # 基于设计工具、截图和视觉参考实现 UI
35
- | |-- fec-validation-fix/ # lint、type-check、test、build 与修复
36
- | |-- fec-performance-optimization/ # Core Web Vitals、包体、渲染、网络、内存
37
- | |-- fec-source-driven-development/ # 官方来源、项目事实、版本敏感决策
38
- | |-- fec-typescript-project-standard/ # TypeScript 配置、公开类型、声明文件、DTO 和泛型
39
- | |-- fec-state-management/ # 状态归属、store 选型、URL/服务端/表单/本地边界
40
- | |-- fec-tailwind-design-system/ # Tailwind token、组件变体、暗色模式和 class 治理
41
- | |-- fec-responsive-layout/ # 移动优先布局、容器查询和触摸友好的响应式 UI
42
- | |-- fec-dependency-upgrade/ # 依赖升级、lockfile 风险和 CVE 修复
43
- | |-- fec-tdd-workflow/ # 测试先行的前端实现工作流
44
- | |-- fec-refactor-clean/ # 安全清理死代码和未使用依赖
45
- | |-- fec-doc-sync/ # 公开文档和 metadata 同步
46
- | |-- fec-legacy-web-standard/ # JS + jQuery + HTML 遗留项目规范
47
- | |-- fec-legacy-to-modern-migration/ # jQuery/MPA 迁移到 React/Vue 的策略和工作流
48
- | |-- fec-testing-strategy/ # 测试分层选择和覆盖矩阵
49
- | |-- fec-e2e-testing/ # Playwright/Cypress E2E 测试规范
50
- | |-- fec-nextjs-project-standard/ # Next.js 14+ App Router、SSR/SSG 规范
51
- | |-- fec-nuxt-project-standard/ # Nuxt 3 SSR/SSG、composables 规范
52
- | |-- fec-monorepo-project-standard/ # pnpm workspace、Turborepo、Nx 规范
53
- | |-- fec-data-fetching/ # TanStack Query 和服务端状态工作流
54
- | |-- fec-api-integration/ # 类型化 API client、鉴权刷新、上传、实时集成
55
- | |-- fec-backend-requirements-handoff/ # 前后端 UI 数据与状态需求交接
56
- | |-- fec-form-handling/ # React Hook Form + Zod 表单工作流
57
- | |-- fec-route-protection/ # 鉴权路由和权限路由
58
- | |-- fec-component-testing/ # RTL / Vue Test Utils 组件测试
59
- | |-- fec-pwa-implementation/ # PWA manifest、service worker、离线能力
60
- | |-- fec-web-workers/ # Worker 集成和后台计算
61
- | |-- fec-canvas-threejs/ # Canvas、Three.js、React Three Fiber
62
- | |-- fec-svg-animation/ # SVG 动效和 reduced-motion 降级
63
- | |-- fec-browser-storage/ # localStorage/sessionStorage/IndexedDB/Cookies 选型与安全客户端持久化
64
- | |-- fec-list-virtualization/ # react-window / TanStack Virtual 大列表窗口化与测量策略
65
- | |-- fec-storybook-component-doc/ # Storybook 组件文档、addon、MDX、交互和视觉测试集成
66
- | |-- fec-ui-design/ # 产品语境 UI 方向、设计拨盘、媒体策略、视觉 QA
67
- | |-- fec-image-generation/ # 图表/图片生成、编辑工作流、PNG 自检和修复循环
68
- | |-- fec-drawio-studio/ # 可编辑 draw.io 技术图、形状检索、自动布局、代码结构图
69
- | |-- fec-web-video-presentation/ # 可录屏的 16:9 步进网页视频演示
70
- | |-- fec-motion-interaction/ # 场景化动效强度、页面转场、滚动动画、reduced motion
71
- | |-- fec-vite-project-standard/ # Vite 配置、环境变量安全、HMR、代理、构建与 library mode
72
- |
73
- |-- commands/ # 快速执行的斜杠命令
74
- | |-- fec-init.md # /fec-init - 初始化项目模板
75
- | |-- fec-review.md # /fec-review - 代码评审
76
- | |-- fec-scaffold.md # /fec-scaffold - 创建 page/feature/component
77
- | |-- fec-plan.md # /fec-plan - 前端变更前的实施规划
78
- | |-- fec-tdd.md # /fec-tdd - 测试驱动的前端实现
79
- | |-- fec-debug.md # /fec-debug - 诊断并修复前端问题
80
- | |-- fec-refactor-clean.md # /fec-refactor-clean - 安全清理死代码
81
- | |-- fec-doc-sync.md # /fec-doc-sync - 公开文档和 metadata 同步
82
- |
83
- |-- hooks/ # 事件驱动自动化
84
- | |-- hooks.json # PreToolUse、PostToolUse、Stop、Notification 等
85
- |
86
- |-- src/ # 发布运行时代码的 TypeScript 源码
87
- | |-- hooks/ # 打包到 dist/hooks 的运行时 hook 脚本
88
- | |-- security-check.ts # 拦截危险命令
89
- | |-- format-changed-file.ts # 自动执行 Prettier 格式化
90
- | |-- run-tests.ts # 会话结束时运行检查
91
- | |-- session-start.ts # 会话开始时检测框架
92
- | |-- notify.ts # 跨平台桌面通知
93
- | |-- install/ # 安装器核心(CLI、交互向导、运行时转换器)
94
- | |-- openclaw/ # OpenClaw 运行时 TypeScript 源码
95
- |
96
- |-- scripts/ # 仓库维护脚本源码,不发布到 npm runtime
97
- |
98
- |-- templates/ # 运行时专用项目模板
99
- | |-- claude/ # CLAUDE.md 和 settings.json
100
- | |-- codex/ # AGENTS.md 和 config.toml
101
- | |-- openclaw/ # AGENTS.md 和 OPENCLAW-CONFIG.md
102
- | |-- shared/rules/ # 20 个规则文件:vue、react、rendering patterns、responsive design、testing、source-driven development 等
103
- |
104
- |-- .mcp.json # MCP server 配置(Figma、Figma Desktop、Sketch、MasterGo、Pixso、墨刀)
105
- └-- README.md
106
- ```
107
-
108
- ## 目录职责
109
-
110
- | 目录 | 职责 |
111
- | --------------- | ---------------------------------------------------------------------------------- |
112
- | `agents/` | 专业子代理定义(Markdown + YAML frontmatter) |
113
- | `bin/` | CLI 入口(`frontend-craft.ts`) |
114
- | `commands/` | 自定义斜杠命令(`fec-init`、`fec-review`、`fec-scaffold` 和工作流命令) |
115
- | `docs/` | 运行时安装文档和本地化 README |
116
- | `hooks/` | Hook 配置(`hooks.json`) |
117
- | `scripts/` | 仓库维护脚本源码(构建、打包、发布检查、metadata 同步),不包含在 npm 运行时输出中 |
118
- | `skills/` | Skill 定义(`SKILL.md`、`metadata.json`) |
119
- | `src/hooks/` | 打包到 `dist/hooks/` 的运行时 hook 源码,供 Claude/Qoder 执行 |
120
- | `src/install/` | 安装器核心(CLI、交互向导、运行时转换器) |
121
- | `src/openclaw/` | OpenClaw 运行时 TypeScript 源码 |
122
- | `templates/` | 运行时专用项目模板(Claude/Codex/OpenClaw 配置 + shared rules) |
123
- | `tests/` | 测试套件(转换器测试、安装器测试) |
1
+ # 项目结构
2
+
3
+ `frontend-craft` 的详细目录布局。
4
+
5
+ ## 仓库布局
6
+
7
+ ```text
8
+ frontend-craft/
9
+ |-- .claude-plugin/ # Claude Code 插件与 marketplace 清单
10
+ | |-- plugin.json # 插件元数据
11
+ | |-- marketplace.json # Marketplace 目录元数据
12
+ |
13
+ |-- agents/ # 用于委托的专业子代理
14
+ | |-- fec-architect.md # 页面拆分、组件架构、状态流
15
+ | |-- fec-code-reviewer.md # 前端专项代码评审(质量、安全、无障碍)
16
+ | |-- fec-security-reviewer.md # 前端攻击面:XSS、密钥、CSP、依赖
17
+ | |-- fec-test-planner.md # 测试策略、风险矩阵、覆盖规划
18
+ | |-- fec-debugger.md # 复杂构建/运行时/UI/API 问题诊断
19
+ | |-- fec-refactor-cleaner.md # 死代码和未使用依赖清理
20
+ | |-- fec-refactoring-expert.md # 保持行为的坏味道诊断、规划、执行与验证
21
+ | |-- fec-doc-updater.md # README/runtime 文档/能力表同步
22
+ | |-- fec-e2e-runner.md # E2E 编写、执行、flaky 治理、产物、CI
23
+ | |-- fec-typescript-reviewer.md # TS/JS 类型安全、异步、报告式评审
24
+ | |-- fec-performance-optimizer.md # 性能瓶颈分析与优化
25
+ | |-- fec-ui-checker.md # UI 视觉问题与设计还原度评估
26
+ | |-- fec-figma-implementer.md # 从设计稿精确实现 UI
27
+ | |-- fec-design-token-mapper.md # 将设计变量映射到 Design Tokens
28
+ |
29
+ |-- skills/ # 工作流定义和领域知识
30
+ | |-- fec-code-review/ # 架构、类型、渲染、样式、无障碍
31
+ | |-- fec-security-review/ # XSS、CSRF、敏感数据、输入校验
32
+ | |-- fec-accessibility-check/ # WCAG 2.2、键盘、焦点和屏幕阅读器无障碍检查
33
+ | |-- fec-react-project-standard/ # React + TypeScript 项目规范
34
+ | |-- fec-vue3-project-standard/ # Vue 3 + TypeScript 项目规范
35
+ | |-- fec-implement-from-design/ # 基于设计工具、截图和视觉参考实现 UI
36
+ | |-- fec-validation-fix/ # lint、type-check、test、build 与修复
37
+ | |-- fec-performance-optimization/ # Core Web Vitals、包体、渲染、网络、内存
38
+ | |-- fec-source-driven-development/ # 官方来源、项目事实、版本敏感决策
39
+ | |-- fec-typescript-project-standard/ # TypeScript 配置、公开类型、声明文件、DTO 和泛型
40
+ | |-- fec-state-management/ # 状态归属、store 选型、URL/服务端/表单/本地边界
41
+ | |-- fec-tailwind-design-system/ # Tailwind token、组件变体、暗色模式和 class 治理
42
+ | |-- fec-responsive-layout/ # 移动优先布局、容器查询和触摸友好的响应式 UI
43
+ | |-- fec-dependency-upgrade/ # 依赖升级、lockfile 风险和 CVE 修复
44
+ | |-- fec-tdd-workflow/ # 测试先行的前端实现工作流
45
+ | |-- fec-refactor-clean/ # 安全清理死代码和未使用依赖
46
+ | |-- fec-refactoring/ # 保持行为的重构核心流程与安全门禁
47
+ | |-- fec-code-smells/ # 24 种坏味道的证据化诊断
48
+ | |-- fec-refactoring-catalog/ # 61 项手法的选择与组合目录
49
+ | |-- fec-refactoring-functions/ # 函数类重构
50
+ | |-- fec-refactoring-encapsulation/ # 封装类重构
51
+ | |-- fec-refactoring-move-features/ # 搬移特性类重构
52
+ | |-- fec-refactoring-data/ # 数据类重构
53
+ | |-- fec-refactoring-control/ # 条件/控制流重构
54
+ | |-- fec-refactoring-api/ # API 类重构
55
+ | |-- fec-refactoring-inheritance/ # 继承/委托类重构
56
+ | |-- fec-refactoring-validation/ # 行为保持验证与证明等级
57
+ | |-- fec-doc-sync/ # 公开文档和 metadata 同步
58
+ | |-- fec-legacy-web-standard/ # JS + jQuery + HTML 遗留项目规范
59
+ | |-- fec-legacy-to-modern-migration/ # jQuery/MPA 迁移到 React/Vue 的策略和工作流
60
+ | |-- fec-testing-strategy/ # 测试分层选择和覆盖矩阵
61
+ | |-- fec-e2e-testing/ # Playwright/Cypress E2E 测试规范
62
+ | |-- fec-debug-framework/ # 统一 5 步诊断框架:构建/运行时/UI/API 失败
63
+ | |-- fec-nextjs-project-standard/ # Next.js 14+ App Router、SSR/SSG 规范
64
+ | |-- fec-nuxt-project-standard/ # Nuxt 3 SSR/SSG、composables 规范
65
+ | |-- fec-monorepo-project-standard/ # pnpm workspace、Turborepo、Nx 规范
66
+ | |-- fec-data-fetching/ # TanStack Query 和服务端状态工作流
67
+ | |-- fec-api-integration/ # 类型化 API client、鉴权刷新、上传、实时集成
68
+ | |-- fec-backend-requirements-handoff/ # 前后端 UI 数据与状态需求交接
69
+ | |-- fec-form-handling/ # React Hook Form + Zod 表单工作流
70
+ | |-- fec-route-protection/ # 鉴权路由和权限路由
71
+ | |-- fec-component-testing/ # RTL / Vue Test Utils 组件测试
72
+ | |-- fec-pwa-implementation/ # PWA manifest、service worker、离线能力
73
+ | |-- fec-web-workers/ # Worker 集成和后台计算
74
+ | |-- fec-canvas-threejs/ # Canvas、Three.js、React Three Fiber
75
+ | |-- fec-svg-animation/ # SVG 动效和 reduced-motion 降级
76
+ | |-- fec-browser-storage/ # localStorage/sessionStorage/IndexedDB/Cookies 选型与安全客户端持久化
77
+ | |-- fec-list-virtualization/ # react-window / TanStack Virtual 大列表窗口化与测量策略
78
+ | |-- fec-storybook-component-doc/ # Storybook 组件文档、addon、MDX、交互和视觉测试集成
79
+ | |-- fec-ui-design/ # 产品语境 UI 方向、设计拨盘、媒体策略、视觉 QA
80
+ | |-- fec-image-generation/ # 图表/图片生成、编辑工作流、PNG 自检和修复循环
81
+ | |-- fec-drawio-studio/ # 可编辑 draw.io 技术图、形状检索、自动布局、代码结构图
82
+ | |-- fec-web-video-presentation/ # 可录屏的 16:9 步进网页视频演示
83
+ | |-- fec-motion-interaction/ # 场景化动效强度、页面转场、滚动动画、reduced motion
84
+ | |-- fec-vite-project-standard/ # Vite 配置、环境变量安全、HMR、代理、构建与 library mode
85
+ | |-- fec-alchemy/ # 项目吸收工作流——抽取参考系统能力并原创化重写
86
+ |
87
+ |-- commands/ # 快速执行的斜杠命令
88
+ | |-- fec-init.md # /fec-init - 初始化项目模板
89
+ | |-- fec-review.md # /fec-review - 默认全项目;指定范围或明确改动审核
90
+ | |-- fec-scaffold.md # /fec-scaffold - 创建 page/feature/component
91
+ | |-- fec-plan.md # /fec-plan - 前端变更前的实施规划
92
+ | |-- fec-tdd.md # /fec-tdd - 测试驱动的前端实现
93
+ | |-- fec-debug.md # /fec-debug - 诊断并修复前端问题
94
+ | |-- fec-refactor-clean.md # /fec-refactor-clean - 安全清理死代码
95
+ | |-- fec-smell.md # /fec-smell - 只读代码坏味道诊断
96
+ | |-- fec-refactor-plan.md # /fec-refactor-plan - 只读小步重构计划
97
+ | |-- fec-refactor.md # /fec-refactor - 受控的保持行为重构执行
98
+ | |-- fec-doc-sync.md # /fec-doc-sync - 公开文档和 metadata 同步
99
+ |
100
+ |-- hooks/ # 事件驱动自动化
101
+ | |-- hooks.json # PreToolUse、PostToolUse、Stop、Notification 等
102
+ |
103
+ |-- src/ # 发布运行时代码的 TypeScript 源码
104
+ | |-- hooks/ # 打包到 dist/hooks 的运行时 hook 脚本
105
+ | |-- security-check.ts # 拦截危险命令
106
+ | |-- format-changed-file.ts # 自动执行 Prettier 格式化
107
+ | |-- run-tests.ts # 会话结束时运行检查
108
+ | |-- session-start.ts # 会话开始时检测框架
109
+ | |-- notify.ts # 跨平台桌面通知
110
+ | |-- install/ # 安装器核心(CLI、交互向导、运行时转换器)
111
+ | |-- openclaw/ # OpenClaw 运行时 TypeScript 源码
112
+ |
113
+ |-- scripts/ # 仓库维护脚本源码,不发布到 npm runtime
114
+ |
115
+ |-- templates/ # 运行时专用项目模板
116
+ | |-- claude/ # CLAUDE.md 和 settings.json
117
+ | |-- codex/ # AGENTS.md 和 config.toml
118
+ | |-- cursor/ # Cursor 运行时项目存根
119
+ | |-- gemini/ # Gemini CLI 运行时项目存根
120
+ | |-- openclaw/ # AGENTS.md 和 OPENCLAW-CONFIG.md
121
+ | |-- windsurf/ # Windsurf 运行时项目存根
122
+ | |-- shared/rules/ # 20 个规则文件:vue、react、rendering patterns、responsive design、testing、source-driven development 等
123
+ |
124
+ |-- .mcp.json # MCP server 配置(Figma、Figma Desktop、Sketch、MasterGo、Pixso、墨刀)
125
+ └-- README.md
126
+ ```
127
+
128
+ ## 目录职责
129
+
130
+ | 目录 | 职责 |
131
+ | --------------- | ---------------------------------------------------------------------------------- |
132
+ | `agents/` | 专业子代理定义(Markdown + YAML frontmatter) |
133
+ | `bin/` | CLI 入口(`frontend-craft.ts`) |
134
+ | `commands/` | 自定义斜杠命令(`fec-init`、`fec-review`、`fec-scaffold` 和工作流命令) |
135
+ | `docs/` | 运行时安装文档和本地化 README |
136
+ | `hooks/` | Hook 配置(`hooks.json`) |
137
+ | `scripts/` | 仓库维护脚本源码(构建、打包、发布检查、metadata 同步),不包含在 npm 运行时输出中 |
138
+ | `skills/` | Skill 定义(`SKILL.md`、`metadata.json`) |
139
+ | `src/hooks/` | 打包到 `dist/hooks/` 的运行时 hook 源码,供 Claude/Qoder 执行 |
140
+ | `src/install/` | 安装器核心(CLI、交互向导、运行时转换器) |
141
+ | `src/openclaw/` | OpenClaw 运行时 TypeScript 源码 |
142
+ | `templates/` | 运行时专用项目模板(Claude/Codex/Cursor/Gemini/OpenClaw/Windsurf 配置 + shared rules) |
143
+ | `tests/` | 测试套件(转换器测试、安装器测试) |
144
+
145
+
146
+ 技术图质量工作流:`fec-image-generation` 的标准时序/流程图优先本地 Mermaid,架构图复用 draw.io 工作流,工具缺失时使用 JSON/HTML。导出 PNG 时生成实际测量且与缩放一致的 manifest,再运行 QA 并检查最终 PNG;保留完整文字、显式布局与关系,最多自动修复两轮,未解决问题需明确报告。可复现样例位于 `skills/fec-image-generation/assets/quality-examples/`。
147
+
148
+ [审核范围与技术图交付](review-and-diagram-workflows.md) — 范围规则、工具前提、导出命令与 QA 边界。
@@ -0,0 +1,39 @@
1
+ # 审核范围与技术图交付
2
+
3
+ 以下约定适用于各运行时安装的能力。通过自然语言选择审核模式,不使用安装器 CLI 参数选择模式。
4
+
5
+ ## 审核范围
6
+
7
+ `fec-code-reviewer`、`fec-typescript-reviewer`、`fec-security-reviewer`、`fec-code-review`、`fec-security-review` 与 `/fec-review` 采用相同范围规则:
8
+
9
+ | 请求 | 审核范围 | 报告结论 |
10
+ | --- | --- | --- |
11
+ | 未指定范围,包括单独调用 `/fec-review` | 全项目,即使存在 Git 改动 | 风险评估 |
12
+ | 指定文件或目录 | 范围内全部现有代码,包括未改动代码 | 指定范围风险评估 |
13
+ | 明确要求最近改动、PR 或提交 | 指定差异及必要上下文 | 合并建议 |
14
+
15
+ 全项目和指定范围审核不要求 Git 差异。明确增量审核但没有改动时,说明情况,不自动扩大范围。审核者保留前端、TypeScript 或安全专项职责,不宣称完成后端安全专项审核。
16
+
17
+ 全项目先建立自有前端代码、相关测试、配置和依赖声明清单,再按模块分批审核。默认排除依赖、生成文件、构建产物、缓存与第三方代码。报告记录模式、目标范围、已审核范围、排除项、未覆盖模块及验证结果。未完成时标记部分完成,合并同根因发现。读取调用方或运行静态检查不计为相应文件的人工审核。默认只输出报告,明确要求修复时才修改代码。
18
+
19
+ 示例:「审核整个项目」「审核 `src/features/` 的全部代码」「审核 `src/components/Button.tsx`」「仅审核最近改动」。修改后的自动审核必须明确传入本次改动范围。
20
+
21
+ ## 技术图
22
+
23
+ 时序图和流程图通过 `fec-image-generation` 优先使用本地 Mermaid;可编辑架构图使用 `fec-drawio-studio`。工具缺失时使用 JSON/HTML 渲染器。需要准确结构的技术关系与标签应保存在可编辑源文件中。
24
+
25
+ Mermaid 适配器仅使用已安装 CLI,不自动下载依赖。PNG 导出需要本地 Chromium 浏览器,可通过 `FEC_BROWSER_PATH` 指定可执行文件。缺少工具时明确报告,不宣称导出成功。
26
+
27
+ JSON/HTML 路线先渲染源文件,导出 PNG 与同比例的浏览器实测 manifest,再运行 QA 并检查最终图片:
28
+
29
+ ```bash
30
+ node skills/fec-image-generation/scripts/tech-diagram-render.mjs --input skills/fec-image-generation/assets/quality-examples/workflow.json --type workflow --output workflow.html --manifest workflow.layout.json
31
+ node skills/fec-image-generation/scripts/export-diagram.mjs --input workflow.html --format png --output workflow.png --theme light --scale 2 --manifest workflow.layout.json --output-manifest workflow.actual.json
32
+ node skills/fec-image-generation/scripts/png-qa.mjs --png workflow.png --manifest workflow.actual.json --format json
33
+ ```
34
+
35
+ 保留完整 Unicode 标签、显式几何布局、连线方向、时序顺序与自调用;独立 SVG 应包含自身样式。几何 QA 和浏览器测量辅助视觉检查,不证明语义正确,也不等同于完成人工视觉审核。缺少测量或仅部分覆盖时必须说明。最多自动修复源文件两轮,之后报告未解决缺陷。
36
+
37
+ 交付可编辑源文件、请求的导出文件和 QA/覆盖结果。参见[可复现样例](../../localized/zh-CN/skills/fec-image-generation/assets/quality-examples/README.md)、[图表工作流](../../localized/zh-CN/skills/fec-image-generation/references/diagram-workflows.md)及 [PNG QA](../../localized/zh-CN/skills/fec-image-generation/references/png-qa-autofix.md)。
38
+
39
+ [English](../review-and-diagram-workflows.md)