@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,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)
@@ -1,54 +1,55 @@
1
- # 子代理协作规则
1
+ # Subagent collaboration rules
2
2
 
3
- 当前端任务涉及多视角分析、跨模块规划、专项质量审查或验证失败修复时,优先使用职责明确的子代理。
3
+ When front-end tasks involve multi-perspective analysis, cross-module planning, dedicated quality reviews, or verification failure repairs, give priority to using subagents with clear responsibilities.
4
4
 
5
- ## 选择原则
5
+ ## Selection principle
6
6
 
7
- - 架构、页面拆分、状态流、目录规划:`fec-architect`
8
- - 前端 PR 综合评审:`fec-code-reviewer`
9
- - TypeScript / JavaScript 语义与类型风险:`fec-typescript-reviewer`
10
- - 安全风险:`fec-security-reviewer`
11
- - 测试策略:`fec-test-planner`
12
- - E2E 编写与运行:`fec-e2e-runner`
13
- - 性能瓶颈:`fec-performance-optimizer`
14
- - 来源/版本敏感决策:优先由主代理查项目事实和官方来源,再交给专项代理落地
15
- - UI 视觉与设计稿差异:`fec-ui-checker`
16
- - 设计稿实现:`fec-figma-implementer`
17
- - Token 映射:`fec-design-token-mapper`
18
- - 构建、类型、测试、CI 失败:`fec-build-fixer`
19
- - 死代码与无用依赖清理:`fec-refactor-cleaner`
20
- - README、runtime docs、能力表同步:`fec-doc-updater`
7
+ - Architecture, page splitting, state flow, directory planning: `fec-architect`
8
+ - Front-end PR comprehensive review: `fec-code-reviewer`
9
+ - TypeScript/JavaScript semantics and type risks: `fec-typescript-reviewer`
10
+ - Security risk: `fec-security-reviewer`
11
+ - Test strategy: `fec-test-planner`
12
+ - E2E writing and running: `fec-e2e-runner`
13
+ - Performance bottleneck: `fec-performance-optimizer`
14
+ - Source/version sensitive decision-making: Prioritize the agent to check the project facts and official sources, and then hand it over to the special agent for implementation
15
+ - Differences between UI visual and design draft: `fec-ui-checker`
16
+ - Design draft implementation: `fec-figma-implementer`
17
+ - Token mapping: `fec-design-token-mapper`
18
+ - Build, type, test, CI failed: `fec-build-fixer`
19
+ - Dead code and useless dependency cleaning: `fec-refactor-cleaner`
20
+ - README, runtime docs, capability table synchronization: `fec-doc-updater`
21
21
 
22
- ## 多代理评审编排
22
+ ## Multi-agent review orchestration
23
23
 
24
- 复杂 PR 可按质量维度并行评审,但必须有主代理负责合并结论。
24
+ Complex PRs can be reviewed in parallel along quality dimensions, but a lead agent must be responsible for merging conclusions.
25
25
 
26
- | 变更类型 | 建议组合 | 主合并者 |
26
+ | Change Type | Recommended Combination | Master Consolidator |
27
27
  | --- | --- | --- |
28
28
  | UI feature | `fec-code-reviewer` + `fec-typescript-reviewer` + `fec-test-planner` | `fec-code-reviewer` |
29
- | 鉴权 / 上传 / 富文本 | `fec-security-reviewer` + `fec-code-reviewer` | `fec-security-reviewer` |
30
- | 大列表 / 图表 / 3D / 性能问题 | `fec-performance-optimizer` + `fec-code-reviewer` | `fec-performance-optimizer` |
31
- | 设计稿落地 | `fec-figma-implementer` + `fec-ui-checker` + `fec-code-reviewer` | `fec-figma-implementer` |
32
- | 大型重构 | `fec-architect` + `fec-refactor-cleaner` + `fec-test-planner` | `fec-architect` |
29
+ | Authentication / Upload / Rich Text | `fec-security-reviewer` + `fec-code-reviewer` | `fec-security-reviewer` |
30
+ | Big List / Charts / 3D / Performance Issues | `fec-performance-optimizer` + `fec-code-reviewer` | `fec-performance-optimizer` |
31
+ | Design draft landing | `fec-figma-implementer` + `fec-ui-checker` + `fec-code-reviewer` | `fec-figma-implementer` |
32
+ | Large refactoring | `fec-architect` + `fec-refactor-cleaner` + `fec-test-planner` | `fec-architect` |
33
33
 
