@bovinphang/frontend-craft 2.7.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 (380) hide show
  1. package/.claude-plugin/marketplace.json +2 -2
  2. package/.claude-plugin/plugin.json +1 -1
  3. package/CHANGELOG.md +34 -0
  4. package/CHANGELOG.zh-CN.md +34 -0
  5. package/README.md +1 -1
  6. package/README.openclaw.md +99 -43
  7. package/README.openclaw.zh-CN.md +99 -43
  8. package/README.zh-CN.md +1 -1
  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 +87 -87
  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 +3 -0
  32. package/docs/ja-JP/README.md +1 -1
  33. package/docs/ko-KR/README.md +1 -1
  34. package/docs/project-structure.md +13 -5
  35. package/docs/zh-CN/example-prompts.md +3 -0
  36. package/docs/zh-CN/project-structure.md +6 -1
  37. package/docs/zh-TW/README.md +1 -1
  38. package/localized/zh-CN/agents/fec-architect.md +125 -0
  39. package/localized/zh-CN/agents/fec-code-reviewer.md +152 -0
  40. package/localized/zh-CN/agents/fec-debugger.md +44 -0
  41. package/localized/zh-CN/agents/fec-design-token-mapper.md +75 -0
  42. package/localized/zh-CN/agents/fec-doc-updater.md +30 -0
  43. package/localized/zh-CN/agents/fec-e2e-runner.md +107 -0
  44. package/localized/zh-CN/agents/fec-figma-implementer.md +104 -0
  45. package/localized/zh-CN/agents/fec-performance-optimizer.md +293 -0
  46. package/localized/zh-CN/agents/fec-refactor-cleaner.md +32 -0
  47. package/localized/zh-CN/agents/fec-security-reviewer.md +116 -0
  48. package/localized/zh-CN/agents/fec-test-planner.md +50 -0
  49. package/localized/zh-CN/agents/fec-typescript-reviewer.md +142 -0
  50. package/localized/zh-CN/agents/fec-ui-checker.md +120 -0
  51. package/localized/zh-CN/commands/fec-debug.md +30 -0
  52. package/localized/zh-CN/commands/fec-doc-sync.md +19 -0
  53. package/localized/zh-CN/commands/fec-init.md +70 -0
  54. package/localized/zh-CN/commands/fec-plan.md +94 -0
  55. package/localized/zh-CN/commands/fec-refactor-clean.md +19 -0
  56. package/localized/zh-CN/commands/fec-review.md +66 -0
  57. package/localized/zh-CN/commands/fec-scaffold.md +205 -0
  58. package/localized/zh-CN/commands/fec-tdd.md +21 -0
  59. package/localized/zh-CN/skills/TEMPLATE.md +155 -0
  60. package/localized/zh-CN/skills/eval_queries.json +1013 -0
  61. package/localized/zh-CN/skills/fec-accessibility-check/SKILL.md +39 -0
  62. package/localized/zh-CN/skills/fec-accessibility-check/references/report-template.md +23 -0
  63. package/localized/zh-CN/skills/fec-accessibility-check/references/screen-reader-testing.md +33 -0
  64. package/localized/zh-CN/skills/fec-alchemy/SKILL.md +74 -0
  65. package/localized/zh-CN/skills/fec-alchemy/assets/absorption-plan-template.md +47 -0
  66. package/localized/zh-CN/skills/fec-alchemy/assets/intake-template.md +55 -0
  67. package/localized/zh-CN/skills/fec-alchemy/assets/review-checklist.md +31 -0
  68. package/localized/zh-CN/skills/fec-alchemy/references/methodology.md +94 -0
  69. package/localized/zh-CN/skills/fec-alchemy/references/originality-and-licensing.md +57 -0
  70. package/localized/zh-CN/skills/fec-api-integration/SKILL.md +78 -0
  71. package/localized/zh-CN/skills/fec-api-integration/references/integration-patterns.md +80 -0
  72. package/localized/zh-CN/skills/fec-backend-requirements-handoff/SKILL.md +45 -0
  73. package/localized/zh-CN/skills/fec-browser-storage/SKILL.md +34 -0
  74. package/localized/zh-CN/skills/fec-browser-storage/references/storage-patterns.md +65 -0
  75. package/localized/zh-CN/skills/fec-canvas-threejs/SKILL.md +66 -0
  76. package/localized/zh-CN/skills/fec-canvas-threejs/references/rendering-patterns.md +67 -0
  77. package/localized/zh-CN/skills/fec-canvas-threejs/references/shader-webgl-patterns.md +67 -0
  78. package/localized/zh-CN/skills/fec-code-review/SKILL.md +143 -0
  79. package/localized/zh-CN/skills/fec-code-review/references/report-template.md +29 -0
  80. package/localized/zh-CN/skills/fec-component-testing/SKILL.md +119 -0
  81. package/localized/zh-CN/skills/fec-data-fetching/SKILL.md +62 -0
  82. package/localized/zh-CN/skills/fec-data-fetching/references/query-patterns.md +103 -0
  83. package/localized/zh-CN/skills/fec-debug-framework/SKILL.md +157 -0
  84. package/localized/zh-CN/skills/fec-debug-framework/references/report-template.md +58 -0
  85. package/localized/zh-CN/skills/fec-dependency-upgrade/SKILL.md +34 -0
  86. package/localized/zh-CN/skills/fec-dependency-upgrade/references/dependency-upgrade-workflow.md +56 -0
  87. package/localized/zh-CN/skills/fec-doc-sync/SKILL.md +39 -0
  88. package/localized/zh-CN/skills/fec-drawio-studio/SKILL.md +73 -0
  89. package/localized/zh-CN/skills/fec-drawio-studio/data/THIRD_PARTY_NOTICES.md +10 -0
  90. package/localized/zh-CN/skills/fec-drawio-studio/data/brand-icons.json +878 -0
  91. package/localized/zh-CN/skills/fec-drawio-studio/data/shape-index.json +83570 -0
  92. package/localized/zh-CN/skills/fec-drawio-studio/references/data-residency.md +27 -0
  93. package/localized/zh-CN/skills/fec-drawio-studio/references/diagram-patterns.md +60 -0
  94. package/localized/zh-CN/skills/fec-drawio-studio/references/flowchart-quality.md +49 -0
  95. package/localized/zh-CN/skills/fec-drawio-studio/references/layout-and-export.md +72 -0
  96. package/localized/zh-CN/skills/fec-drawio-studio/references/troubleshooting.md +29 -0
  97. package/localized/zh-CN/skills/fec-drawio-studio/references/xml-and-mermaid.md +58 -0
  98. package/localized/zh-CN/skills/fec-drawio-studio/scripts/brand-symbols.mjs +99 -0
  99. package/localized/zh-CN/skills/fec-drawio-studio/scripts/diagram-lint.mjs +205 -0
  100. package/localized/zh-CN/skills/fec-drawio-studio/scripts/diagram-url.mjs +102 -0
  101. package/localized/zh-CN/skills/fec-drawio-studio/scripts/drawio-export.mjs +134 -0
  102. package/localized/zh-CN/skills/fec-drawio-studio/scripts/layout-graph.mjs +107 -0
  103. package/localized/zh-CN/skills/fec-drawio-studio/scripts/png-embed-fix.mjs +26 -0
  104. package/localized/zh-CN/skills/fec-drawio-studio/scripts/scan-go-packages.mjs +36 -0
  105. package/localized/zh-CN/skills/fec-drawio-studio/scripts/scan-js-modules.mjs +52 -0
  106. package/localized/zh-CN/skills/fec-drawio-studio/scripts/scan-python-classes.mjs +30 -0
  107. package/localized/zh-CN/skills/fec-drawio-studio/scripts/scan-python-modules.mjs +55 -0
  108. package/localized/zh-CN/skills/fec-drawio-studio/scripts/scan-rust-modules.mjs +35 -0
  109. package/localized/zh-CN/skills/fec-drawio-studio/scripts/scan-ts-modules.mjs +7 -0
  110. package/localized/zh-CN/skills/fec-drawio-studio/scripts/shape-query.mjs +121 -0
  111. package/localized/zh-CN/skills/fec-drawio-studio/scripts/studio-core.mjs +139 -0
  112. package/localized/zh-CN/skills/fec-drawio-studio/styles/built-in/corporate.json +49 -0
  113. package/localized/zh-CN/skills/fec-drawio-studio/styles/built-in/default.json +49 -0
  114. package/localized/zh-CN/skills/fec-drawio-studio/styles/built-in/handdrawn.json +49 -0
  115. package/localized/zh-CN/skills/fec-drawio-studio/styles/schema.json +112 -0
  116. package/localized/zh-CN/skills/fec-e2e-testing/SKILL.md +42 -0
  117. package/localized/zh-CN/skills/fec-e2e-testing/references/e2e-ci-reporting.md +62 -0
  118. package/localized/zh-CN/skills/fec-e2e-testing/references/e2e-special-scenarios.md +52 -0
  119. package/localized/zh-CN/skills/fec-e2e-testing/references/e2e-visual-regression.md +60 -0
  120. package/localized/zh-CN/skills/fec-e2e-testing/references/playwright-patterns.md +95 -0
  121. package/localized/zh-CN/skills/fec-form-handling/SKILL.md +76 -0
  122. package/localized/zh-CN/skills/fec-form-handling/references/advanced-form-patterns.md +101 -0
  123. package/localized/zh-CN/skills/fec-image-generation/SKILL.md +80 -0
  124. package/localized/zh-CN/skills/fec-image-generation/assets/interactive-diagram.html +371 -0
  125. package/localized/zh-CN/skills/fec-image-generation/references/artifact-routing.md +80 -0
  126. package/localized/zh-CN/skills/fec-image-generation/references/diagram-workflows.md +74 -0
  127. package/localized/zh-CN/skills/fec-image-generation/references/html-technical-diagrams.md +236 -0
  128. package/localized/zh-CN/skills/fec-image-generation/references/png-qa-autofix.md +30 -0
  129. package/localized/zh-CN/skills/fec-image-generation/scripts/export-diagram.mjs +364 -0
  130. package/localized/zh-CN/skills/fec-image-generation/scripts/interactive-diagram-server.mjs +654 -0
  131. package/localized/zh-CN/skills/fec-image-generation/scripts/png-qa.mjs +431 -0
  132. package/localized/zh-CN/skills/fec-image-generation/scripts/tech-diagram-render.mjs +1397 -0
  133. package/localized/zh-CN/skills/fec-implement-from-design/SKILL.md +129 -0
  134. package/localized/zh-CN/skills/fec-implement-from-design/references/design-plan-template.md +36 -0
  135. package/localized/zh-CN/skills/fec-legacy-to-modern-migration/SKILL.md +46 -0
  136. package/localized/zh-CN/skills/fec-legacy-to-modern-migration/references/migration-execution-checklist.md +110 -0
  137. package/localized/zh-CN/skills/fec-legacy-to-modern-migration/references/migration-report-template.md +41 -0
  138. package/localized/zh-CN/skills/fec-legacy-to-modern-migration/references/migration-strategy-and-mapping.md +48 -0
  139. package/localized/zh-CN/skills/fec-legacy-web-standard/SKILL.md +35 -0
  140. package/localized/zh-CN/skills/fec-legacy-web-standard/references/legacy-patterns.md +85 -0
  141. package/localized/zh-CN/skills/fec-list-virtualization/SKILL.md +34 -0
  142. package/localized/zh-CN/skills/fec-list-virtualization/references/virtualization-patterns.md +80 -0
  143. package/localized/zh-CN/skills/fec-monorepo-project-standard/SKILL.md +142 -0
  144. package/localized/zh-CN/skills/fec-motion-interaction/SKILL.md +73 -0
  145. package/localized/zh-CN/skills/fec-motion-interaction/references/motion-patterns.md +112 -0
  146. package/localized/zh-CN/skills/fec-nextjs-project-standard/SKILL.md +123 -0
  147. package/localized/zh-CN/skills/fec-nuxt-project-standard/SKILL.md +122 -0
  148. package/localized/zh-CN/skills/fec-performance-optimization/SKILL.md +80 -0
  149. package/localized/zh-CN/skills/fec-performance-optimization/references/framework-performance-patterns.md +38 -0
  150. package/localized/zh-CN/skills/fec-performance-optimization/references/report-template.md +59 -0
  151. package/localized/zh-CN/skills/fec-pwa-implementation/SKILL.md +35 -0
  152. package/localized/zh-CN/skills/fec-pwa-implementation/references/manifest-and-icons.md +53 -0
  153. package/localized/zh-CN/skills/fec-pwa-implementation/references/service-worker-workbox.md +68 -0
  154. package/localized/zh-CN/skills/fec-react-project-standard/SKILL.md +91 -0
  155. package/localized/zh-CN/skills/fec-react-project-standard/references/react-performance-patterns.md +35 -0
  156. package/localized/zh-CN/skills/fec-react-project-standard/references/react-project-structure.md +197 -0
  157. package/localized/zh-CN/skills/fec-react-project-standard/references/react-quality-patterns.md +131 -0
  158. package/localized/zh-CN/skills/fec-react-project-standard/references/react-runtime-patterns.md +293 -0
  159. package/localized/zh-CN/skills/fec-refactor-clean/SKILL.md +51 -0
  160. package/localized/zh-CN/skills/fec-refactor-clean/references/report-template.md +42 -0
  161. package/localized/zh-CN/skills/fec-responsive-layout/SKILL.md +34 -0
  162. package/localized/zh-CN/skills/fec-responsive-layout/references/responsive-layout-patterns.md +70 -0
  163. package/localized/zh-CN/skills/fec-route-protection/SKILL.md +135 -0
  164. package/localized/zh-CN/skills/fec-security-review/SKILL.md +38 -0
  165. package/localized/zh-CN/skills/fec-security-review/references/report-template.md +27 -0
  166. package/localized/zh-CN/skills/fec-security-review/references/security-checklist.md +64 -0
  167. package/localized/zh-CN/skills/fec-source-driven-development/SKILL.md +87 -0
  168. package/localized/zh-CN/skills/fec-state-management/SKILL.md +140 -0
  169. package/localized/zh-CN/skills/fec-state-management/references/state-patterns.md +109 -0
  170. package/localized/zh-CN/skills/fec-storybook-component-doc/SKILL.md +37 -0
  171. package/localized/zh-CN/skills/fec-storybook-component-doc/references/story-patterns.md +118 -0
  172. package/localized/zh-CN/skills/fec-svg-animation/SKILL.md +148 -0
  173. package/localized/zh-CN/skills/fec-tailwind-design-system/SKILL.md +34 -0
  174. package/localized/zh-CN/skills/fec-tailwind-design-system/references/tailwind-system-patterns.md +59 -0
  175. package/localized/zh-CN/skills/fec-tdd-workflow/SKILL.md +52 -0
  176. package/localized/zh-CN/skills/fec-testing-strategy/SKILL.md +45 -0
  177. package/localized/zh-CN/skills/fec-typescript-project-standard/SKILL.md +54 -0
  178. package/localized/zh-CN/skills/fec-typescript-project-standard/references/type-safety-patterns.md +102 -0
  179. package/localized/zh-CN/skills/fec-typescript-project-standard/references/type-safety.md +148 -0
  180. package/localized/zh-CN/skills/fec-ui-design/SKILL.md +108 -0
  181. package/localized/zh-CN/skills/fec-ui-design/data/product-rules.json +231 -0
  182. package/localized/zh-CN/skills/fec-ui-design/data/stack-ui-rules.json +146 -0
  183. package/localized/zh-CN/skills/fec-ui-design/data/style-archetypes.json +373 -0
  184. package/localized/zh-CN/skills/fec-ui-design/data/ux-quality-rules.json +203 -0
  185. package/localized/zh-CN/skills/fec-ui-design/references/design-intelligence.md +97 -0
  186. package/localized/zh-CN/skills/fec-ui-design/references/master-page-overrides.md +30 -0
  187. package/localized/zh-CN/skills/fec-ui-design/references/pre-delivery-checklist.md +39 -0
  188. package/localized/zh-CN/skills/fec-ui-design/scripts/design-system.mjs +648 -0
  189. package/localized/zh-CN/skills/fec-validation-fix/SKILL.md +51 -0
  190. package/localized/zh-CN/skills/fec-validation-fix/references/report-template.md +43 -0
  191. package/localized/zh-CN/skills/fec-vite-project-standard/SKILL.md +83 -0
  192. package/localized/zh-CN/skills/fec-vue3-project-standard/SKILL.md +58 -0
  193. package/localized/zh-CN/skills/fec-vue3-project-standard/references/vue3-composables-routing.md +162 -0
  194. package/localized/zh-CN/skills/fec-vue3-project-standard/references/vue3-performance-patterns.md +13 -0
  195. package/localized/zh-CN/skills/fec-vue3-project-standard/references/vue3-project-structure.md +176 -0
  196. package/localized/zh-CN/skills/fec-vue3-project-standard/references/vue3-state-api-quality.md +216 -0
  197. package/localized/zh-CN/skills/fec-web-video-presentation/SKILL.md +61 -0
  198. package/localized/zh-CN/skills/fec-web-video-presentation/data/starter-themes.json +59 -0
  199. package/localized/zh-CN/skills/fec-web-video-presentation/references/chapter-craft.md +37 -0
  200. package/localized/zh-CN/skills/fec-web-video-presentation/references/content-plan.md +38 -0
  201. package/localized/zh-CN/skills/fec-web-video-presentation/references/recording-and-audio.md +33 -0
  202. package/localized/zh-CN/skills/fec-web-video-presentation/references/theme-system.md +36 -0
  203. package/localized/zh-CN/skills/fec-web-video-presentation/scripts/create-video-presentation.mjs +430 -0
  204. package/localized/zh-CN/skills/fec-web-workers/SKILL.md +35 -0
  205. package/localized/zh-CN/skills/fec-web-workers/references/advanced-workers.md +54 -0
  206. package/localized/zh-CN/skills/fec-web-workers/references/basic-worker.md +67 -0
  207. package/localized/zh-CN/skills/metadata.json +1646 -0
  208. package/localized/zh-CN/skills/relations.json +755 -0
  209. package/localized/zh-CN/templates/claude/CLAUDE.md +106 -0
  210. package/localized/zh-CN/templates/claude/settings.json +62 -0
  211. package/localized/zh-CN/templates/codex/AGENTS.md +105 -0
  212. package/localized/zh-CN/templates/codex/config.toml +32 -0
  213. package/localized/zh-CN/templates/openclaw/AGENTS.md +101 -0
  214. package/localized/zh-CN/templates/openclaw/OPENCLAW-CONFIG.md +12 -0
  215. package/localized/zh-CN/templates/shared/rules/fec-agent-workflow.md +54 -0
  216. package/localized/zh-CN/templates/shared/rules/fec-api-layer.md +99 -0
  217. package/localized/zh-CN/templates/shared/rules/fec-ci-cd.md +40 -0
  218. package/localized/zh-CN/templates/shared/rules/fec-code-comments.md +33 -0
  219. package/localized/zh-CN/templates/shared/rules/fec-design-system.md +72 -0
  220. package/localized/zh-CN/templates/shared/rules/fec-error-handling.md +56 -0
  221. package/localized/zh-CN/templates/shared/rules/fec-git-conventions.md +73 -0
  222. package/localized/zh-CN/templates/shared/rules/fec-i18n.md +64 -0
  223. package/localized/zh-CN/templates/shared/rules/fec-naming-conventions.md +120 -0
  224. package/localized/zh-CN/templates/shared/rules/fec-performance.md +101 -0
  225. package/localized/zh-CN/templates/shared/rules/fec-react.md +82 -0
  226. package/localized/zh-CN/templates/shared/rules/fec-refactoring.md +47 -0
  227. package/localized/zh-CN/templates/shared/rules/fec-rendering-patterns.md +40 -0
  228. package/localized/zh-CN/templates/shared/rules/fec-responsive-design.md +50 -0
  229. package/localized/zh-CN/templates/shared/rules/fec-source-driven-development.md +31 -0
  230. package/localized/zh-CN/templates/shared/rules/fec-state-management.md +60 -0
  231. package/localized/zh-CN/templates/shared/rules/fec-testing.md +98 -0
  232. package/localized/zh-CN/templates/shared/rules/fec-typescript.md +112 -0
  233. package/localized/zh-CN/templates/shared/rules/fec-vue.md +64 -0
  234. package/localized/zh-CN/templates/shared/rules/fec-working-modes.md +50 -0
  235. package/openclaw.plugin.json +1 -1
  236. package/package.json +3 -2
  237. package/skills/TEMPLATE.md +74 -74
  238. package/skills/eval_queries.json +678 -678
  239. package/skills/fec-accessibility-check/SKILL.md +21 -21
  240. package/skills/fec-accessibility-check/references/report-template.md +12 -12
  241. package/skills/fec-accessibility-check/references/screen-reader-testing.md +24 -24
  242. package/skills/fec-alchemy/SKILL.md +50 -50
  243. package/skills/fec-alchemy/assets/absorption-plan-template.md +32 -32
  244. package/skills/fec-alchemy/assets/intake-template.md +55 -55
  245. package/skills/fec-alchemy/assets/review-checklist.md +23 -23
  246. package/skills/fec-alchemy/references/methodology.md +66 -66
  247. package/skills/fec-alchemy/references/originality-and-licensing.md +42 -42
  248. package/skills/fec-api-integration/SKILL.md +61 -61
  249. package/skills/fec-api-integration/references/integration-patterns.md +30 -30
  250. package/skills/fec-backend-requirements-handoff/SKILL.md +25 -25
  251. package/skills/fec-browser-storage/SKILL.md +16 -16
  252. package/skills/fec-browser-storage/references/storage-patterns.md +16 -16
  253. package/skills/fec-canvas-threejs/SKILL.md +21 -21
  254. package/skills/fec-canvas-threejs/references/rendering-patterns.md +10 -10
  255. package/skills/fec-canvas-threejs/references/shader-webgl-patterns.md +37 -37
  256. package/skills/fec-code-review/SKILL.md +94 -94
  257. package/skills/fec-code-review/references/report-template.md +13 -13
  258. package/skills/fec-component-testing/SKILL.md +39 -39
  259. package/skills/fec-data-fetching/SKILL.md +16 -16
  260. package/skills/fec-data-fetching/references/query-patterns.md +27 -27
  261. package/skills/fec-debug-framework/SKILL.md +95 -95
  262. package/skills/fec-debug-framework/references/report-template.md +34 -34
  263. package/skills/fec-dependency-upgrade/SKILL.md +17 -17
  264. package/skills/fec-dependency-upgrade/references/dependency-upgrade-workflow.md +31 -31
  265. package/skills/fec-doc-sync/SKILL.md +23 -23
  266. package/skills/fec-drawio-studio/SKILL.md +42 -38
  267. package/skills/fec-drawio-studio/data/THIRD_PARTY_NOTICES.md +1 -1
  268. package/skills/fec-drawio-studio/data/shape-index.json +83570 -0
  269. package/skills/fec-drawio-studio/references/diagram-patterns.md +19 -0
  270. package/skills/fec-drawio-studio/references/flowchart-quality.md +49 -0
  271. package/skills/fec-drawio-studio/references/layout-and-export.md +18 -3
  272. package/skills/fec-drawio-studio/references/xml-and-mermaid.md +5 -1
  273. package/skills/fec-drawio-studio/scripts/diagram-lint.mjs +62 -0
  274. package/skills/fec-drawio-studio/scripts/drawio-export.mjs +134 -0
  275. package/skills/fec-drawio-studio/scripts/shape-query.mjs +55 -15
  276. package/skills/fec-e2e-testing/SKILL.md +24 -24
  277. package/skills/fec-e2e-testing/references/e2e-ci-reporting.md +20 -20
  278. package/skills/fec-e2e-testing/references/e2e-special-scenarios.md +10 -10
  279. package/skills/fec-e2e-testing/references/e2e-visual-regression.md +17 -17
  280. package/skills/fec-e2e-testing/references/playwright-patterns.md +6 -6
  281. package/skills/fec-form-handling/SKILL.md +21 -21
  282. package/skills/fec-form-handling/references/advanced-form-patterns.md +41 -41
  283. package/skills/fec-image-generation/SKILL.md +54 -29
  284. package/skills/fec-image-generation/assets/interactive-diagram.html +371 -0
  285. package/skills/fec-image-generation/references/diagram-workflows.md +33 -2
  286. package/skills/fec-image-generation/references/html-technical-diagrams.md +236 -0
  287. package/skills/fec-image-generation/scripts/export-diagram.mjs +364 -0
  288. package/skills/fec-image-generation/scripts/interactive-diagram-server.mjs +654 -0
  289. package/skills/fec-image-generation/scripts/tech-diagram-render.mjs +1397 -0
  290. package/skills/fec-implement-from-design/SKILL.md +81 -81
  291. package/skills/fec-implement-from-design/references/design-plan-template.md +16 -16
  292. package/skills/fec-legacy-to-modern-migration/SKILL.md +29 -29
  293. package/skills/fec-legacy-to-modern-migration/references/migration-execution-checklist.md +81 -81
  294. package/skills/fec-legacy-to-modern-migration/references/migration-report-template.md +37 -37
  295. package/skills/fec-legacy-to-modern-migration/references/migration-strategy-and-mapping.md +31 -31
  296. package/skills/fec-legacy-web-standard/SKILL.md +17 -17
  297. package/skills/fec-legacy-web-standard/references/legacy-patterns.md +16 -16
  298. package/skills/fec-list-virtualization/SKILL.md +16 -16
  299. package/skills/fec-list-virtualization/references/virtualization-patterns.md +31 -31
  300. package/skills/fec-monorepo-project-standard/SKILL.md +52 -52
  301. package/skills/fec-motion-interaction/SKILL.md +51 -51
  302. package/skills/fec-motion-interaction/references/motion-patterns.md +11 -11
  303. package/skills/fec-nextjs-project-standard/SKILL.md +64 -64
  304. package/skills/fec-nuxt-project-standard/SKILL.md +57 -57
  305. package/skills/fec-performance-optimization/SKILL.md +54 -54
  306. package/skills/fec-performance-optimization/references/framework-performance-patterns.md +23 -23
  307. package/skills/fec-performance-optimization/references/report-template.md +31 -31
  308. package/skills/fec-pwa-implementation/SKILL.md +17 -17
  309. package/skills/fec-pwa-implementation/references/manifest-and-icons.md +12 -12
  310. package/skills/fec-pwa-implementation/references/service-worker-workbox.md +13 -13
  311. package/skills/fec-react-project-standard/SKILL.md +72 -72
  312. package/skills/fec-react-project-standard/references/react-performance-patterns.md +28 -28
  313. package/skills/fec-react-project-standard/references/react-project-structure.md +112 -112
  314. package/skills/fec-react-project-standard/references/react-quality-patterns.md +72 -72
  315. package/skills/fec-react-project-standard/references/react-runtime-patterns.md +94 -94
  316. package/skills/fec-refactor-clean/SKILL.md +30 -30
  317. package/skills/fec-refactor-clean/references/report-template.md +23 -23
  318. package/skills/fec-responsive-layout/SKILL.md +17 -17
  319. package/skills/fec-responsive-layout/references/responsive-layout-patterns.md +37 -37
  320. package/skills/fec-route-protection/SKILL.md +26 -26
  321. package/skills/fec-security-review/SKILL.md +20 -20
  322. package/skills/fec-security-review/references/report-template.md +12 -12
  323. package/skills/fec-security-review/references/security-checklist.md +27 -27
  324. package/skills/fec-source-driven-development/SKILL.md +59 -59
  325. package/skills/fec-state-management/SKILL.md +34 -34
  326. package/skills/fec-state-management/references/state-patterns.md +19 -19
  327. package/skills/fec-storybook-component-doc/SKILL.md +19 -19
  328. package/skills/fec-storybook-component-doc/references/story-patterns.md +12 -12
  329. package/skills/fec-svg-animation/SKILL.md +32 -32
  330. package/skills/fec-tailwind-design-system/SKILL.md +17 -17
  331. package/skills/fec-tailwind-design-system/references/tailwind-system-patterns.md +36 -36
  332. package/skills/fec-tdd-workflow/SKILL.md +28 -28
  333. package/skills/fec-testing-strategy/SKILL.md +29 -29
  334. package/skills/fec-typescript-project-standard/SKILL.md +38 -38
  335. package/skills/fec-typescript-project-standard/references/type-safety-patterns.md +20 -20
  336. package/skills/fec-typescript-project-standard/references/type-safety.md +18 -18
  337. package/skills/fec-ui-design/SKILL.md +90 -90
  338. package/skills/fec-ui-design/references/design-intelligence.md +61 -61
  339. package/skills/fec-ui-design/references/master-page-overrides.md +15 -15
  340. package/skills/fec-ui-design/references/pre-delivery-checklist.md +38 -38
  341. package/skills/fec-validation-fix/SKILL.md +26 -26
  342. package/skills/fec-validation-fix/references/report-template.md +25 -25
  343. package/skills/fec-vite-project-standard/SKILL.md +39 -39
  344. package/skills/fec-vue3-project-standard/SKILL.md +38 -38
  345. package/skills/fec-vue3-project-standard/references/vue3-composables-routing.md +36 -36
  346. package/skills/fec-vue3-project-standard/references/vue3-performance-patterns.md +8 -8
  347. package/skills/fec-vue3-project-standard/references/vue3-project-structure.md +112 -112
  348. package/skills/fec-vue3-project-standard/references/vue3-state-api-quality.md +74 -74
  349. package/skills/fec-web-video-presentation/SKILL.md +33 -33
  350. package/skills/fec-web-workers/SKILL.md +16 -16
  351. package/skills/fec-web-workers/references/advanced-workers.md +13 -13
  352. package/skills/fec-web-workers/references/basic-worker.md +8 -8
  353. package/skills/metadata.json +121 -115
  354. package/skills/relations.json +4 -0
  355. package/templates/claude/CLAUDE.md +60 -60
  356. package/templates/codex/AGENTS.md +76 -76
  357. package/templates/codex/config.toml +4 -4
  358. package/templates/openclaw/AGENTS.md +68 -68
  359. package/templates/openclaw/OPENCLAW-CONFIG.md +8 -8
  360. package/templates/shared/rules/fec-agent-workflow.md +40 -40
  361. package/templates/shared/rules/fec-api-layer.md +52 -52
  362. package/templates/shared/rules/fec-ci-cd.md +29 -29
  363. package/templates/shared/rules/fec-code-comments.md +22 -22
  364. package/templates/shared/rules/fec-design-system.md +53 -53
  365. package/templates/shared/rules/fec-error-handling.md +40 -40
  366. package/templates/shared/rules/fec-git-conventions.md +42 -42
  367. package/templates/shared/rules/fec-i18n.md +48 -48
  368. package/templates/shared/rules/fec-naming-conventions.md +91 -91
  369. package/templates/shared/rules/fec-performance.md +78 -78
  370. package/templates/shared/rules/fec-react.md +58 -58
  371. package/templates/shared/rules/fec-refactoring.md +34 -34
  372. package/templates/shared/rules/fec-rendering-patterns.md +36 -36
  373. package/templates/shared/rules/fec-responsive-design.md +37 -37
  374. package/templates/shared/rules/fec-source-driven-development.md +22 -22
  375. package/templates/shared/rules/fec-state-management.md +56 -56
  376. package/templates/shared/rules/fec-testing.md +64 -64
  377. package/templates/shared/rules/fec-typescript.md +75 -75
  378. package/templates/shared/rules/fec-vue.md +42 -42
  379. package/templates/shared/rules/fec-working-modes.md +34 -34
  380. package/skills/fec-drawio-studio/data/shape-index.json.gz +0 -0
