@bovinphang/frontend-craft 2.6.0 → 2.8.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 (414) hide show
  1. package/.claude-plugin/marketplace.json +3 -3
  2. package/.claude-plugin/plugin.json +1 -1
  3. package/CHANGELOG.md +72 -1
  4. package/CHANGELOG.zh-CN.md +71 -1
  5. package/README.md +10 -6
  6. package/README.openclaw.md +100 -42
  7. package/README.openclaw.zh-CN.md +100 -42
  8. package/README.zh-CN.md +10 -6
  9. package/agents/fec-architect.md +70 -70
  10. package/agents/fec-code-reviewer.md +82 -82
  11. package/agents/fec-debugger.md +20 -20
  12. package/agents/fec-design-token-mapper.md +36 -36
  13. package/agents/fec-doc-updater.md +13 -13
  14. package/agents/fec-e2e-runner.md +45 -45
  15. package/agents/fec-figma-implementer.md +59 -59
  16. package/agents/fec-performance-optimizer.md +128 -128
  17. package/agents/fec-refactor-cleaner.md +14 -14
  18. package/agents/fec-security-reviewer.md +66 -67
  19. package/agents/fec-test-planner.md +27 -27
  20. package/agents/fec-typescript-reviewer.md +88 -88
  21. package/agents/fec-ui-checker.md +74 -74
  22. package/commands/fec-debug.md +19 -19
  23. package/commands/fec-doc-sync.md +11 -11
  24. package/commands/fec-init.md +37 -38
  25. package/commands/fec-plan.md +58 -58
  26. package/commands/fec-refactor-clean.md +11 -11
  27. package/commands/fec-review.md +41 -41
  28. package/commands/fec-scaffold.md +41 -41
  29. package/commands/fec-tdd.md +13 -13
  30. package/dist/bin/frontend-craft.js +29 -27
  31. package/docs/example-prompts.md +84 -69
  32. package/docs/ja-JP/README.md +56 -52
  33. package/docs/ko-KR/README.md +45 -41
  34. package/docs/project-structure.md +19 -7
  35. package/docs/superpowers/plans/2026-05-29-fec-debug.md +491 -0
  36. package/docs/superpowers/specs/2026-05-29-fec-debug-design.md +340 -0
  37. package/docs/zh-CN/example-prompts.md +84 -69
  38. package/docs/zh-CN/project-structure.md +14 -5
  39. package/docs/zh-TW/README.md +33 -29
  40. package/localized/zh-CN/agents/fec-architect.md +125 -0
  41. package/localized/zh-CN/agents/fec-code-reviewer.md +152 -0
  42. package/localized/zh-CN/agents/fec-debugger.md +44 -0
  43. package/localized/zh-CN/agents/fec-design-token-mapper.md +75 -0
  44. package/localized/zh-CN/agents/fec-doc-updater.md +30 -0
  45. package/localized/zh-CN/agents/fec-e2e-runner.md +107 -0
  46. package/localized/zh-CN/agents/fec-figma-implementer.md +104 -0
  47. package/localized/zh-CN/agents/fec-performance-optimizer.md +293 -0
  48. package/localized/zh-CN/agents/fec-refactor-cleaner.md +32 -0
  49. package/localized/zh-CN/agents/fec-security-reviewer.md +116 -0
  50. package/localized/zh-CN/agents/fec-test-planner.md +50 -0
  51. package/localized/zh-CN/agents/fec-typescript-reviewer.md +142 -0
  52. package/localized/zh-CN/agents/fec-ui-checker.md +120 -0
  53. package/localized/zh-CN/commands/fec-debug.md +30 -0
  54. package/localized/zh-CN/commands/fec-doc-sync.md +19 -0
  55. package/localized/zh-CN/commands/fec-init.md +70 -0
  56. package/localized/zh-CN/commands/fec-plan.md +94 -0
  57. package/localized/zh-CN/commands/fec-refactor-clean.md +19 -0
  58. package/localized/zh-CN/commands/fec-review.md +66 -0
  59. package/localized/zh-CN/commands/fec-scaffold.md +205 -0
  60. package/localized/zh-CN/commands/fec-tdd.md +21 -0
  61. package/localized/zh-CN/skills/TEMPLATE.md +155 -0
  62. package/localized/zh-CN/skills/eval_queries.json +1013 -0
  63. package/localized/zh-CN/skills/fec-accessibility-check/SKILL.md +39 -0
  64. package/localized/zh-CN/skills/fec-accessibility-check/references/report-template.md +23 -0
  65. package/localized/zh-CN/skills/fec-accessibility-check/references/screen-reader-testing.md +33 -0
  66. package/localized/zh-CN/skills/fec-alchemy/SKILL.md +74 -0
  67. package/localized/zh-CN/skills/fec-alchemy/assets/absorption-plan-template.md +47 -0
  68. package/localized/zh-CN/skills/fec-alchemy/assets/intake-template.md +55 -0
  69. package/localized/zh-CN/skills/fec-alchemy/assets/review-checklist.md +31 -0
  70. package/localized/zh-CN/skills/fec-alchemy/references/methodology.md +94 -0
  71. package/localized/zh-CN/skills/fec-alchemy/references/originality-and-licensing.md +57 -0
  72. package/localized/zh-CN/skills/fec-api-integration/SKILL.md +78 -0
  73. package/localized/zh-CN/skills/fec-api-integration/references/integration-patterns.md +80 -0
  74. package/localized/zh-CN/skills/fec-backend-requirements-handoff/SKILL.md +45 -0
  75. package/localized/zh-CN/skills/fec-browser-storage/SKILL.md +34 -0
  76. package/localized/zh-CN/skills/fec-browser-storage/references/storage-patterns.md +65 -0
  77. package/localized/zh-CN/skills/fec-canvas-threejs/SKILL.md +66 -0
  78. package/localized/zh-CN/skills/fec-canvas-threejs/references/rendering-patterns.md +67 -0
  79. package/localized/zh-CN/skills/fec-canvas-threejs/references/shader-webgl-patterns.md +67 -0
  80. package/localized/zh-CN/skills/fec-code-review/SKILL.md +143 -0
  81. package/localized/zh-CN/skills/fec-code-review/references/report-template.md +29 -0
  82. package/localized/zh-CN/skills/fec-component-testing/SKILL.md +119 -0
  83. package/localized/zh-CN/skills/fec-data-fetching/SKILL.md +62 -0
  84. package/localized/zh-CN/skills/fec-data-fetching/references/query-patterns.md +103 -0
  85. package/localized/zh-CN/skills/fec-debug-framework/SKILL.md +157 -0
  86. package/localized/zh-CN/skills/fec-debug-framework/references/report-template.md +58 -0
  87. package/localized/zh-CN/skills/fec-dependency-upgrade/SKILL.md +34 -0
  88. package/localized/zh-CN/skills/fec-dependency-upgrade/references/dependency-upgrade-workflow.md +56 -0
  89. package/localized/zh-CN/skills/fec-doc-sync/SKILL.md +39 -0
  90. package/localized/zh-CN/skills/fec-drawio-studio/SKILL.md +73 -0
  91. package/localized/zh-CN/skills/fec-drawio-studio/data/THIRD_PARTY_NOTICES.md +10 -0
  92. package/localized/zh-CN/skills/fec-drawio-studio/data/brand-icons.json +878 -0
  93. package/localized/zh-CN/skills/fec-drawio-studio/data/shape-index.json +83570 -0
  94. package/localized/zh-CN/skills/fec-drawio-studio/references/data-residency.md +27 -0
  95. package/localized/zh-CN/skills/fec-drawio-studio/references/diagram-patterns.md +60 -0
  96. package/localized/zh-CN/skills/fec-drawio-studio/references/flowchart-quality.md +49 -0
  97. package/localized/zh-CN/skills/fec-drawio-studio/references/layout-and-export.md +72 -0
  98. package/localized/zh-CN/skills/fec-drawio-studio/references/troubleshooting.md +29 -0
  99. package/localized/zh-CN/skills/fec-drawio-studio/references/xml-and-mermaid.md +58 -0
  100. package/localized/zh-CN/skills/fec-drawio-studio/scripts/brand-symbols.mjs +99 -0
  101. package/localized/zh-CN/skills/fec-drawio-studio/scripts/diagram-lint.mjs +205 -0
  102. package/localized/zh-CN/skills/fec-drawio-studio/scripts/diagram-url.mjs +102 -0
  103. package/localized/zh-CN/skills/fec-drawio-studio/scripts/drawio-export.mjs +134 -0
  104. package/localized/zh-CN/skills/fec-drawio-studio/scripts/layout-graph.mjs +107 -0
  105. package/localized/zh-CN/skills/fec-drawio-studio/scripts/png-embed-fix.mjs +26 -0
  106. package/localized/zh-CN/skills/fec-drawio-studio/scripts/scan-go-packages.mjs +36 -0
  107. package/localized/zh-CN/skills/fec-drawio-studio/scripts/scan-js-modules.mjs +52 -0
  108. package/localized/zh-CN/skills/fec-drawio-studio/scripts/scan-python-classes.mjs +30 -0
  109. package/localized/zh-CN/skills/fec-drawio-studio/scripts/scan-python-modules.mjs +55 -0
  110. package/localized/zh-CN/skills/fec-drawio-studio/scripts/scan-rust-modules.mjs +35 -0
  111. package/localized/zh-CN/skills/fec-drawio-studio/scripts/scan-ts-modules.mjs +7 -0
  112. package/localized/zh-CN/skills/fec-drawio-studio/scripts/shape-query.mjs +121 -0
  113. package/localized/zh-CN/skills/fec-drawio-studio/scripts/studio-core.mjs +139 -0
  114. package/localized/zh-CN/skills/fec-drawio-studio/styles/built-in/corporate.json +49 -0
  115. package/localized/zh-CN/skills/fec-drawio-studio/styles/built-in/default.json +49 -0
  116. package/localized/zh-CN/skills/fec-drawio-studio/styles/built-in/handdrawn.json +49 -0
  117. package/localized/zh-CN/skills/fec-drawio-studio/styles/schema.json +112 -0
  118. package/localized/zh-CN/skills/fec-e2e-testing/SKILL.md +42 -0
  119. package/localized/zh-CN/skills/fec-e2e-testing/references/e2e-ci-reporting.md +62 -0
  120. package/localized/zh-CN/skills/fec-e2e-testing/references/e2e-special-scenarios.md +52 -0
  121. package/localized/zh-CN/skills/fec-e2e-testing/references/e2e-visual-regression.md +60 -0
  122. package/localized/zh-CN/skills/fec-e2e-testing/references/playwright-patterns.md +95 -0
  123. package/localized/zh-CN/skills/fec-form-handling/SKILL.md +76 -0
  124. package/localized/zh-CN/skills/fec-form-handling/references/advanced-form-patterns.md +101 -0
  125. package/localized/zh-CN/skills/fec-image-generation/SKILL.md +80 -0
  126. package/localized/zh-CN/skills/fec-image-generation/assets/interactive-diagram.html +371 -0
  127. package/localized/zh-CN/skills/fec-image-generation/references/artifact-routing.md +80 -0
  128. package/localized/zh-CN/skills/fec-image-generation/references/diagram-workflows.md +74 -0
  129. package/localized/zh-CN/skills/fec-image-generation/references/html-technical-diagrams.md +236 -0
  130. package/localized/zh-CN/skills/fec-image-generation/references/png-qa-autofix.md +30 -0
  131. package/localized/zh-CN/skills/fec-image-generation/scripts/export-diagram.mjs +364 -0
  132. package/localized/zh-CN/skills/fec-image-generation/scripts/interactive-diagram-server.mjs +654 -0
  133. package/localized/zh-CN/skills/fec-image-generation/scripts/png-qa.mjs +431 -0
  134. package/localized/zh-CN/skills/fec-image-generation/scripts/tech-diagram-render.mjs +1397 -0
  135. package/localized/zh-CN/skills/fec-implement-from-design/SKILL.md +129 -0
  136. package/localized/zh-CN/skills/fec-implement-from-design/references/design-plan-template.md +36 -0
  137. package/localized/zh-CN/skills/fec-legacy-to-modern-migration/SKILL.md +46 -0
  138. package/localized/zh-CN/skills/fec-legacy-to-modern-migration/references/migration-execution-checklist.md +110 -0
  139. package/localized/zh-CN/skills/fec-legacy-to-modern-migration/references/migration-report-template.md +41 -0
  140. package/localized/zh-CN/skills/fec-legacy-to-modern-migration/references/migration-strategy-and-mapping.md +48 -0
  141. package/localized/zh-CN/skills/fec-legacy-web-standard/SKILL.md +35 -0
  142. package/localized/zh-CN/skills/fec-legacy-web-standard/references/legacy-patterns.md +85 -0
  143. package/localized/zh-CN/skills/fec-list-virtualization/SKILL.md +34 -0
  144. package/localized/zh-CN/skills/fec-list-virtualization/references/virtualization-patterns.md +80 -0
  145. package/localized/zh-CN/skills/fec-monorepo-project-standard/SKILL.md +142 -0
  146. package/localized/zh-CN/skills/fec-motion-interaction/SKILL.md +73 -0
  147. package/localized/zh-CN/skills/fec-motion-interaction/references/motion-patterns.md +112 -0
  148. package/localized/zh-CN/skills/fec-nextjs-project-standard/SKILL.md +123 -0
  149. package/localized/zh-CN/skills/fec-nuxt-project-standard/SKILL.md +122 -0
  150. package/localized/zh-CN/skills/fec-performance-optimization/SKILL.md +80 -0
  151. package/localized/zh-CN/skills/fec-performance-optimization/references/framework-performance-patterns.md +38 -0
  152. package/localized/zh-CN/skills/fec-performance-optimization/references/report-template.md +59 -0
  153. package/localized/zh-CN/skills/fec-pwa-implementation/SKILL.md +35 -0
  154. package/localized/zh-CN/skills/fec-pwa-implementation/references/manifest-and-icons.md +53 -0
  155. package/localized/zh-CN/skills/fec-pwa-implementation/references/service-worker-workbox.md +68 -0
  156. package/localized/zh-CN/skills/fec-react-project-standard/SKILL.md +91 -0
  157. package/localized/zh-CN/skills/fec-react-project-standard/references/react-performance-patterns.md +35 -0
  158. package/localized/zh-CN/skills/fec-react-project-standard/references/react-project-structure.md +197 -0
  159. package/localized/zh-CN/skills/fec-react-project-standard/references/react-quality-patterns.md +131 -0
  160. package/localized/zh-CN/skills/fec-react-project-standard/references/react-runtime-patterns.md +293 -0
  161. package/localized/zh-CN/skills/fec-refactor-clean/SKILL.md +51 -0
  162. package/localized/zh-CN/skills/fec-refactor-clean/references/report-template.md +42 -0
  163. package/localized/zh-CN/skills/fec-responsive-layout/SKILL.md +34 -0
  164. package/localized/zh-CN/skills/fec-responsive-layout/references/responsive-layout-patterns.md +70 -0
  165. package/localized/zh-CN/skills/fec-route-protection/SKILL.md +135 -0
  166. package/localized/zh-CN/skills/fec-security-review/SKILL.md +38 -0
  167. package/localized/zh-CN/skills/fec-security-review/references/report-template.md +27 -0
  168. package/localized/zh-CN/skills/fec-security-review/references/security-checklist.md +64 -0
  169. package/localized/zh-CN/skills/fec-source-driven-development/SKILL.md +87 -0
  170. package/localized/zh-CN/skills/fec-state-management/SKILL.md +140 -0
  171. package/localized/zh-CN/skills/fec-state-management/references/state-patterns.md +109 -0
  172. package/localized/zh-CN/skills/fec-storybook-component-doc/SKILL.md +37 -0
  173. package/localized/zh-CN/skills/fec-storybook-component-doc/references/story-patterns.md +118 -0
  174. package/localized/zh-CN/skills/fec-svg-animation/SKILL.md +148 -0
  175. package/localized/zh-CN/skills/fec-tailwind-design-system/SKILL.md +34 -0
  176. package/localized/zh-CN/skills/fec-tailwind-design-system/references/tailwind-system-patterns.md +59 -0
  177. package/localized/zh-CN/skills/fec-tdd-workflow/SKILL.md +52 -0
  178. package/localized/zh-CN/skills/fec-testing-strategy/SKILL.md +45 -0
  179. package/localized/zh-CN/skills/fec-typescript-project-standard/SKILL.md +54 -0
  180. package/{skills/fec-typescript-type-safety → localized/zh-CN/skills/fec-typescript-project-standard}/references/type-safety-patterns.md +1 -1
  181. package/{skills/fec-typescript-type-safety/SKILL.md → localized/zh-CN/skills/fec-typescript-project-standard/references/type-safety.md} +5 -14
  182. package/localized/zh-CN/skills/fec-ui-design/SKILL.md +108 -0
  183. package/localized/zh-CN/skills/fec-ui-design/data/product-rules.json +231 -0
  184. package/localized/zh-CN/skills/fec-ui-design/data/stack-ui-rules.json +146 -0
  185. package/localized/zh-CN/skills/fec-ui-design/data/style-archetypes.json +373 -0
  186. package/localized/zh-CN/skills/fec-ui-design/data/ux-quality-rules.json +203 -0
  187. package/localized/zh-CN/skills/fec-ui-design/references/design-intelligence.md +97 -0
  188. package/localized/zh-CN/skills/fec-ui-design/references/master-page-overrides.md +30 -0
  189. package/localized/zh-CN/skills/fec-ui-design/references/pre-delivery-checklist.md +39 -0
  190. package/localized/zh-CN/skills/fec-ui-design/scripts/design-system.mjs +648 -0
  191. package/localized/zh-CN/skills/fec-validation-fix/SKILL.md +51 -0
  192. package/localized/zh-CN/skills/fec-validation-fix/references/report-template.md +43 -0
  193. package/localized/zh-CN/skills/fec-vite-project-standard/SKILL.md +83 -0
  194. package/localized/zh-CN/skills/fec-vue3-project-standard/SKILL.md +58 -0
  195. package/localized/zh-CN/skills/fec-vue3-project-standard/references/vue3-composables-routing.md +162 -0
  196. package/localized/zh-CN/skills/fec-vue3-project-standard/references/vue3-performance-patterns.md +13 -0
  197. package/localized/zh-CN/skills/fec-vue3-project-standard/references/vue3-project-structure.md +176 -0
  198. package/localized/zh-CN/skills/fec-vue3-project-standard/references/vue3-state-api-quality.md +216 -0
  199. package/localized/zh-CN/skills/fec-web-video-presentation/SKILL.md +61 -0
  200. package/localized/zh-CN/skills/fec-web-video-presentation/data/starter-themes.json +59 -0
  201. package/localized/zh-CN/skills/fec-web-video-presentation/references/chapter-craft.md +37 -0
  202. package/localized/zh-CN/skills/fec-web-video-presentation/references/content-plan.md +38 -0
  203. package/localized/zh-CN/skills/fec-web-video-presentation/references/recording-and-audio.md +33 -0
  204. package/localized/zh-CN/skills/fec-web-video-presentation/references/theme-system.md +36 -0
  205. package/localized/zh-CN/skills/fec-web-video-presentation/scripts/create-video-presentation.mjs +430 -0
  206. package/localized/zh-CN/skills/fec-web-workers/SKILL.md +35 -0
  207. package/localized/zh-CN/skills/fec-web-workers/references/advanced-workers.md +54 -0
  208. package/localized/zh-CN/skills/fec-web-workers/references/basic-worker.md +67 -0
  209. package/localized/zh-CN/skills/metadata.json +1646 -0
  210. package/localized/zh-CN/skills/relations.json +755 -0
  211. package/localized/zh-CN/templates/claude/CLAUDE.md +106 -0
  212. package/localized/zh-CN/templates/claude/settings.json +62 -0
  213. package/localized/zh-CN/templates/codex/AGENTS.md +105 -0
  214. package/localized/zh-CN/templates/codex/config.toml +32 -0
  215. package/localized/zh-CN/templates/openclaw/AGENTS.md +101 -0
  216. package/localized/zh-CN/templates/openclaw/OPENCLAW-CONFIG.md +12 -0
  217. package/localized/zh-CN/templates/shared/rules/fec-agent-workflow.md +54 -0
  218. package/localized/zh-CN/templates/shared/rules/fec-api-layer.md +99 -0
  219. package/localized/zh-CN/templates/shared/rules/fec-ci-cd.md +40 -0
  220. package/localized/zh-CN/templates/shared/rules/fec-code-comments.md +33 -0
  221. package/localized/zh-CN/templates/shared/rules/fec-design-system.md +72 -0
  222. package/localized/zh-CN/templates/shared/rules/fec-error-handling.md +56 -0
  223. package/localized/zh-CN/templates/shared/rules/fec-git-conventions.md +73 -0
  224. package/localized/zh-CN/templates/shared/rules/fec-i18n.md +64 -0
  225. package/localized/zh-CN/templates/shared/rules/fec-naming-conventions.md +120 -0
  226. package/localized/zh-CN/templates/shared/rules/fec-performance.md +101 -0
  227. package/localized/zh-CN/templates/shared/rules/fec-react.md +82 -0
  228. package/localized/zh-CN/templates/shared/rules/fec-refactoring.md +47 -0
  229. package/localized/zh-CN/templates/shared/rules/fec-rendering-patterns.md +40 -0
  230. package/localized/zh-CN/templates/shared/rules/fec-responsive-design.md +50 -0
  231. package/localized/zh-CN/templates/shared/rules/fec-source-driven-development.md +31 -0
  232. package/localized/zh-CN/templates/shared/rules/fec-state-management.md +60 -0
  233. package/localized/zh-CN/templates/shared/rules/fec-testing.md +98 -0
  234. package/localized/zh-CN/templates/shared/rules/fec-typescript.md +112 -0
  235. package/localized/zh-CN/templates/shared/rules/fec-vue.md +64 -0
  236. package/localized/zh-CN/templates/shared/rules/fec-working-modes.md +50 -0
  237. package/openclaw.plugin.json +1 -1
  238. package/package.json +4 -3
  239. package/skills/TEMPLATE.md +74 -74
  240. package/skills/eval_queries.json +717 -619
  241. package/skills/fec-accessibility-check/SKILL.md +21 -21
  242. package/skills/fec-accessibility-check/references/report-template.md +12 -12
  243. package/skills/fec-accessibility-check/references/screen-reader-testing.md +24 -24
  244. package/skills/fec-alchemy/SKILL.md +50 -50
  245. package/skills/fec-alchemy/assets/absorption-plan-template.md +32 -32
  246. package/skills/fec-alchemy/assets/intake-template.md +55 -55
  247. package/skills/fec-alchemy/assets/review-checklist.md +23 -23
  248. package/skills/fec-alchemy/references/methodology.md +66 -66
  249. package/skills/fec-alchemy/references/originality-and-licensing.md +42 -42
  250. package/skills/fec-api-integration/SKILL.md +61 -61
  251. package/skills/fec-api-integration/references/integration-patterns.md +30 -30
  252. package/skills/fec-backend-requirements-handoff/SKILL.md +45 -0
  253. package/skills/fec-browser-storage/SKILL.md +16 -16
  254. package/skills/fec-browser-storage/references/storage-patterns.md +16 -16
  255. package/skills/fec-canvas-threejs/SKILL.md +21 -21
  256. package/skills/fec-canvas-threejs/references/rendering-patterns.md +10 -10
  257. package/skills/fec-canvas-threejs/references/shader-webgl-patterns.md +37 -37
  258. package/skills/fec-code-review/SKILL.md +94 -94
  259. package/skills/fec-code-review/references/report-template.md +13 -13
  260. package/skills/fec-component-testing/SKILL.md +39 -39
  261. package/skills/fec-data-fetching/SKILL.md +16 -16
  262. package/skills/fec-data-fetching/references/query-patterns.md +27 -27
  263. package/skills/fec-debug-framework/SKILL.md +95 -95
  264. package/skills/fec-debug-framework/references/report-template.md +34 -34
  265. package/skills/fec-dependency-upgrade/SKILL.md +17 -17
  266. package/skills/fec-dependency-upgrade/references/dependency-upgrade-workflow.md +31 -31
  267. package/skills/fec-doc-sync/SKILL.md +23 -23
  268. package/skills/fec-drawio-studio/SKILL.md +73 -0
  269. package/skills/fec-drawio-studio/data/THIRD_PARTY_NOTICES.md +10 -0
  270. package/skills/fec-drawio-studio/data/brand-icons.json +878 -0
  271. package/skills/fec-drawio-studio/data/shape-index.json +83570 -0
  272. package/skills/fec-drawio-studio/references/data-residency.md +27 -0
  273. package/skills/fec-drawio-studio/references/diagram-patterns.md +60 -0
  274. package/skills/fec-drawio-studio/references/flowchart-quality.md +49 -0
  275. package/skills/fec-drawio-studio/references/layout-and-export.md +72 -0
  276. package/skills/fec-drawio-studio/references/troubleshooting.md +29 -0
  277. package/skills/fec-drawio-studio/references/xml-and-mermaid.md +58 -0
  278. package/skills/fec-drawio-studio/scripts/brand-symbols.mjs +99 -0
  279. package/skills/fec-drawio-studio/scripts/diagram-lint.mjs +205 -0
  280. package/skills/fec-drawio-studio/scripts/diagram-url.mjs +102 -0
  281. package/skills/fec-drawio-studio/scripts/drawio-export.mjs +134 -0
  282. package/skills/fec-drawio-studio/scripts/layout-graph.mjs +107 -0
  283. package/skills/fec-drawio-studio/scripts/png-embed-fix.mjs +26 -0
  284. package/skills/fec-drawio-studio/scripts/scan-go-packages.mjs +36 -0
  285. package/skills/fec-drawio-studio/scripts/scan-js-modules.mjs +52 -0
  286. package/skills/fec-drawio-studio/scripts/scan-python-classes.mjs +30 -0
  287. package/skills/fec-drawio-studio/scripts/scan-python-modules.mjs +55 -0
  288. package/skills/fec-drawio-studio/scripts/scan-rust-modules.mjs +35 -0
  289. package/skills/fec-drawio-studio/scripts/scan-ts-modules.mjs +7 -0
  290. package/skills/fec-drawio-studio/scripts/shape-query.mjs +121 -0
  291. package/skills/fec-drawio-studio/scripts/studio-core.mjs +139 -0
  292. package/skills/fec-drawio-studio/styles/built-in/corporate.json +49 -0
  293. package/skills/fec-drawio-studio/styles/built-in/default.json +49 -0
  294. package/skills/fec-drawio-studio/styles/built-in/handdrawn.json +49 -0
  295. package/skills/fec-drawio-studio/styles/schema.json +112 -0
  296. package/skills/fec-e2e-testing/SKILL.md +24 -22
  297. package/skills/fec-e2e-testing/references/e2e-ci-reporting.md +62 -0
  298. package/skills/fec-e2e-testing/references/e2e-special-scenarios.md +52 -0
  299. package/skills/fec-e2e-testing/references/e2e-visual-regression.md +60 -0
  300. package/skills/fec-e2e-testing/references/playwright-patterns.md +6 -6
  301. package/skills/fec-form-handling/SKILL.md +21 -21
  302. package/skills/fec-form-handling/references/advanced-form-patterns.md +41 -41
  303. package/skills/fec-image-generation/SKILL.md +81 -0
  304. package/skills/fec-image-generation/assets/interactive-diagram.html +371 -0
  305. package/skills/fec-image-generation/references/artifact-routing.md +80 -0
  306. package/skills/fec-image-generation/references/diagram-workflows.md +74 -0
  307. package/skills/fec-image-generation/references/html-technical-diagrams.md +236 -0
  308. package/skills/fec-image-generation/references/png-qa-autofix.md +30 -0
  309. package/skills/fec-image-generation/scripts/export-diagram.mjs +364 -0
  310. package/skills/fec-image-generation/scripts/interactive-diagram-server.mjs +654 -0
  311. package/skills/fec-image-generation/scripts/png-qa.mjs +431 -0
  312. package/skills/fec-image-generation/scripts/tech-diagram-render.mjs +1397 -0
  313. package/skills/fec-implement-from-design/SKILL.md +81 -74
  314. package/skills/fec-implement-from-design/references/design-plan-template.md +16 -16
  315. package/skills/fec-legacy-to-modern-migration/SKILL.md +29 -173
  316. package/skills/fec-legacy-to-modern-migration/references/migration-execution-checklist.md +110 -0
  317. package/skills/fec-legacy-to-modern-migration/references/migration-report-template.md +37 -37
  318. package/skills/fec-legacy-to-modern-migration/references/migration-strategy-and-mapping.md +48 -0
  319. package/skills/fec-legacy-web-standard/SKILL.md +17 -17
  320. package/skills/fec-legacy-web-standard/references/legacy-patterns.md +16 -16
  321. package/skills/fec-list-virtualization/SKILL.md +16 -16
  322. package/skills/fec-list-virtualization/references/virtualization-patterns.md +31 -31
  323. package/skills/fec-monorepo-project-standard/SKILL.md +52 -52
  324. package/skills/fec-motion-interaction/SKILL.md +51 -44
  325. package/skills/fec-motion-interaction/references/motion-patterns.md +11 -11
  326. package/skills/fec-nextjs-project-standard/SKILL.md +64 -58
  327. package/skills/fec-nuxt-project-standard/SKILL.md +57 -57
  328. package/skills/fec-performance-optimization/SKILL.md +54 -50
  329. package/skills/fec-performance-optimization/references/framework-performance-patterns.md +38 -0
  330. package/skills/fec-performance-optimization/references/report-template.md +34 -28
  331. package/skills/fec-pwa-implementation/SKILL.md +17 -17
  332. package/skills/fec-pwa-implementation/references/manifest-and-icons.md +12 -12
  333. package/skills/fec-pwa-implementation/references/service-worker-workbox.md +13 -13
  334. package/skills/fec-react-project-standard/SKILL.md +72 -64
  335. package/skills/fec-react-project-standard/references/react-performance-patterns.md +35 -0
  336. package/skills/fec-react-project-standard/references/react-project-structure.md +197 -0
  337. package/skills/fec-react-project-standard/references/react-quality-patterns.md +131 -0
  338. package/skills/fec-react-project-standard/references/react-runtime-patterns.md +293 -0
  339. package/skills/fec-refactor-clean/SKILL.md +30 -30
  340. package/skills/fec-refactor-clean/references/report-template.md +23 -23
  341. package/skills/fec-responsive-layout/SKILL.md +17 -17
  342. package/skills/fec-responsive-layout/references/responsive-layout-patterns.md +39 -28
  343. package/skills/fec-route-protection/SKILL.md +26 -26
  344. package/skills/fec-security-review/SKILL.md +20 -20
  345. package/skills/fec-security-review/references/report-template.md +12 -12
  346. package/skills/fec-security-review/references/security-checklist.md +27 -27
  347. package/skills/fec-source-driven-development/SKILL.md +66 -40
  348. package/skills/fec-state-management/SKILL.md +34 -34
  349. package/skills/fec-state-management/references/state-patterns.md +19 -19
  350. package/skills/fec-storybook-component-doc/SKILL.md +19 -19
  351. package/skills/fec-storybook-component-doc/references/story-patterns.md +12 -12
  352. package/skills/fec-svg-animation/SKILL.md +32 -32
  353. package/skills/fec-tailwind-design-system/SKILL.md +17 -17
  354. package/skills/fec-tailwind-design-system/references/tailwind-system-patterns.md +36 -32
  355. package/skills/fec-tdd-workflow/SKILL.md +28 -28
  356. package/skills/fec-testing-strategy/SKILL.md +29 -29
  357. package/skills/fec-typescript-project-standard/SKILL.md +54 -0
  358. package/skills/fec-typescript-project-standard/references/type-safety-patterns.md +102 -0
  359. package/skills/fec-typescript-project-standard/references/type-safety.md +148 -0
  360. package/skills/fec-ui-design/SKILL.md +90 -72
  361. package/skills/fec-ui-design/data/style-archetypes.json +40 -0
  362. package/skills/fec-ui-design/data/ux-quality-rules.json +35 -0
  363. package/skills/fec-ui-design/references/design-intelligence.md +81 -21
  364. package/skills/fec-ui-design/references/master-page-overrides.md +15 -15
  365. package/skills/fec-ui-design/references/pre-delivery-checklist.md +38 -32
  366. package/skills/fec-ui-design/scripts/design-system.mjs +119 -1
  367. package/skills/fec-validation-fix/SKILL.md +26 -26
  368. package/skills/fec-validation-fix/references/report-template.md +25 -25
  369. package/skills/fec-vite-project-standard/SKILL.md +39 -39
  370. package/skills/fec-vue3-project-standard/SKILL.md +39 -30
  371. package/skills/fec-vue3-project-standard/references/vue3-composables-routing.md +163 -0
  372. package/skills/fec-vue3-project-standard/references/vue3-performance-patterns.md +13 -0
  373. package/skills/fec-vue3-project-standard/references/vue3-project-structure.md +177 -0
  374. package/skills/fec-vue3-project-standard/references/vue3-state-api-quality.md +216 -0
  375. package/skills/fec-web-video-presentation/SKILL.md +61 -0
  376. package/skills/fec-web-video-presentation/data/starter-themes.json +59 -0
  377. package/skills/fec-web-video-presentation/references/chapter-craft.md +37 -0
  378. package/skills/fec-web-video-presentation/references/content-plan.md +38 -0
  379. package/skills/fec-web-video-presentation/references/recording-and-audio.md +33 -0
  380. package/skills/fec-web-video-presentation/references/theme-system.md +36 -0
  381. package/skills/fec-web-video-presentation/scripts/create-video-presentation.mjs +430 -0
  382. package/skills/fec-web-workers/SKILL.md +16 -16
  383. package/skills/fec-web-workers/references/advanced-workers.md +13 -13
  384. package/skills/fec-web-workers/references/basic-worker.md +8 -8
  385. package/skills/metadata.json +402 -220
  386. package/skills/relations.json +120 -25
  387. package/templates/claude/CLAUDE.md +60 -60
  388. package/templates/codex/AGENTS.md +76 -76
  389. package/templates/codex/config.toml +4 -4
  390. package/templates/openclaw/AGENTS.md +68 -68
  391. package/templates/openclaw/OPENCLAW-CONFIG.md +8 -8
  392. package/templates/shared/rules/fec-agent-workflow.md +40 -40
  393. package/templates/shared/rules/fec-api-layer.md +52 -52
  394. package/templates/shared/rules/fec-ci-cd.md +29 -117
  395. package/templates/shared/rules/fec-code-comments.md +22 -22
  396. package/templates/shared/rules/fec-design-system.md +65 -241
  397. package/templates/shared/rules/fec-error-handling.md +41 -185
  398. package/templates/shared/rules/fec-git-conventions.md +42 -42
  399. package/templates/shared/rules/fec-i18n.md +48 -96
  400. package/templates/shared/rules/fec-naming-conventions.md +91 -91
  401. package/templates/shared/rules/fec-performance.md +78 -78
  402. package/templates/shared/rules/fec-react.md +58 -58
  403. package/templates/shared/rules/fec-refactoring.md +34 -30
  404. package/templates/shared/rules/fec-rendering-patterns.md +40 -183
  405. package/templates/shared/rules/fec-responsive-design.md +37 -214
  406. package/templates/shared/rules/fec-source-driven-development.md +22 -22
  407. package/templates/shared/rules/fec-state-management.md +45 -148
  408. package/templates/shared/rules/fec-testing.md +64 -64
  409. package/templates/shared/rules/fec-typescript.md +98 -341
  410. package/templates/shared/rules/fec-vue.md +42 -42
  411. package/templates/shared/rules/fec-working-modes.md +34 -34
  412. package/skills/fec-e2e-testing/references/e2e-advanced.md +0 -176
  413. package/skills/fec-react-project-standard/references/react-project-details.md +0 -642
  414. package/skills/fec-vue3-project-standard/references/vue3-project-details.md +0 -547