34
- 合并规则:
34
+ Merge rules:
35
35
 
36
- - 相同文件、相同行号、相同根因的问题合并为一条,保留最高严重级别。
37
- - 相同根因分布在多处时写成模式级发现,列代表性位置,不逐行刷屏。
38
- - 结论冲突时先回到项目事实、测试结果和用户影响,不用代理身份决定谁对。
39
- - 主代理输出最终 Verdict,并列出各专项代理覆盖的范围和未覆盖范围。
36
+ - Problems with the same file, same line number, and same root cause are merged into one, and the highest severity level is retained.
37
+ - When the same root cause is distributed in multiple places, it is written as a pattern-level discovery. The representative positions are listed and the screen is not refreshed line by line.
38
+ - When conclusions conflict, go back to the project facts, test results and user impact first, and do not use an agent's identity to decide who is right.
39
+ - The main agent outputs the final Verdict and lists the coverage and non-coverage ranges of each special agent.
40
40
 
41
- ## 协作约束
41
+ ## Collaboration constraints
42
42
 
43
- - 委托前先明确范围、输入和输出,不把模糊任务丢给子代理。
44
- - 多个独立问题可以并行分析;彼此有依赖的任务按顺序推进。
45
- - 子代理输出必须落到可验证结论:报告、文件路径、命令结果或具体风险。
46
- - 子代理建议不自动等于实现决策;与仓库现有约定冲突时,优先遵循仓库约定。
47
- - 主代理必须复核关键证据、验证命令和改动边界,不能只转述子代理结论。
43
+ - Clarify the scope, input and output before delegating, and do not leave ambiguous tasks to sub-agents.
44
+ - For automatic review after edits, explicitly pass the current change scope (files and diff/PR/commit context). Unqualified review defaults to the entire project; specifying a file/directory alone requests full review of that scope, not incremental review.
45
+ - Multiple independent problems can be analyzed in parallel; tasks that depend on each other are advanced in sequence.
46
+ - Subagent output must lead to verifiable conclusions: reports, file paths, command results, or specific risks.
47
+ - Subagent suggestions do not automatically equal implementation decisions; when they conflict with the existing contracts of the warehouse, the warehouse contracts take precedence.
48
+ - The primary agent must review key evidence, verify orders, and change boundaries, and cannot just relay the subagent's conclusions.
48
49
 
49
- ## 反模式
50
+ ## Anti-pattern
50
51
 
51
- - 为简单单文件修改创建过多代理。
52
- - 让多个代理同时修改同一文件而没有边界。
53
- - 用子代理替代本应先做的代码阅读。
54
- - 只接收结论,不核对关键证据和验证命令。
52
+ - Too many proxies were created for simple single file modifications.
53
+ - Let multiple agents modify the same file simultaneously without boundaries.
54
+ - Use subagent instead of code reading that should be done first.
55
+ - Only conclusions are received, key evidence and verification orders are not checked.
@@ -1,35 +1,35 @@
1
- # API 层规范
1
+ # API layer specification
2
2
 
3
- 凡是涉及 HTTP 请求、接口调用、数据获取或错误处理时,都应用本文件。
3
+ This document applies whenever HTTP requests, interface calls, data retrieval, or error handling are involved.
4
4
 
5
- ## 核心原则
5
+ ## Core Principles
6
6
 