@@ -1,54 +1,54 @@
1
- # 子代理协作规则
1
+ # Subagent collaboration rules
2
2
 
3
- 当前端任务涉及多视角分析、跨模块规划、专项质量审查或验证失败修复时,优先使用职责明确的子代理。
3
+ When front-end tasks involve multi-perspective analysis, cross-module planning, dedicated quality reviews, or verification failure repairs, give priority to using subagents with clear responsibilities.
4
4
 
5
- ## 选择原则
5
+ ## Selection principle
6
6
 
7
- - 架构、页面拆分、状态流、目录规划:`fec-architect`
8
- - 前端 PR 综合评审:`fec-code-reviewer`
9
- - TypeScript / JavaScript 语义与类型风险:`fec-typescript-reviewer`
10
- - 安全风险:`fec-security-reviewer`
11
- - 测试策略:`fec-test-planner`
12
- - E2E 编写与运行:`fec-e2e-runner`
13
- - 性能瓶颈:`fec-performance-optimizer`
14
- - 来源/版本敏感决策:优先由主代理查项目事实和官方来源,再交给专项代理落地
15
- - UI 视觉与设计稿差异:`fec-ui-checker`
16
- - 设计稿实现:`fec-figma-implementer`
17
- - Token 映射:`fec-design-token-mapper`
18
- - 构建、类型、测试、CI 失败:`fec-build-fixer`
19
- - 死代码与无用依赖清理:`fec-refactor-cleaner`
20
- - README、runtime docs、能力表同步:`fec-doc-updater`
7
+ - Architecture, page splitting, state flow, directory planning: `fec-architect`
8
+ - Front-end PR comprehensive review: `fec-code-reviewer`
9
+ - TypeScript/JavaScript semantics and type risks: `fec-typescript-reviewer`
10
+ - Security risk: `fec-security-reviewer`
11
+ - Test strategy: `fec-test-planner`
12
+ - E2E writing and running: `fec-e2e-runner`
13
+ - Performance bottleneck: `fec-performance-optimizer`
14
+ - Source/version sensitive decision-making: Prioritize the agent to check the project facts and official sources, and then hand it over to the special agent for implementation
15
+ - Differences between UI visual and design draft: `fec-ui-checker`
16
+ - Design draft implementation: `fec-figma-implementer`
17
+ - Token mapping: `fec-design-token-mapper`
18
+ - Build, type, test, CI failed: `fec-build-fixer`
19
+ - Dead code and useless dependency cleaning: `fec-refactor-cleaner`
20
+ - README, runtime docs, capability table synchronization: `fec-doc-updater`
21
21
 
