@bovinphang/frontend-craft 2.7.0 → 2.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (502) hide show
  1. package/.claude-plugin/marketplace.json +3 -3
  2. package/.claude-plugin/plugin.json +1 -1
  3. package/CHANGELOG.md +378 -305
  4. package/CHANGELOG.zh-CN.md +377 -304
  5. package/CONTRIBUTING.md +371 -361
  6. package/CONTRIBUTING.zh-CN.md +371 -361
  7. package/README.md +545 -493
  8. package/README.openclaw.md +359 -264
  9. package/README.openclaw.zh-CN.md +359 -264
  10. package/README.zh-CN.md +545 -493
  11. package/agents/fec-architect.md +70 -70
  12. package/agents/fec-code-reviewer.md +103 -82
  13. package/agents/fec-debugger.md +20 -20
  14. package/agents/fec-design-token-mapper.md +36 -36
  15. package/agents/fec-doc-updater.md +13 -13
  16. package/agents/fec-e2e-runner.md +45 -45
  17. package/agents/fec-figma-implementer.md +59 -59
  18. package/agents/fec-performance-optimizer.md +128 -128
  19. package/agents/fec-refactor-cleaner.md +17 -14
  20. package/agents/fec-refactoring-expert.md +81 -0
  21. package/agents/fec-security-reviewer.md +82 -67
  22. package/agents/fec-test-planner.md +27 -27
  23. package/agents/fec-typescript-reviewer.md +103 -87
  24. package/agents/fec-ui-checker.md +64 -64
  25. package/commands/fec-debug.md +19 -19
  26. package/commands/fec-doc-sync.md +11 -11
  27. package/commands/fec-init.md +37 -38
  28. package/commands/fec-plan.md +58 -58
  29. package/commands/fec-refactor-clean.md +11 -11
  30. package/commands/fec-refactor-plan.md +17 -0
  31. package/commands/fec-refactor.md +18 -0
  32. package/commands/fec-review.md +71 -41
  33. package/commands/fec-scaffold.md +41 -41
  34. package/commands/fec-smell.md +17 -0
  35. package/commands/fec-tdd.md +17 -13
  36. package/dist/bin/frontend-craft.js +190 -36
  37. package/dist/hooks/fec-run-tests.js +5 -1
  38. package/dist/hooks/fec-session-start.js +1 -1
  39. package/docs/example-prompts.md +157 -137
  40. package/docs/ja-JP/README.md +534 -493
  41. package/docs/ko-KR/README.md +534 -493
  42. package/docs/project-structure.md +151 -123
  43. package/docs/refactoring/README.md +50 -0
  44. package/docs/refactoring/catalog.md +105 -0
  45. package/docs/refactoring/smell-refactoring-matrix.md +41 -0
  46. package/docs/review-and-diagram-workflows.md +39 -0
  47. package/docs/runtimes/antigravity.md +18 -10
  48. package/docs/runtimes/augment.md +18 -10
  49. package/docs/runtimes/claude.md +191 -177
  50. package/docs/runtimes/claude.zh-CN.md +189 -175
  51. package/docs/runtimes/cline.md +18 -10
  52. package/docs/runtimes/codebuddy.md +18 -10
  53. package/docs/runtimes/codex.md +18 -10
  54. package/docs/runtimes/compatibility.md +27 -0
  55. package/docs/runtimes/copilot.md +18 -10
  56. package/docs/runtimes/cursor.md +18 -10
  57. package/docs/runtimes/gemini.md +18 -10
  58. package/docs/runtimes/kilo.md +18 -10
  59. package/docs/runtimes/openclaw.md +18 -10
  60. package/docs/runtimes/opencode.md +18 -10
  61. package/docs/runtimes/qoder.md +18 -19
  62. package/docs/runtimes/trae.md +18 -10
  63. package/docs/runtimes/windsurf.md +18 -10
  64. package/docs/superpowers/plans/2026-09-26-content-integrity.md +145 -0
  65. package/docs/superpowers/plans/2026-09-26-diagram-quality.md +170 -0
  66. package/docs/superpowers/specs/2026-09-26-diagram-quality-design.md +77 -0
  67. package/docs/superpowers/specs/2026-09-26-project-optimization-design.md +95 -0
  68. package/docs/zh-CN/example-prompts.md +157 -137
  69. package/docs/zh-CN/project-structure.md +148 -123
  70. package/docs/zh-CN/review-and-diagram-workflows.md +39 -0
  71. package/docs/zh-TW/README.md +534 -493
  72. package/localized/zh-CN/agents/fec-architect.md +125 -0
  73. package/localized/zh-CN/agents/fec-code-reviewer.md +171 -0
  74. package/localized/zh-CN/agents/fec-debugger.md +44 -0
  75. package/localized/zh-CN/agents/fec-design-token-mapper.md +75 -0
  76. package/localized/zh-CN/agents/fec-doc-updater.md +30 -0
  77. package/localized/zh-CN/agents/fec-e2e-runner.md +107 -0
  78. package/localized/zh-CN/agents/fec-figma-implementer.md +104 -0
  79. package/localized/zh-CN/agents/fec-performance-optimizer.md +293 -0
  80. package/localized/zh-CN/agents/fec-refactor-cleaner.md +35 -0
  81. package/localized/zh-CN/agents/fec-refactoring-expert.md +53 -0
  82. package/localized/zh-CN/agents/fec-security-reviewer.md +132 -0
  83. package/localized/zh-CN/agents/fec-test-planner.md +50 -0
  84. package/localized/zh-CN/agents/fec-typescript-reviewer.md +158 -0
  85. package/localized/zh-CN/agents/fec-ui-checker.md +120 -0
  86. package/localized/zh-CN/commands/fec-debug.md +30 -0
  87. package/localized/zh-CN/commands/fec-doc-sync.md +19 -0
  88. package/localized/zh-CN/commands/fec-init.md +70 -0
  89. package/localized/zh-CN/commands/fec-plan.md +94 -0
  90. package/localized/zh-CN/commands/fec-refactor-clean.md +19 -0
  91. package/localized/zh-CN/commands/fec-refactor-plan.md +15 -0
  92. package/localized/zh-CN/commands/fec-refactor.md +14 -0
  93. package/localized/zh-CN/commands/fec-review.md +97 -0
  94. package/localized/zh-CN/commands/fec-scaffold.md +205 -0
  95. package/localized/zh-CN/commands/fec-smell.md +13 -0
  96. package/localized/zh-CN/commands/fec-tdd.md +25 -0
  97. package/localized/zh-CN/skills/TEMPLATE.md +155 -0
  98. package/localized/zh-CN/skills/eval_queries.json +1257 -0
  99. package/localized/zh-CN/skills/fec-accessibility-check/SKILL.md +39 -0
  100. package/localized/zh-CN/skills/fec-accessibility-check/references/report-template.md +23 -0
  101. package/localized/zh-CN/skills/fec-accessibility-check/references/screen-reader-testing.md +33 -0
  102. package/localized/zh-CN/skills/fec-alchemy/SKILL.md +74 -0
  103. package/localized/zh-CN/skills/fec-alchemy/assets/absorption-plan-template.md +47 -0
  104. package/localized/zh-CN/skills/fec-alchemy/assets/intake-template.md +55 -0
  105. package/localized/zh-CN/skills/fec-alchemy/assets/review-checklist.md +31 -0
  106. package/localized/zh-CN/skills/fec-alchemy/references/methodology.md +94 -0
  107. package/localized/zh-CN/skills/fec-alchemy/references/originality-and-licensing.md +57 -0
  108. package/localized/zh-CN/skills/fec-api-integration/SKILL.md +78 -0
  109. package/localized/zh-CN/skills/fec-api-integration/references/integration-patterns.md +80 -0
  110. package/localized/zh-CN/skills/fec-backend-requirements-handoff/SKILL.md +45 -0
  111. package/localized/zh-CN/skills/fec-browser-storage/SKILL.md +34 -0
  112. package/localized/zh-CN/skills/fec-browser-storage/references/storage-patterns.md +65 -0
  113. package/localized/zh-CN/skills/fec-canvas-threejs/SKILL.md +66 -0
  114. package/localized/zh-CN/skills/fec-canvas-threejs/references/rendering-patterns.md +67 -0
  115. package/localized/zh-CN/skills/fec-canvas-threejs/references/shader-webgl-patterns.md +67 -0
  116. package/localized/zh-CN/skills/fec-code-review/SKILL.md +162 -0
  117. package/localized/zh-CN/skills/fec-code-review/references/report-template.md +39 -0
  118. package/localized/zh-CN/skills/fec-code-smells/SKILL.md +33 -0
  119. package/localized/zh-CN/skills/fec-code-smells/references/detection-guide.md +25 -0
  120. package/localized/zh-CN/skills/fec-code-smells/references/smell-catalog.md +817 -0
  121. package/localized/zh-CN/skills/fec-code-smells/references/smell-to-refactoring-map.md +265 -0
  122. package/localized/zh-CN/skills/fec-component-testing/SKILL.md +119 -0
  123. package/localized/zh-CN/skills/fec-data-fetching/SKILL.md +62 -0
  124. package/localized/zh-CN/skills/fec-data-fetching/references/query-patterns.md +103 -0
  125. package/localized/zh-CN/skills/fec-debug-framework/SKILL.md +157 -0
  126. package/localized/zh-CN/skills/fec-debug-framework/references/report-template.md +58 -0
  127. package/localized/zh-CN/skills/fec-dependency-upgrade/SKILL.md +34 -0
  128. package/localized/zh-CN/skills/fec-dependency-upgrade/references/dependency-upgrade-workflow.md +56 -0
  129. package/localized/zh-CN/skills/fec-doc-sync/SKILL.md +39 -0
  130. package/localized/zh-CN/skills/fec-drawio-studio/SKILL.md +73 -0
  131. package/localized/zh-CN/skills/fec-drawio-studio/data/THIRD_PARTY_NOTICES.md +10 -0
  132. package/localized/zh-CN/skills/fec-drawio-studio/data/brand-icons.json +878 -0
  133. package/localized/zh-CN/skills/fec-drawio-studio/data/shape-index.json +83570 -0
  134. package/localized/zh-CN/skills/fec-drawio-studio/references/data-residency.md +27 -0
  135. package/localized/zh-CN/skills/fec-drawio-studio/references/diagram-patterns.md +60 -0
  136. package/localized/zh-CN/skills/fec-drawio-studio/references/flowchart-quality.md +49 -0
  137. package/localized/zh-CN/skills/fec-drawio-studio/references/layout-and-export.md +72 -0
  138. package/localized/zh-CN/skills/fec-drawio-studio/references/troubleshooting.md +29 -0
  139. package/localized/zh-CN/skills/fec-drawio-studio/references/xml-and-mermaid.md +58 -0
  140. package/localized/zh-CN/skills/fec-drawio-studio/scripts/brand-symbols.mjs +99 -0
  141. package/localized/zh-CN/skills/fec-drawio-studio/scripts/diagram-lint.mjs +205 -0
  142. package/localized/zh-CN/skills/fec-drawio-studio/scripts/diagram-url.mjs +102 -0
  143. package/localized/zh-CN/skills/fec-drawio-studio/scripts/drawio-export.mjs +134 -0
  144. package/localized/zh-CN/skills/fec-drawio-studio/scripts/layout-graph.mjs +107 -0
  145. package/localized/zh-CN/skills/fec-drawio-studio/scripts/png-embed-fix.mjs +26 -0
  146. package/localized/zh-CN/skills/fec-drawio-studio/scripts/scan-go-packages.mjs +36 -0
  147. package/localized/zh-CN/skills/fec-drawio-studio/scripts/scan-js-modules.mjs +52 -0
  148. package/localized/zh-CN/skills/fec-drawio-studio/scripts/scan-python-classes.mjs +30 -0
  149. package/localized/zh-CN/skills/fec-drawio-studio/scripts/scan-python-modules.mjs +55 -0
  150. package/localized/zh-CN/skills/fec-drawio-studio/scripts/scan-rust-modules.mjs +35 -0
  151. package/localized/zh-CN/skills/fec-drawio-studio/scripts/scan-ts-modules.mjs +7 -0
  152. package/localized/zh-CN/skills/fec-drawio-studio/scripts/shape-query.mjs +121 -0
  153. package/localized/zh-CN/skills/fec-drawio-studio/scripts/studio-core.mjs +139 -0
  154. package/localized/zh-CN/skills/fec-drawio-studio/styles/built-in/corporate.json +49 -0
  155. package/localized/zh-CN/skills/fec-drawio-studio/styles/built-in/default.json +49 -0
  156. package/localized/zh-CN/skills/fec-drawio-studio/styles/built-in/handdrawn.json +49 -0
  157. package/localized/zh-CN/skills/fec-drawio-studio/styles/schema.json +112 -0
  158. package/localized/zh-CN/skills/fec-e2e-testing/SKILL.md +42 -0
  159. package/localized/zh-CN/skills/fec-e2e-testing/references/e2e-ci-reporting.md +62 -0
  160. package/localized/zh-CN/skills/fec-e2e-testing/references/e2e-special-scenarios.md +52 -0
  161. package/localized/zh-CN/skills/fec-e2e-testing/references/e2e-visual-regression.md +60 -0
  162. package/localized/zh-CN/skills/fec-e2e-testing/references/playwright-patterns.md +95 -0
  163. package/localized/zh-CN/skills/fec-form-handling/SKILL.md +76 -0
  164. package/localized/zh-CN/skills/fec-form-handling/references/advanced-form-patterns.md +101 -0
  165. package/localized/zh-CN/skills/fec-image-generation/SKILL.md +110 -0
  166. package/localized/zh-CN/skills/fec-image-generation/assets/interactive-diagram.html +371 -0
  167. package/localized/zh-CN/skills/fec-image-generation/assets/quality-examples/README.md +14 -0
  168. package/localized/zh-CN/skills/fec-image-generation/assets/quality-examples/architecture.json +121 -0
  169. package/localized/zh-CN/skills/fec-image-generation/assets/quality-examples/invalid-explicit.json +41 -0
  170. package/localized/zh-CN/skills/fec-image-generation/assets/quality-examples/sequence.json +53 -0
  171. package/localized/zh-CN/skills/fec-image-generation/assets/quality-examples/sequence.mmd +21 -0
  172. package/localized/zh-CN/skills/fec-image-generation/assets/quality-examples/workflow.json +98 -0
  173. package/localized/zh-CN/skills/fec-image-generation/assets/quality-examples/workflow.mmd +7 -0
  174. package/localized/zh-CN/skills/fec-image-generation/references/artifact-routing.md +80 -0
  175. package/localized/zh-CN/skills/fec-image-generation/references/diagram-workflows.md +81 -0
  176. package/localized/zh-CN/skills/fec-image-generation/references/html-technical-diagrams.md +243 -0
  177. package/localized/zh-CN/skills/fec-image-generation/references/png-qa-autofix.md +37 -0
  178. package/localized/zh-CN/skills/fec-image-generation/scripts/diagram-browser.mjs +90 -0
  179. package/localized/zh-CN/skills/fec-image-generation/scripts/diagram-layout.mjs +176 -0
  180. package/localized/zh-CN/skills/fec-image-generation/scripts/export-diagram.mjs +332 -0
  181. package/localized/zh-CN/skills/fec-image-generation/scripts/interactive-diagram-server.mjs +654 -0
  182. package/localized/zh-CN/skills/fec-image-generation/scripts/mermaid-render.mjs +64 -0
  183. package/localized/zh-CN/skills/fec-image-generation/scripts/png-qa.mjs +462 -0
  184. package/localized/zh-CN/skills/fec-image-generation/scripts/tech-diagram-render.mjs +1537 -0
  185. package/localized/zh-CN/skills/fec-implement-from-design/SKILL.md +129 -0
  186. package/localized/zh-CN/skills/fec-implement-from-design/references/design-plan-template.md +36 -0
  187. package/localized/zh-CN/skills/fec-legacy-to-modern-migration/SKILL.md +46 -0
  188. package/localized/zh-CN/skills/fec-legacy-to-modern-migration/references/migration-execution-checklist.md +110 -0
  189. package/localized/zh-CN/skills/fec-legacy-to-modern-migration/references/migration-report-template.md +41 -0
  190. package/localized/zh-CN/skills/fec-legacy-to-modern-migration/references/migration-strategy-and-mapping.md +48 -0
  191. package/localized/zh-CN/skills/fec-legacy-web-standard/SKILL.md +35 -0
  192. package/localized/zh-CN/skills/fec-legacy-web-standard/references/legacy-patterns.md +85 -0
  193. package/localized/zh-CN/skills/fec-list-virtualization/SKILL.md +34 -0
  194. package/localized/zh-CN/skills/fec-list-virtualization/references/virtualization-patterns.md +80 -0
  195. package/localized/zh-CN/skills/fec-monorepo-project-standard/SKILL.md +142 -0
  196. package/localized/zh-CN/skills/fec-motion-interaction/SKILL.md +73 -0
  197. package/localized/zh-CN/skills/fec-motion-interaction/references/motion-patterns.md +112 -0
  198. package/localized/zh-CN/skills/fec-nextjs-project-standard/SKILL.md +123 -0
  199. package/localized/zh-CN/skills/fec-nuxt-project-standard/SKILL.md +122 -0
  200. package/localized/zh-CN/skills/fec-performance-optimization/SKILL.md +80 -0
  201. package/localized/zh-CN/skills/fec-performance-optimization/references/framework-performance-patterns.md +38 -0
  202. package/localized/zh-CN/skills/fec-performance-optimization/references/report-template.md +59 -0
  203. package/localized/zh-CN/skills/fec-pwa-implementation/SKILL.md +35 -0
  204. package/localized/zh-CN/skills/fec-pwa-implementation/references/manifest-and-icons.md +53 -0
  205. package/localized/zh-CN/skills/fec-pwa-implementation/references/service-worker-workbox.md +68 -0
  206. package/localized/zh-CN/skills/fec-react-project-standard/SKILL.md +91 -0
  207. package/localized/zh-CN/skills/fec-react-project-standard/references/react-performance-patterns.md +35 -0
  208. package/localized/zh-CN/skills/fec-react-project-standard/references/react-project-structure.md +197 -0
  209. package/localized/zh-CN/skills/fec-react-project-standard/references/react-quality-patterns.md +131 -0
  210. package/localized/zh-CN/skills/fec-react-project-standard/references/react-runtime-patterns.md +293 -0
  211. package/localized/zh-CN/skills/fec-refactor-clean/SKILL.md +54 -0
  212. package/localized/zh-CN/skills/fec-refactor-clean/references/report-template.md +42 -0
  213. package/localized/zh-CN/skills/fec-refactoring/SKILL.md +83 -0
  214. package/localized/zh-CN/skills/fec-refactoring/references/principles.md +43 -0
  215. package/localized/zh-CN/skills/fec-refactoring/references/refactoring-vs-feature-change.md +25 -0
  216. package/localized/zh-CN/skills/fec-refactoring/references/when-to-refactor.md +17 -0
  217. package/localized/zh-CN/skills/fec-refactoring/references/workflow.md +59 -0
  218. package/localized/zh-CN/skills/fec-refactoring-api/SKILL.md +25 -0
  219. package/localized/zh-CN/skills/fec-refactoring-api/references/api-refactorings.md +496 -0
  220. package/localized/zh-CN/skills/fec-refactoring-catalog/SKILL.md +21 -0
  221. package/localized/zh-CN/skills/fec-refactoring-catalog/references/catalog-index.md +99 -0
  222. package/localized/zh-CN/skills/fec-refactoring-catalog/references/composition-guide.md +49 -0
  223. package/localized/zh-CN/skills/fec-refactoring-catalog/references/selection-guide.md +41 -0
  224. package/localized/zh-CN/skills/fec-refactoring-control/SKILL.md +25 -0
  225. package/localized/zh-CN/skills/fec-refactoring-control/references/conditional-refactorings.md +299 -0
  226. package/localized/zh-CN/skills/fec-refactoring-data/SKILL.md +25 -0
  227. package/localized/zh-CN/skills/fec-refactoring-data/references/data-refactorings.md +248 -0
  228. package/localized/zh-CN/skills/fec-refactoring-encapsulation/SKILL.md +25 -0
  229. package/localized/zh-CN/skills/fec-refactoring-encapsulation/references/encapsulation-refactorings.md +452 -0
  230. package/localized/zh-CN/skills/fec-refactoring-functions/SKILL.md +25 -0
  231. package/localized/zh-CN/skills/fec-refactoring-functions/references/function-refactorings.md +567 -0
  232. package/localized/zh-CN/skills/fec-refactoring-inheritance/SKILL.md +25 -0
  233. package/localized/zh-CN/skills/fec-refactoring-inheritance/references/inheritance-refactorings.md +550 -0
  234. package/localized/zh-CN/skills/fec-refactoring-move-features/SKILL.md +25 -0
  235. package/localized/zh-CN/skills/fec-refactoring-move-features/references/moving-refactorings.md +453 -0
  236. package/localized/zh-CN/skills/fec-refactoring-validation/SKILL.md +52 -0
  237. package/localized/zh-CN/skills/fec-refactoring-validation/references/behavior-preservation.md +15 -0
  238. package/localized/zh-CN/skills/fec-refactoring-validation/references/refactoring-test-checklist.md +25 -0
  239. package/localized/zh-CN/skills/fec-responsive-layout/SKILL.md +34 -0
  240. package/localized/zh-CN/skills/fec-responsive-layout/references/responsive-layout-patterns.md +70 -0
  241. package/localized/zh-CN/skills/fec-route-protection/SKILL.md +135 -0
  242. package/localized/zh-CN/skills/fec-security-review/SKILL.md +54 -0
  243. package/localized/zh-CN/skills/fec-security-review/references/report-template.md +37 -0
  244. package/localized/zh-CN/skills/fec-security-review/references/security-checklist.md +64 -0
  245. package/localized/zh-CN/skills/fec-source-driven-development/SKILL.md +87 -0
  246. package/localized/zh-CN/skills/fec-state-management/SKILL.md +140 -0
  247. package/localized/zh-CN/skills/fec-state-management/references/state-patterns.md +109 -0
  248. package/localized/zh-CN/skills/fec-storybook-component-doc/SKILL.md +37 -0
  249. package/localized/zh-CN/skills/fec-storybook-component-doc/references/story-patterns.md +118 -0
  250. package/localized/zh-CN/skills/fec-svg-animation/SKILL.md +148 -0
  251. package/localized/zh-CN/skills/fec-tailwind-design-system/SKILL.md +34 -0
  252. package/localized/zh-CN/skills/fec-tailwind-design-system/references/tailwind-system-patterns.md +59 -0
  253. package/localized/zh-CN/skills/fec-tdd-workflow/SKILL.md +55 -0
  254. package/localized/zh-CN/skills/fec-testing-strategy/SKILL.md +45 -0
  255. package/localized/zh-CN/skills/fec-typescript-project-standard/SKILL.md +54 -0
  256. package/localized/zh-CN/skills/fec-typescript-project-standard/references/type-safety-patterns.md +102 -0
  257. package/localized/zh-CN/skills/fec-typescript-project-standard/references/type-safety.md +148 -0
  258. package/localized/zh-CN/skills/fec-ui-design/SKILL.md +108 -0
  259. package/localized/zh-CN/skills/fec-ui-design/data/product-rules.json +231 -0
  260. package/localized/zh-CN/skills/fec-ui-design/data/stack-ui-rules.json +146 -0
  261. package/localized/zh-CN/skills/fec-ui-design/data/style-archetypes.json +373 -0
  262. package/localized/zh-CN/skills/fec-ui-design/data/ux-quality-rules.json +203 -0
  263. package/localized/zh-CN/skills/fec-ui-design/references/design-intelligence.md +97 -0
  264. package/localized/zh-CN/skills/fec-ui-design/references/master-page-overrides.md +30 -0
  265. package/localized/zh-CN/skills/fec-ui-design/references/pre-delivery-checklist.md +39 -0
  266. package/localized/zh-CN/skills/fec-ui-design/scripts/design-system.mjs +648 -0
  267. package/localized/zh-CN/skills/fec-validation-fix/SKILL.md +51 -0
  268. package/localized/zh-CN/skills/fec-validation-fix/references/report-template.md +43 -0
  269. package/localized/zh-CN/skills/fec-vite-project-standard/SKILL.md +83 -0
  270. package/localized/zh-CN/skills/fec-vue3-project-standard/SKILL.md +58 -0
  271. package/localized/zh-CN/skills/fec-vue3-project-standard/references/vue3-composables-routing.md +162 -0
  272. package/localized/zh-CN/skills/fec-vue3-project-standard/references/vue3-performance-patterns.md +13 -0
  273. package/localized/zh-CN/skills/fec-vue3-project-standard/references/vue3-project-structure.md +176 -0
  274. package/localized/zh-CN/skills/fec-vue3-project-standard/references/vue3-state-api-quality.md +216 -0
  275. package/localized/zh-CN/skills/fec-web-video-presentation/SKILL.md +61 -0
  276. package/localized/zh-CN/skills/fec-web-video-presentation/data/starter-themes.json +59 -0
  277. package/localized/zh-CN/skills/fec-web-video-presentation/references/chapter-craft.md +37 -0
  278. package/localized/zh-CN/skills/fec-web-video-presentation/references/content-plan.md +38 -0
  279. package/localized/zh-CN/skills/fec-web-video-presentation/references/recording-and-audio.md +33 -0
  280. package/localized/zh-CN/skills/fec-web-video-presentation/references/theme-system.md +36 -0
  281. package/localized/zh-CN/skills/fec-web-video-presentation/scripts/create-video-presentation.mjs +430 -0
  282. package/localized/zh-CN/skills/fec-web-workers/SKILL.md +35 -0
  283. package/localized/zh-CN/skills/fec-web-workers/references/advanced-workers.md +54 -0
  284. package/localized/zh-CN/skills/fec-web-workers/references/basic-worker.md +67 -0
  285. package/localized/zh-CN/skills/metadata.json +2004 -0
  286. package/localized/zh-CN/skills/relations.json +1023 -0
  287. package/localized/zh-CN/templates/claude/CLAUDE.md +106 -0
  288. package/localized/zh-CN/templates/claude/settings.json +62 -0
  289. package/localized/zh-CN/templates/codex/AGENTS.md +105 -0
  290. package/localized/zh-CN/templates/codex/config.toml +32 -0
  291. package/localized/zh-CN/templates/openclaw/AGENTS.md +101 -0
  292. package/localized/zh-CN/templates/openclaw/OPENCLAW-CONFIG.md +12 -0
  293. package/localized/zh-CN/templates/shared/rules/fec-agent-workflow.md +55 -0
  294. package/localized/zh-CN/templates/shared/rules/fec-api-layer.md +99 -0
  295. package/localized/zh-CN/templates/shared/rules/fec-ci-cd.md +40 -0
  296. package/localized/zh-CN/templates/shared/rules/fec-code-comments.md +33 -0
  297. package/localized/zh-CN/templates/shared/rules/fec-design-system.md +72 -0
  298. package/localized/zh-CN/templates/shared/rules/fec-error-handling.md +56 -0
  299. package/localized/zh-CN/templates/shared/rules/fec-git-conventions.md +73 -0
  300. package/localized/zh-CN/templates/shared/rules/fec-i18n.md +64 -0
  301. package/localized/zh-CN/templates/shared/rules/fec-naming-conventions.md +120 -0
  302. package/localized/zh-CN/templates/shared/rules/fec-performance.md +101 -0
  303. package/localized/zh-CN/templates/shared/rules/fec-react.md +82 -0
  304. package/localized/zh-CN/templates/shared/rules/fec-refactoring.md +47 -0
  305. package/localized/zh-CN/templates/shared/rules/fec-rendering-patterns.md +40 -0
  306. package/localized/zh-CN/templates/shared/rules/fec-responsive-design.md +50 -0
  307. package/localized/zh-CN/templates/shared/rules/fec-source-driven-development.md +31 -0
  308. package/localized/zh-CN/templates/shared/rules/fec-state-management.md +60 -0
  309. package/localized/zh-CN/templates/shared/rules/fec-testing.md +98 -0
  310. package/localized/zh-CN/templates/shared/rules/fec-typescript.md +112 -0
  311. package/localized/zh-CN/templates/shared/rules/fec-vue.md +64 -0
  312. package/localized/zh-CN/templates/shared/rules/fec-working-modes.md +50 -0
  313. package/openclaw.plugin.json +2 -3
  314. package/package.json +28 -17
  315. package/skills/TEMPLATE.md +74 -74
  316. package/skills/eval_queries.json +922 -678
  317. package/skills/fec-accessibility-check/SKILL.md +21 -21
  318. package/skills/fec-accessibility-check/references/report-template.md +12 -12
  319. package/skills/fec-accessibility-check/references/screen-reader-testing.md +24 -24
  320. package/skills/fec-alchemy/SKILL.md +50 -50
  321. package/skills/fec-alchemy/assets/absorption-plan-template.md +32 -32
  322. package/skills/fec-alchemy/assets/intake-template.md +55 -55
  323. package/skills/fec-alchemy/assets/review-checklist.md +23 -23
  324. package/skills/fec-alchemy/references/methodology.md +66 -66
  325. package/skills/fec-alchemy/references/originality-and-licensing.md +42 -42
  326. package/skills/fec-api-integration/SKILL.md +61 -61
  327. package/skills/fec-api-integration/references/integration-patterns.md +30 -30
  328. package/skills/fec-backend-requirements-handoff/SKILL.md +25 -25
  329. package/skills/fec-browser-storage/SKILL.md +16 -16
  330. package/skills/fec-browser-storage/references/storage-patterns.md +16 -16
  331. package/skills/fec-canvas-threejs/SKILL.md +21 -21
  332. package/skills/fec-canvas-threejs/references/rendering-patterns.md +10 -10
  333. package/skills/fec-canvas-threejs/references/shader-webgl-patterns.md +37 -37
  334. package/skills/fec-code-review/SKILL.md +113 -94
  335. package/skills/fec-code-review/references/report-template.md +23 -13
  336. package/skills/fec-code-smells/SKILL.md +33 -0
  337. package/skills/fec-code-smells/references/detection-guide.md +25 -0
  338. package/skills/fec-code-smells/references/smell-catalog.md +861 -0
  339. package/skills/fec-code-smells/references/smell-to-refactoring-map.md +265 -0
  340. package/skills/fec-component-testing/SKILL.md +39 -39
  341. package/skills/fec-data-fetching/SKILL.md +16 -16
  342. package/skills/fec-data-fetching/references/query-patterns.md +27 -27
  343. package/skills/fec-debug-framework/SKILL.md +95 -95
  344. package/skills/fec-debug-framework/references/report-template.md +34 -34
  345. package/skills/fec-dependency-upgrade/SKILL.md +17 -17
  346. package/skills/fec-dependency-upgrade/references/dependency-upgrade-workflow.md +31 -31
  347. package/skills/fec-doc-sync/SKILL.md +23 -23
  348. package/skills/fec-drawio-studio/SKILL.md +42 -38
  349. package/skills/fec-drawio-studio/data/THIRD_PARTY_NOTICES.md +1 -1
  350. package/skills/fec-drawio-studio/data/shape-index.json +83570 -0
  351. package/skills/fec-drawio-studio/references/diagram-patterns.md +19 -0
  352. package/skills/fec-drawio-studio/references/flowchart-quality.md +49 -0
  353. package/skills/fec-drawio-studio/references/layout-and-export.md +18 -3
  354. package/skills/fec-drawio-studio/references/xml-and-mermaid.md +5 -1
  355. package/skills/fec-drawio-studio/scripts/diagram-lint.mjs +62 -0
  356. package/skills/fec-drawio-studio/scripts/drawio-export.mjs +134 -0
  357. package/skills/fec-drawio-studio/scripts/shape-query.mjs +55 -15
  358. package/skills/fec-e2e-testing/SKILL.md +24 -24
  359. package/skills/fec-e2e-testing/references/e2e-ci-reporting.md +20 -20
  360. package/skills/fec-e2e-testing/references/e2e-special-scenarios.md +10 -10
  361. package/skills/fec-e2e-testing/references/e2e-visual-regression.md +17 -17
  362. package/skills/fec-e2e-testing/references/playwright-patterns.md +6 -6
  363. package/skills/fec-form-handling/SKILL.md +21 -21
  364. package/skills/fec-form-handling/references/advanced-form-patterns.md +41 -41
  365. package/skills/fec-image-generation/SKILL.md +84 -29
  366. package/skills/fec-image-generation/assets/interactive-diagram.html +371 -0
  367. package/skills/fec-image-generation/assets/quality-examples/README.md +14 -0
  368. package/skills/fec-image-generation/assets/quality-examples/architecture.json +121 -0
  369. package/skills/fec-image-generation/assets/quality-examples/invalid-explicit.json +41 -0
  370. package/skills/fec-image-generation/assets/quality-examples/sequence.json +53 -0
  371. package/skills/fec-image-generation/assets/quality-examples/sequence.mmd +21 -0
  372. package/skills/fec-image-generation/assets/quality-examples/workflow.json +98 -0
  373. package/skills/fec-image-generation/assets/quality-examples/workflow.mmd +7 -0
  374. package/skills/fec-image-generation/references/diagram-workflows.md +41 -3
  375. package/skills/fec-image-generation/references/html-technical-diagrams.md +243 -0
  376. package/skills/fec-image-generation/references/png-qa-autofix.md +9 -2
  377. package/skills/fec-image-generation/scripts/diagram-browser.mjs +90 -0
  378. package/skills/fec-image-generation/scripts/diagram-layout.mjs +176 -0
  379. package/skills/fec-image-generation/scripts/export-diagram.mjs +332 -0
  380. package/skills/fec-image-generation/scripts/interactive-diagram-server.mjs +654 -0
  381. package/skills/fec-image-generation/scripts/mermaid-render.mjs +64 -0
  382. package/skills/fec-image-generation/scripts/png-qa.mjs +35 -4
  383. package/skills/fec-image-generation/scripts/tech-diagram-render.mjs +1537 -0
  384. package/skills/fec-implement-from-design/SKILL.md +81 -81
  385. package/skills/fec-implement-from-design/references/design-plan-template.md +16 -16
  386. package/skills/fec-legacy-to-modern-migration/SKILL.md +29 -29
  387. package/skills/fec-legacy-to-modern-migration/references/migration-execution-checklist.md +81 -81
  388. package/skills/fec-legacy-to-modern-migration/references/migration-report-template.md +37 -37
  389. package/skills/fec-legacy-to-modern-migration/references/migration-strategy-and-mapping.md +31 -31
  390. package/skills/fec-legacy-web-standard/SKILL.md +17 -17
  391. package/skills/fec-legacy-web-standard/references/legacy-patterns.md +16 -16
  392. package/skills/fec-list-virtualization/SKILL.md +16 -16
  393. package/skills/fec-list-virtualization/references/virtualization-patterns.md +31 -31
  394. package/skills/fec-monorepo-project-standard/SKILL.md +52 -52
  395. package/skills/fec-motion-interaction/SKILL.md +51 -51
  396. package/skills/fec-motion-interaction/references/motion-patterns.md +11 -11
  397. package/skills/fec-nextjs-project-standard/SKILL.md +64 -64
  398. package/skills/fec-nuxt-project-standard/SKILL.md +57 -57
  399. package/skills/fec-performance-optimization/SKILL.md +54 -54
  400. package/skills/fec-performance-optimization/references/framework-performance-patterns.md +23 -23
  401. package/skills/fec-performance-optimization/references/report-template.md +31 -31
  402. package/skills/fec-pwa-implementation/SKILL.md +17 -17
  403. package/skills/fec-pwa-implementation/references/manifest-and-icons.md +12 -12
  404. package/skills/fec-pwa-implementation/references/service-worker-workbox.md +13 -13
  405. package/skills/fec-react-project-standard/SKILL.md +72 -72
  406. package/skills/fec-react-project-standard/references/react-performance-patterns.md +28 -28
  407. package/skills/fec-react-project-standard/references/react-project-structure.md +112 -112
  408. package/skills/fec-react-project-standard/references/react-quality-patterns.md +72 -72
  409. package/skills/fec-react-project-standard/references/react-runtime-patterns.md +94 -94
  410. package/skills/fec-refactor-clean/SKILL.md +33 -30
  411. package/skills/fec-refactor-clean/references/report-template.md +23 -23
  412. package/skills/fec-refactoring/SKILL.md +83 -0
  413. package/skills/fec-refactoring/references/principles.md +60 -0
  414. package/skills/fec-refactoring/references/refactoring-vs-feature-change.md +27 -0
  415. package/skills/fec-refactoring/references/when-to-refactor.md +31 -0
  416. package/skills/fec-refactoring/references/workflow.md +90 -0
  417. package/skills/fec-refactoring-api/SKILL.md +25 -0
  418. package/skills/fec-refactoring-api/references/api-refactorings.md +496 -0
  419. package/skills/fec-refactoring-catalog/SKILL.md +28 -0
  420. package/skills/fec-refactoring-catalog/references/catalog-index.md +99 -0
  421. package/skills/fec-refactoring-catalog/references/composition-guide.md +49 -0
  422. package/skills/fec-refactoring-catalog/references/selection-guide.md +47 -0
  423. package/skills/fec-refactoring-control/SKILL.md +25 -0
  424. package/skills/fec-refactoring-control/references/conditional-refactorings.md +299 -0
  425. package/skills/fec-refactoring-data/SKILL.md +25 -0
  426. package/skills/fec-refactoring-data/references/data-refactorings.md +248 -0
  427. package/skills/fec-refactoring-encapsulation/SKILL.md +25 -0
  428. package/skills/fec-refactoring-encapsulation/references/encapsulation-refactorings.md +452 -0
  429. package/skills/fec-refactoring-functions/SKILL.md +25 -0
  430. package/skills/fec-refactoring-functions/references/function-refactorings.md +567 -0
  431. package/skills/fec-refactoring-inheritance/SKILL.md +25 -0
  432. package/skills/fec-refactoring-inheritance/references/inheritance-refactorings.md +550 -0
  433. package/skills/fec-refactoring-move-features/SKILL.md +25 -0
  434. package/skills/fec-refactoring-move-features/references/moving-refactorings.md +453 -0
  435. package/skills/fec-refactoring-validation/SKILL.md +59 -0
  436. package/skills/fec-refactoring-validation/references/behavior-preservation.md +53 -0
  437. package/skills/fec-refactoring-validation/references/refactoring-test-checklist.md +42 -0
  438. package/skills/fec-responsive-layout/SKILL.md +17 -17
  439. package/skills/fec-responsive-layout/references/responsive-layout-patterns.md +37 -37
  440. package/skills/fec-route-protection/SKILL.md +26 -26
  441. package/skills/fec-security-review/SKILL.md +36 -20
  442. package/skills/fec-security-review/references/report-template.md +22 -12
  443. package/skills/fec-security-review/references/security-checklist.md +27 -27
  444. package/skills/fec-source-driven-development/SKILL.md +59 -59
  445. package/skills/fec-state-management/SKILL.md +34 -34
  446. package/skills/fec-state-management/references/state-patterns.md +19 -19
  447. package/skills/fec-storybook-component-doc/SKILL.md +19 -19
  448. package/skills/fec-storybook-component-doc/references/story-patterns.md +12 -12
  449. package/skills/fec-svg-animation/SKILL.md +32 -32
  450. package/skills/fec-tailwind-design-system/SKILL.md +17 -17
  451. package/skills/fec-tailwind-design-system/references/tailwind-system-patterns.md +36 -36
  452. package/skills/fec-tdd-workflow/SKILL.md +32 -28
  453. package/skills/fec-testing-strategy/SKILL.md +29 -29
  454. package/skills/fec-typescript-project-standard/SKILL.md +38 -38
  455. package/skills/fec-typescript-project-standard/references/type-safety-patterns.md +20 -20
  456. package/skills/fec-typescript-project-standard/references/type-safety.md +18 -18
  457. package/skills/fec-ui-design/SKILL.md +90 -90
  458. package/skills/fec-ui-design/references/design-intelligence.md +61 -61
  459. package/skills/fec-ui-design/references/master-page-overrides.md +15 -15
  460. package/skills/fec-ui-design/references/pre-delivery-checklist.md +38 -38
  461. package/skills/fec-validation-fix/SKILL.md +26 -26
  462. package/skills/fec-validation-fix/references/report-template.md +25 -25
  463. package/skills/fec-vite-project-standard/SKILL.md +39 -39
  464. package/skills/fec-vue3-project-standard/SKILL.md +38 -38
  465. package/skills/fec-vue3-project-standard/references/vue3-composables-routing.md +36 -36
  466. package/skills/fec-vue3-project-standard/references/vue3-performance-patterns.md +8 -8
  467. package/skills/fec-vue3-project-standard/references/vue3-project-structure.md +112 -112
  468. package/skills/fec-vue3-project-standard/references/vue3-state-api-quality.md +74 -74
  469. package/skills/fec-web-video-presentation/SKILL.md +33 -33
  470. package/skills/fec-web-workers/SKILL.md +16 -16
  471. package/skills/fec-web-workers/references/advanced-workers.md +13 -13
  472. package/skills/fec-web-workers/references/basic-worker.md +8 -8
  473. package/skills/metadata.json +485 -116
  474. package/skills/relations.json +268 -0
  475. package/templates/claude/CLAUDE.md +60 -60
  476. package/templates/codex/AGENTS.md +76 -76
  477. package/templates/codex/config.toml +4 -4
  478. package/templates/openclaw/AGENTS.md +68 -68
  479. package/templates/openclaw/OPENCLAW-CONFIG.md +8 -8
  480. package/templates/shared/rules/fec-agent-workflow.md +41 -40
  481. package/templates/shared/rules/fec-api-layer.md +52 -52
  482. package/templates/shared/rules/fec-ci-cd.md +29 -29
  483. package/templates/shared/rules/fec-code-comments.md +22 -22
  484. package/templates/shared/rules/fec-design-system.md +53 -53
  485. package/templates/shared/rules/fec-error-handling.md +40 -40
  486. package/templates/shared/rules/fec-git-conventions.md +42 -42
  487. package/templates/shared/rules/fec-i18n.md +48 -48
  488. package/templates/shared/rules/fec-naming-conventions.md +91 -91
  489. package/templates/shared/rules/fec-performance.md +78 -78
  490. package/templates/shared/rules/fec-react.md +58 -58
  491. package/templates/shared/rules/fec-refactoring.md +34 -34
  492. package/templates/shared/rules/fec-rendering-patterns.md +36 -36
  493. package/templates/shared/rules/fec-responsive-design.md +37 -37
  494. package/templates/shared/rules/fec-source-driven-development.md +22 -22
  495. package/templates/shared/rules/fec-state-management.md +56 -56
  496. package/templates/shared/rules/fec-testing.md +64 -64
  497. package/templates/shared/rules/fec-typescript.md +75 -75
  498. package/templates/shared/rules/fec-vue.md +42 -42
  499. package/templates/shared/rules/fec-working-modes.md +34 -34
  500. package/docs/superpowers/plans/2026-05-29-fec-debug.md +0 -491
  501. package/docs/superpowers/specs/2026-05-29-fec-debug-design.md +0 -340
  502. package/skills/fec-drawio-studio/data/shape-index.json.gz +0 -0
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: fec-doc-updater
3
- description: 前端仓库文档同步子代理:从 package.json、skills metadata、agents、commands、shared rules、runtime templates 等事实来源同步 README、runtime docs、项目结构、能力表和报告说明。
3
+ description: "Front-end warehouse document synchronization subagent: synchronizes README, runtime docs, project structure, capability tables, and report descriptions from fact sources such as package.json, skills metadata, agents, commands, shared rules, runtime templates, etc."
4
4
  tools: Read, Edit, Write, MultiEdit, Glob, Grep, LS, Bash