7
- - 请求和响应必须有类型定义
8
- - 统一错误处理,不在每个组件中重复 try-catch
9
- - API 层与 UI 层分离
10
- - 敏感操作(删除、支付)必须有二次确认
7
+ - Requests and responses must have type definitions
8
+ - Unify error handling without repeating try-catch in each component
9
+ -Separation of API layer and UI layer
10
+ - Sensitive operations (deletion, payment) must require a second confirmation
11
11
 
12
- ## 目录结构
12
+ ## Directory structure
13
13
 
14
- <!-- 请根据项目实际情况调整 -->
14
+ <!-- Please adjust according to the actual situation of the project -->
15
15
 
16
16
  ```
17
17
  src/
18
- ├── api/ # API 定义层
18
+ ├── api/ # API definition layer
19
19
  │ ├── modules/
20
- │ │ ├── user.ts # 用户相关接口
21
- │ │ ├── order.ts # 订单相关接口
20
+ │ │ ├── user.ts # User related interface
21
+ │ │ ├── order.ts # Order related interface
22
22
  │ │ └── ...
23
- │ ├── types/ # 请求/响应类型
23
+ │ ├── types/ # Request/response type
24
24
  │ │ ├── user.types.ts
25
25
  │ │ └── order.types.ts
26
- │ └── request.ts # 统一请求封装
26
+ │ └── request.ts # Unified request encapsulation
27
27
  ```
28
28
 
29
- ## 类型规范
29
+ ## Type specification
30
30
 
31
31
  ```typescript
32
- // 请求参数类型
32
+ //Request parameter type
33
33
  interface GetUserListParams {
34
34
  page: number;
35
35
  pageSize: number;
@@ -37,7 +37,7 @@ interface GetUserListParams {
37
37
  status?: UserStatus;
38
38
  }
39
39
 
40
- // 响应数据类型
40
+ //Response data type
41
41
  interface GetUserListResponse {
42
42
  list: User[];
43
43
  total: number;
@@ -45,55 +45,55 @@ interface GetUserListResponse {
45
45
  pageSize: number;
46
46
  }
47
47
 
48
- // API 函数签名
48
+ // API function signature
49
49
  export function getUserList(params: GetUserListParams): Promise<GetUserListResponse>;
50
50
  ```
51
51
 
52
- 要求:
52
+ Requirements:
53
53
 
54
- - 禁止使用 `any` 作为请求参数或响应类型
55
- - 枚举值使用 TypeScript enum 或 union type
56
- - 分页参数和响应格式保持统一
54
+ - Disallow the use of `any` as a request parameter or response type
55
+ - Use TypeScript enum or union type for enumeration values
56
+ - Pagination parameters and response format remain unified
57
57
 
58
- ## 错误处理
58
+ ## Error handling
59
59
 
60
- ### 统一拦截器
60
+ ### Unified Interceptor
61
61
 
62
- 在请求封装层统一处理:
62
+ Unified processing at the request encapsulation layer:
63
63
 
64
- - 401: 跳转登录或刷新 token
65
- - 403: 提示无权限
66
- - 500: 显示通用错误提示
67
- - 网络错误: 显示网络异常提示
64
+ - 401: Jump to login or refresh token
65
+ - 403: Prompt No Permission
66
+ - 500: Display general error message
67
+ - Network error: Display network exception prompts
68
68
 
69
- ### 业务错误
69
+ ### Business error
70
70
 
71
- - 业务错误码与 HTTP 状态码分离
72
- - 业务错误信息使用 i18n key(如支持国际化)
73
- - 需要用户操作的错误(如表单校验失败)由调用方处理
71
+ - Separate business error codes and HTTP status codes
72
+ - Business error messages use i18n key (if internationalization is supported)
73
+ - Errors that require user action (such as form validation failure) are handled by the caller
74
74
 
75
- ## Loading / Error / Empty 状态
75
+ ## Loading / Error / Empty status
76
76
 
77
- 每个数据请求场景都需要考虑:
77
+ Each data request scenario needs to be considered:
78
78
 