22
- ## 多代理评审编排
22
+ ## Multi-agent review orchestration
23
23
 
24
- 复杂 PR 可按质量维度并行评审,但必须有主代理负责合并结论。
24
+ Complex PRs can be reviewed in parallel along quality dimensions, but a lead agent must be responsible for merging conclusions.
25
25
 
26
- | 变更类型 | 建议组合 | 主合并者 |
26
+ | Change Type | Recommended Combination | Master Consolidator |
27
27
  | --- | --- | --- |
28
28
  | UI feature | `fec-code-reviewer` + `fec-typescript-reviewer` + `fec-test-planner` | `fec-code-reviewer` |
29
- | 鉴权 / 上传 / 富文本 | `fec-security-reviewer` + `fec-code-reviewer` | `fec-security-reviewer` |
30
- | 大列表 / 图表 / 3D / 性能问题 | `fec-performance-optimizer` + `fec-code-reviewer` | `fec-performance-optimizer` |
31
- | 设计稿落地 | `fec-figma-implementer` + `fec-ui-checker` + `fec-code-reviewer` | `fec-figma-implementer` |
32
- | 大型重构 | `fec-architect` + `fec-refactor-cleaner` + `fec-test-planner` | `fec-architect` |
29
+ | Authentication / Upload / Rich Text | `fec-security-reviewer` + `fec-code-reviewer` | `fec-security-reviewer` |
30
+ | Big List / Charts / 3D / Performance Issues | `fec-performance-optimizer` + `fec-code-reviewer` | `fec-performance-optimizer` |
31
+ | Design draft landing | `fec-figma-implementer` + `fec-ui-checker` + `fec-code-reviewer` | `fec-figma-implementer` |
32
+ | Large refactoring | `fec-architect` + `fec-refactor-cleaner` + `fec-test-planner` | `fec-architect` |
33
33
 