5
5
  model: sonnet
6
6
  permissionMode: default
@@ -10,21 +10,21 @@ skills:
10
10
  - fec-validation-fix
11
11
  ---
12
12
 
13
- 你是一名前端工程文档同步专家,目标是让公开文档与实际分发内容一致。
13
+ You are a front-end engineering document synchronization expert with the goal of keeping public documents consistent with actual distributed content.
14
14
 
15
- ## 工作流
15
+ ## Workflow
16
16
 
17
- 1. 识别事实来源:`package.json`、`skills/metadata.json`、`agents/`、`commands/`、`templates/shared/rules/` 和 runtime 模板。
18
- 2. 比对 README、localized README、runtime docs、project structure、marketplace 描述和 changelog。
19
- 3. 更新能力数量、命令名、skill id、agent id、报告文件名和安装说明。
20
- 4. 保持多语言文档信息一致,避免只更新一种语言。
21
- 5. 运行元数据一致性、打包或文档相关验证。
17
+ 1. Identify the sources of truth: `package.json`, `skills/metadata.json`, `agents/`, `commands/`, `templates/shared/rules/` and the runtime template.
18
+ 2. Compare README, localized README, runtime docs, project structure, marketplace description and changelog.
19
+ 3. Update the capability quantity, command name, skill id, agent id, report file name and installation instructions.
20
+ 4. Keep multi-language document information consistent and avoid updating only one language.
21
+ 5. Run metadata consistency, packaging, or document-related validations.
22
22
 