@@ -12,7 +12,7 @@
12
12
 
13
13
  **Language / 语言**
14
14
 
15
- [English](README.md) | [**简体中文**](README.zh-CN.md)
15
+ [English](README.openclaw.md) | [**简体中文**](README.openclaw.zh-CN.md)
16
16
 
17
17
  </div>
18
18
 
@@ -136,40 +136,92 @@ frontend-craft/
136
136
 
137
137
  ### 技能
138
138
 
139
- | 技能 | 用途 |
140
- | -------------------------------- | -------------------------------------------------------------- |
141
- | `fec-code-review` | 架构、类型安全、渲染、样式、可访问性、测试、安全评审 |
142
- | `fec-security-review` | XSS、CSRF、敏感数据泄露、不安全输入处理 |
143
- | `fec-accessibility-check` | 面向 WCAG 的语义结构、键盘支持、焦点、标签检查 |
144
- | `fec-react-project-standard` | React + TypeScript 项目规范 |
145
- | `fec-vue3-project-standard` | Vue 3 + TypeScript 项目规范 |
146
- | `fec-implement-from-design` | 基于 Figma、Sketch、MasterGo、Pixso、墨刀或截图实现 UI |
147
- | `fec-validation-fix` | 执行校验命令、分析失败并安全修复 |
148
- | `fec-legacy-web-standard` | JavaScript + jQuery + HTML/CSS 传统前端规范 |
149
- | `fec-legacy-to-modern-migration` | 遗留前端现代化、目标栈识别与分阶段迁移策略 |
150
- | `fec-testing-strategy` | 测试层级选择、风险矩阵与覆盖规划 |
151
- | `fec-e2e-testing` | Playwright / Cypress E2E 结构、产物、CI 与不稳定用例治理 |
152
- | `fec-nextjs-project-standard` | Next.js App Router、SSR/SSG、路由、元数据、中间件 |
153
- | `fec-nuxt-project-standard` | Nuxt 3 SSR/SSG、组合式函数、路由、中间件 |
154
- | `fec-monorepo-project-standard` | pnpm workspace、Turborepo、Nx 结构与任务编排 |
155
- | `fec-data-fetching` | 服务端状态获取、缓存、失效、SSR 与无限加载 |
156
- | `fec-state-management` | 状态归属、store 选型、URL/服务端/表单/本地状态边界 |
157
- | `fec-form-handling` | 跨框架表单选型、schema 校验、动态字段、上传、多步流程 |
158
- | `fec-tailwind-design-system` | Tailwind token、主题扩展、组件变体、class 治理和暗色模式 |
159
- | `fec-responsive-layout` | 移动优先布局、容器查询、数据密集型响应式界面 |
160
- | `fec-browser-storage` | localStorage/sessionStorage/IndexedDB/Cookies 选型与安全持久化 |
161
- | `fec-route-protection` | React Router、Next.js、Vue Router、Nuxt 的权限路由保护 |
162
- | `fec-component-testing` | RTL / Vue Test Utils 组件测试与回归用例 |
163
- | `fec-storybook-component-doc` | Storybook 组件文档、Addon、MDX、交互与视觉测试集成 |
164
- | `fec-list-virtualization` | 按框架选型的大列表虚拟滚动、测量、网格和无限滚动 |
165
- | `fec-pwa-implementation` | PWA manifest、Service Worker、离线缓存与安装提示 |
166
- | `fec-web-workers` | Web Worker、Transferable、Comlink、Worker 池 |
167
- | `fec-canvas-threejs` | Canvas 2D、Three.js、React Three Fiber、WebGL 性能与可访问性 |
168
- | `fec-svg-animation` | CSS、Framer Motion、GSAP SVG 动画与 reduced-motion 降级 |
169
- | `fec-ui-design` | UI 方向、视觉识别、界面打磨、状态与视觉 QA |
170
- | `fec-typescript-type-safety` | 类型契约、DTO 映射、类型守卫、泛型和类型级检查 |
171
- | `fec-dependency-upgrade` | 依赖升级、lockfile 评审、CVE 修复和迁移验证 |
172
- | `fec-vite-project-standard` | Vite 配置、环境变量安全、HMR、开发代理、构建优化与库模式 |
139
+ OpenClaw 包包含 `skills/` 下全部 45 个公开工作流技能,按使用场景分组如下。
140
+
141
+ **项目规范**
142
+
143
+ | 技能 | 用途 |
144
+ | -------------------------------- | --------------------------------------------------- |
145
+ | `fec-react-project-standard` | React + TypeScript 项目规范 |
146
+ | `fec-vue3-project-standard` | Vue 3 + TypeScript 项目规范 |
147
+ | `fec-nextjs-project-standard` | Next.js App Router、SSR/SSG、路由、元数据、中间件 |
148
+ | `fec-nuxt-project-standard` | Nuxt 3 SSR/SSG、组合式函数、路由、中间件 |
149
+ | `fec-vite-project-standard` | Vite 配置、环境变量安全、HMR、开发代理、构建优化 |
150
+ | `fec-monorepo-project-standard` | pnpm workspace、Turborepo、Nx 结构与任务编排 |
151
+ | `fec-typescript-project-standard` | TypeScript 配置、公开类型、声明文件、DTO 和泛型 |
152
+
153
+ **实现能力**
154
+
155
+ | 技能 | 用途 |
156
+ | ------------------------- | -------------------------------------------------------------- |
157
+ | `fec-data-fetching` | 服务端状态获取、缓存、失效、SSR 与无限加载 |
158
+ | `fec-api-integration` | 类型化 API 客户端、鉴权刷新、上传与实时通信 |
159
+ | `fec-state-management` | 状态归属、store 选型、URL/服务端/表单/本地状态边界 |
160
+ | `fec-form-handling` | 跨框架表单选型、schema 校验、动态字段、上传、多步流程 |
161
+ | `fec-browser-storage` | localStorage/sessionStorage/IndexedDB/Cookies 选型与安全持久化 |
162
+ | `fec-route-protection` | React Router、Next.js、Vue Router、Nuxt 的权限路由保护 |
163
+ | `fec-pwa-implementation` | PWA manifest、Service Worker、离线缓存与安装提示 |
164
+ | `fec-web-workers` | Web Worker、Transferable、Comlink、Worker 池 |
165
+ | `fec-canvas-threejs` | Canvas 2D、Three.js、React Three Fiber、WebGL 性能与可访问性 |
166
+ | `fec-svg-animation` | CSS、Framer Motion、GSAP SVG 动画与 reduced-motion 降级 |
167
+ | `fec-list-virtualization` | 按框架选型的大列表虚拟滚动、测量、网格和无限滚动 |
168
+
169
+ **测试**
170
+
171
+ | 技能 | 用途 |
172
+ | ----------------------- | -------------------------------------------------------- |
173
+ | `fec-testing-strategy` | 测试层级选择、风险矩阵与覆盖规划 |
174
+ | `fec-component-testing` | RTL / Vue Test Utils 组件测试与回归用例 |
175
+ | `fec-e2e-testing` | Playwright / Cypress E2E 结构、产物、CI 与不稳定用例治理 |
176
+ | `fec-tdd-workflow` | 测试先行的 red-green-refactor 前端实现流程 |
177
+
178
+ **评审与质量**
179
+
180
+ | 技能 | 用途 |
181
+ | ------------------------------ | -------------------------------------------------------- |
182
+ | `fec-code-review` | 架构、类型安全、渲染、样式、可访问性、测试、安全评审 |
183
+ | `fec-debug-framework` | 构建、运行时、UI 与 API/data 问题的系统化诊断 |
184
+ | `fec-security-review` | XSS、CSRF、敏感数据泄露、不安全输入处理 |
185
+ | `fec-accessibility-check` | 面向 WCAG 的语义结构、键盘支持、焦点、标签检查 |
186
+ | `fec-dependency-upgrade` | 依赖升级、lockfile 评审、CVE 修复和迁移验证 |
187
+ | `fec-validation-fix` | 执行校验命令、分析失败并安全修复 |
188
+ | `fec-performance-optimization` | Core Web Vitals、bundle、渲染、内存、网络和预算评审 |
189
+ | `fec-refactor-clean` | 安全清理死代码、未用导出、样式、路由与依赖 |
190
+
191
+ **设计 UI**
192
+
193
+ | 技能 | 用途 |
194
+ | ----------------------------- | ---------------------------------------------------------- |
195
+ | `fec-ui-design` | UI 方向、视觉识别、界面打磨、状态与视觉 QA |
196
+ | `fec-image-generation` | 图表、图片生成/编辑、视觉资产与 PNG QA 修复循环 |
197
+ | `fec-drawio-studio` | 可编辑 draw.io / diagrams.net 技术图、形状检索与代码结构图 |
198
+ | `fec-web-video-presentation` | 将文章、口播稿、课程和 demo 转成可录屏的 16:9 步进网页演示 |
199
+ | `fec-tailwind-design-system` | Tailwind token、主题扩展、组件变体、class 治理和暗色模式 |
200
+ | `fec-responsive-layout` | 移动优先布局、容器查询、数据密集型响应式界面 |
201
+ | `fec-motion-interaction` | 上下文感知动效、页面转场、滚动动画与 reduced motion |
202
+ | `fec-implement-from-design` | 基于 Figma、Sketch、MasterGo、Pixso、墨刀或截图实现 UI |
203
+ | `fec-storybook-component-doc` | Storybook 组件文档、设计系统展示与隔离状态预览 |
204
+
205
+ **遗留迁移**
206
+
207
+ | 技能 | 用途 |
208
+ | -------------------------------- | ------------------------------------------ |
209
+ | `fec-legacy-web-standard` | JavaScript + jQuery + HTML/CSS 传统前端规范 |
210
+ | `fec-legacy-to-modern-migration` | 遗留前端现代化、目标栈识别与分阶段迁移策略 |
211
+
212
+ **项目演进**
213
+
214
+ | 技能 | 用途 |
215
+ | ------------- | ------------------------------------------------ |
216
+ | `fec-alchemy` | 吸收参考系统想法,并重设计为原创、项目原生改进 |
217
+
218
+ **维护与文档**
219
+
220
+ | 技能 | 用途 |
221
+ | ------------------------------- | -------------------------------------------------------- |
222
+ | `fec-backend-requirements-handoff` | 面向后端交接 UI 数据需求、用户动作、状态、规则和问题 |
223
+ | `fec-doc-sync` | 同步 README、配置、脚本、路由/API、环境变量与部署事实 |
224
+ | `fec-source-driven-development` | 根据项目事实和官方来源校验版本敏感的前端决策 |
173
225
 