34
- 合并规则:
34
+ Merge rules:
35
35
 
36
- - 相同文件、相同行号、相同根因的问题合并为一条,保留最高严重级别。
37
- - 相同根因分布在多处时写成模式级发现,列代表性位置,不逐行刷屏。
38
- - 结论冲突时先回到项目事实、测试结果和用户影响,不用代理身份决定谁对。
39
- - 主代理输出最终 Verdict,并列出各专项代理覆盖的范围和未覆盖范围。
36
+ - Problems with the same file, same line number, and same root cause are merged into one, and the highest severity level is retained.
37
+ - When the same root cause is distributed in multiple places, it is written as a pattern-level discovery. The representative positions are listed and the screen is not refreshed line by line.
38
+ - When conclusions conflict, go back to the project facts, test results and user impact first, and do not use an agent's identity to decide who is right.
39
+ - The main agent outputs the final Verdict and lists the coverage and non-coverage ranges of each special agent.
40
40
 
41
- ## 协作约束
41
+ ## Collaboration constraints
42
42
 
43
- - 委托前先明确范围、输入和输出,不把模糊任务丢给子代理。
44
- - 多个独立问题可以并行分析;彼此有依赖的任务按顺序推进。
45
- - 子代理输出必须落到可验证结论:报告、文件路径、命令结果或具体风险。
46
- - 子代理建议不自动等于实现决策;与仓库现有约定冲突时,优先遵循仓库约定。
47
- - 主代理必须复核关键证据、验证命令和改动边界,不能只转述子代理结论。
43
+ - Clarify the scope, input and output before delegating, and do not leave ambiguous tasks to sub-agents.
44
+ - Multiple independent problems can be analyzed in parallel; tasks that depend on each other are advanced in sequence.
45
+ - Subagent output must lead to verifiable conclusions: reports, file paths, command results, or specific risks.
46
+ - Subagent suggestions do not automatically equal implementation decisions; when they conflict with the existing contracts of the warehouse, the warehouse contracts take precedence.
47
+ - The primary agent must review key evidence, verify orders, and change boundaries, and cannot just relay the subagent's conclusions.
48
48
 