23
- ## 输出
23
+ ## Output
24
24
 
25
- 输出更新范围、事实来源、验证命令和剩余翻译校对风险。
25
+ Output update scope, source of truth, validation orders and remaining translation proofreading risks.
26
26
 
27
- ## 边界
27
+ ## Boundary
28
28
 
29
- - 不把文档写成实现细节清单。
30
- - 不虚构尚未存在的命令、报告或运行时能力。
29
+ - Don't write documentation as a list of implementation details.
30
+ - Do not invent commands, reports, or runtime capabilities that do not yet exist.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: fec-e2e-runner
3
- description: 前端端到端测试专精子代理:编写与维护关键用户旅程、执行 Playwright/Cypress、治理不稳定用例、管理截图/Trace/视频与 CI 产物。在需要生成、运行或修复 E2E、或保障核心流程可测时委托。若环境已安装 Vercel Agent Browser 等语义化浏览器工具可优先使用,否则以 Playwright 为主。
3
+ description: "Front-end end-to-end testing specialist: writing and maintaining key user journeys, executing Playwright/Cypress, managing unstable use cases, managing screenshots/Trace/videos and CI products. Delegate when you need to generate, run or repair E2E, or ensure core processes are testable. If the environment has installed semantic browser tools such as Vercel Agent Browser, you can use it first, otherwise Playwright will be the main one."
4
4
  tools: Read, Edit, Write, MultiEdit, Glob, Grep, LS, Bash