79
- - **Loading**: 首次加载 skeleton/spinner,后续刷新不阻断 UI
80
- - **Error**: 显示错误信息 + 重试按钮
81
- - **Empty**: 显示空状态占位 + 引导操作
79
+ - **Loading**: Load skeleton/spinner for the first time, subsequent refreshes will not block the UI
80
+ - **Error**: display error message + retry button
81
+ - **Empty**: Display empty status placeholder + boot operation
82
82
 
83
- ## 检查清单
83
+ ## Checklist
84
84
 
85
- - [ ] 请求参数和响应有明确类型
86
- - [ ] 错误处理不依赖每个组件各自 try-catch
87
- - [ ] Loading / Error / Empty 三态均已处理
88
- - [ ] 敏感操作有二次确认
89
- - [ ] Token / 鉴权信息不在请求 URL 中明文传递
90
- - [ ] 大数据量使用分页或流式加载
85
+ - [ ] Request parameters and responses have clear types
86
+ - [ ] Error handling does not rely on each component's own try-catch
87
+ - [ ] Loading / Error / Empty three states have been processed
88
+ - [ ] Sensitive operations have secondary confirmation
89
+ - [ ] Token/authentication information is not passed in clear text in the request URL
90
+ - [ ] Use paging or streaming loading for large amounts of data
91
91
 
92
- ## 反模式
92
+ ## Anti-pattern
93
93
 
94
- - 在组件中直接使用 `fetch` / `axios` 而不经过统一封装
95
- - 请求参数或响应使用 `any`
96
- - 忽略错误处理,只处理成功场景
97
- - 将 token 拼接在 URL 中
98
- - 在 GET 请求中传递敏感数据
99
- - 同一个接口在多个文件中重复定义
94
+ - Use `fetch` / `axios` directly in components without unified encapsulation
95
+ - Use `any` for request parameters or responses
96
+ - Ignore error handling and only handle success scenarios
97
+ - Splice token into URL
98
+ - Pass sensitive data in GET requests
99
+ - The same interface is repeatedly defined in multiple files
@@ -1,40 +1,40 @@
1
- # CI/CD 规则
1
+ # CI/CD rules
2
2
 
3
- 本文件约定持续集成与部署流水线的常驻结构与门禁。具体 GitHub Actions、GitLab CI、云平台或 monorepo pipeline 写法,应按项目现有 CI 模板实现,不在本规则中复制长 YAML。
3
+ This document stipulates the resident structure and access control of the continuous integration and deployment pipeline. The specific writing method of GitHub Actions, GitLab CI, cloud platform or monorepo pipeline should be implemented according to the existing CI template of the project, and long YAML will not be copied in this rule.
4
4
 
5
- ## 流水线阶段
5
+ ## Pipeline stage
6
6
 
7
- 建议顺序:
7
+ Suggested order:
8
8
 
9
- 1. **安装依赖**:使用锁文件安装,例如 `npm ci` 或 `pnpm install --frozen-lockfile`。
10
- 2. **Lint / Format 检查**:ESLint、Stylelint、Prettier check 或项目等价命令。
11
- 3. **类型检查**:`tsc --noEmit` 或项目 typecheck 脚本。
12
- 4. **单元 / 组件测试**:Jest、Vitest、Testing Library、Vue Test Utils 等。
13
- 5. **构建**:项目生产构建命令。
14
- 6. **专项质量门禁**:包体、Lighthouse、依赖安全、license、a11y、视觉回归、E2E,按风险启用。
15
- 7. **部署**:仅在前序门禁通过后上传产物或触发部署。
9
+ 1. **Install dependencies**: Use lock file installation, such as `npm ci` or `pnpm install --frozen-lockfile`.
10
+ 2. **Lint / Format check**: ESLint, Stylelint, Prettier check or project equivalent command.
11
+ 3. **Type check**: `tsc --noEmit` or project typecheck script.
12
+ 4. **Unit/component testing**: Jest, Vitest, Testing Library, Vue Test Utils, etc.
13
+ 5. **Build**: Project production build command.
14
+ 6. **Special quality access control**: package body, lighthouse, dependency security, license, a11y, visual regression, E2E, enabled according to risk.
15
+ 7. **Deployment**: Only upload products or trigger deployment after the pre-order access control is passed.
16
16
 