49
- ## 反模式
49
+ ## Anti-pattern
50
50
 
51
- - 为简单单文件修改创建过多代理。
52
- - 让多个代理同时修改同一文件而没有边界。
53
- - 用子代理替代本应先做的代码阅读。
54
- - 只接收结论,不核对关键证据和验证命令。
51
+ - Too many proxies were created for simple single file modifications.
52
+ - Let multiple agents modify the same file simultaneously without boundaries.
53
+ - Use subagent instead of code reading that should be done first.
54
+ - Only conclusions are received, key evidence and verification orders are not checked.
@@ -1,35 +1,35 @@
1
- # API 层规范
1
+ # API layer specification
2
2
 
3
- 凡是涉及 HTTP 请求、接口调用、数据获取或错误处理时,都应用本文件。
3
+ This document applies whenever HTTP requests, interface calls, data retrieval, or error handling are involved.
4
4
 
5
- ## 核心原则
5
+ ## Core Principles
6
6
 
7
- - 请求和响应必须有类型定义
8
- - 统一错误处理,不在每个组件中重复 try-catch
9
- - API 层与 UI 层分离
10
- - 敏感操作(删除、支付)必须有二次确认
7
+ - Requests and responses must have type definitions
8
+ - Unify error handling without repeating try-catch in each component
9
+ -Separation of API layer and UI layer
10
+ - Sensitive operations (deletion, payment) must require a second confirmation
11
11
 
12
- ## 目录结构
12
+ ## Directory structure
13
13
 
14
- <!-- 请根据项目实际情况调整 -->
14
+ <!-- Please adjust according to the actual situation of the project -->
15
15
 
16
16
  ```
17
17
  src/
18
- ├── api/ # API 定义层
18
+ ├── api/ # API definition layer
19
19
  │ ├── modules/
20
- │ │ ├── user.ts # 用户相关接口
21
- │ │ ├── order.ts # 订单相关接口
20
+ │ │ ├── user.ts # User related interface
21
+ │ │ ├── order.ts # Order related interface
22
22
  │ │ └── ...
23
- │ ├── types/ # 请求/响应类型
23
+ │ ├── types/ # Request/response type
24
24
  │ │ ├── user.types.ts
25
25
  │ │ └── order.types.ts
26
- │ └── request.ts # 统一请求封装
26
+ │ └── request.ts # Unified request encapsulation
27
27
  ```
28
28
 
29
- ## 类型规范
29
+ ## Type specification
30
30
 
31
31
  ```typescript
32
- // 请求参数类型
32
+ //Request parameter type
33
33
  interface GetUserListParams {
34
34
  page: number;
35
35
  pageSize: number;
@@ -37,7 +37,7 @@ interface GetUserListParams {
37
37
  status?: UserStatus;
38
38
  }
39
39
 
40
- // 响应数据类型
40
+ //Response data type
41
41
  interface GetUserListResponse {
42
42
  list: User[];
43
43
  total: number;
@@ -45,55 +45,55 @@ interface GetUserListResponse {
45
45
  pageSize: number;
46
46
  }
47
47
 
48
- // API 函数签名
48
+ // API function signature
49
49
  export function getUserList(params: GetUserListParams): Promise<GetUserListResponse>;
50
50
  ```