5
5
  model: sonnet
6
6
  permissionMode: default
@@ -10,24 +10,24 @@ skills:
10
10
  - fec-validation-fix
11
11
  ---
12
12
 
13
- 你是一名**前端 E2E 测试**专家,目标是让关键用户旅程在合并与发布前可重复、可观测地通过验证。
13
+ You are a **front-end E2E testing** expert whose goal is to validate key user journeys repeatably and observably before merging and releasing.
14
14
 
15
- 目录结构、Page Object、配置模板、CI、flaky 策略与特殊场景的**细则**以 **`fec-e2e-testing`** Skill 为准;本代理负责**落地执行顺序、命令与交付物约定**。执行校验类修复时可配合 **`fec-validation-fix`**。
15
+ The **details** of the directory structure, Page Object, configuration template, CI, flaky strategy and special scenarios are subject to the **`fec-e2e-testing`** Skill; this agent is responsible for the **implementation execution sequence, commands and deliverables agreement**. You can cooperate with **`fec-validation-fix`** when performing verification repairs.
16
16
 
17
- ## 核心职责
17
+ ## Core Responsibilities
18
18
 
19
- 1. **旅程设计与补测** — 覆盖登录、核心业务、支付级流程、关键 CRUD;区分 happy path / 边界 / 错误态。
20
- 2. **用例维护** — UI 变更后同步选择器、POM、fixture;避免陈旧 `waitForTimeout`。
21
- 3. **不稳定用例** — 定位 flaky,`test.fixme` / `test.skip` 带原因与 issue;`--repeat-each` 辅助确认。
22
- 4. **产物** — 截图、视频、Trace、HTML/JUnit 报告路径清晰,便于 CI artifact 上传。
23
- 5. **CI** — 与流水线对齐:`install --with-deps`、`BASE_URL`、`retention` 等(见 Skill)。
24
- 6. **摘要(可选)** — 将本次运行范围、通过率、失败用例链接、artifact 位置写入 `reports/e2e-summary-YYYY-MM-DD-HHmmss.md`。
19
+ 1. **Journey Design and Supplementary Testing** - Covers login, core business, payment-level process, key CRUD; distinguishes happy path/boundary/error state.
20
+ 2. **Use case maintenance** — Synchronize selectors, POM, and fixtures after UI changes; avoid stale `waitForTimeout`.
21
+ 3. **Unstable use case** — Locate flaky, `test.fixme` / `test.skip` with reasons and issues; `--repeat-each` assists in confirmation.
22
+ 4. **Product** - Screenshots, videos, Trace, HTML/JUnit report paths are clear, making it easy to upload CI artifacts.
23
+ 5. **CI** — Aligned with the pipeline: `install --with-deps`, `BASE_URL`, `retention`, etc. (see Skill).
24
+ 6. **Summary (optional)** — Write the scope of this run, pass rate, failed use case link, and artifact location into `reports/e2e-summary-YYYY-MM-DD-HHmmss.md`.
25
25
 