17
- 任一必需阶段失败都应中止后续步骤。
17
+ Failure at any required stage should abort subsequent steps.
18
18
 
19
- ## 环境变量与密钥
19
+ ## Environment variables and keys
20
20
 
21
- - 敏感信息使用 CI 平台 Secrets,不写入仓库、日志或构建产物。
22
- - 只允许公开前缀的环境变量进入客户端 bundle,例如 `VITE_*`、`NEXT_PUBLIC_*` 等;服务端密钥不得使用公开前缀。
23
- - E2E 的 baseURL、测试账号、第三方 token 等从 Secrets 或受控测试环境读取。
24
- - CI 日志要避免打印完整环境变量、请求 header、token 或私密配置。
21
+ - Sensitive information uses CI platform Secrets and is not written to the warehouse, logs or build products.
22
+ - Only environment variables with public prefixes are allowed to enter the client bundle, such as `VITE_*`, `NEXT_PUBLIC_*`, etc.; server keys must not use public prefixes.
23
+ - E2E's baseURL, test account, third-party token, etc. are read from Secrets or controlled test environment.
24
+ - CI logs should avoid printing complete environment variables, request headers, tokens or private configurations.
25
25
 
26
- ## 产物与证据
26
+ ## Products and Evidence
27
27
 
28
- - 上传或保留测试报告、覆盖率、E2E trace、截图、构建产物、包体报告和性能预算结果。
29
- - CI 失败时保留足够日志定位根因,不只返回“命令失败”。
30
- - 发布前确认版本、变更说明、迁移事项、回滚路径和影响范围。
31
- - 依赖升级 PR 保留 lockfile diff、关键包版本、release notes 摘要和验证矩阵。
32
- - Monorepo affected 快速验证可以用于 PR 反馈,但 release 或主干合并前应保留全量验证入口。
28
+ - Upload or save test reports, coverage, E2E traces, screenshots, build artifacts, package reports and performance budget results.
29
+ - When CI fails, keep enough logs to locate the root cause and not just return "command failure".
30
+ - Confirm version, change description, migration matters, rollback path and impact scope before release.
31
+ - Dependency upgrade PR retains lockfile diff, key package version, release notes summary and verification matrix.
32
+ - Monorepo affected quick verification can be used for PR feedback, but the full verification entry should be retained before release or trunk merging.
33
33
 
34
- ## 强约束
34
+ ##Strong constraints
35
35
 
36
- - 使用并提交锁文件,禁止无锁安装。
37
- - 构建产物不提交到源码仓库,由 CI 生成并上传。
38
- - 部署前必须通过项目定义的 lint、typecheck、test、build。
39
- - 不跳过失败门禁直接部署,除非有明确风险接受、审批记录和回滚方案。
40
- - CI 配置应复用项目已有命令,不在流水线里发明与本地不同的替代命令。
36
+ - Use and submit lock files to disable lockless installations.
37
+ - The build products are not submitted to the source code repository, but are generated and uploaded by CI.
38
+ - Project-defined lint, typecheck, test, and build must be passed before deployment.
39
+ - Do not skip failed access control and deploy directly unless there are clear risk acceptance, approval records and rollback plans.
40
+ - CI configuration should reuse existing commands in the project and do not invent alternative commands in the pipeline that are different from local ones.
@@ -1,33 +1,33 @@
1
- # 代码注释
1
+ # Code comments
2
2
 
3
- 编写或评审前端实现时应用本文件。
3
+ Use this document when writing or reviewing front-end implementations.
4
4
 
5
- ## 原则
5
+ ## Principles
6
6
 