51
51
 
52
- 要求:
52
+ Requirements:
53
53
 
54
- - 禁止使用 `any` 作为请求参数或响应类型
55
- - 枚举值使用 TypeScript enum 或 union type
56
- - 分页参数和响应格式保持统一
54
+ - Disallow the use of `any` as a request parameter or response type
55
+ - Use TypeScript enum or union type for enumeration values
56
+ - Pagination parameters and response format remain unified
57
57
 
58
- ## 错误处理
58
+ ## Error handling
59
59
 
60
- ### 统一拦截器
60
+ ### Unified Interceptor
61
61
 
62
- 在请求封装层统一处理:
62
+ Unified processing at the request encapsulation layer:
63
63
 
64
- - 401: 跳转登录或刷新 token
65
- - 403: 提示无权限
66
- - 500: 显示通用错误提示
67
- - 网络错误: 显示网络异常提示
64
+ - 401: Jump to login or refresh token
65
+ - 403: Prompt No Permission
66
+ - 500: Display general error message
67
+ - Network error: Display network exception prompts
68
68
 
69
- ### 业务错误
69
+ ### Business error
70
70
 
71
- - 业务错误码与 HTTP 状态码分离
72
- - 业务错误信息使用 i18n key(如支持国际化)
73
- - 需要用户操作的错误(如表单校验失败)由调用方处理
71
+ - Separate business error codes and HTTP status codes
72
+ - Business error messages use i18n key (if internationalization is supported)
73
+ - Errors that require user action (such as form validation failure) are handled by the caller
74
74
 
75
- ## Loading / Error / Empty 状态
75
+ ## Loading / Error / Empty status
76
76
 
77
- 每个数据请求场景都需要考虑:
77
+ Each data request scenario needs to be considered:
78
78
 
79
- - **Loading**: 首次加载 skeleton/spinner,后续刷新不阻断 UI
80
- - **Error**: 显示错误信息 + 重试按钮
81
- - **Empty**: 显示空状态占位 + 引导操作
79
+ - **Loading**: Load skeleton/spinner for the first time, subsequent refreshes will not block the UI
80
+ - **Error**: display error message + retry button
81
+ - **Empty**: Display empty status placeholder + boot operation
82
82
 
83
- ## 检查清单
83
+ ## Checklist
84
84
 
85
- - [ ] 请求参数和响应有明确类型
86
- - [ ] 错误处理不依赖每个组件各自 try-catch
87
- - [ ] Loading / Error / Empty 三态均已处理
88
- - [ ] 敏感操作有二次确认
89
- - [ ] Token / 鉴权信息不在请求 URL 中明文传递
90
- - [ ] 大数据量使用分页或流式加载
85
+ - [ ] Request parameters and responses have clear types
86
+ - [ ] Error handling does not rely on each component's own try-catch
87
+ - [ ] Loading / Error / Empty three states have been processed
88
+ - [ ] Sensitive operations have secondary confirmation
89
+ - [ ] Token/authentication information is not passed in clear text in the request URL
90
+ - [ ] Use paging or streaming loading for large amounts of data
91
91
 
92
- ## 反模式
92
+ ## Anti-pattern
93
93
 
94
- - 在组件中直接使用 `fetch` / `axios` 而不经过统一封装
95
- - 请求参数或响应使用 `any`
96
- - 忽略错误处理,只处理成功场景
97
- - 将 token 拼接在 URL 中
98
- - 在 GET 请求中传递敏感数据
99
- - 同一个接口在多个文件中重复定义
94
+ - Use `fetch` / `axios` directly in components without unified encapsulation
95
+ - Use `any` for request parameters or responses
96
+ - Ignore error handling and only handle success scenarios
97
+ - Splice token into URL
98
+ - Pass sensitive data in GET requests
99
+ - The same interface is repeatedly defined in multiple files
@@ -1,40 +1,40 @@
1
- # CI/CD 规则
1
+ # CI/CD rules
2
2
 
3
- 本文件约定持续集成与部署流水线的常驻结构与门禁。具体 GitHub Actions、GitLab CI、云平台或 monorepo pipeline 写法,应按项目现有 CI 模板实现,不在本规则中复制长 YAML。
3
+ This document stipulates the resident structure and access control of the continuous integration and deployment pipeline. The specific writing method of GitHub Actions, GitLab CI, cloud platform or monorepo pipeline should be implemented according to the existing CI template of the project, and long YAML will not be copied in this rule.
4
4
 
5
- ## 流水线阶段
5
+ ## Pipeline stage
6
6
 
7
- 建议顺序:
7
+ Suggested order:
8
8
 
9
- 1. **安装依赖**:使用锁文件安装,例如 `npm ci` 或 `pnpm install --frozen-lockfile`。
10
- 2. **Lint / Format 检查**:ESLint、Stylelint、Prettier check 或项目等价命令。
11
- 3. **类型检查**:`tsc --noEmit` 或项目 typecheck 脚本。
12
- 4. **单元 / 组件测试**:Jest、Vitest、Testing Library、Vue Test Utils 等。
13
- 5. **构建**:项目生产构建命令。
14
- 6. **专项质量门禁**:包体、Lighthouse、依赖安全、license、a11y、视觉回归、E2E,按风险启用。
15
- 7. **部署**:仅在前序门禁通过后上传产物或触发部署。
9
+ 1. **Install dependencies**: Use lock file installation, such as `npm ci` or `pnpm install --frozen-lockfile`.
10
+ 2. **Lint / Format check**: ESLint, Stylelint, Prettier check or project equivalent command.
11
+ 3. **Type check**: `tsc --noEmit` or project typecheck script.
12
+ 4. **Unit/component testing**: Jest, Vitest, Testing Library, Vue Test Utils, etc.
13
+ 5. **Build**: Project production build command.
14
+ 6. **Special quality access control**: package body, lighthouse, dependency security, license, a11y, visual regression, E2E, enabled according to risk.
15
+ 7. **Deployment**: Only upload products or trigger deployment after the pre-order access control is passed.
16
16
 
17
- 任一必需阶段失败都应中止后续步骤。
17
+ Failure at any required stage should abort subsequent steps.
18
18
 
19
- ## 环境变量与密钥
19
+ ## Environment variables and keys
20
20
 
21
- - 敏感信息使用 CI 平台 Secrets,不写入仓库、日志或构建产物。
22
- - 只允许公开前缀的环境变量进入客户端 bundle,例如 `VITE_*`、`NEXT_PUBLIC_*` 等;服务端密钥不得使用公开前缀。
23
- - E2E 的 baseURL、测试账号、第三方 token 等从 Secrets 或受控测试环境读取。
24
- - CI 日志要避免打印完整环境变量、请求 header、token 或私密配置。
21
+ - Sensitive information uses CI platform Secrets and is not written to the warehouse, logs or build products.
22
+ - Only environment variables with public prefixes are allowed to enter the client bundle, such as `VITE_*`, `NEXT_PUBLIC_*`, etc.; server keys must not use public prefixes.
23
+ - E2E's baseURL, test account, third-party token, etc. are read from Secrets or controlled test environment.
24
+ - CI logs should avoid printing complete environment variables, request headers, tokens or private configurations.
25
25
 
26
- ## 产物与证据
26
+ ## Products and Evidence
27
27
 
28
- - 上传或保留测试报告、覆盖率、E2E trace、截图、构建产物、包体报告和性能预算结果。
29
- - CI 失败时保留足够日志定位根因,不只返回“命令失败”。
30
- - 发布前确认版本、变更说明、迁移事项、回滚路径和影响范围。
31
- - 依赖升级 PR 保留 lockfile diff、关键包版本、release notes 摘要和验证矩阵。
32
- - Monorepo affected 快速验证可以用于 PR 反馈,但 release 或主干合并前应保留全量验证入口。
28
+ - Upload or save test reports, coverage, E2E traces, screenshots, build artifacts, package reports and performance budget results.
29
+ - When CI fails, keep enough logs to locate the root cause and not just return "command failure".
30
+ - Confirm version, change description, migration matters, rollback path and impact scope before release.
31
+ - Dependency upgrade PR retains lockfile diff, key package version, release notes summary and verification matrix.
32
+ - Monorepo affected quick verification can be used for PR feedback, but the full verification entry should be retained before release or trunk merging.
33
33
 