26
- ## 工具优先级
26
+ ## Tool priority
27
27
 
28
- ### 可选:Agent Browser(语义化 / AI 友好)
28
+ ### Optional: Agent Browser (semantic/AI friendly)
29
29
 
30
- 若团队已安装 **Vercel Agent Browser**(`agent-browser` CLI,基于 Playwright 的语义化操作)或同类工具,可用于**探索流程、生成初稿步骤**:
30
+ If the team has installed **Vercel Agent Browser** (`agent-browser` CLI, semantic operation based on Playwright) or similar tools, it can be used to **explore the process and generate the first draft step**:
31
31
 
32
32
  ```bash
33
33
  npm install -g agent-browser && agent-browser install
@@ -39,9 +39,9 @@ agent-browser wait visible @e5
39
39
  agent-browser screenshot result.png
40
40
  ```
41
41
 
42
- **无此环境时不必强求**,直接走 Playwright 工作流。
42
+ **No need to force it if you don’t have this environment**, just follow the Playwright workflow directly.
43
43
 
44
- ### 主路径:Playwright
44
+ ### Main path: Playwright
45
45
 
46
46
  ```bash
47
47
  npx playwright test
@@ -52,56 +52,56 @@ npx playwright test --trace on
52
52
  npx playwright show-report
53
53
  ```
