@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
@@ -204,6 +204,7 @@
204
204
  ],
205
205
  "boundaryWorkflows": [
206
206
  "Use image generation for raster-first posters, visual concepts, product images, and PNG QA beyond editable technical diagrams.",
207
+ "Use image generation's HTML technical diagram route when the priority is a browser-ready themed single-file workflow, sequence, data-flow, or lifecycle diagram.",
207
208
  "Use Canvas/Three.js when the diagram becomes an interactive runtime visualization, simulation, game scene, shader, or 3D renderer.",
208
209
  "Use SVG animation for motion-specific vector micro-interactions; use drawio studio for static or editable technical SVG exports."
209
210
  ],
@@ -264,12 +265,15 @@
264
265
  "boundaryWorkflows": [
265
266
  "Use UI design for product-specific visual direction, brand tone, hierarchy, and visual QA of generated assets.",
266
267
  "Use implementation-from-design when a Figma, Sketch, MasterGo, Pixso, screenshot, or other external design source is authoritative.",
268
+ "Use the HTML technical diagram route for browser-ready themed workflow, sequence, data-flow, lifecycle, runbook, PII/data-lineage, and state-machine diagrams.",
269
+ "Use draw.io studio instead when the priority is editable .drawio source, official shape lookup, or manual diagrams.net editing.",
267
270
  "Use Canvas/Three.js or SVG animation workflows when the generated visual becomes an interactive renderer, shader, or motion asset rather than a static image."
268
271
  ],