34
- ## 强约束
34
+ ##Strong constraints
35
35
 
36
- - 使用并提交锁文件,禁止无锁安装。
37
- - 构建产物不提交到源码仓库,由 CI 生成并上传。
38
- - 部署前必须通过项目定义的 lint、typecheck、test、build。
39
- - 不跳过失败门禁直接部署,除非有明确风险接受、审批记录和回滚方案。
40
- - CI 配置应复用项目已有命令,不在流水线里发明与本地不同的替代命令。
36
+ - Use and submit lock files to disable lockless installations.
37
+ - The build products are not submitted to the source code repository, but are generated and uploaded by CI.
38
+ - Project-defined lint, typecheck, test, and build must be passed before deployment.
39
+ - Do not skip failed access control and deploy directly unless there are clear risk acceptance, approval records and rollback plans.
40
+ - CI configuration should reuse existing commands in the project and do not invent alternative commands in the pipeline that are different from local ones.
@@ -1,33 +1,33 @@
1
- # 代码注释
1
+ # Code comments
2
2
 
3
- 编写或评审前端实现时应用本文件。
3
+ Use this document when writing or reviewing front-end implementations.
4
4
 
5
- ## 原则
5
+ ## Principles
6
6
 
7
- - 意图优先靠**命名、类型与结构**表达;注释用于说明**为什么**、**约束与背景**,而不是复述代码在做什么。
8
- - 避免「整文件零注释」:在**非显而易见**处用**简短**注释降低误改成本,与「不写废话注释」不矛盾。
7
+ - Intention is expressed first through **naming, type and structure**; comments are used to explain **why**, **constraints and background**, rather than reiterating what the code is doing.
8
+ - Avoid "zero comments in the entire file": Use **short** comments in **non-obvious** places to reduce the cost of accidental modifications, which is not inconsistent with "no nonsense comments".
9
9
 
10
- ## 应当注释的情况
10
+ ## Situations that should be commented
11
11
 
12
- - **业务或产品规则**:权限、展示条件、校验逻辑背后的依据(与需求或领域约定相关时)。
13
- - **非直观的实现或取舍**:为何选用当前写法(性能、兼容、与后端/第三方约定等)。
14
- - **外部契约**:与接口、设计稿、枚举或单位相关的字段含义、映射关系。
15
- - **临时方案与技术债**:`TODO` / `FIXME` 应写明预期收尾或关联工单(若有)。
16
- - **易踩坑点**:第三方库版本差异、必须满足的调用顺序、已知限制。
12
+ - **Business or product rules**: permissions, display conditions, and the basis behind the verification logic (when related to requirements or domain agreements).
13
+ - **Non-intuitive implementation or trade-offs**: Why choose the current writing method (performance, compatibility, agreement with backend/third party, etc.).
14
+ - **External Contract**: Field meanings and mapping relationships related to interfaces, design drafts, enumerations or units.
15
+ - **Interim Solutions and Technical Debt**: `TODO` / `FIXME` should indicate expected closure or associated work orders (if any).
16
+ - **Easy pitfalls**: Third-party library version differences, the calling sequence that must be met, and known limitations.
17
17
 
18
- ## 应避免的情况
18
+ ## Situations to avoid
19
19
 
20
- - 逐行翻译已能从代码直接看出的行为。
21
- - 注释与实现长期不一致;修改逻辑时同步更新或删除误导性注释。
22
- - 用大段注释代替应抽取的函数或应补全的类型。
20
+ - Line-by-line translation of behavior that can be seen directly from the code.
21
+ - Annotations are chronically inconsistent with the implementation; misleading annotations are updated or deleted synchronously when the logic is modified.
22
+ - Use large comments to replace functions that should be extracted or types that should be completed.
23
23
 
24
- ## 形式建议
24
+ ## Format Suggestions
25
25
 
26
- - 语言与仓库现有注释保持一致(中文或英文)。
27
- - 复杂模块或组件可在文件顶部用 **1~3 行** 说明职责与关键约束;跨包或对外导出的 API 宜用 **JSDoc** 说明参数、返回值与副作用。
28
- - 复杂条件分支或 `useEffect`:若依赖或触发条件不直观,用一行说明**触发条件**或**不变量**。
29
- - 临时规避、兼容旧系统或性能取舍必须说明原因和退出条件。
26
+ - The language is consistent with the existing comments in the warehouse (Chinese or English).
27
+ - Complex modules or components can use **1~3 lines** at the top of the file to describe responsibilities and key constraints; cross-package or externally exported APIs should use **JSDoc** to describe parameters, return values and side effects.
28
+ - Complex conditional branches or `useEffect`: If the dependency or triggering condition is not intuitive, use one line to describe the **triggering condition** or **invariant**.
29
+ - Temporary circumvention, compatibility with old systems or performance trade-offs must state reasons and exit conditions.
30
30
 
31
- ## 文档同步
31
+ ## Document synchronization
32
32
 
33
- 当修改公开命令、skill、agent、模板、报告命名或安装路径时,同步更新 README、runtime docs、项目结构文档和多语言说明。注释解释局部代码,公开文档解释团队如何使用能力,两者不要互相替代。
33
+ When modifying public commands, skills, agents, templates, report naming or installation paths, synchronize updates to README, runtime docs, project structure documents and multi-language instructions. Comments explain local code, and public documentation explains how the team uses capabilities. The two should not replace each other.
@@ -1,72 +1,72 @@
1
- # 设计系统规则
1
+ # Design system rules
2
2
 
3
- 凡是任务涉及 UI 实现、设计稿转代码、样式、设计 Token 或组件复用时,都应用本文件。本文只保留项目常驻设计约束;产品化设计方向、设计系统生成、页面级 override、UI QA 细节交给 `fec-ui-design`;Tailwind token、variant、dark mode 和 class 治理交给 `fec-tailwind-design-system`;响应式布局交给 `fec-responsive-layout`。
3
+ This document should be used whenever the task involves UI implementation, design draft conversion to code, style, design token, or component reuse. This article only retains the project's resident design constraints; product design direction, design system generation, page-level override, and UI QA details are handed over to `fec-ui-design`; Tailwind token, variant, dark mode and class management are handed over to `fec-tailwind-design-system`; responsive layout is handed over to `fec-responsive-layout`.
4
4
 
5
- ## 核心优先级
5
+ ## Core priority
6
6
 
7
- 1. 复用已有组件。
8
- 2. 在已有组件上扩展。
9
- 3. 创建新的叶子组件。
10
- 4. 只有在理由充分、边界清晰且会被复用时,才创建新的共享基础组件。
7
+ 1. Reuse existing components.
8
+ 2. Expand on existing components.
9
+ 3. Create a new leaf component.
10
+ 4. Only create new shared base components if there is good reason, clear boundaries, and if they will be reused.
11
11
 
12
- ## 产品化设计方向
12
+ ## Product design direction
13
13
 
14
- - 工具型页面、SaaS 后台、CRM、运营台:优先安静、密集、可扫描,首屏直接呈现核心工作区。
15
- - 品牌页、作品集、发布页:可以更有表现力,但 H1 应是品牌、产品、对象或品类,说明文案放在副标题。
16
- - 可视化、游戏、创作工具:可以使用更强视觉资产和动效,但必须保持交互可控、状态清晰。
17
- - 每个重要界面都应有贴合业务的视觉锚点,例如真实媒体、数据形态、行业材质、字体性格、空间组织或交互节奏。
18
- - 大胆设计必须服务场景;高频工具重效率和稳定,展示型页面重主体识别和记忆点。
14
+ - Tool-type pages, SaaS backend, CRM, and operations desk: Prioritize quiet, dense, and scannable, and the core work area is directly displayed on the first screen.
15
+ - Brand page, portfolio, release page: It can be more expressive, but H1 should be the brand, product, object or category, and the description copy should be placed in the subtitle.
16
+ - Visualization, games, and creative tools: You can use stronger visual assets and animations, but you must keep the interaction controllable and the status clear.
17
+ - Every important interface should have a visual anchor that fits the business, such as real media, data form, industry material, font character, spatial organization or interaction rhythm.
18
+ - Bold design must serve the scene; high-frequency tools focus on efficiency and stability, and display-type pages focus on subject recognition and memory points.
19
19
 