7
- - 意图优先靠**命名、类型与结构**表达;注释用于说明**为什么**、**约束与背景**,而不是复述代码在做什么。
8
- - 避免「整文件零注释」:在**非显而易见**处用**简短**注释降低误改成本,与「不写废话注释」不矛盾。
7
+ - Intention is expressed first through **naming, type and structure**; comments are used to explain **why**, **constraints and background**, rather than reiterating what the code is doing.
8
+ - Avoid "zero comments in the entire file": Use **short** comments in **non-obvious** places to reduce the cost of accidental modifications, which is not inconsistent with "no nonsense comments".
9
9
 
10
- ## 应当注释的情况
10
+ ## Situations that should be commented
11
11
 
12
- - **业务或产品规则**:权限、展示条件、校验逻辑背后的依据(与需求或领域约定相关时)。
13
- - **非直观的实现或取舍**:为何选用当前写法(性能、兼容、与后端/第三方约定等)。
14
- - **外部契约**:与接口、设计稿、枚举或单位相关的字段含义、映射关系。
15
- - **临时方案与技术债**:`TODO` / `FIXME` 应写明预期收尾或关联工单(若有)。
16
- - **易踩坑点**:第三方库版本差异、必须满足的调用顺序、已知限制。
12
+ - **Business or product rules**: permissions, display conditions, and the basis behind the verification logic (when related to requirements or domain agreements).
13
+ - **Non-intuitive implementation or trade-offs**: Why choose the current writing method (performance, compatibility, agreement with backend/third party, etc.).
14
+ - **External Contract**: Field meanings and mapping relationships related to interfaces, design drafts, enumerations or units.
15
+ - **Interim Solutions and Technical Debt**: `TODO` / `FIXME` should indicate expected closure or associated work orders (if any).
16
+ - **Easy pitfalls**: Third-party library version differences, the calling sequence that must be met, and known limitations.
17
17
 
18
- ## 应避免的情况
18
+ ## Situations to avoid
19
19
 
20
- - 逐行翻译已能从代码直接看出的行为。
21
- - 注释与实现长期不一致;修改逻辑时同步更新或删除误导性注释。
22
- - 用大段注释代替应抽取的函数或应补全的类型。
20
+ - Line-by-line translation of behavior that can be seen directly from the code.
21
+ - Annotations are chronically inconsistent with the implementation; misleading annotations are updated or deleted synchronously when the logic is modified.
22
+ - Use large comments to replace functions that should be extracted or types that should be completed.
23
23
 
24
- ## 形式建议
24
+ ## Format Suggestions
25
25
 
26
- - 语言与仓库现有注释保持一致(中文或英文)。
27
- - 复杂模块或组件可在文件顶部用 **1~3 行** 说明职责与关键约束;跨包或对外导出的 API 宜用 **JSDoc** 说明参数、返回值与副作用。
28
- - 复杂条件分支或 `useEffect`:若依赖或触发条件不直观,用一行说明**触发条件**或**不变量**。
29
- - 临时规避、兼容旧系统或性能取舍必须说明原因和退出条件。
26
+ - The language is consistent with the existing comments in the warehouse (Chinese or English).
27
+ - Complex modules or components can use **1~3 lines** at the top of the file to describe responsibilities and key constraints; cross-package or externally exported APIs should use **JSDoc** to describe parameters, return values and side effects.
28
+ - Complex conditional branches or `useEffect`: If the dependency or triggering condition is not intuitive, use one line to describe the **triggering condition** or **invariant**.
29
+ - Temporary circumvention, compatibility with old systems or performance trade-offs must state reasons and exit conditions.
30
30
 
31
- ## 文档同步
31
+ ## Document synchronization
32
32
 
33
- 当修改公开命令、skill、agent、模板、报告命名或安装路径时,同步更新 README、runtime docs、项目结构文档和多语言说明。注释解释局部代码,公开文档解释团队如何使用能力,两者不要互相替代。
33
+ When modifying public commands, skills, agents, templates, report naming or installation paths, synchronize updates to README, runtime docs, project structure documents and multi-language instructions. Comments explain local code, and public documentation explains how the team uses capabilities. The two should not replace each other.