269
272
  "capabilityTags": [
270
273
  "image-generation",
271
274
  "image-editing",
272
275
  "diagram-generation",
276
+ "html-diagram",
273
277
  "png-qa",
274
278
  "visual-assets",
275
279
  "autofix"
@@ -1,91 +1,91 @@
1
- # 项目说明
1
+ # Project description
2
2
 
3
- 本仓库由前端团队维护。
3
+ This repository is maintained by the front-end team.
4
4
 
5
- 核心要求:
5
+ Core requirements:
6
6
 
7
- - 在调整架构前,先理解现有代码
8
- - 优先复用,而不是重复造轮子
9
- - 保持改动小、清晰、便于评审
10
- - 先遵循项目标准,再考虑通用模式
7
+ - Understand the existing code before adjusting the architecture
8
+ - Prioritize reuse rather than reinventing the wheel
9
+ - Keep changes small, clear, and easy to review
10
+ - Follow project standards first, then consider common patterns
11
11
 
12
- ## 项目基础信息
12
+ ##Basic project information
13
13
 
14
- <!-- 请根据项目实际情况修改以下配置 -->
14
+ <!-- Please modify the following configuration according to the actual situation of the project -->
15
15
 
16
- - 语言:TypeScript
17
- - 包管理器:pnpm
18
- - 构建工具:Vite
19
- - 测试工具: Vitest + Testing Library
20
- - UI 体系:优先复用现有组件库和设计 Token
21
- - 设计实现流程:如有条件,优先使用设计工具 MCP(Figma / MasterGo / Pixso / 墨刀 / Sketch)上下文
16
+ - Language: TypeScript
17
+ - Package manager: pnpm
18
+ - Build tool: Vite
19
+ - Testing tools: Vitest + Testing Library
20
+ - UI system: Prioritize reusing existing component libraries and design tokens
21
+ - Design implementation process: If possible, give priority to using the design tool MCP (Figma / MasterGo / Pixso / Mo Knife / Sketch) context
22
22
 
23
- ## 常用命令
23
+ ## Common commands
24
24
 
25
- 优先使用仓库现有命令,不要自行发明替代命令。
25
+ Prioritize using existing commands in the warehouse instead of inventing replacement commands.
26
26
 
27
- <!-- 请根据项目实际情况修改 -->
27
+ <!-- Please modify according to the actual situation of the project -->
28
28
 
29
- - 安装:`pnpm install`
30
- - 开发:`pnpm dev`
29
+ - Installation: `pnpm install`
30
+ - Development: `pnpm dev`
31
31
  - Lint:`pnpm lint`
32
- - 类型检查:`pnpm type-check`
33
- - 测试:`pnpm test`
34
- - 构建:`pnpm build`
32
+ - Type check: `pnpm type-check`
33
+ - Test: `pnpm test`
34
+ - Build: `pnpm build`
35
35
 
36
- 如果命令缺失,先检查 `package.json`。
36
+ If the command is missing, check `package.json` first.
37
37
 
38
- ## 通用工作原则
38
+ ## General working principles
39
39
 
40
- 改代码前:
40
+ Before changing the code:
41
41
 
42
- 1. 阅读目标模块及其周边模块
43
- 2. 搜索已有可复用组件或工具函数
44
- 3. 理解当前样式和 Token 约定
45
- 4. 如果仓库里已有一套模式,不要再引入第二套
42
+ 1. Read the target module and its surrounding modules
43
+ 2. Search for existing reusable components or tool functions
44
+ 3. Understand the current style and Token convention
45
+ 4. If there is already a set of patterns in the warehouse, do not introduce a second set
46
46
 
47
- 实现时:
47
+ When implemented:
48
48
 
49
- - 保持组件职责聚焦
50
- - 将重复逻辑提取到 hooks / composables / utils
51
- - 优先使用明确类型
52
- - 优先使用可推导状态,避免重复维护状态
53
- - 除非任务明确要求破坏性变更,否则保持向后兼容
49
+ - Keep component responsibilities focused
50
+ - Extract duplicate logic to hooks/composables/utils
51
+ - Prefer explicit types
52
+ - Prioritize the use of deducible state to avoid repeated maintenance of state
53
+ - Maintain backwards compatibility unless the mission explicitly requires breaking changes
54
54
 
55
- 完成后:
55
+ After completion:
56
56
 
57
- - 执行 lint
58
- - 如有类型检查则执行 type check
59
- - 如有测试则执行测试
60
- - 总结改动文件、关键决策和剩余风险
57
+ - execute lint
58
+ - If there is a type check, execute type check
59
+ - If there is a test, execute the test
60
+ - Summarize change documents, key decisions and remaining risks
61
61
 
62
- ## Git 规范
62
+ ## Git specification
63
63
 
64
- - 提交前必须通过 lint 和类型检查
65
- - 未经我确认不要直接 commit
66
- - 分支命名: feature/xxx, fix/xxx, refactor/xxx
67
- - Commit 格式: 遵循 Conventional Commits(详见 rules/fec-git-conventions.md)
64
+ - Must pass lint and type checking before submission
65
+ - Don’t commit directly without my confirmation
66
+ - Branch naming: feature/xxx, fix/xxx, refactor/xxx
67
+ - Commit format: Follow Conventional Commits (see rules/fec-git-conventions.md for details)
68
68
 
69
- ## 设计稿实现工作流
69
+ ## Design draft implementation workflow
70
70
 
71
- 当存在设计上下文时:
71
+ When a design context exists:
72
72
 
73
- 1. 先通过 MCP 读取设计上下文(Figma / MasterGo / Pixso / 墨刀 / Sketch,摹客则使用截图/标注)
74
- 2. 检查项目现有组件体系
75
- 3. 先产出简短实现计划
76
- 4. 分步骤实现
77
- 5. 执行校验命令
78
- 6. 总结偏差和风险
73
+ 1. First read the design context through MCP (Figma / MasterGo / Pixso / Ink Knife / Sketch, Mock uses screenshots / annotations)
74
+ 2. Check the existing component system of the project
75
+ 3. First produce a short implementation plan
76
+ 4. Implement in steps
77
+ 5. Execute the verification command
78
+ 6. Summarize biases and risks
79
79
 
80
- ## 安全要求
80
+ ## Security requirements
81
81
 
82
- 不要主动暴露或打印任何密钥。
83
- 除非任务明确要求且权限允许,不要读取或修改敏感文件。
84
- 除非明确要求并获得批准,不要执行破坏性 shell 命令。
82
+ Do not actively expose or print any keys.
83
+ Do not read or modify sensitive files unless explicitly required by the task and permitted by permissions.
84
+ Do not execute destructive shell commands unless explicitly requested and approved.
85
85
 
86
- ## 规则导入
86
+ ## Rule import
87
87
 
88
- <!-- 按项目技术栈选择性导入,删除不需要的行 -->
88
+ <!-- Selectively import by project technology stack and delete unnecessary lines -->
89
89
 
90
90
  @./rules/fec-vue.md
91
91
  @./rules/fec-react.md
@@ -1,105 +1,105 @@
1
- # 项目说明
1
+ # Project description
2
2
 
3
- 本仓库由前端团队维护。
3
+ This repository is maintained by the front-end team.
4
4
 
5
- 核心要求:
5
+ Core requirements:
6
6
 
7
- - 在调整架构前,先理解现有代码
8
- - 优先复用,而不是重复造轮子
9
- - 保持改动小、清晰、便于评审
10
- - 先遵循项目标准,再考虑通用模式
7
+ - Understand the existing code before adjusting the architecture
8
+ - Prioritize reuse rather than reinventing the wheel
9
+ - Keep changes small, clear, and easy to review
10
+ - Follow project standards first, then consider common patterns
11
11
 
12
- ## 项目基础信息
12
+ ##Basic project information
13
13
 
14
- <!-- 请根据项目实际情况修改以下配置 -->
14
+ <!-- Please modify the following configuration according to the actual situation of the project -->
15
15
 
16
- - 语言:TypeScript
17
- - 包管理器:pnpm
18
- - 构建工具:Vite
19
- - 测试工具: Vitest + Testing Library
20
- - UI 体系:优先复用现有组件库和设计 Token
21
- - 设计实现流程:如有条件,优先使用设计工具 MCP(Figma / MasterGo / Pixso / 墨刀 / Sketch)上下文
16
+ - Language: TypeScript
17
+ - Package manager: pnpm
18
+ - Build tool: Vite
19
+ - Testing tools: Vitest + Testing Library
20
+ - UI system: Prioritize reusing existing component libraries and design tokens
21
+ - Design implementation process: If possible, give priority to using the design tool MCP (Figma / MasterGo / Pixso / Mo Knife / Sketch) context
22
22
 
23
- ## 常用命令
23
+ ## Common commands
24
24
 
25
- 优先使用仓库现有命令,不要自行发明替代命令。
25
+ Prioritize using existing commands in the warehouse instead of inventing replacement commands.
26
26
 
27
- <!-- 请根据项目实际情况修改 -->
27
+ <!-- Please modify according to the actual situation of the project -->
28
28
 
29
- - 安装:`pnpm install`
30
- - 开发:`pnpm dev`
29
+ - Installation: `pnpm install`
30
+ - Development: `pnpm dev`
31
31
  - Lint:`pnpm lint`
32
- - 类型检查:`pnpm type-check`
33
- - 测试:`pnpm test`
34
- - 构建:`pnpm build`
32
+ - Type check: `pnpm type-check`
33
+ - Test: `pnpm test`
34
+ - Build: `pnpm build`
35
35
 
36
- 如果命令缺失,先检查 `package.json`。
36
+ If the command is missing, check `package.json` first.
37
37
 
38
- ## 通用工作原则
38
+ ## General working principles
39
39
 
40
- 改代码前:
40
+ Before changing the code:
41
41
 
42
- 1. 阅读目标模块及其周边模块
43
- 2. 搜索已有可复用组件或工具函数
44
- 3. 理解当前样式和 Token 约定
45
- 4. 如果仓库里已有一套模式,不要再引入第二套
42
+ 1. Read the target module and its surrounding modules
43
+ 2. Search for existing reusable components or tool functions
44
+ 3. Understand the current style and Token convention
45
+ 4. If there is already a set of patterns in the warehouse, do not introduce a second set
46
46
 
47
- 实现时:
47
+ When implemented:
48
48
 
49
- - 保持组件职责聚焦
50
- - 将重复逻辑提取到 hooks / composables / utils
51
- - 优先使用明确类型
52
- - 优先使用可推导状态,避免重复维护状态
53
- - 除非任务明确要求破坏性变更,否则保持向后兼容
49
+ - Keep component responsibilities focused
50
+ - Extract duplicate logic to hooks/composables/utils
51
+ - Prefer explicit types
52
+ - Prioritize the use of deducible state to avoid repeated maintenance of state
53
+ - Maintain backwards compatibility unless the mission explicitly requires breaking changes
54
54
 
55
- 完成后:
55
+ After completion:
56
56
 
57
- - 执行 lint
58
- - 如有类型检查则执行 type check
59
- - 如有测试则执行测试
60
- - 总结改动文件、关键决策和剩余风险
57
+ - execute lint
58
+ - If there is a type check, execute type check
59
+ - If there is a test, execute the test
60
+ - Summarize change documents, key decisions and remaining risks
61
61
 
62
- ## Git 规范
62
+ ## Git specification
63
63
 
64
- - 提交前必须通过 lint 和类型检查
65
- - 未经我确认不要直接 commit
66
- - 分支命名: feature/xxx, fix/xxx, refactor/xxx
67
- - Commit 格式: 遵循 Conventional Commits(详见 .codex/rules/fec-git-conventions.md)
64
+ - Must pass lint and type checking before submission
65
+ - Don’t commit directly without my confirmation
66
+ - Branch naming: feature/xxx, fix/xxx, refactor/xxx
67
+ - Commit format: Follow Conventional Commits (see .codex/rules/fec-git-conventions.md for details)
68
68
 
69
- ## 设计稿实现工作流
69
+ ## Design draft implementation workflow
70
70
 
71
- 当存在设计上下文时:
71
+ When a design context exists:
72
72
 
73
- 1. 先通过 MCP 读取设计上下文(Figma / MasterGo / Pixso / 墨刀 / Sketch,摹客则使用截图/标注)
74
- 2. 检查项目现有组件体系
75
- 3. 先产出简短实现计划
76
- 4. 分步骤实现
77
- 5. 执行校验命令
78
- 6. 总结偏差和风险
73
+ 1. First read the design context through MCP (Figma / MasterGo / Pixso / Ink Knife / Sketch, Mock uses screenshots / annotations)
74
+ 2. Check the existing component system of the project
75
+ 3. First produce a short implementation plan
76
+ 4. Implement in steps
77
+ 5. Execute the verification command
78
+ 6. Summarize biases and risks
79
79
 
80
- ## 安全要求
80
+ ## Security requirements
81
81
 
82
- 不要主动暴露或打印任何密钥。
83
- 除非任务明确要求且权限允许,不要读取或修改敏感文件。
84
- 除非明确要求并获得批准,不要执行破坏性 shell 命令。
82
+ Do not actively expose or print any keys.
83
+ Do not read or modify sensitive files unless explicitly required by the task and permitted by permissions.
84
+ Do not execute destructive shell commands unless explicitly requested and approved.
85
85
 
86
- ## 详细规则
86
+ ## Detailed rules
87
87
 
88
- 项目详细规则位于 `.codex/rules/` 目录,按技术栈选择性参考:
88
+ The detailed rules of the project are located in the `.codex/rules/` directory, selective reference by technology stack:
89
89
 
90
- - fec-vue.md / fec-react.md - 框架组件规范
91
- - fec-typescript.md - TypeScript/JavaScript 规范(与 `typescript-reviewer` 子代理联动)
92
- - fec-design-system.md - 设计系统与 Token
93
- - fec-testing.md - 测试规范
94
- - fec-git-conventions.md - Git 提交规范
95
- - fec-i18n.md - 国际化规范(如需要)
96
- - fec-performance.md - 性能优化
97
- - fec-api-layer.md - API 层规范
98
- - fec-state-management.md - 状态管理
99
- - fec-error-handling.md - 错误处理
100
- - fec-naming-conventions.md - 命名规范
101
- - fec-code-comments.md - 代码注释(何时写、写什么)
102
- - fec-ci-cd.md - CI/CD 规范
103
- - fec-refactoring.md - 重构约束
104
- - fec-agent-workflow.md - 子代理协作边界
105
- - fec-working-modes.md - 调研、计划、开发、评审、收尾模式
90
+ - fec-vue.md/fec-react.md - Framework component specification
91
+ - fec-typescript.md - TypeScript/JavaScript specification (linked with `typescript-reviewer` subagent)
92
+ - fec-design-system.md - Design system and Token
93
+ - fec-testing.md - Test specification
94
+ - fec-git-conventions.md - Git commit conventions
95
+ - fec-i18n.md - Internationalization specification (if needed)
96
+ - fec-performance.md - performance optimization
97
+ - fec-api-layer.md - API layer specification
98
+ - fec-state-management.md - State management
99
+ - fec-error-handling.md - error handling
100
+ - fec-naming-conventions.md - naming conventions
101
+ - fec-code-comments.md - Code comments (when to write, what to write)
102
+ - fec-ci-cd.md - CI/CD specification
103
+ - fec-refactoring.md - Refactoring constraints
104
+ - fec-agent-workflow.md - subagent collaboration boundary
105
+ - fec-working-modes.md - research, planning, development, review, closing mode
@@ -1,8 +1,8 @@
1
- # Frontend Craft - Codex 项目配置
2
- # 复制到 .codex/config.toml 并根据项目需要调整
1
+ # Frontend Craft - Codex project configuration
2
+ # Copy to .codex/config.toml and adjust according to project needs
3
3
 
4
- # MCP 设计工具集成(按需取消注释并配置环境变量)
5
- # 需要设置: FIGMA_API_KEY, SKETCH_API_KEY, MG_MCP_TOKEN, MODAO_TOKEN
4
+ # MCP design tool integration (uncomment and configure environment variables as needed)
5
+ # Required settings: FIGMA_API_KEY, SKETCH_API_KEY, MG_MCP_TOKEN, MODAO_TOKEN
6
6
 
7
7
  # [mcp_servers.figma]
8
8
  # command = "npx"
@@ -1,101 +1,101 @@
1
- # 项目说明
1
+ # Project description
2
2
 
3
- 本工作区由前端团队维护(由 **frontend-craft** OpenClaw 插件模板初始化)。
3
+ This workspace is maintained by the frontend team (initialized by the **frontend-craft** OpenClaw plugin template).
4
4
 
5
- 核心要求:
5
+ Core requirements:
6
6
 
7
- - 在调整架构前,先理解现有代码
8
- - 优先复用,而不是重复造轮子
9
- - 保持改动小、清晰、便于评审
10
- - 先遵循项目标准,再考虑通用模式
7
+ - Understand the existing code before adjusting the architecture
8
+ - Prioritize reuse rather than reinventing the wheel
9
+ - Keep changes small, clear, and easy to review
10
+ - Follow project standards first, then consider common patterns
11
11
 
12
- ## 项目基础信息
12
+ ##Basic project information
13
13
 
14
- <!-- 请根据项目实际情况修改以下配置 -->
14
+ <!-- Please modify the following configuration according to the actual situation of the project -->
15
15
 
16
- - 语言:TypeScript
17
- - 包管理器:pnpm
18
- - 构建工具:Vite
19
- - 测试工具: Vitest + Testing Library
20
- - UI 体系:优先复用现有组件库和设计 Token
21
- - 设计实现流程:如有条件,优先使用设计工具 MCP(Figma / MasterGo / Pixso / 墨刀 / Sketch)上下文
16
+ - Language: TypeScript
17
+ - Package manager: pnpm
18
+ - Build tool: Vite
19
+ - Testing tools: Vitest + Testing Library
20
+ - UI system: Prioritize reusing existing component libraries and design tokens
21
+ - Design implementation process: If possible, give priority to using the design tool MCP (Figma / MasterGo / Pixso / Mo Knife / Sketch) context
22
22
 
23
- ## 常用命令
23
+ ## Common commands
24
24
 
25
- 优先使用仓库现有命令,不要自行发明替代命令。
25
+ Prioritize using existing commands in the warehouse instead of inventing replacement commands.
26
26
 
27
- <!-- 请根据项目实际情况修改 -->
27
+ <!-- Please modify according to the actual situation of the project -->
28
28
 
29
- - 安装:`pnpm install`
30
- - 开发:`pnpm dev`
29
+ - Installation: `pnpm install`
30
+ - Development: `pnpm dev`
31
31
  - Lint:`pnpm lint`
32
- - 类型检查:`pnpm type-check`
33
- - 测试:`pnpm test`
34
- - 构建:`pnpm build`
32
+ - Type check: `pnpm type-check`
33
+ - Test: `pnpm test`
34
+ - Build: `pnpm build`
35
35
 
36
- 如果命令缺失,先检查 `package.json`。
36
+ If the command is missing, check `package.json` first.
37
37
 
38
- ## 通用工作原则
38
+ ## General working principles
39
39
 
40
- 改代码前:
40
+ Before changing the code:
41
41
 
42
- 1. 阅读目标模块及其周边模块
43
- 2. 搜索已有可复用组件或工具函数
44
- 3. 理解当前样式和 Token 约定
45
- 4. 如果仓库里已有一套模式,不要再引入第二套
42
+ 1. Read the target module and its surrounding modules
43
+ 2. Search for existing reusable components or tool functions
44
+ 3. Understand the current style and Token convention
45
+ 4. If there is already a set of patterns in the warehouse, do not introduce a second set
46
46
 
47
- 实现时:
47
+ When implemented:
48
48
 
49
- - 保持组件职责聚焦
50
- - 将重复逻辑提取到 hooks / composables / utils
51
- - 优先使用明确类型
52
- - 优先使用可推导状态,避免重复维护状态
53
- - 除非任务明确要求破坏性变更,否则保持向后兼容
49
+ - Keep component responsibilities focused
50
+ - Extract duplicate logic to hooks/composables/utils
51
+ - Prefer explicit types
52
+ - Prioritize the use of deducible state to avoid repeated maintenance of state
53
+ - Maintain backwards compatibility unless the mission explicitly requires breaking changes
54
54
 
55
- 完成后:
55
+ After completion:
56
56
 
57
- - 执行 lint
58
- - 如有类型检查则执行 type check
59
- - 如有测试则执行测试
60
- - 总结改动文件、关键决策和剩余风险
57
+ - execute lint
58
+ - If there is a type check, execute type check
59
+ - If there is a test, execute the test
60
+ - Summarize change documents, key decisions and remaining risks
61
61
 
62
- ## Git 规范
62
+ ## Git specification
63
63
 
64
- - 提交前必须通过 lint 和类型检查
65
- - 未经我确认不要直接 commit
66
- - 分支命名: feature/xxx, fix/xxx, refactor/xxx
67
- - Commit 格式: 遵循 Conventional Commits(详见本文件同目录 skills 下的 `git-conventions.md`)
64
+ - Must pass lint and type checking before submission
65
+ - Don’t commit directly without my confirmation
66
+ - Branch naming: feature/xxx, fix/xxx, refactor/xxx
67
+ - Commit format: Follow Conventional Commits (for details, see `git-conventions.md` under skills in the same directory as this file)
68
68
 
69
- ## 设计稿实现工作流
69
+ ## Design draft implementation workflow
70
70
 
71
- 当存在设计上下文时:
71
+ When a design context exists:
72
72
 
73
- 1. 先通过 MCP 读取设计上下文(Figma / MasterGo / Pixso / 墨刀 / Sketch,摹客则使用截图/标注)
74
- 2. 检查项目现有组件体系
75
- 3. 先产出简短实现计划
76
- 4. 分步骤实现
77
- 5. 执行校验命令
78
- 6. 总结偏差和风险
73
+ 1. First read the design context through MCP (Figma / MasterGo / Pixso / Ink Knife / Sketch, Mock uses screenshots / annotations)
74
+ 2. Check the existing component system of the project
75
+ 3. First produce a short implementation plan
76
+ 4. Implement in steps
77
+ 5. Execute the verification command
78
+ 6. Summarize biases and risks
79
79
 
80
- ## 安全要求
80
+ ## Security requirements
81
81
 
82
- 不要主动暴露或打印任何密钥。
83
- 除非任务明确要求且权限允许,不要读取或修改敏感文件。
84
- 除非明确要求并获得批准,不要执行破坏性 shell 命令。
82
+ Do not actively expose or print any keys.
83
+ Do not read or modify sensitive files unless explicitly required by the task and permitted by permissions.
84
+ Do not execute destructive shell commands unless explicitly requested and approved.
85
85
 
86
- ## 规则与扩展技能
86
+ ## Rules and Extended Skills
87
87
 
88
- OpenClaw 会从本工作区的 `skills/` 加载 Markdown 技能。初始化后规则文件位于:
88
+ OpenClaw will load Markdown skills from `skills/` in this workspace. After initialization the rules file is located at:
89
89
 
90
90
  `skills/frontend-craft-rules/`
91
91
 
92
- 按需阅读并在对话中引用相关片段,例如:
92
+ Read as needed and quote relevant passages in the conversation, for example:
93
93
 
94
- - `skills/frontend-craft-rules/fec-vue.md` / `fec-react.md` — 框架规范
95
- - `skills/frontend-craft-rules/fec-typescript.md` — TypeScript/JavaScript(与 `typescript-reviewer` 剧本联动)
96
- - `skills/frontend-craft-rules/fec-code-comments.md` — 代码注释(何时写、写什么)
97
- - `skills/frontend-craft-rules/fec-testing.md`、`fec-performance.md`、`fec-design-system.md` 等
98
- - `skills/frontend-craft-rules/fec-agent-workflow.md` — 子代理协作边界
99
- - `skills/frontend-craft-rules/fec-working-modes.md` — 调研、计划、开发、评审、收尾模式
94
+ - `skills/frontend-craft-rules/fec-vue.md` / `fec-react.md` — Framework specification
95
+ - `skills/frontend-craft-rules/fec-typescript.md` — TypeScript/JavaScript (linked with `typescript-reviewer` script)
96
+ - `skills/frontend-craft-rules/fec-code-comments.md` — code comments (when to write, what to write)
97
+ - `skills/frontend-craft-rules/fec-testing.md`, `fec-performance.md`, `fec-design-system.md`, etc.
98
+ - `skills/frontend-craft-rules/fec-agent-workflow.md` — subagent collaboration boundary
99
+ - `skills/frontend-craft-rules/fec-working-modes.md` — research, planning, development, review, finishing modes
100
100
 
101
- 若项目不需要某项规则,可删除对应文件或在对话中说明忽略。
101
+ If the project does not require a certain rule, you can delete the corresponding file or explain it in the dialog to ignore it.
@@ -1,12 +1,12 @@
1
- # OpenClaw 配置说明(替代原 Claude Code settings.json)
1
+ # OpenClaw configuration instructions (replacing the original Claude Code settings.json)
2
2
 
3
- 本插件不再提供 `settings.json`(Claude Code 专用)。在 OpenClaw 中请使用网关配置文件,例如:
3
+ This plugin no longer provides `settings.json` (Claude Code only). In OpenClaw please use a gateway configuration file, for example:
4
4
 
5
- - 用户级:`~/.openclaw/openclaw.json`(或你的 profile 路径)
6
- - 工作区:按 `openclaw configure` / 文档约定
5
+ - User level: `~/.openclaw/openclaw.json` (or your profile path)
6
+ - workspace: as per `openclaw configure`/documentation convention
7
7
 
8
- 常用关注点:
8
+ Common concerns:
9
9
 
10
- - **沙箱与执行策略**:参见官方文档 [Sandboxing](https://docs.openclaw.ai/gateway/sandboxing) 中的 `agents.defaults.sandbox` 等键
11
- - **插件开关**:`plugins.entries.frontend-craft` 下可覆盖本插件 `configSchema` 中的布尔项(如 `formatAfterWrite`、`notifyOnAgentEnd`)
12
- - **MCP**:原生插件不会自动合并仓库根目录的 `.mcp.json`;请将其中 `mcpServers` 合并到你的 embedded Pi / 网关 MCP 配置(见主 README 的 MCP 章节)
10
+ - **Sandbox and execution strategy**: See the `agents.defaults.sandbox` and other keys in the official document [Sandboxing](https://docs.openclaw.ai/gateway/sandboxing)
11
+ - **Plug-in switch**: `plugins.entries.frontend-craft` can override the Boolean items in the `configSchema` of this plugin (such as `formatAfterWrite`, `notifyOnAgentEnd`)
12
+ - **MCP**: The native plug-in will not automatically merge `.mcp.json` in the warehouse root directory; please merge `mcpServers` into your embedded Pi/gateway MCP configuration (see the MCP chapter of the main README)