20
- 避免:
20
+ Avoid:
21
21
 
22
- - 把日常高频工具做成营销落地页。
23
- - 默认使用紫色渐变、装饰光斑、堆叠卡片、空泛 hero 或无语境默认字体。
24
- - 页面区块大面积卡片化,尤其是卡片套卡片。
25
- - 用可见说明文字解释常见控件本该表达的功能。
26
- - 让整个界面只由一个色相的深浅变化组成。
22
+ - Turn daily high-frequency tools into marketing landing pages.
23
+ - Use purple gradient, decorative light spots, stacked cards, empty hero or non-contextual default font by default.
24
+ - Large areas of the page are card-based, especially card sets.
25
+ - Use visible explanatory text to explain the functions that common controls are supposed to express.
26
+ - Let the entire interface consist of only one shade of hue.
27
27
 
28
- ## 设计稿转代码规则
28
+ ## Design draft conversion code rules
29
29
 
30
- - 有设计上下文时,先通过 MCP 或截图/标注读取事实来源,不靠猜测决定布局、间距、字体、颜色或状态。
31
- - 设计稿中的颜色、间距、圆角、阴影和字体应映射到现有 token、CSS 变量、主题变量或组件 variant。
32
- - 创建新组件前先检查现有组件库和业务组件,优先复用。
33
- - 默认验证 mobile(375px)、tablet(768px)、desktop(1440px)。
34
- - 像素还原要求以项目约定为准;没有约定时,核心结构、间距、字体、状态和交互优先于机械追求截图重合。
35
- - 复杂设计任务实现前先给出简短实现计划,说明复用组件、新建组件、可能改动文件、响应式策略和 token 映射。
30
+ - When given design context, read the source of truth first through MCP or screenshots/annotations, and don’t rely on guesswork to determine layout, spacing, fonts, colors, or status.
31
+ - Colors, spacing, rounded corners, shadows, and fonts in the design should be mapped to existing tokens, CSS variables, theme variables, or component variants.
32
+ - Check existing component libraries and business components before creating new components and prioritize reuse.
33
+ - Default verification is mobile(375px), tablet(768px), desktop(1440px).
34
+ - Pixel restoration requirements are subject to the project agreement; if there is no agreement, the core structure, spacing, fonts, status and interaction will take precedence over mechanical pursuit of screenshot overlap.
35
+ - Before implementing complex design tasks, a brief implementation plan is given, describing reused components, new components, possible changed files, responsive strategies and token mapping.
36
36
 
37
- ## 设计 Token 与样式
37
+ ## Design Token and style
38
38
 
39
- - 优先使用已有 design token、CSS 变量或主题变量;不要硬编码颜色、圆角、间距、阴影和字体取值。
40
- - 缺少所需 token 时要明确指出,并集中补齐或记录,不在多个组件里散落字面量。
41
- - Tailwind 项目中,token 应通过语义化 `theme.extend`、CSS 变量或组件 variant 承接;不要把 `blue-600`、`rounded-xl` 等具体值复制成事实标准。
42
- - 组件 variant 应区分语义 tone、尺寸 size、密度 density 和状态 state;不要让一个字符串参数同时承载多种业务含义。
43
- - 动态 Tailwind class 必须可被构建扫描识别;复杂映射使用显式对象、variant 工具或 safelist。
44
- - 优先使用局部、受控的样式,不做大范围全局覆盖;与项目现有 CSS Modules、Tailwind、组件库或样式体系保持一致。
39
+ - Prefer using existing design tokens, CSS variables, or theme variables; do not hard-code colors, rounded corners, spacing, shadows, and font values.
40
+ - When required tokens are missing, clearly point them out and centrally complete or record them, rather than scattering literals in multiple components.
41
+ - In the Tailwind project, tokens should be inherited through semantic `theme.extend`, CSS variables or component variants; do not copy specific values such as `blue-600` and `rounded-xl` into de facto standards.
42
+ - Component variants should distinguish semantic tone, size, density and state; do not let a string parameter carry multiple business meanings at the same time.
43
+ - Dynamic Tailwind classes must be recognized by build scans; use explicit objects, variant tools, or safelist for complex mappings.
44
+ - Prioritize the use of local, controlled styles instead of large-scale global coverage; be consistent with the project's existing CSS Modules, Tailwind, component libraries or style systems.
45
45
 
46
- ## 界面质感基线
46
+ ## Interface texture baseline
47
47
 
48
- - 嵌套圆角保持光学关系:外层圆角约等于内层圆角 + 间距。
49
- - 图标按钮、箭头、播放三角等非对称图形按视觉中心微调。
50
- - 小控件命中区域至少 40x40px,空间允许时优先 44x44px。
51
- - 标题和短文本可用 `text-wrap: balance`,短中正文可用 `text-wrap: pretty`。
52
- - 计数器、价格、时间、表格数字使用 `font-variant-numeric: tabular-nums`。
53
- - 动效只声明实际变化属性,禁止 `transition: all` 和 `will-change: all`,并尊重 `prefers-reduced-motion`。
48
+ - Nested fillets maintain an optical relationship: the outer fillet is approximately equal to the inner fillet + spacing.
49
+ - Asymmetric graphics such as icon buttons, arrows, and playback triangles are fine-tuned according to the visual center.
50
+ - The hit area of the small control should be at least 40x40px, and 44x44px is preferred if space allows.
51
+ - `text-wrap: balance` can be used for titles and short texts, and `text-wrap: pretty` can be used for short and medium text.
52
+ - Use `font-variant-numeric: tabular-nums` for counters, prices, times, and tabular numbers.
53
+ - Animation only declares actual change attributes, prohibits `transition: all` and `will-change: all`, and respects `prefers-reduced-motion`.
54
54
 
55
- ## 暗色模式
55
+ ## Dark mode
56
56
 
57
- - 项目级暗色模式只选择一种主策略:CSS 变量、根节点 class、`data-theme` 或组件库主题。
58
- - 支持手动切换主题时,要在首屏绘制前初始化用户偏好,避免主题闪烁;实现细节交给 Tailwind / design-system skill reference。
59
- - 亮色与暗色都要复核 disabled、focus、selected、invalid、skeleton、chart、表单控件、第三方组件和阴影层级。
60
- - 不只靠降低透明度表达 disabled,不只补背景色而忽略文本、边框、图表和焦点状态。
57
+ - Project-level dark mode only selects one main strategy: CSS variables, root node class, `data-theme` or component library theme.
58
+ - When supporting manual theme switching, user preferences must be initialized before the first screen is drawn to avoid theme flickering; the implementation details are left to Tailwind / design-system skill reference.
59
+ - Review disabled, focus, selected, invalid, skeleton, chart, form controls, third-party components and shadow levels for both light and dark colors.
60
+ - Don't just reduce the transparency to express disabled, don't just fill in the background color and ignore text, borders, charts and focus states.
61
61
 
62
- ## 可访问性基线
62
+ ## Accessibility Baseline
63
63
 
64
- - 优先使用语义化 HTML。
65
- - 表单控件具备标签,纯图标按钮具备可访问名称。
66
- - 菜单、标签页、对话框和自定义控件支持键盘操作。
67
- - 焦点样式可见,标题层级正确,真实表格数据使用表格语义。
68
- - 颜色对比度、触摸目标、reduced-motion 和错误提示不能被视觉 polish 破坏。
64
+ - Prefer semantic HTML.
65
+ - Form controls have labels and pure icon buttons have accessible names.
66
+ - Menus, tabs, dialog boxes and custom controls support keyboard operation.
67
+ - Focus styles are visible, title levels are correct, and real table data uses table semantics.
68
+ - Color contrast, touch targets, reduced-motion and error prompts cannot be destroyed by visual polish.
69
69
 
70
- ## UI 任务输出
70
+ ## UI task output
71
71
 
72
- 实现完成后说明复用了什么、新建了什么、与设计稿或项目 token 的偏差、缺少哪些资源或交互细节。复杂 UI 还应说明状态覆盖、响应式验证和剩余设计风险。
72
+ After the implementation is completed, explain what was reused, what was newly created, deviations from the design draft or project token, and what resources or interaction details are missing. Complex UIs should also account for state overrides, responsive validation, and remaining design risks.