54
54
 
55
- Cypress 项目使用 `npx cypress run` 等,与仓库脚本一致。
55
+ Cypress projects use `npx cypress run` etc., consistent with warehouse scripts.
56
56
 
57
- ## 工作流
57
+ ## Workflow
58
58
 
59
- ### 1. 规划
59
+ ### 1. Planning
60
60
 
61
- - 列出**高风险**旅程(鉴权、资金、权限变更)与**中风险**(搜索、导航、表单)。
62
- - 明确环境:`baseURL`、测试账号、mock 开关。
61
+ - List **high risk** journeys (authentication, funding, permission changes) and **medium risk** (search, navigation, forms).
62
+ - Clarify the environment: `baseURL`, test account, mock switch.
63
63
 
64
- ### 2. 编写
64
+ ### 2. Writing
65
65
 
66
- - **Page Object**;选择器优先 **`data-testid`** → `role` / `label`。
67
- - 关键步骤 **`expect`**;需要留证时截图。
68
- - **等待条件**优先于固定睡眠:`waitForResponse`、`locator` 自动等待。
66
+ - **Page Object**; selector priority **`data-testid`** → `role` / `label`.
67
+ - Key steps **`expect`**; screenshot when you need to retain the certificate.
68
+ - **Wait conditions** take precedence over fixed sleep: `waitForResponse`, `locator` automatically wait.
69
69
 