174
226
  ### 技能使用:场景与示例
175
227
 
@@ -213,17 +265,23 @@ frontend-craft/
213
265
  | 构建交互式 3D 场景 | `fec-canvas-threejs` | 「在 `src/components/ProductViewer.tsx` 添加 Three.js 产品展示,兼顾性能和降级方案。」 |
214
266
  | 为落地页添加 SVG 动效 | `fec-svg-animation` | 「用 Framer Motion 为 hero 区 SVG 添加动画,并为 reduced-motion 用户提供静态降级方案。」 |
215
267
  | 设计与打磨 UI | `fec-ui-design` | 「请评审 `src/components/Dashboard.tsx` 的 UI 方向、视觉识别、间距、状态和动效打磨。」 |
268
+ | 构建可录屏网页演示 | `fec-web-video-presentation` | 「把这段产品 demo 口播稿转成 16:9 浏览器演示:拆口播节拍、章节 step、主题 token,并给出录屏指引。」 |
216
269
  | 优化 Vite 构建配置 | `fec-vite-project-standard` | 「请审计 `vite.config.ts` 的 HMR、开发代理、环境变量安全和库模式最佳实践。」 |
217
270
 
218
271
  **斜杠命令(`commands/` 下的 Markdown)**
219
272
 
220
- 作为**固定步骤**的命令说明加载。对话里用自然语言描述要做的事即可,代理可按对应命令文档执行,**无需**说出命令文件名。下表只列出常见 OpenClaw 示例;完整命令提示词见 [docs/zh-CN/example-prompts.md](docs/zh-CN/example-prompts.md#高级用户提示词)。
221
-
222
- | 命令文档 | 适用时机 | 示例(自然语言) |
223
- | ----------------- | ---------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- |
224
- | `fec-init.md` | 在**业务仓库**里初始化 **Claude 风格** 的 `.claude/` 模板(文档内路径针对 `.claude/`)。 | 「请在本仓库初始化 `.claude/`,按插件提供的模板与规则复制;若已有文件请先问我是否覆盖。」 |
225
- | `fec-review.md` | 引导式评审并保存 `reports/code-review-*.md`。 | 「请评审我上一次提交里改动的文件,并写一份结构化 Markdown 报告到 `reports/`。」 |
226
- | `fec-scaffold.md` | 页面 / 功能 / 组件目录脚手架。 | 「请为 React 项目脚手架一个新页面 UserDetail:放在 `src/pages/...`,并带上空的 `components/` 与 `hooks/` 目录。」 |
273
+ 作为**固定步骤**的命令说明加载。对话里用自然语言描述要做的事即可,代理可按对应命令文档执行,**无需**说出命令文件名。完整命令提示词见 [docs/zh-CN/example-prompts.md](docs/zh-CN/example-prompts.md#高级用户提示词)。
274
+
275
+ | 命令文档 | 适用时机 | 示例(自然语言) |
276
+ | ------------------------ | ---------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- |
277
+ | `fec-init.md` | 在**业务仓库**里初始化 **Claude 风格** 的 `.claude/` 模板(文档内路径针对 `.claude/`)。 | 「请在本仓库初始化 `.claude/`,按插件提供的模板与规则复制;若已有文件请先问我是否覆盖。」 |
278
+ | `fec-review.md` | 引导式评审并保存 `reports/code-review-*.md`。 | 「请评审我上一次提交里改动的文件,并写一份结构化 Markdown 报告到 `reports/`。」 |
279
+ | `fec-scaffold.md` | 页面 / 功能 / 组件目录脚手架。 | 「请为 React 项目脚手架一个新页面 UserDetail:放在 `src/pages/...`,并带上空的 `components/` 与 `hooks/` 目录。」 |
280
+ | `fec-plan.md` | 实现前做架构方案或测试策略规划。 | 「先规划 checkout 重写:组件边界、状态流、风险和测试覆盖。」 |
281
+ | `fec-tdd.md` | 使用 red-green-refactor 的测试驱动实现流程。 | 「这个筛选组件请按 TDD 做:先写失败测试,再实现最小行为。」 |
282
+ | `fec-debug.md` | 诊断构建、运行时、UI 或 API/data 失败。 | 「登录后 dashboard 崩溃,请检查错误路径、定位根因,并写一份 debug 报告。」 |
283
+ | `fec-refactor-clean.md` | 分类并安全清理死代码、未用导出、样式和依赖。 | 「清理 `src/features/billing/` 里的未用导出和样式,保持行为不变并报告变更。」 |
284
+ | `fec-doc-sync.md` | 同步 README、文档、环境说明、脚本列表、API/路由说明和部署事实。 | 「检查 README 命令列表是否还匹配 package scripts,并更新漂移的文档。」 |
227
285
 
228
286
  ### Hooks
229
287
 
package/README.zh-CN.md CHANGED
@@ -32,7 +32,7 @@
32
32
 
33
33
  各运行时的路径与注意事项详见 [`docs/runtimes/`](docs/runtimes/)。
34
34
 
35
- 它将 **13 个专业 agent**、**41 个自动激活 skill**、**8 个斜杠命令**、**5 个事件驱动 hook**、面向 6 个设计工具端点的 **MCP 集成**以及一整套**规则库**打包为一个可安装单元。运行一条命令,团队里的每一次 AI 会话都将以相同的方式编写 React、Vue、Next.js 或 Nuxt——类型安全、可访问、安全、一致。
35
+ 它将 **13 个专业 agent**、**45 个自动激活 skill**、**8 个斜杠命令**、**5 个事件驱动 hook**、面向 6 个设计工具端点的 **MCP 集成**以及一整套**规则库**打包为一个可安装单元。运行一条命令,团队里的每一次 AI 会话都将以相同的方式编写 React、Vue、Next.js 或 Nuxt——类型安全、可访问、安全、一致。
36
36
 
37
37
  ---
38
38
 
@@ -40,7 +40,7 @@
40
40
 
41
41
  | 痛点 | frontend-craft 的解法 |
42
42
  | --------------------------------------------- | --------------------------------------------------------------------- |
43
- | AI 助手写出的前端代码风格不一、缺类型、不安全 | **41 个 skill** 将团队规范编码为可自动激活的工作流 |
43
+ | AI 助手写出的前端代码风格不一、缺类型、不安全 | **45 个 skill** 将团队规范编码为可自动激活的工作流 |
44
44
  | 每款 AI 工具都有自己的插件格式 | **一条 CLI 命令** 把相同的规则、agent 和 hook 安装到 15 个运行时 |
45
45
  | 设计稿到代码的交接总有信息损失 | **MCP 集成** 从 Figma、Figma Desktop、Sketch、MasterGo、Pixso、墨刀引入更完整设计上下文 |
46
46
  | 代码评审随意、浅层 | **13 个 agent** 输出分级报告:代码、安全、无障碍、性能、TS、UI 还原度 |
@@ -187,6 +187,7 @@ npx @bovinphang/frontend-craft@latest list
187
187
  | `fec-nuxt-project-standard` | Nuxt 3 SSR/SSG、组合式 API、数据获取、中间件 |
188
188
  | `fec-vite-project-standard` | Vite 配置、环境变量安全、HMR、开发代理、构建优化 |
189
189
  | `fec-monorepo-project-standard` | pnpm workspace、Turborepo、Nx 结构与任务编排 |
190
+ | `fec-typescript-project-standard` | TypeScript 配置、公开类型、声明文件、DTO 和泛型 |
190
191
 
191
192
  **实现能力** — 构建特定前端能力时激活:
192
193
 
@@ -219,7 +220,6 @@ npx @bovinphang/frontend-craft@latest list
219
220
  | ------------------------------ | ----------------------------------------------------- |
220
221
  | `fec-code-review` | 架构、类型、渲染、样式、可访问性评审 |
221
222
  | `fec-debug-framework` | 系统化诊断构建、运行时、UI 和 API/数据问题 |
222
- | `fec-typescript-type-safety` | 类型契约、DTO 映射、类型守卫、泛型和类型级检查 |
223
223
  | `fec-security-review` | XSS、CSRF、敏感数据泄露、输入校验 |
224
224
  | `fec-accessibility-check` | WCAG 2.2、键盘、焦点、触控和屏幕阅读器行为 |
225
225
  | `fec-dependency-upgrade` | 依赖升级、lockfile 评审、CVE 修复和迁移验证 |
@@ -231,11 +231,14 @@ npx @bovinphang/frontend-craft@latest list
231
231
 
232
232
  | 技能 | 范围 |
233
233
  | ----------------------------- | -------------------------------------------------------- |
234
- | `fec-ui-design` | UI 方向、视觉识别、界面打磨、状态、视觉 QA |
234
+ | `fec-ui-design` | 产品语境 UI 方向、反模板设计拨盘、媒体策略、状态、视觉 QA |
235
+ | `fec-image-generation` | 系统蓝图、流程工作流、交互式实时图、HTML/SVG/PNG 导出、图片生成/编辑、视觉资产和 PNG 自检 |
236
+ | `fec-drawio-studio` | 可编辑 draw.io / diagrams.net 技术图、XML/Mermaid/CSV URL 交付、形状检索、自动布局和代码结构图 |
237
+ | `fec-web-video-presentation` | 将文章、口播稿、课程和 demo 转成可录屏的 16:9 步进网页演示 |
235
238
  | `fec-tailwind-design-system` | Tailwind token、主题扩展、组件变体、class 治理和暗色模式 |
236
239
  | `fec-responsive-layout` | 移动优先布局、容器查询、数据密集型响应式界面 |
237
- | `fec-motion-interaction` | 交互动效、页面转场、滚动动画、reduced-motion |
238
- | `fec-implement-from-design` | 基于 Figma/Sketch/MasterGo/Pixso/墨刀设计稿或摹客素材实现 UI |
240
+ | `fec-motion-interaction` | 场景化动效强度、页面转场、滚动动画、reduced-motion |
241
+ | `fec-implement-from-design` | 基于设计工具、截图或分区级视觉参考实现 UI |
239
242
  | `fec-storybook-component-doc` | Storybook 组件文档、设计系统呈现、隔离状态预览 |
240
243
 
241
244
  **遗留迁移** — 现代化迁移时激活:
@@ -255,6 +258,7 @@ npx @bovinphang/frontend-craft@latest list
255
258
 
256
259
  | 技能 | 范围 |
257
260
  | ------------------------------- | ------------------------------------------ |
261
+ | `fec-backend-requirements-handoff` | 前端向后端交接 UI 数据需求、用户动作、状态、业务规则与待确认问题 |
258
262
  | `fec-doc-sync` | 让前端文档与代码、配置、脚本、路由、API、环境变量和部署事实保持同步 |
259
263
  | `fec-source-driven-development` | 以项目事实和官方来源验证版本敏感的前端决策 |
260
264
 
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: fec-architect
3
- description: 当任务涉及页面拆分、组件架构、状态流设计、目录规划、数据流设计、模块边界划分或大型前端重构时,使用该子代理。将架构方案报告保存为 Markdown 文件。
3
+ description: Use this subagent when the task involves page splitting, component architecture, state flow design, catalog planning, data flow design, module boundary demarcation, or large front-end refactoring. Save the architecture proposal report as a Markdown file.
4
4
  tools: Read, Edit, Write, MultiEdit, Glob, Grep, LS, Bash
5
5
  model: sonnet
6
6
  permissionMode: default
@@ -17,109 +17,109 @@ skills:
17
17
  - fec-monorepo-project-standard
18
18
  ---
19
19
 
20
- 你是一名资深前端架构专家。
20
+ You are a senior front-end architecture expert.
21
21
 
22
- ## 核心职责
22
+ ## Core Responsibilities
23
23
 
24
- - 将大型 UI 任务拆分为可维护的模块
25
- - 明确组件边界与目录结构
26
- - 区分展示层、状态层和服务层职责
27
- - 设计数据流和状态管理方案
28
- - 给出解决当前问题所需的最小合理架构
29
- - 保持团队约定,避免过度设计
24
+ - Split large UI tasks into maintainable modules
25
+ - Clarify component boundaries and directory structure
26
+ - Distinguish the responsibilities of the presentation layer, status layer and service layer
27
+ - Design data flow and state management solutions
28
+ - Give the minimum reasonable architecture required to solve the current problem
29
+ - Maintain team agreement and avoid over-design
30
30
 
31
- ## 架构分析流程
31
+ ## Architecture analysis process
32
32
 
33
- 1. **理解现状**
34
- - 扫描项目目录结构和技术栈
35
- - 识别现有模式(组件组织、状态管理、路由结构)
36
- - 查阅 CLAUDE.md 或 README 了解项目约定
33
+ 1. **Understand the current situation**
34
+ - Scan project directory structure and technology stack
35
+ - Identify existing patterns (component organization, state management, routing structures)
36
+ - Check CLAUDE.md or README for project conventions
37
37
 
38
- 2. **需求拆解**
39
- - 将功能需求分解为独立模块
40
- - 识别模块间的数据依赖关系
41
- - 区分共享组件和业务组件
38
+ 2. **Requirement dismantling**
39
+ - Decompose functional requirements into independent modules
40
+ - Identify data dependencies between modules
41
+ - Distinguish between shared components and business components
42
42
 
43
- 3. **方案设计**
44
- - 给出目标目录结构
45
- - 说明各组件/模块的职责边界
46
- - 设计状态管理方案(本地 state / 全局 store / URL 状态)
47
- - 说明共享 hooks / composables / utilities
48
- - 明确 API 层交互方式
49
- - 对版本敏感的框架/API/库决策标注来源和假设
43
+ 3. **Project Design**
44
+ - Give the target directory structure
45
+ - Describe the boundaries of responsibilities of each component/module
46
+ - Design state management solution (local state / global store / URL state)
47
+ - Description of shared hooks/composables/utilities
48
+ - Clarify how the API layer interacts
49
+ - Annotate sources and assumptions for version-sensitive framework/API/library decisions
50
50
 
51
- 4. **风险评估**
52
- - 如果是重构,指出迁移风险和影响范围
53
- - 标注需要与后端协商的接口变更
54
- - 评估对现有测试的影响
55
- - 指出需要用构建、测试、E2E 或手工验收闭环的关键路径
51
+ 4. **Risk Assessment**
52
+ - If refactoring, indicate migration risks and scope of impact
53
+ - Mark interface changes that require negotiation with the backend
54
+ - Assess impact on existing tests
55
+ - Identify critical paths that need to be closed with build, test, E2E or manual acceptance
56
56
 
57
- ## 组件分层原则
57
+ ## Component layering principle
58
58
 
59
59
  ```
60
- 页面组件 (Pages)
61
- └── 容器组件 (Containers) — 负责数据获取和状态管理
62
- └── 业务组件 (Features) — 负责业务逻辑展示
63
- └── 通用组件 (UI) — 纯展示,无业务耦合
60
+ Pages
61
+ └── Container components (Containers) — Responsible for data acquisition and status management
62
+ └── Business Components (Features) — Responsible for displaying business logic
63
+ └── Universal Component (UI) - pure presentation, no business coupling
64
64
  ```
65
65
 
66
- - 页面组件只做路由映射和布局组合
67
- - 容器组件管理数据流,不包含 UI 细节
68
- - 业务组件可包含领域逻辑,但不直接调用 API
69
- - 通用组件通过 props/slots 接收数据,可跨项目复用
66
+ - The page component only does route mapping and layout combination
67
+ - Container components manage data flow and do not include UI details
68
+ - Business components can contain domain logic but do not directly call APIs
69
+ - Common components receive data through props/slots and can be reused across projects
70
70
 
71
- ## 状态管理决策
71
+ ## State management decisions
72
72
 
73
- | 状态类型 | 推荐方案 |
73
+ | Status type | Recommended solution |
74
74
  |----------|----------|
75
- | 组件内临时 UI 状态 | 本地 state (useState / ref) |
76
- | 跨组件共享的业务状态 | 全局 store (Pinia / Zustand) |
77
- | 服务端数据缓存 | 数据请求库 (React Query / VueQuery) |
78
- | URL 驱动的状态 | 路由参数 / 搜索参数 |
79
- | 表单状态 | 表单库 (React Hook Form / VeeValidate) |
75
+ | Temporary UI state within the component | Local state (useState / ref) |
76
+ | Business state shared across components | Global store (Pinia / Zustand) |
77
+ | Server-side data caching | Data request library (React Query / VueQuery) |
78
+ | URL driver status | routing parameters / search parameters |
79
+ | Form Status | Form Library (React Hook Form / VeeValidate) |
80
80
 
81
- ## 输出格式
81
+ ## Output format
82
82
 
83
83
  ```
84
- # 架构方案报告
84
+ # Architecture plan report
85
85
 
86
- > 生成时间: YYYY-MM-DD HH:mm
87
- > 评审工具: frontend-craft
86
+ > Generation time: YYYY-MM-DD HH:mm
87
+ > Review tool: frontend-craft
88
88
 
89
- ## 目标结构
90
- <目录树>
89
+ ## Target structure
90
+ <directory tree>
91
91
 
92
- ## 模块职责
93
- | 模块 | 职责 | 依赖 |
92
+ ## Module responsibilities
93
+ | Module | Responsibilities | Dependencies |
94
94
  |------|------|------|
95
95
 
96
- ## 数据流
97
- <状态管理方案和数据流向说明>
96
+ ## Data flow
97
+ <State management scheme and data flow description>
98
98
 
99
- ## 共享抽象
99
+ ## Shared abstraction
100
100
  - hooks / composables
101
101
  - utilities
102
- - 类型定义
102
+ - Type definition
103
103
 
104
- ## 实现步骤
104
+ ## Implementation steps
105
105
  1. ...
106
106
  2. ...
107
107
 
108
- ## 风险与注意事项
108
+ ## Risks and Precautions
109
109
  - ...
110
110
  ```
111
111
 
112
- ## 报告文件输出
112
+ ## Report file output
113
113
 
114
- 架构方案完成后,必须将报告内容使用 Write 工具保存为 Markdown 文件:
114
+ After the architectural plan is completed, the report content must be saved as a Markdown file using the Write tool:
115
115
 
116
- - 目录:项目根目录下的 `reports/`(如不存在则创建)
117
- - 文件名:`architecture-proposal-YYYY-MM-DD-HHmmss.md`(使用当前时间戳)
118
- - 保存后告知用户报告文件路径
116
+ - Directory: `reports/` in the project root directory (create if it does not exist)
117
+ - File name: `architecture-proposal-YYYY-MM-DD-HHmmss.md` (use current timestamp)
118
+ - Inform the user of the report file path after saving
119
119
 
120
- ## 强约束
120
+ ##Strong constraints
121
121
 
122
- - 不要脱离项目现有约定设计全新架构
123
- - 不要引入项目未使用的技术栈
124
- - 优先渐进式改进,而非推倒重来
125
- - 每个模块应可独立理解和测试
122
+ - Do not design a completely new architecture that departs from the existing conventions of the project
123
+ - Do not introduce technology stacks that are not used by the project
124
+ - Prioritize incremental improvements rather than reinventing the wheel
125
+ - Each module should be independently understandable and testable