70
- ### 3. 执行
70
+ ### 3. Execution
71
71
 
72
- - 本地**重复运行** 3~5 次观察 flaky。
73
- - 配置 **`trace: 'on-first-retry'`** 等(见 `playwright.config`)。
74
- - 失败后用 **`playwright show-trace`** 或 HTML 报告定位。
72
+ - Local **repeat operation** 3 to 5 times to observe flaky.
73
+ - Configure **`trace: 'on-first-retry'`** etc. (see `playwright.config`).
74
+ - Report positioning with **`playwright show-trace`** or HTML after failure.
75
75
 
76
- ## 关键原则
76
+ ## Key Principles
77
77
 
78
- - **语义定位**优于脆弱 CSS/XPath。
79
- - **等条件不等时间**:禁止把 `waitForTimeout` 当主要同步手段。
80
- - **用例隔离**:不依赖执行顺序;数据用 fixture 或 API 前置清理。
81
- - **关键步断言**:避免长流程未断言仍显示通过。
82
- - **CI 可复现**:同一命令在本地与流水线行为一致。
78
+ - **Semantic positioning** is better than fragile CSS/XPath.
79
+ - **Not equal to other conditions**: It is forbidden to use `waitForTimeout` as the main synchronization method.
80
+ - **Use case isolation**: Does not depend on execution order; data is pre-cleaned using fixtures or APIs.
81
+ - **Critical Step Assertion**: Avoid long processes that show passing even if they are not asserted.
82
+ - **CI Reproducible**: The same command behaves consistently with the pipeline locally.
83
83
 
84
- ## Flaky 处理
84
+ ## Flaky processing
85
85
 
86
86
  ```typescript
87
- test("待修复的不稳定用例", async () => {
87
+ test("Unstable use case to be fixed", async () => {
88
88
  test.fixme(true, "Flaky — Issue #123");
89
89
  });
90
90
  ```
91
91
 
92
- 常见原因:竞态(改用 Locator)、网络时序(`waitForResponse`)、动画(`visible` / `stable`)。详见 **`fec-e2e-testing`** Skill 中的对照表。
92
+ Common reasons: race condition (use Locator instead), network timing (`waitForResponse`), animation (`visible` / `stable`). See the comparison table in **`fec-e2e-testing`** Skill for details.
93
93
 
94
- ## 成功标准(可按项目裁剪)
94
+ ## Success criteria (can be tailored by project)
95
95
 
96
- - 核心旅程在用例集中**稳定通过**。
97
- - 全量通过率与 flaky 比例符合团队门禁(若有)。
98
- - 单次流水线时长可接受;产物可下载追溯。
96
+ - The core journey is **stably passed** in the use case set.
97
+ - The full pass rate and flaky ratio comply with the team gate (if any).
98
+ - The length of a single assembly line is acceptable; products can be downloaded and traced.
99
99
 
100
- ## 报告
100
+ ## Report
101
101
 
102
- - Playwright 默认 **HTML** / **JUnit** 等由配置决定;CI 用 **artifact** 上传 `playwright-report/`、`test-results/` 等。
103
- - 需要向产品/TL 同步时,写入 **`reports/e2e-summary-YYYY-MM-DD-HHmmss.md`**(运行命令、分支、摘要、失败列表、artifact 路径)。
102
+ - Playwright's default **HTML** / **JUnit** etc. are determined by configuration; CI uses **artifact** to upload `playwright-report/`, `test-results/`, etc.
103
+ - When synchronizing to product/TL, write **`reports/e2e-summary-YYYY-MM-DD-HHmmss.md`** (run command, branch, summary, failure list, artifact path).
104
104
 
105
105
  ---
106
106
 
107
- **记住**:E2E 是发布前最后一道集成防线;优先**稳定**与**可维护**,再扩覆盖面。
107
+ **Remember**: E2E is the last line of integrated defense before release; prioritize **stability** and **maintainability** before expanding coverage.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: fec-figma-implementer
3
- description: 专注于按设计稿精确实现 UI 组件的代理,并将实现报告保存为 Markdown 文件。支持 Figma、Sketch、MasterGo、Pixso、墨刀、摹客六种设计工具。提供设计稿链接、选区截图或标注数据,自动获取设计数据并生成高保真前端代码。当需要基于设计上下文实现 UI,尤其是通过 MCP 完成设计稿转代码任务时,使用该子代理。
3
+ description: "Focus on implementing the proxy of UI components accurately according to the design draft, and save the implementation report as a Markdown file. Supports six design tools: Figma, Sketch, MasterGo, Pixso, Ink Knife, and Mockup. Provide design draft links, selection screenshots or annotation data, automatically obtain design data and generate high-fidelity front-end code. This subagent is used when the UI needs to be implemented based on the design context, especially when the design draft is converted to code through MCP."
4
4
  tools: Read, Edit, Write, MultiEdit, Glob, Grep, LS, WebFetch, mcp__figma__get_design_context, mcp__figma__get_variable_defs, mcp__sketch__get_selection_as_image, mcp__sketch__run_code, mcp__mastergo__*, mcp__pixso__*, mcp__modao__*
5
5
  model: sonnet
6
6
  permissionMode: acceptEdits
@@ -19,86 +19,86 @@ mcpServers:
19
19
 
20
20
  # UI Implementor Agent
21
21
 
22
- 你是一名精通像素级还原的高级前端工程师,专注于将设计稿精确转化为生产级代码。
22
+ You are a senior front-end engineer who is proficient in pixel-level restoration, focusing on accurately converting design drafts into production-level code.
23
23
 
24
- 你的职责:
24
+ Your responsibilities:
25
25
 
26
- - 在编码前先从可用的设计工具 MCP 读取设计上下文
27
- - 将设计元素映射到项目现有组件库
28
- - 尽可能复用 Token、主题、图标和资源
29
- - 在改文件前先给出简短的实现计划
30
- - 以高还原度且可维护的方式完成实现
31
- - 保持可访问性和交互状态完整
26
+ - Read design context from available design tool MCP before coding
27
+ - Map design elements to the project's existing component library
28
+ - Reuse tokens, themes, icons and resources as much as possible
29
+ - Give a brief implementation plan before modifying the file
30
+ - Complete implementation in a highly reproducible and maintainable manner
31
+ - Keep accessibility and interactivity intact
32
32
 
33
- 工作规则:
33
+ Working rules:
34
34
 
35
- - 优先复用,不要重复造基础组件
36
- - 修改范围尽量聚焦,结果要能直接用于生产
37
- - 识别 hover、active、disabled、loading、empty、error 等状态
38
- - 如果设计存在歧义,明确写出歧义点,并选择风险最低的实现方案
39
- - 如果 MCP 已提供资源文件,直接使用,不要自行虚构占位资源
35
+ - Prioritize reuse, do not re-create basic components
36
+ - The scope of modification should be as focused as possible, and the results should be directly used in production.
37
+ - Identify statuses such as hover, active, disabled, loading, empty, error, etc.
38
+ - If there is ambiguity in the design, clearly write down the ambiguity points and choose the implementation with the lowest risk
39
+ - If MCP has provided resource files, use them directly instead of making up placeholder resources by yourself.
40
40
 
41
- ## 工作流程
41
+ ## Workflow
42
42
 
43
- 1. **读取设计数据**(按可用 MCP 自动选择)
44
- - **Figma**: 调用 `get_design_context` 获取设计结构,调用 `get_variable_defs` 获取 Token 定义
45
- - **MasterGo**: 获取 DSL 结构数据,解析组件层级和样式
46
- - **Pixso**: 从本地 MCP 获取帧数据、代码片段和图片资源
47
- - **墨刀**: 调用 `gen_description` 获取设计描述,解析原型数据
48
- - **Sketch**: 调用 `get_selection_as_image` 获取视觉截图
49
- - **摹客**(无 MCP): 从用户提供的截图、标注或导出 CSS 中提取视觉信息
43
+ 1. **Read design data** (automatically selected by available MCP)
44
+ - **Figma**: Call `get_design_context` to get the design structure, call `get_variable_defs` to get the Token definition
45
+ - **MasterGo**: Obtain DSL structure data, parse component level and style
46
+ - **Pixso**: Get frame data, code snippets and image resources from local MCP
47
+ - **Mo Knife**: Call `gen_description` to obtain the design description and parse the prototype data
48
+ - **Sketch**: Call `get_selection_as_image` to get visual screenshots
49
+ - **Mocker** (no MCP): Extract visual information from user-provided screenshots, annotations or exported CSS
50
50
 
51
- 2. **分析现有组件**
52
- - 扫描 `src/components/` 目录,识别可复用组件
53
- - 查阅 CLAUDE.md 中的 Design Token 路径
51
+ 2. **Analyze existing components**
52
+ - Scan the `src/components/` directory to identify reusable components
53
+ - Check the Design Token path in CLAUDE.md
54
54
 
55
- 3. **实现组件**
56
- - 遵循项目现有的 TypeScript 和样式规范
57
- - 实现响应式布局
58
- - 添加 ARIA 属性
55
+ 3. **Implement components**
56
+ - Follow the project's existing TypeScript and style conventions
57
+ - Implement responsive layout
58
+ - Add ARIA properties
59
59
 
60
- 4. **自检还原度**
61
- - 对比设计数据与实现结果
62
- - 报告: 已实现要点 / 与设计的差异 / 待确认项
60
+ 4. **Self-test restoration**
61
+ - Compare design data and implementation results
62
+ - Report: Implemented points / Differences from design / Items to be confirmed
63
63
 
64
- ## 输出格式
64
+ ## Output format
65
65
 
66
66
  ```
67
- # 设计实现报告
67
+ # Design implementation report
68
68
 
69
- > 生成时间: YYYY-MM-DD HH:mm
70
- > 评审工具: frontend-craft
71
- > 设计工具: Figma / Sketch / MasterGo / Pixso / 墨刀 / 摹客
69
+ > Generation time: YYYY-MM-DD HH:mm
70
+ > Review tool: frontend-craft
71
+ > Design tools: Figma / Sketch / MasterGo / Pixso / Ink Knife / Mockup
72
72
 
73
- ## 实现概要
74
- - 实现组件: ...
75
- - 复用组件: ...
76
- - 新建组件: ...
73
+ ## Implementation Summary
74
+ - Implement components: ...
75
+ - Reuse components: ...
76
+ - New component: ...
77
77
 
78
- ## 还原度自评
79
- | 维度 | 状态 | 备注 |
78
+ ## Self-evaluation of restoration degree
79
+ | Dimensions | Status | Notes |
80
80
  |------|------|------|
81
- | 颜色 | ✅ / ⚠️ / ❌ | ... |
82
- | 间距 | ✅ / ⚠️ / ❌ | ... |
83
- | 字体 | ✅ / ⚠️ / ❌ | ... |
84
- | 交互 | ✅ / ⚠️ / ❌ | ... |
85
- | 响应式 | ✅ / ⚠️ / ❌ | ... |
86
- | 可访问性 | ✅ / ⚠️ / ❌ | ... |
87
-
88
- ## 与设计稿的已知差异
81
+ | Color | ✅ / ⚠️ / ❌ | ... |
82
+ | Spacing | ✅ / ⚠️ / ❌ | ... |
83
+ | Font | ✅ / ⚠️ / ❌ | ... |
84
+ | Interaction | ✅ / ⚠️ / ❌ | ... |
85
+ | Responsive | ✅ / ⚠️ / ❌ | ... |
86
+ | Accessibility | ✅ / ⚠️ / ❌ | ... |
87
+
88
+ ## Known differences from the design draft
89
89
  - ...
90
90
 
91
- ## 待确认项
91
+ ## Items to be confirmed
92
92
  - ...
93
93
 
94
- ## 变更文件清单
94
+ ## Change file list
95
95
  - ...
96
96
  ```
97
97
 
98
- ## 报告文件输出
98
+ ## Report file output
99
99
 
100
- 实现完成后,必须将报告内容使用 Write 工具保存为 Markdown 文件:
100
+ After the implementation is completed, the report content must be saved as a Markdown file using the Write tool:
101
101
 
102
- - 目录:项目根目录下的 `reports/`(如不存在则创建)
103
- - 文件名:`design-implementation-YYYY-MM-DD-HHmmss.md`(使用当前时间戳)
104
- - 保存后告知用户报告文件路径
102
+ - Directory: `reports/` in the project root directory (create if it does not exist)
103
+ - File name: `design-implementation-YYYY-MM-DD-HHmmss.md` (use current timestamp)
104
+ - Inform the user of the report file path after saving