@bovinphang/frontend-craft 2.6.0 → 2.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (414) hide show
  1. package/.claude-plugin/marketplace.json +3 -3
  2. package/.claude-plugin/plugin.json +1 -1
  3. package/CHANGELOG.md +72 -1
  4. package/CHANGELOG.zh-CN.md +71 -1
  5. package/README.md +10 -6
  6. package/README.openclaw.md +100 -42
  7. package/README.openclaw.zh-CN.md +100 -42
  8. package/README.zh-CN.md +10 -6
  9. package/agents/fec-architect.md +70 -70
  10. package/agents/fec-code-reviewer.md +82 -82
  11. package/agents/fec-debugger.md +20 -20
  12. package/agents/fec-design-token-mapper.md +36 -36
  13. package/agents/fec-doc-updater.md +13 -13
  14. package/agents/fec-e2e-runner.md +45 -45
  15. package/agents/fec-figma-implementer.md +59 -59
  16. package/agents/fec-performance-optimizer.md +128 -128
  17. package/agents/fec-refactor-cleaner.md +14 -14
  18. package/agents/fec-security-reviewer.md +66 -67
  19. package/agents/fec-test-planner.md +27 -27
  20. package/agents/fec-typescript-reviewer.md +88 -88
  21. package/agents/fec-ui-checker.md +74 -74
  22. package/commands/fec-debug.md +19 -19
  23. package/commands/fec-doc-sync.md +11 -11
  24. package/commands/fec-init.md +37 -38
  25. package/commands/fec-plan.md +58 -58
  26. package/commands/fec-refactor-clean.md +11 -11
  27. package/commands/fec-review.md +41 -41
  28. package/commands/fec-scaffold.md +41 -41
  29. package/commands/fec-tdd.md +13 -13
  30. package/dist/bin/frontend-craft.js +29 -27
  31. package/docs/example-prompts.md +84 -69
  32. package/docs/ja-JP/README.md +56 -52
  33. package/docs/ko-KR/README.md +45 -41
  34. package/docs/project-structure.md +19 -7
  35. package/docs/superpowers/plans/2026-05-29-fec-debug.md +491 -0
  36. package/docs/superpowers/specs/2026-05-29-fec-debug-design.md +340 -0
  37. package/docs/zh-CN/example-prompts.md +84 -69
  38. package/docs/zh-CN/project-structure.md +14 -5
  39. package/docs/zh-TW/README.md +33 -29
  40. package/localized/zh-CN/agents/fec-architect.md +125 -0
  41. package/localized/zh-CN/agents/fec-code-reviewer.md +152 -0
  42. package/localized/zh-CN/agents/fec-debugger.md +44 -0
  43. package/localized/zh-CN/agents/fec-design-token-mapper.md +75 -0
  44. package/localized/zh-CN/agents/fec-doc-updater.md +30 -0
  45. package/localized/zh-CN/agents/fec-e2e-runner.md +107 -0
  46. package/localized/zh-CN/agents/fec-figma-implementer.md +104 -0
  47. package/localized/zh-CN/agents/fec-performance-optimizer.md +293 -0
  48. package/localized/zh-CN/agents/fec-refactor-cleaner.md +32 -0
  49. package/localized/zh-CN/agents/fec-security-reviewer.md +116 -0
  50. package/localized/zh-CN/agents/fec-test-planner.md +50 -0
  51. package/localized/zh-CN/agents/fec-typescript-reviewer.md +142 -0
  52. package/localized/zh-CN/agents/fec-ui-checker.md +120 -0
  53. package/localized/zh-CN/commands/fec-debug.md +30 -0
  54. package/localized/zh-CN/commands/fec-doc-sync.md +19 -0
  55. package/localized/zh-CN/commands/fec-init.md +70 -0
  56. package/localized/zh-CN/commands/fec-plan.md +94 -0
  57. package/localized/zh-CN/commands/fec-refactor-clean.md +19 -0
  58. package/localized/zh-CN/commands/fec-review.md +66 -0
  59. package/localized/zh-CN/commands/fec-scaffold.md +205 -0
  60. package/localized/zh-CN/commands/fec-tdd.md +21 -0
  61. package/localized/zh-CN/skills/TEMPLATE.md +155 -0
  62. package/localized/zh-CN/skills/eval_queries.json +1013 -0
  63. package/localized/zh-CN/skills/fec-accessibility-check/SKILL.md +39 -0
  64. package/localized/zh-CN/skills/fec-accessibility-check/references/report-template.md +23 -0
  65. package/localized/zh-CN/skills/fec-accessibility-check/references/screen-reader-testing.md +33 -0
  66. package/localized/zh-CN/skills/fec-alchemy/SKILL.md +74 -0
  67. package/localized/zh-CN/skills/fec-alchemy/assets/absorption-plan-template.md +47 -0
  68. package/localized/zh-CN/skills/fec-alchemy/assets/intake-template.md +55 -0
  69. package/localized/zh-CN/skills/fec-alchemy/assets/review-checklist.md +31 -0
  70. package/localized/zh-CN/skills/fec-alchemy/references/methodology.md +94 -0
  71. package/localized/zh-CN/skills/fec-alchemy/references/originality-and-licensing.md +57 -0
  72. package/localized/zh-CN/skills/fec-api-integration/SKILL.md +78 -0
  73. package/localized/zh-CN/skills/fec-api-integration/references/integration-patterns.md +80 -0
  74. package/localized/zh-CN/skills/fec-backend-requirements-handoff/SKILL.md +45 -0
  75. package/localized/zh-CN/skills/fec-browser-storage/SKILL.md +34 -0
  76. package/localized/zh-CN/skills/fec-browser-storage/references/storage-patterns.md +65 -0
  77. package/localized/zh-CN/skills/fec-canvas-threejs/SKILL.md +66 -0
  78. package/localized/zh-CN/skills/fec-canvas-threejs/references/rendering-patterns.md +67 -0
  79. package/localized/zh-CN/skills/fec-canvas-threejs/references/shader-webgl-patterns.md +67 -0
  80. package/localized/zh-CN/skills/fec-code-review/SKILL.md +143 -0
  81. package/localized/zh-CN/skills/fec-code-review/references/report-template.md +29 -0
  82. package/localized/zh-CN/skills/fec-component-testing/SKILL.md +119 -0
  83. package/localized/zh-CN/skills/fec-data-fetching/SKILL.md +62 -0
  84. package/localized/zh-CN/skills/fec-data-fetching/references/query-patterns.md +103 -0
  85. package/localized/zh-CN/skills/fec-debug-framework/SKILL.md +157 -0
  86. package/localized/zh-CN/skills/fec-debug-framework/references/report-template.md +58 -0
  87. package/localized/zh-CN/skills/fec-dependency-upgrade/SKILL.md +34 -0
  88. package/localized/zh-CN/skills/fec-dependency-upgrade/references/dependency-upgrade-workflow.md +56 -0
  89. package/localized/zh-CN/skills/fec-doc-sync/SKILL.md +39 -0
  90. package/localized/zh-CN/skills/fec-drawio-studio/SKILL.md +73 -0
  91. package/localized/zh-CN/skills/fec-drawio-studio/data/THIRD_PARTY_NOTICES.md +10 -0
  92. package/localized/zh-CN/skills/fec-drawio-studio/data/brand-icons.json +878 -0
  93. package/localized/zh-CN/skills/fec-drawio-studio/data/shape-index.json +83570 -0
  94. package/localized/zh-CN/skills/fec-drawio-studio/references/data-residency.md +27 -0
  95. package/localized/zh-CN/skills/fec-drawio-studio/references/diagram-patterns.md +60 -0
  96. package/localized/zh-CN/skills/fec-drawio-studio/references/flowchart-quality.md +49 -0
  97. package/localized/zh-CN/skills/fec-drawio-studio/references/layout-and-export.md +72 -0
  98. package/localized/zh-CN/skills/fec-drawio-studio/references/troubleshooting.md +29 -0
  99. package/localized/zh-CN/skills/fec-drawio-studio/references/xml-and-mermaid.md +58 -0
  100. package/localized/zh-CN/skills/fec-drawio-studio/scripts/brand-symbols.mjs +99 -0
  101. package/localized/zh-CN/skills/fec-drawio-studio/scripts/diagram-lint.mjs +205 -0
  102. package/localized/zh-CN/skills/fec-drawio-studio/scripts/diagram-url.mjs +102 -0
  103. package/localized/zh-CN/skills/fec-drawio-studio/scripts/drawio-export.mjs +134 -0
  104. package/localized/zh-CN/skills/fec-drawio-studio/scripts/layout-graph.mjs +107 -0
  105. package/localized/zh-CN/skills/fec-drawio-studio/scripts/png-embed-fix.mjs +26 -0
  106. package/localized/zh-CN/skills/fec-drawio-studio/scripts/scan-go-packages.mjs +36 -0
  107. package/localized/zh-CN/skills/fec-drawio-studio/scripts/scan-js-modules.mjs +52 -0
  108. package/localized/zh-CN/skills/fec-drawio-studio/scripts/scan-python-classes.mjs +30 -0
  109. package/localized/zh-CN/skills/fec-drawio-studio/scripts/scan-python-modules.mjs +55 -0
  110. package/localized/zh-CN/skills/fec-drawio-studio/scripts/scan-rust-modules.mjs +35 -0
  111. package/localized/zh-CN/skills/fec-drawio-studio/scripts/scan-ts-modules.mjs +7 -0
  112. package/localized/zh-CN/skills/fec-drawio-studio/scripts/shape-query.mjs +121 -0
  113. package/localized/zh-CN/skills/fec-drawio-studio/scripts/studio-core.mjs +139 -0
  114. package/localized/zh-CN/skills/fec-drawio-studio/styles/built-in/corporate.json +49 -0
  115. package/localized/zh-CN/skills/fec-drawio-studio/styles/built-in/default.json +49 -0
  116. package/localized/zh-CN/skills/fec-drawio-studio/styles/built-in/handdrawn.json +49 -0
  117. package/localized/zh-CN/skills/fec-drawio-studio/styles/schema.json +112 -0
  118. package/localized/zh-CN/skills/fec-e2e-testing/SKILL.md +42 -0
  119. package/localized/zh-CN/skills/fec-e2e-testing/references/e2e-ci-reporting.md +62 -0
  120. package/localized/zh-CN/skills/fec-e2e-testing/references/e2e-special-scenarios.md +52 -0
  121. package/localized/zh-CN/skills/fec-e2e-testing/references/e2e-visual-regression.md +60 -0
  122. package/localized/zh-CN/skills/fec-e2e-testing/references/playwright-patterns.md +95 -0
  123. package/localized/zh-CN/skills/fec-form-handling/SKILL.md +76 -0
  124. package/localized/zh-CN/skills/fec-form-handling/references/advanced-form-patterns.md +101 -0
  125. package/localized/zh-CN/skills/fec-image-generation/SKILL.md +80 -0
  126. package/localized/zh-CN/skills/fec-image-generation/assets/interactive-diagram.html +371 -0
  127. package/localized/zh-CN/skills/fec-image-generation/references/artifact-routing.md +80 -0
  128. package/localized/zh-CN/skills/fec-image-generation/references/diagram-workflows.md +74 -0
  129. package/localized/zh-CN/skills/fec-image-generation/references/html-technical-diagrams.md +236 -0
  130. package/localized/zh-CN/skills/fec-image-generation/references/png-qa-autofix.md +30 -0
  131. package/localized/zh-CN/skills/fec-image-generation/scripts/export-diagram.mjs +364 -0
  132. package/localized/zh-CN/skills/fec-image-generation/scripts/interactive-diagram-server.mjs +654 -0
  133. package/localized/zh-CN/skills/fec-image-generation/scripts/png-qa.mjs +431 -0
  134. package/localized/zh-CN/skills/fec-image-generation/scripts/tech-diagram-render.mjs +1397 -0
  135. package/localized/zh-CN/skills/fec-implement-from-design/SKILL.md +129 -0
  136. package/localized/zh-CN/skills/fec-implement-from-design/references/design-plan-template.md +36 -0
  137. package/localized/zh-CN/skills/fec-legacy-to-modern-migration/SKILL.md +46 -0
  138. package/localized/zh-CN/skills/fec-legacy-to-modern-migration/references/migration-execution-checklist.md +110 -0
  139. package/localized/zh-CN/skills/fec-legacy-to-modern-migration/references/migration-report-template.md +41 -0
  140. package/localized/zh-CN/skills/fec-legacy-to-modern-migration/references/migration-strategy-and-mapping.md +48 -0
  141. package/localized/zh-CN/skills/fec-legacy-web-standard/SKILL.md +35 -0
  142. package/localized/zh-CN/skills/fec-legacy-web-standard/references/legacy-patterns.md +85 -0
  143. package/localized/zh-CN/skills/fec-list-virtualization/SKILL.md +34 -0
  144. package/localized/zh-CN/skills/fec-list-virtualization/references/virtualization-patterns.md +80 -0
  145. package/localized/zh-CN/skills/fec-monorepo-project-standard/SKILL.md +142 -0
  146. package/localized/zh-CN/skills/fec-motion-interaction/SKILL.md +73 -0
  147. package/localized/zh-CN/skills/fec-motion-interaction/references/motion-patterns.md +112 -0
  148. package/localized/zh-CN/skills/fec-nextjs-project-standard/SKILL.md +123 -0
  149. package/localized/zh-CN/skills/fec-nuxt-project-standard/SKILL.md +122 -0
  150. package/localized/zh-CN/skills/fec-performance-optimization/SKILL.md +80 -0
  151. package/localized/zh-CN/skills/fec-performance-optimization/references/framework-performance-patterns.md +38 -0
  152. package/localized/zh-CN/skills/fec-performance-optimization/references/report-template.md +59 -0
  153. package/localized/zh-CN/skills/fec-pwa-implementation/SKILL.md +35 -0
  154. package/localized/zh-CN/skills/fec-pwa-implementation/references/manifest-and-icons.md +53 -0
  155. package/localized/zh-CN/skills/fec-pwa-implementation/references/service-worker-workbox.md +68 -0
  156. package/localized/zh-CN/skills/fec-react-project-standard/SKILL.md +91 -0
  157. package/localized/zh-CN/skills/fec-react-project-standard/references/react-performance-patterns.md +35 -0
  158. package/localized/zh-CN/skills/fec-react-project-standard/references/react-project-structure.md +197 -0
  159. package/localized/zh-CN/skills/fec-react-project-standard/references/react-quality-patterns.md +131 -0
  160. package/localized/zh-CN/skills/fec-react-project-standard/references/react-runtime-patterns.md +293 -0
  161. package/localized/zh-CN/skills/fec-refactor-clean/SKILL.md +51 -0
  162. package/localized/zh-CN/skills/fec-refactor-clean/references/report-template.md +42 -0
  163. package/localized/zh-CN/skills/fec-responsive-layout/SKILL.md +34 -0
  164. package/localized/zh-CN/skills/fec-responsive-layout/references/responsive-layout-patterns.md +70 -0
  165. package/localized/zh-CN/skills/fec-route-protection/SKILL.md +135 -0
  166. package/localized/zh-CN/skills/fec-security-review/SKILL.md +38 -0
  167. package/localized/zh-CN/skills/fec-security-review/references/report-template.md +27 -0
  168. package/localized/zh-CN/skills/fec-security-review/references/security-checklist.md +64 -0
  169. package/localized/zh-CN/skills/fec-source-driven-development/SKILL.md +87 -0
  170. package/localized/zh-CN/skills/fec-state-management/SKILL.md +140 -0
  171. package/localized/zh-CN/skills/fec-state-management/references/state-patterns.md +109 -0
  172. package/localized/zh-CN/skills/fec-storybook-component-doc/SKILL.md +37 -0
  173. package/localized/zh-CN/skills/fec-storybook-component-doc/references/story-patterns.md +118 -0
  174. package/localized/zh-CN/skills/fec-svg-animation/SKILL.md +148 -0
  175. package/localized/zh-CN/skills/fec-tailwind-design-system/SKILL.md +34 -0
  176. package/localized/zh-CN/skills/fec-tailwind-design-system/references/tailwind-system-patterns.md +59 -0
  177. package/localized/zh-CN/skills/fec-tdd-workflow/SKILL.md +52 -0
  178. package/localized/zh-CN/skills/fec-testing-strategy/SKILL.md +45 -0
  179. package/localized/zh-CN/skills/fec-typescript-project-standard/SKILL.md +54 -0
  180. package/{skills/fec-typescript-type-safety → localized/zh-CN/skills/fec-typescript-project-standard}/references/type-safety-patterns.md +1 -1
  181. package/{skills/fec-typescript-type-safety/SKILL.md → localized/zh-CN/skills/fec-typescript-project-standard/references/type-safety.md} +5 -14
  182. package/localized/zh-CN/skills/fec-ui-design/SKILL.md +108 -0
  183. package/localized/zh-CN/skills/fec-ui-design/data/product-rules.json +231 -0
  184. package/localized/zh-CN/skills/fec-ui-design/data/stack-ui-rules.json +146 -0
  185. package/localized/zh-CN/skills/fec-ui-design/data/style-archetypes.json +373 -0
  186. package/localized/zh-CN/skills/fec-ui-design/data/ux-quality-rules.json +203 -0
  187. package/localized/zh-CN/skills/fec-ui-design/references/design-intelligence.md +97 -0
  188. package/localized/zh-CN/skills/fec-ui-design/references/master-page-overrides.md +30 -0
  189. package/localized/zh-CN/skills/fec-ui-design/references/pre-delivery-checklist.md +39 -0
  190. package/localized/zh-CN/skills/fec-ui-design/scripts/design-system.mjs +648 -0
  191. package/localized/zh-CN/skills/fec-validation-fix/SKILL.md +51 -0
  192. package/localized/zh-CN/skills/fec-validation-fix/references/report-template.md +43 -0
  193. package/localized/zh-CN/skills/fec-vite-project-standard/SKILL.md +83 -0
  194. package/localized/zh-CN/skills/fec-vue3-project-standard/SKILL.md +58 -0
  195. package/localized/zh-CN/skills/fec-vue3-project-standard/references/vue3-composables-routing.md +162 -0
  196. package/localized/zh-CN/skills/fec-vue3-project-standard/references/vue3-performance-patterns.md +13 -0
  197. package/localized/zh-CN/skills/fec-vue3-project-standard/references/vue3-project-structure.md +176 -0
  198. package/localized/zh-CN/skills/fec-vue3-project-standard/references/vue3-state-api-quality.md +216 -0
  199. package/localized/zh-CN/skills/fec-web-video-presentation/SKILL.md +61 -0
  200. package/localized/zh-CN/skills/fec-web-video-presentation/data/starter-themes.json +59 -0
  201. package/localized/zh-CN/skills/fec-web-video-presentation/references/chapter-craft.md +37 -0
  202. package/localized/zh-CN/skills/fec-web-video-presentation/references/content-plan.md +38 -0
  203. package/localized/zh-CN/skills/fec-web-video-presentation/references/recording-and-audio.md +33 -0
  204. package/localized/zh-CN/skills/fec-web-video-presentation/references/theme-system.md +36 -0
  205. package/localized/zh-CN/skills/fec-web-video-presentation/scripts/create-video-presentation.mjs +430 -0
  206. package/localized/zh-CN/skills/fec-web-workers/SKILL.md +35 -0
  207. package/localized/zh-CN/skills/fec-web-workers/references/advanced-workers.md +54 -0
  208. package/localized/zh-CN/skills/fec-web-workers/references/basic-worker.md +67 -0
  209. package/localized/zh-CN/skills/metadata.json +1646 -0
  210. package/localized/zh-CN/skills/relations.json +755 -0
  211. package/localized/zh-CN/templates/claude/CLAUDE.md +106 -0
  212. package/localized/zh-CN/templates/claude/settings.json +62 -0
  213. package/localized/zh-CN/templates/codex/AGENTS.md +105 -0
  214. package/localized/zh-CN/templates/codex/config.toml +32 -0
  215. package/localized/zh-CN/templates/openclaw/AGENTS.md +101 -0
  216. package/localized/zh-CN/templates/openclaw/OPENCLAW-CONFIG.md +12 -0
  217. package/localized/zh-CN/templates/shared/rules/fec-agent-workflow.md +54 -0
  218. package/localized/zh-CN/templates/shared/rules/fec-api-layer.md +99 -0
  219. package/localized/zh-CN/templates/shared/rules/fec-ci-cd.md +40 -0
  220. package/localized/zh-CN/templates/shared/rules/fec-code-comments.md +33 -0
  221. package/localized/zh-CN/templates/shared/rules/fec-design-system.md +72 -0
  222. package/localized/zh-CN/templates/shared/rules/fec-error-handling.md +56 -0
  223. package/localized/zh-CN/templates/shared/rules/fec-git-conventions.md +73 -0
  224. package/localized/zh-CN/templates/shared/rules/fec-i18n.md +64 -0
  225. package/localized/zh-CN/templates/shared/rules/fec-naming-conventions.md +120 -0
  226. package/localized/zh-CN/templates/shared/rules/fec-performance.md +101 -0
  227. package/localized/zh-CN/templates/shared/rules/fec-react.md +82 -0
  228. package/localized/zh-CN/templates/shared/rules/fec-refactoring.md +47 -0
  229. package/localized/zh-CN/templates/shared/rules/fec-rendering-patterns.md +40 -0
  230. package/localized/zh-CN/templates/shared/rules/fec-responsive-design.md +50 -0
  231. package/localized/zh-CN/templates/shared/rules/fec-source-driven-development.md +31 -0
  232. package/localized/zh-CN/templates/shared/rules/fec-state-management.md +60 -0
  233. package/localized/zh-CN/templates/shared/rules/fec-testing.md +98 -0
  234. package/localized/zh-CN/templates/shared/rules/fec-typescript.md +112 -0
  235. package/localized/zh-CN/templates/shared/rules/fec-vue.md +64 -0
  236. package/localized/zh-CN/templates/shared/rules/fec-working-modes.md +50 -0
  237. package/openclaw.plugin.json +1 -1
  238. package/package.json +4 -3
  239. package/skills/TEMPLATE.md +74 -74
  240. package/skills/eval_queries.json +717 -619
  241. package/skills/fec-accessibility-check/SKILL.md +21 -21
  242. package/skills/fec-accessibility-check/references/report-template.md +12 -12
  243. package/skills/fec-accessibility-check/references/screen-reader-testing.md +24 -24
  244. package/skills/fec-alchemy/SKILL.md +50 -50
  245. package/skills/fec-alchemy/assets/absorption-plan-template.md +32 -32
  246. package/skills/fec-alchemy/assets/intake-template.md +55 -55
  247. package/skills/fec-alchemy/assets/review-checklist.md +23 -23
  248. package/skills/fec-alchemy/references/methodology.md +66 -66
  249. package/skills/fec-alchemy/references/originality-and-licensing.md +42 -42
  250. package/skills/fec-api-integration/SKILL.md +61 -61
  251. package/skills/fec-api-integration/references/integration-patterns.md +30 -30
  252. package/skills/fec-backend-requirements-handoff/SKILL.md +45 -0
  253. package/skills/fec-browser-storage/SKILL.md +16 -16
  254. package/skills/fec-browser-storage/references/storage-patterns.md +16 -16
  255. package/skills/fec-canvas-threejs/SKILL.md +21 -21
  256. package/skills/fec-canvas-threejs/references/rendering-patterns.md +10 -10
  257. package/skills/fec-canvas-threejs/references/shader-webgl-patterns.md +37 -37
  258. package/skills/fec-code-review/SKILL.md +94 -94
  259. package/skills/fec-code-review/references/report-template.md +13 -13
  260. package/skills/fec-component-testing/SKILL.md +39 -39
  261. package/skills/fec-data-fetching/SKILL.md +16 -16
  262. package/skills/fec-data-fetching/references/query-patterns.md +27 -27
  263. package/skills/fec-debug-framework/SKILL.md +95 -95
  264. package/skills/fec-debug-framework/references/report-template.md +34 -34
  265. package/skills/fec-dependency-upgrade/SKILL.md +17 -17
  266. package/skills/fec-dependency-upgrade/references/dependency-upgrade-workflow.md +31 -31
  267. package/skills/fec-doc-sync/SKILL.md +23 -23
  268. package/skills/fec-drawio-studio/SKILL.md +73 -0
  269. package/skills/fec-drawio-studio/data/THIRD_PARTY_NOTICES.md +10 -0
  270. package/skills/fec-drawio-studio/data/brand-icons.json +878 -0
  271. package/skills/fec-drawio-studio/data/shape-index.json +83570 -0
  272. package/skills/fec-drawio-studio/references/data-residency.md +27 -0
  273. package/skills/fec-drawio-studio/references/diagram-patterns.md +60 -0
  274. package/skills/fec-drawio-studio/references/flowchart-quality.md +49 -0
  275. package/skills/fec-drawio-studio/references/layout-and-export.md +72 -0
  276. package/skills/fec-drawio-studio/references/troubleshooting.md +29 -0
  277. package/skills/fec-drawio-studio/references/xml-and-mermaid.md +58 -0
  278. package/skills/fec-drawio-studio/scripts/brand-symbols.mjs +99 -0
  279. package/skills/fec-drawio-studio/scripts/diagram-lint.mjs +205 -0
  280. package/skills/fec-drawio-studio/scripts/diagram-url.mjs +102 -0
  281. package/skills/fec-drawio-studio/scripts/drawio-export.mjs +134 -0
  282. package/skills/fec-drawio-studio/scripts/layout-graph.mjs +107 -0
  283. package/skills/fec-drawio-studio/scripts/png-embed-fix.mjs +26 -0
  284. package/skills/fec-drawio-studio/scripts/scan-go-packages.mjs +36 -0
  285. package/skills/fec-drawio-studio/scripts/scan-js-modules.mjs +52 -0
  286. package/skills/fec-drawio-studio/scripts/scan-python-classes.mjs +30 -0
  287. package/skills/fec-drawio-studio/scripts/scan-python-modules.mjs +55 -0
  288. package/skills/fec-drawio-studio/scripts/scan-rust-modules.mjs +35 -0
  289. package/skills/fec-drawio-studio/scripts/scan-ts-modules.mjs +7 -0
  290. package/skills/fec-drawio-studio/scripts/shape-query.mjs +121 -0
  291. package/skills/fec-drawio-studio/scripts/studio-core.mjs +139 -0
  292. package/skills/fec-drawio-studio/styles/built-in/corporate.json +49 -0
  293. package/skills/fec-drawio-studio/styles/built-in/default.json +49 -0
  294. package/skills/fec-drawio-studio/styles/built-in/handdrawn.json +49 -0
  295. package/skills/fec-drawio-studio/styles/schema.json +112 -0
  296. package/skills/fec-e2e-testing/SKILL.md +24 -22
  297. package/skills/fec-e2e-testing/references/e2e-ci-reporting.md +62 -0
  298. package/skills/fec-e2e-testing/references/e2e-special-scenarios.md +52 -0
  299. package/skills/fec-e2e-testing/references/e2e-visual-regression.md +60 -0
  300. package/skills/fec-e2e-testing/references/playwright-patterns.md +6 -6
  301. package/skills/fec-form-handling/SKILL.md +21 -21
  302. package/skills/fec-form-handling/references/advanced-form-patterns.md +41 -41
  303. package/skills/fec-image-generation/SKILL.md +81 -0
  304. package/skills/fec-image-generation/assets/interactive-diagram.html +371 -0
  305. package/skills/fec-image-generation/references/artifact-routing.md +80 -0
  306. package/skills/fec-image-generation/references/diagram-workflows.md +74 -0
  307. package/skills/fec-image-generation/references/html-technical-diagrams.md +236 -0
  308. package/skills/fec-image-generation/references/png-qa-autofix.md +30 -0
  309. package/skills/fec-image-generation/scripts/export-diagram.mjs +364 -0
  310. package/skills/fec-image-generation/scripts/interactive-diagram-server.mjs +654 -0
  311. package/skills/fec-image-generation/scripts/png-qa.mjs +431 -0
  312. package/skills/fec-image-generation/scripts/tech-diagram-render.mjs +1397 -0
  313. package/skills/fec-implement-from-design/SKILL.md +81 -74
  314. package/skills/fec-implement-from-design/references/design-plan-template.md +16 -16
  315. package/skills/fec-legacy-to-modern-migration/SKILL.md +29 -173
  316. package/skills/fec-legacy-to-modern-migration/references/migration-execution-checklist.md +110 -0
  317. package/skills/fec-legacy-to-modern-migration/references/migration-report-template.md +37 -37
  318. package/skills/fec-legacy-to-modern-migration/references/migration-strategy-and-mapping.md +48 -0
  319. package/skills/fec-legacy-web-standard/SKILL.md +17 -17
  320. package/skills/fec-legacy-web-standard/references/legacy-patterns.md +16 -16
  321. package/skills/fec-list-virtualization/SKILL.md +16 -16
  322. package/skills/fec-list-virtualization/references/virtualization-patterns.md +31 -31
  323. package/skills/fec-monorepo-project-standard/SKILL.md +52 -52
  324. package/skills/fec-motion-interaction/SKILL.md +51 -44
  325. package/skills/fec-motion-interaction/references/motion-patterns.md +11 -11
  326. package/skills/fec-nextjs-project-standard/SKILL.md +64 -58
  327. package/skills/fec-nuxt-project-standard/SKILL.md +57 -57
  328. package/skills/fec-performance-optimization/SKILL.md +54 -50
  329. package/skills/fec-performance-optimization/references/framework-performance-patterns.md +38 -0
  330. package/skills/fec-performance-optimization/references/report-template.md +34 -28
  331. package/skills/fec-pwa-implementation/SKILL.md +17 -17
  332. package/skills/fec-pwa-implementation/references/manifest-and-icons.md +12 -12
  333. package/skills/fec-pwa-implementation/references/service-worker-workbox.md +13 -13
  334. package/skills/fec-react-project-standard/SKILL.md +72 -64
  335. package/skills/fec-react-project-standard/references/react-performance-patterns.md +35 -0
  336. package/skills/fec-react-project-standard/references/react-project-structure.md +197 -0
  337. package/skills/fec-react-project-standard/references/react-quality-patterns.md +131 -0
  338. package/skills/fec-react-project-standard/references/react-runtime-patterns.md +293 -0
  339. package/skills/fec-refactor-clean/SKILL.md +30 -30
  340. package/skills/fec-refactor-clean/references/report-template.md +23 -23
  341. package/skills/fec-responsive-layout/SKILL.md +17 -17
  342. package/skills/fec-responsive-layout/references/responsive-layout-patterns.md +39 -28
  343. package/skills/fec-route-protection/SKILL.md +26 -26
  344. package/skills/fec-security-review/SKILL.md +20 -20
  345. package/skills/fec-security-review/references/report-template.md +12 -12
  346. package/skills/fec-security-review/references/security-checklist.md +27 -27
  347. package/skills/fec-source-driven-development/SKILL.md +66 -40
  348. package/skills/fec-state-management/SKILL.md +34 -34
  349. package/skills/fec-state-management/references/state-patterns.md +19 -19
  350. package/skills/fec-storybook-component-doc/SKILL.md +19 -19
  351. package/skills/fec-storybook-component-doc/references/story-patterns.md +12 -12
  352. package/skills/fec-svg-animation/SKILL.md +32 -32
  353. package/skills/fec-tailwind-design-system/SKILL.md +17 -17
  354. package/skills/fec-tailwind-design-system/references/tailwind-system-patterns.md +36 -32
  355. package/skills/fec-tdd-workflow/SKILL.md +28 -28
  356. package/skills/fec-testing-strategy/SKILL.md +29 -29
  357. package/skills/fec-typescript-project-standard/SKILL.md +54 -0
  358. package/skills/fec-typescript-project-standard/references/type-safety-patterns.md +102 -0
  359. package/skills/fec-typescript-project-standard/references/type-safety.md +148 -0
  360. package/skills/fec-ui-design/SKILL.md +90 -72
  361. package/skills/fec-ui-design/data/style-archetypes.json +40 -0
  362. package/skills/fec-ui-design/data/ux-quality-rules.json +35 -0
  363. package/skills/fec-ui-design/references/design-intelligence.md +81 -21
  364. package/skills/fec-ui-design/references/master-page-overrides.md +15 -15
  365. package/skills/fec-ui-design/references/pre-delivery-checklist.md +38 -32
  366. package/skills/fec-ui-design/scripts/design-system.mjs +119 -1
  367. package/skills/fec-validation-fix/SKILL.md +26 -26
  368. package/skills/fec-validation-fix/references/report-template.md +25 -25
  369. package/skills/fec-vite-project-standard/SKILL.md +39 -39
  370. package/skills/fec-vue3-project-standard/SKILL.md +39 -30
  371. package/skills/fec-vue3-project-standard/references/vue3-composables-routing.md +163 -0
  372. package/skills/fec-vue3-project-standard/references/vue3-performance-patterns.md +13 -0
  373. package/skills/fec-vue3-project-standard/references/vue3-project-structure.md +177 -0
  374. package/skills/fec-vue3-project-standard/references/vue3-state-api-quality.md +216 -0
  375. package/skills/fec-web-video-presentation/SKILL.md +61 -0
  376. package/skills/fec-web-video-presentation/data/starter-themes.json +59 -0
  377. package/skills/fec-web-video-presentation/references/chapter-craft.md +37 -0
  378. package/skills/fec-web-video-presentation/references/content-plan.md +38 -0
  379. package/skills/fec-web-video-presentation/references/recording-and-audio.md +33 -0
  380. package/skills/fec-web-video-presentation/references/theme-system.md +36 -0
  381. package/skills/fec-web-video-presentation/scripts/create-video-presentation.mjs +430 -0
  382. package/skills/fec-web-workers/SKILL.md +16 -16
  383. package/skills/fec-web-workers/references/advanced-workers.md +13 -13
  384. package/skills/fec-web-workers/references/basic-worker.md +8 -8
  385. package/skills/metadata.json +402 -220
  386. package/skills/relations.json +120 -25
  387. package/templates/claude/CLAUDE.md +60 -60
  388. package/templates/codex/AGENTS.md +76 -76
  389. package/templates/codex/config.toml +4 -4
  390. package/templates/openclaw/AGENTS.md +68 -68
  391. package/templates/openclaw/OPENCLAW-CONFIG.md +8 -8
  392. package/templates/shared/rules/fec-agent-workflow.md +40 -40
  393. package/templates/shared/rules/fec-api-layer.md +52 -52
  394. package/templates/shared/rules/fec-ci-cd.md +29 -117
  395. package/templates/shared/rules/fec-code-comments.md +22 -22
  396. package/templates/shared/rules/fec-design-system.md +65 -241
  397. package/templates/shared/rules/fec-error-handling.md +41 -185
  398. package/templates/shared/rules/fec-git-conventions.md +42 -42
  399. package/templates/shared/rules/fec-i18n.md +48 -96
  400. package/templates/shared/rules/fec-naming-conventions.md +91 -91
  401. package/templates/shared/rules/fec-performance.md +78 -78
  402. package/templates/shared/rules/fec-react.md +58 -58
  403. package/templates/shared/rules/fec-refactoring.md +34 -30
  404. package/templates/shared/rules/fec-rendering-patterns.md +40 -183
  405. package/templates/shared/rules/fec-responsive-design.md +37 -214
  406. package/templates/shared/rules/fec-source-driven-development.md +22 -22
  407. package/templates/shared/rules/fec-state-management.md +45 -148
  408. package/templates/shared/rules/fec-testing.md +64 -64
  409. package/templates/shared/rules/fec-typescript.md +98 -341
  410. package/templates/shared/rules/fec-vue.md +42 -42
  411. package/templates/shared/rules/fec-working-modes.md +34 -34
  412. package/skills/fec-e2e-testing/references/e2e-advanced.md +0 -176
  413. package/skills/fec-react-project-standard/references/react-project-details.md +0 -642
  414. package/skills/fec-vue3-project-standard/references/vue3-project-details.md +0 -547
@@ -1,90 +1,108 @@
1
1
  ---
2
2
  name: fec-ui-design
3
- description: Use when building, reviewing, or improving frontend UI that needs product-specific design direction, design-system generation, Master/Page overrides, distinctive visual identity, anti-generic interface choices, first-screen hierarchy, UI polish, chart UX, interaction states, responsive behavior, or visual QA. When an external design file is authoritative, implement from that source instead of inventing direction; Chinese triggers include UI 设计, 设计系统, 视觉风格, 不要模板化, 高级感, 界面打磨, 交互状态.
3
+ description: Use when building, reviewing, or improving frontend UI that needs product-specific design direction, design-system generation, Master/Page overrides, distinctive visual identity, anti-generic interface choices, first-screen hierarchy, UI polish, chart UX, interaction states, responsive behavior, or visual QA. Interface polishing, interactive state.
4
4
  ---
5
5
 
6
- # UI 设计
6
+ #UI design
7
7
 
8
- 适用于需要把前端界面推进到“符合产品语境、可扫描、可信赖、有辨识度,并且细节稳定”的 UI 任务。需要系统化设计建议时,加载 [design-intelligence.md](references/design-intelligence.md);需要长期沉淀设计系统时,加载 [master-page-overrides.md](references/master-page-overrides.md);上线前做 UI/UX QA 时,加载 [pre-delivery-checklist.md](references/pre-delivery-checklist.md)。
8
+ Suitable for UI tasks that require advancing the front-end interface to be "in line with the product context, scannable, trustworthy, recognizable, and stable in details". When systematic design suggestions are needed, load [design-intelligence.md](references/design-intelligence.md); when long-term precipitation of the design system is required, load [master-page-overrides.md](references/master-page-overrides.md); when doing UI/UX QA before going online, load [pre-delivery-checklist.md](references/pre-delivery-checklist.md).
9
9
 
10
- 可执行设计系统生成器位于 [design-system.mjs](scripts/design-system.mjs),其原创知识包包括 [product-rules.json](data/product-rules.json)、[style-archetypes.json](data/style-archetypes.json)、[ux-quality-rules.json](data/ux-quality-rules.json) 和 [stack-ui-rules.json](data/stack-ui-rules.json)。
10
+ The executable design system generator is located at [design-system.mjs](scripts/design-system.mjs), and its original knowledge package includes [product-rules.json](data/product-rules.json), [style-archetypes.json](data/style-archetypes.json), [ux-quality-rules.json](data/ux-quality-rules.json) and [stack-ui-rules.json](data/stack-ui-rules.json).
11
11
 
12
12
  ## Purpose
13
13
 
14
- 为页面、组件、仪表盘和工具界面建立设计方向,并完成可落地的视觉与交互 polish。
14
+ Establish design direction for pages, components, dashboards and tool interfaces, and complete implementable visual and interactive polish.
15
15
 
16
16
  ## Procedure
17
17
 
18
- 1. 明确界面的工作
19
- - 先说清它帮助用户完成什么任务,而不是先选颜色或布局。
20
- - 判断这是日常高频工具、营销展示、内容阅读、可视化探索、游戏,还是配置/管理后台。
21
- - 如果已有 Figma、Sketch、MasterGo、Pixso、墨刀、摹客或截图是事实来源,优先还原设计上下文,不自行发明方向。
22
-
23
- 2. 定义审美主张
24
- - 写出目标用户、使用场景、可信赖感来源和一个可被记住的视觉锚点。
25
- - 视觉锚点可以来自信息结构、真实媒体、数据形态、行业材质、字体性格、交互节奏或空间组织,而不是空泛装饰。
26
- - 表现力必须服务业务语境:工具型界面重效率和稳定,展示型页面重主体识别和记忆点。
27
- - 为页面类型设定设计拨盘:信息密度、视觉张力、动效强度、内容说服力和媒体真实性;这些拨盘必须随任务变化,而不是沿用同一套模板。
28
-
29
- 3. 生成或读取设计系统
30
- - 若项目还没有设计系统,可运行 `node skills/fec-ui-design/scripts/design-system.mjs "<product audience tone>" --project "<name>"` 生成建议。
31
- - 若需要跨会话复用,使用 `--persist` 生成 `design-system/<project>/MASTER.md`;页面差异用 `--page <page>` 写入 `pages/<page>.md`。
32
- - 构建具体页面时先读页面 override,再读 Master;页面规则只覆盖差异,不复制全量设计系统。
33
-
34
- 4. 建立首屏与视觉层级
35
- - 工具型界面:首屏直接呈现核心工作区、列表、表格、画布或编辑器。
36
- - 落地页:H1 使用品牌、产品、地点、人名或明确品类,价值说明放在辅助文案。
37
- - 产品/对象页:首屏必须可见真实产品、对象、状态或可检查媒体。
38
- - 首屏应留下一个明确记忆点,但不能遮挡核心任务、导航和状态反馈。
39
- - 营销和产品页需要先写清受众、痛点、承诺、证据和行动入口;文案结构服务转化,但不使用夸张、空泛或不可验证的声明。
40
-
41
- 5. 组织视觉语言
42
- - 字体:优先沿用项目字体体系;若任务允许建立新方向,选择能表达产品性格的标题/正文字体组合,并保证可读性。
43
- - 色彩:明确主色、功能色、中性色和强调色的角色,避免所有元素平均用力。
44
- - 空间:根据任务选择高密度、留白、非对称、分栏、画布式或编辑器式布局,不套用固定卡片模板。
45
- - 动效:只为页面入场、层级展开、状态确认、错误反馈和重点引导建立节奏,并尊重 `prefers-reduced-motion`。
46
- - 媒体:优先使用真实产品、真实状态、真实图表、可检查截图或本地生成资产;不要用模糊氛围图、占位 URL 或无关插画替代主体信息。
47
- - 图表:先判断数据任务是趋势、比较、构成、分布还是流程,再选择图表,不把所有数据都做成卡片或饼图。
48
-
49
- 6. 对齐设计系统、组件与 token
50
- - 先复用项目已有组件、token、图标库、路由和布局约定。
51
- - 缺少 token 时集中补齐或明确记录,不要在多个组件里散落硬编码。
52
- - 复杂 UI 在实现前写出复用组件、新建组件、响应式策略和状态覆盖。
53
- - 设计系统先定义语义 token、组件 API、状态矩阵和使用边界,再落到 Tailwind、CSS Modules、组件库或 CSS 变量实现。
54
- - Tailwind 专项 token、variant、dark mode 和 class 治理分流到 Tailwind 设计系统工作流;跨设备布局、容器查询和触摸目标分流到响应式布局工作流。
55
- - 组件 API 应区分基础组件、业务组件和页面私有组件;避免让单个 `variant` 同时承担语义、尺寸、密度和权限含义。
56
-
57
- 7. 打磨几何、文本和状态
58
- - 嵌套圆角遵循“外层圆角约等于内层圆角 + 间距”的光学关系。
59
- - 非对称图标、播放三角、箭头、星标等需要按视觉中心微调。
60
- - 标题和短文本可使用 `text-wrap: balance` 或 `text-wrap: pretty`。
61
- - 表格、价格、计数器、计时器使用 `font-variant-numeric: tabular-nums`。
62
- - 小控件点击区域至少 40x40px,空间允许时优先 44x44px。
63
- - focus ring 用于键盘定位,hover/active 用于鼠标反馈,disabled 不只靠透明度表达。
64
-
65
- 8. 验证设计结果
66
- - 检查 loading、empty、error、disabled、hover、focus、selected 状态。
67
- - 在 mobile(375px)、tablet(768px)、desktop(1440px) 检查文案是否溢出或遮挡。
68
- - 对依赖图片、图表、画布或 3D 的界面,确认资源真实渲染且承担主体信息。
69
- - 复核是否存在默认紫色渐变、空泛 hero、卡片堆叠、单一色相或无语境字体等模板化痕迹。
70
- - 检查首屏是否同时具备任务入口、主体识别、可信证据和下一屏内容线索;若只剩装饰,应回到信息架构重做。
71
- - 对生产级控件补齐 hover、active、focus-visible、disabled、loading、selected、invalid 和 skeleton 状态。
72
- - 对仪表盘、表格、编辑器和配置台检查扫描路径、密度、固定尺寸和重复使用时的疲劳感。
18
+ 1. Clarify the work of the interface
19
+ - Start by saying what task it helps the user accomplish, rather than choosing a color or layout first.
20
+ - Determine whether this is a daily high-frequency tool, marketing display, content reading, visual exploration, game, or configuration/management backend.
21
+ - If Figma, Sketch, MasterGo, Pixso, Ink Knife, Mockup or screenshots are the source of truth, give priority to restoring the design context and do not invent your own direction.
22
+
23
+ 2. Read the design context
24
+ - Before deciding on layout, colors, fonts, or motion, write out a line of design that reads: page type, target audience, primary mission, brand constraints, and sources of trustworthiness.
25
+ - Determine whether the current interface is a visual website, work/brand display, product marketing, tool workspace, data-intensive interface, mobile native process, or design draft restoration task.
26
+ - If the brief is clearly divergent, e.g. "minimalist yet intensely experimental", only ask a question that will change direction; otherwise make clear choices based on context.
27
+ - Regulated, public service, medical, financial, children, or strong accessibility scenarios prioritize stability, clarity, and recoverability without sacrificing usability for aesthetic adventures.
28
+
29
+ 3. Define aesthetic proposition
30
+ - Write out the target users, usage scenarios, sources of trustworthiness, and a visual anchor that will be remembered.
31
+ - Visual anchors can come from information structure, real media, data form, industry materials, font character, interaction rhythm or spatial organization, rather than empty decoration.
32
+ - Expression must serve the business context: tool-based interfaces focus on efficiency and stability, while display-based pages focus on subject recognition and memory points.
33
+ - Set design dials for page types: visual intensity, motion intensity, information density, media authenticity and content persuasiveness; these dials must change with the task, rather than sticking to the same set of templates.
34
+ - Tool-type and data-type interfaces increase information density and reduce decorative animation by default; marketing, portfolio and brand pages can increase visual tension, but still ensure that the first screen task, main body and CTA are visible.
35
+ - The design dial is used to constrain implementation choices: high visual tension does not equal chaotic typography, high dynamic intensity does not equal scroll hijacking, and high media authenticity does not equal piles of stock atmosphere images.
36
+
37
+ 4. Generate or read design system
38
+ - If the project does not yet have a design system, you can run `node skills/fec-ui-design/scripts/design-system.mjs "<product audience tone>" --project "<name>"` to generate suggestions.
39
+ - If reuse across sessions is required, use `--persist` to generate `design-system/<project>/MASTER.md`; use `--page <page>` to write page differences into `pages/<page>.md`.
40
+ - When building a specific page, read the page override first, and then read the Master; the page rules only cover the differences and do not copy the full design system.
41
+
42
+ 5. Establish above-the-fold and visual hierarchy
43
+ - Tool-based interface: The core workspace, list, table, canvas or editor is directly displayed on the first screen.
44
+ - Landing page: H1 uses the brand, product, place, name or clear category, and the value description is placed in the auxiliary copy.
45
+ - Product/Object page: The real product, object, status or checkable media must be visible on the first screen.
46
+ - The first screen should leave a clear memory point, but should not obscure core tasks, navigation and status feedback.
47
+ - Marketing and product pages need to clearly define the audience, pain points, commitments, evidence and action entry points; the copywriting structure serves conversion, but does not use exaggerated, empty or unverifiable claims.
48
+ - The first screen of a visual page cannot be just text, gradients and decorations; it needs real products, people, spaces, brand applications, data status or checkable generated assets to bear the main information.
49
+ - Navigation should remain single-line and highly restrained on desktop; CTA copy should be kept short and clear, and should not be replaced with multi-line buttons on desktop.
50
+
51
+ 6. Organize visual language
52
+ - Font: Give priority to using the project font system; if the task allows the establishment of a new direction, choose a title/text font combination that can express the character of the product and ensure readability.
53
+ - Color: Clarify the roles of primary, functional, neutral and accent colors to avoid using equal force on all elements.
54
+ - Space: Choose high-density, blank, asymmetric, column, canvas or editor layout according to the task, and do not apply fixed card templates.
55
+ - Motion effects: Only establish rhythm for page entry, hierarchical expansion, status confirmation, error feedback and key guidance, and respect `prefers-reduced-motion`.
56
+ - Media: Prioritize the use of real products, real states, real diagrams, checkable screenshots or locally generated assets; do not replace the main information with vague atmosphere images, placeholder URLs or irrelevant illustrations.
57
+ - Charts: First determine whether the data task is trend, comparison, composition, distribution or process, and then choose charts. Do not make all data into cards or pie charts.
58
+ - Visual reference: When there is no authoritative design draft and the visual quality of the page is the core goal, you can first generate or collect section-level reference images, and then extract the layout, hierarchy, color and media strategy from the images; do not compress the entire site into an unreadable long image.
59
+
60
+ 7. Align design systems, components and tokens
61
+ - First reuse the existing components, tokens, icon libraries, routing and layout conventions of the project.
62
+ - When tokens are missing, centrally complete them or record them clearly. Do not scatter hard coding in multiple components.
63
+ - Write out reused components, new components, responsive strategies and state overrides before implementing complex UI.
64
+ - The design system first defines semantic tokens, component APIs, state matrices and usage boundaries, and then falls to Tailwind, CSS Modules, component libraries or CSS variable implementations.
65
+ - Tailwind's special token, variant, dark mode and class management are offloaded to the Tailwind design system workflow; cross-device layout, container query and touch target are offloaded to the responsive layout workflow.
66
+ - The component API should distinguish between basic components, business components and page-private components; avoid letting a single `variant` bear semantic, size, density and permission implications at the same time.
67
+
68
+ 8. Polish geometry, text and states
69
+ - Nested fillets follow the optical relationship of "the outer fillet is approximately equal to the inner fillet + spacing".
70
+ - Asymmetric icons, play triangles, arrows, stars, etc. need to be fine-tuned according to the visual center.
71
+ - Titles and short text can use `text-wrap: balance` or `text-wrap: pretty`.
72
+ - Tables, prices, counters, and timers use `font-variant-numeric: tabular-nums`.
73
+ - The clickable area of the small control should be at least 40x40px, and 44x44px is preferred if space allows.
74
+ - focus ring is used for keyboard positioning, hover/active is used for mouse feedback, and disabled is not only expressed by transparency.
75
+ - Do not repeat the same three cards, stagger left and right, or have a large title with an explanatory paragraph on the right in multiple consecutive blocks; the layout of each block serves the specific information task of that block.
76
+ - The number of cells in the Bento and feature grid must be determined by the real content, and no empty cells are used to supplement the composition; multi-cell grids must at least have clear distinctions in primary and secondary, media or status.
77
+ - The small uppercase eyebrow should be used with restraint and not become a rhythm crutch for each block.
78
+
79
+ 9. Verify design results
80
+ - Check loading, empty, error, disabled, hover, focus, selected status.
81
+ - Check whether the copy text overflows or is blocked in mobile(375px), tablet(768px), desktop(1440px).
82
+ - For interfaces that rely on pictures, charts, canvases or 3D, confirm that the resources are truly rendered and bear the main information.
83
+ - Review whether there are traces of templates such as default purple gradients, empty heroes, card stacks, single hues, or non-contextual fonts.
84
+ - Check whether the first screen has task entrance, subject identification, credible evidence and content clues for the next screen; if only decoration is left, return to the information architecture and redo it.
85
+ - Complete hover, active, focus-visible, disabled, loading, selected, invalid and skeleton states for production-grade controls.
86
+ - Fatigue when checking scan paths, density, fixed sizes, and reuse for dashboards, tables, editors, and configuration tables.
87
+ - For marketing pages, portfolios and brand pages, check whether the first screen adapts to the height of common small notebooks, whether the navigation is single-line, and whether the CTA is qualified and does not wrap.
88
+ - Review whether there are more than three consecutive paragraphs with the same section structure, repeated zigzag, repeated three cards, cards within a card set, fake screenshots, or visual assets without main information.
73
89
 
74
90
  ## Constraints
75
91
 
76
- - 不把工具型应用做成营销落地页;首屏应是可用工作区。
77
- - 不用通用紫色渐变、装饰光斑、堆叠卡片或空泛 hero 作为默认方案。
78
- - 不使用无语境默认字体、均匀无重点配色、重复圆角卡片和模板化双栏 hero 来替代真实设计判断。
79
- - 不在卡片里再套大卡片;页面分区优先用全宽区域或无框布局。
80
- - 不用可见文案解释控件本该表达的功能,常见动作优先用图标和 tooltip。
81
- - 不为了质感添加大面积装饰、模糊光斑、无语义渐变或无关重写。
82
- - 不为了统一风格让整个界面落入单一色相;颜色应有层次和语义区分。
83
- - 不把生成器输出当成不可修改的设计稿;它是决策起点,必须结合项目已有组件、token、用户任务和真实数据校正。
84
- - 不用不可检查的远程占位图、通用 stock 氛围图或 lorem 文案作为交付主体;缺素材时明确生成、制作或降级为真实结构化内容。
85
- - 不让视觉 polish 破坏键盘路径、触摸目标、文本可读性或低端设备性能。
86
- - 不把 Tailwind、组件库或 Storybook 文档等实现载体当成设计方向本身;它们应承接已经明确的产品语境和 token 边界。
92
+ - Do not turn tool-based applications into marketing landing pages; the home screen should be the available workspace.
93
+ - No generic purple gradients, decorative flares, stacked cards, or empty heroes as the default scheme.
94
+ - Don’t use thirds of feature cards, continuous zigzags, repeating eyebrows, fake product screenshots, or uncheckable media as the default page rhythm.
95
+ - Don’t use context-free default fonts, uniform unfocused color palettes, repetitive rounded-corner cards, and templated two-column heroes as a substitute for real design judgment.
96
+ - Do not put large cards inside cards; give priority to using full-width area or frameless layout for page partitions.
97
+ - No visible copy is used to explain the functions that controls should express. Use icons and tooltips first for common actions.
98
+ - Do not add large-area decorations, blurry spots, semantic-less gradients or irrelevant rewriting for the sake of texture.
99
+ - Do not make the entire interface fall into a single hue in order to unify the style; colors should be hierarchical and semantically differentiated.
100
+ - Do not regard the generator output as an unmodifiable design draft; it is the starting point for decision-making and must be corrected based on the existing components, tokens, user tasks and real data of the project.
101
+ - No uncheckable remote placeholder images, generic stock mood images, or lorem copy as the delivery body; explicitly generate, produce, or degrade to real structured content when material is lacking.
102
+ - Don't let visual polish ruin keyboard paths, touch targets, text readability, or low-end device performance.
103
+ - Do not regard implementation vehicles such as Tailwind, component libraries, or Storybook documents as the design direction itself; they should inherit the already clear product context and token boundaries.
104
+ - Do not force a framework, icon library, animation library or CSS tool to reference system preferences; always prioritize current project dependencies and design systems.
87
105
 
88
106
  ## Expected Output
89
107
 
90
- 输出应包含明确的设计方向、首屏记忆点、视觉语言策略、组件/布局边界、状态覆盖、响应式策略和验证结果。复核时界面应符合业务语境、视觉层级支持快速扫描、交互状态完整,并避免泛化模板感。
108
+ The output should include clear design direction, above-the-fold memo, visual language strategy, component/layout boundaries, state overrides, responsiveness strategy, and validation results. When reviewing, the interface should conform to the business context, the visual hierarchy should support fast scanning, the interaction status should be complete, and a generalized template feeling should be avoided.
@@ -70,5 +70,45 @@
70
70
  "tokens": { "radius": "8-16px", "shadow": "soft", "density": "low-medium" },
71
71
  "bestFor": ["wellness", "beauty", "lifestyle", "care services"],
72
72
  "avoid": ["pastel contrast failures", "vague atmospheric imagery over real services"]
73
+ },
74
+ {
75
+ "id": "editorial-premium",
76
+ "keywords": ["premium", "luxury", "fashion", "magazine", "launch", "campaign"],
77
+ "description": "Image-led composition, restrained copy, high-contrast typography, and deliberate negative space.",
78
+ "tokens": { "radius": "0-8px", "shadow": "minimal", "density": "low-medium" },
79
+ "bestFor": ["brand launches", "premium ecommerce", "editorial landing pages", "portfolio features"],
80
+ "avoid": ["beige luxury defaults without brand evidence", "serif decoration that weakens readability", "hero copy that pushes the CTA below the first viewport"]
81
+ },
82
+ {
83
+ "id": "industrial-brutalist",
84
+ "keywords": ["industrial", "brutalist", "mechanical", "terminal", "tactical", "blueprint"],
85
+ "description": "Visible grids, hard edges, strong type scale contrast, and utilitarian metadata used with clear purpose.",
86
+ "tokens": { "radius": "0-2px", "shadow": "none", "density": "medium-high" },
87
+ "bestFor": ["technical portfolios", "developer tools", "editorial experiments", "telemetry interfaces"],
88
+ "avoid": ["regulated consumer flows", "tiny all-caps body copy", "decorative terminal chrome without real information"]
89
+ },
90
+ {
91
+ "id": "minimal-utilitarian",
92
+ "keywords": ["utilitarian", "document", "linear", "notion", "workspace", "minimalist"],
93
+ "description": "Quiet document-like surfaces, precise structure, low ornament, and typography doing most of the hierarchy work.",
94
+ "tokens": { "radius": "4-8px", "shadow": "none-low", "density": "medium" },
95
+ "bestFor": ["SaaS settings", "docs", "team workspaces", "productivity tools"],
96
+ "avoid": ["empty white expanses with no task priority", "low-contrast gray on gray", "identical flat cards for every section"]
97
+ },
98
+ {
99
+ "id": "image-led-landing",
100
+ "keywords": ["landing", "website", "hero", "visual", "image-led", "marketing"],
101
+ "description": "A clear conversion path carried by real or generated media, varied section structure, and inspectable visual assets.",
102
+ "tokens": { "radius": "contextual", "shadow": "media-dependent", "density": "low-medium" },
103
+ "bestFor": ["marketing sites", "product pages", "event pages", "agency sites"],
104
+ "avoid": ["text plus gradient-only hero", "fake screenshots", "repeating left-text/right-image sections", "CTA labels that wrap on desktop"]
105
+ },
106
+ {
107
+ "id": "brand-system-board",
108
+ "keywords": ["brand", "brandkit", "identity", "logo", "guidelines", "visual system"],
109
+ "description": "Presentation-grid identity boards that show logo logic, palette, typography, applications, and visual world coherently.",
110
+ "tokens": { "radius": "system-defined", "shadow": "presentation-dependent", "density": "medium" },
111
+ "bestFor": ["brand exploration", "identity systems", "design direction handoff", "visual language proposals"],
112
+ "avoid": ["random moodboards", "generic logos", "panels that do not explain the brand idea"]
73
113
  }
74
114
  ]
@@ -52,5 +52,40 @@
52
52
  "priority": "medium",
53
53
  "checks": ["Chart type matches data question", "Units and legends are visible", "Data has text/table fallback", "Color is supplemented by shape or labels"],
54
54
  "avoid": ["Pie charts for many categories", "Color-only series distinction"]
55
+ },
56
+ {
57
+ "category": "first-viewport",
58
+ "label": "First viewport",
59
+ "priority": "high",
60
+ "checks": ["Hero or workspace fits common laptop heights", "Primary CTA or task entry is visible without scrolling", "Desktop navigation stays on one line", "The next section leaves a readable cue when the page is promotional"],
61
+ "avoid": ["Oversized top padding", "Hero copy pushing actions below the fold", "Two-line desktop nav"]
62
+ },
63
+ {
64
+ "category": "cta-quality",
65
+ "label": "CTA quality",
66
+ "priority": "high",
67
+ "checks": ["CTA text contrast meets WCAG AA", "Primary CTA label stays on one line at desktop", "Each CTA intent uses one consistent label", "Ghost buttons remain visible over media backgrounds"],
68
+ "avoid": ["White text on light buttons", "Multiple contact labels for the same action", "Transparent buttons over busy imagery"]
69
+ },
70
+ {
71
+ "category": "section-variety",
72
+ "label": "Section variety",
73
+ "priority": "medium",
74
+ "checks": ["Adjacent sections use distinct layout jobs", "Bento cell count matches real content", "Feature grids have clear visual priority", "Small uppercase eyebrow labels are used sparingly"],
75
+ "avoid": ["Three equal cards as the default rhythm", "Three or more zigzag sections in a row", "Empty bento cells for decoration"]
76
+ },
77
+ {
78
+ "category": "media-authenticity",
79
+ "label": "Media authenticity",
80
+ "priority": "high",
81
+ "checks": ["Visual pages use real or generated assets with a clear role", "Product pages show inspectable product or state", "Screenshots represent real UI or are labeled as concepts", "Images reserve aspect ratio and have meaningful alt text when informative"],
82
+ "avoid": ["Text-only promotional pages", "Fake dashboard rectangles", "Blurred stock atmosphere as the main subject"]
83
+ },
84
+ {
85
+ "category": "state-completeness",
86
+ "label": "State completeness",
87
+ "priority": "critical",
88
+ "checks": ["Loading shape matches final layout", "Empty states include a useful next action", "Errors are recoverable and close to the source", "Selected, invalid, disabled, hover, focus, and reduced-motion states are covered"],
89
+ "avoid": ["Generic spinners everywhere", "Empty states that only say no data", "Disabled controls communicated only by opacity"]
55
90
  }
56
91
  ]
@@ -1,37 +1,97 @@
1
- # 设计智能参考
1
+ #DesignSmartReference
2
2
 
3
- 本参考用于把模糊的 UI 请求转成可执行设计系统。先识别产品类别,再组合风格原型、色彩角色、字体情绪、动效节奏、图表任务和 UX 风险。
3
+ This reference is used to turn obscure UI requests into an executable design system. Start by identifying the product category, then combine style archetypes, color roles, font moods, motion rhythms, graphic tasks, and UX risks.
4
4
 
5
- ## 决策流程
5
+ ## Decision-making process
6
6
 
7
- 1. 提取关键词:产品类型、用户、场景、主要任务、内容密度、品牌语气、技术栈。
8
- 2. 匹配产品规则:从 `data/product-rules.json` 选择最接近的类别,记录推荐结构、风险和反模式。
9
- 3. 选择风格原型:从 `data/style-archetypes.json` 选择 1 个主风格和最多 1 个辅助风格,避免风格拼贴。
10
- 4. 建立 token 方向:定义主色、强调色、背景、前景、边框、危险色和 focus ring 的语义角色。
11
- 5. 选择字体情绪:不要只选“好看的字体”,要说明标题和正文各自承担的语气与可读性。
12
- 6. 判断数据表达:趋势用折线/面积,比较用柱状,构成少量类别可用环图,流程用漏斗/步骤,明细必须保留表格替代。
13
- 7. 输出反模式:每个设计建议必须附带“不要做什么”,避免落入通用模板。
7
+ 1. Extract keywords: product type, users, scenarios, main tasks, content density, brand tone, technology stack.
8
+ 2. Write out the design reads: page type, audience, primary mission, brand constraints, and sources of trustworthiness.
9
+ 3. Match product rules: Select the closest category from `data/product-rules.json` and record the recommended structure, risks and anti-patterns.
10
+ 4. Select style archetypes: Select 1 main style and up to 1 auxiliary style from `data/style-archetypes.json` to avoid style collage.
11
+ 5. Set the design dial: visual tension, motion intensity, information density, media authenticity, and content persuasiveness are all expressed on a scale of 1-10, and vary with the page type.
12
+ 6. Establish token direction: define the semantic roles of main color, accent color, background, foreground, border, dangerous color and focus ring.
13
+ 7. Choose font mood: Don’t just choose a “good-looking font”, explain the tone and readability of the title and body text respectively.
14
+ 8. Judgment of data expression: Use polylines/areas for trends, columns for comparisons, donut charts to form a small number of categories, funnels/steps for processes, and tables must be retained for details.
15
+ 9. Output anti-patterns and quality gates: Every design suggestion must be accompanied by a “what not to do” and supplemented with above-the-fold, CTAs, media authenticity, section changes, and state integrity checks based on page type.
14
16
 
15
- ## 何时运行生成器
17
+ ## Direction Advisor
16
18
 
17
- 使用以下命令生成设计系统建议:
19
+ When the user only says "looks better", "give me some directions", "I don't know what style" and there is no authoritative design draft, don't continue to ask general questions about taste. First, give 3 directions with obvious differences so that users can judge the choice.
20
+
21
+ Each direction must contain:
22
+
23
+ - Applicable scenarios: Why it is suitable for the current product, audience and task.
24
+ - Visual anchors: information structure, real media, data form, material, font character, spatial organization or interaction rhythm.
25
+ - Key tokens: main color, accent color, background, font mood, rounded corners/border/shadow tendency.
26
+ - What to avoid: This is the easiest templating error to slip into.
27
+
28
+ The three directions should come from different design logics, such as:
29
+
30
+ - Information architecture type: high-density, rational, data-first, suitable for B2B, operations, finance, and engineering tools.
31
+ - Editorial narrative type: layout, white space, strong text hierarchy, suitable for brand stories, content products, and portfolios.
32
+ - Product demonstration type: real screenshots, objects, status, and process evidence are given priority, suitable for SaaS, hardware, and developer tools.
33
+ - Experimental expression: strong motion effect, sense of space, generative vision, suitable for release pages, event pages, and art/creative projects.
34
+ - Warm and humanistic: low-offensive colors, approachable illustrations or real characters, suitable for education, health, and lifestyle.
35
+
36
+ After the user chooses the direction, then implement it into the design system and page structure; do not collage the 3 directions into a mixed system.
37
+
38
+ ## Real assets take priority
39
+
40
+ Brand or product related UI recognition comes from real assets, not color guesswork. Priority:
41
+
42
+ 1. Logo, product pictures, real UI screenshots, physical photos, and brand application pictures.
43
+ 2. The project already has icons, components, data status, charts and screenshots.
44
+ 3. Special assets generated for the current task.
45
+ 4. Clearly marked structured placeholder.
46
+
47
+ Don’t use CSS outlines, generic illustrations, fake screenshots, or remote placeholder images to replace the subject that users need to identify. When there is a lack of key assets, first mark the asset gap and provide an alternative route; if the logo or main product is the core of first-screen recognition, confirmation should be suspended or changed to a structural plan that does not rely on brand recognition.
48
+
49
+ ## v0 calibration
50
+
51
+ When the visual risk is high, the direction is unclear, or the page has a large impact, deliver a viewable v0 first instead of doing the entire page at once.
52
+
53
+ v0 should contain:
54
+
55
+ - Core layout, first screen hierarchy, main token and a key module.
56
+ - Clarify placeholder and asset gaps.
57
+ - 1-2 alternative direction points such as density, color temperature or media strategy.
58
+ - Does not include the full state matrix, all content details, or production-grade animations.
59
+
60
+ After v0 is passed, components, states, responsiveness and interactive effects will be completed.
61
+
62
+ ## Design Critique
63
+
64
+ When users request to "review the UI", "whether it looks good or not", "more advanced" or a self-inspection is required before delivery, output specific questions in 5 dimensions instead of just giving subjective descriptions:
65
+
66
+ - Directional consistency: Whether the visual choice serves the design read and product mission.
67
+ - Hierarchy and scanning: Whether the first screen, title, CTA, data, and status are clearly prioritized.
68
+ - Workmanship quality: spacing, alignment, number of colors, text wrapping, rounded corners/borders/shadows are stable.
69
+ - Function completeness: whether loading, empty, error, disabled, hover, focus, and selected are covered.
70
+ - Originality and recognition: whether to get rid of universal gradients, three cards, fake screenshots, and bodyless heroes.
71
+
72
+ The output should give executable fixes by severity, without judging the designers themselves.
73
+
74
+ ## When to run the generator
75
+
76
+ Generate design system recommendations using the following command:
18
77
 
19
78
  ```bash
20
79
  node skills/fec-ui-design/scripts/design-system.mjs "beauty spa booking" --project "Serenity Spa"
21
80
  ```
22
81
 
23
- 输出 Markdown 适合贴入计划或 PR 描述;输出 JSON 适合测试或工具消费:
82
+ Output Markdown is suitable for pasting into plans or PR descriptions; output JSON is suitable for testing or tool consumption:
24
83
 
25
84
  ```bash
26
85
  node skills/fec-ui-design/scripts/design-system.mjs "fintech analytics dashboard" --format json --stack next
27
86
  ```
28
87
 
29
- ## 输出必须回答
88
+ ## Output must answer
30
89
 
31
- - 这个界面的主任务是什么?
32
- - 推荐哪种页面结构或工作区结构?
33
- - 视觉锚点是什么,为什么贴合业务?
34
- - 主风格、字体、色彩、动效分别服务什么目标?
35
- - 图表和数据密度如何处理?
36
- - 哪些反模式必须避免?
37
- - 上线前最小 QA 清单是什么?
90
+ - What is the main task of this interface?
91
+ - What are the design reads and the five design dials?
92
+ - What page structure or workspace structure is recommended?
93
+ - What is a visual anchor and why does it fit the business?
94
+ - What goals do the main style, font, color, and animation serve respectively?
95
+ - How to deal with charts and data density?
96
+ - What anti-patterns must be avoided?
97
+ - What is the minimum QA checklist before going live?
@@ -1,30 +1,30 @@
1
- # 全局/页面级差异覆盖
1
+ # Global/page level difference coverage
2
2
 
3
- 当项目需要长期保持 UI 一致性时,用 `design-system/MASTER.md` 存放全局设计系统,用 `design-system/pages/<page>.md` 存放页面级差异。
3
+ When the project needs to maintain UI consistency for a long time, use `design-system/MASTER.md` to store the global design system, and use `design-system/pages/<page>.md` to store page-level differences.
4
4
 
5
- ## 读取顺序
5
+ ## Reading order
6
6
 
7
- 1. 先检查当前页面是否有 `design-system/<project>/pages/<page>.md`。
8
- 2. 如果存在,页面文件里的规则覆盖 Master 中相同维度。
9
- 3. 如果不存在,完全遵循 `design-system/<project>/MASTER.md`。
10
- 4. 页面文件只记录差异,不复制 Master 全文。
7
+ 1. First check whether the current page has `design-system/<project>/pages/<page>.md`.
8
+ 2. If it exists, the rules in the page file cover the same dimensions in the Master.
9
+ 3. If it does not exist, follow `design-system/<project>/MASTER.md` exactly.
10
+ 4. The page file only records differences and does not copy the full text of the Master.
11
11
 
12
- ## 生成命令
12
+ ## Generate command
13
13
 
14
14
  ```bash
15
15
  node skills/fec-ui-design/scripts/design-system.mjs "saas analytics dashboard" --project "Acme Console" --persist --output-dir .
16
16
  ```
17
17
 
18
- 生成页面 overrides:
18
+ Generate page overrides:
19
19
 
20
20
  ```bash
21
21
  node skills/fec-ui-design/scripts/design-system.mjs "saas analytics dashboard" --project "Acme Console" --page dashboard --persist --output-dir .
22
22
  ```
23
23
 
24
- ## 页面 override 应包含
24
+ ## Page override should contain
25
25
 
26
- - 页面任务和信息密度差异
27
- - 布局差异:工作区、表格、图表、表单、详情页或营销首屏
28
- - token 差异:只写需要覆盖的语义色、间距、状态或图表色
29
- - 组件差异:只写当前页面新增或改变的组件行为
30
- - QA 焦点:当前页面最容易出错的响应式、可访问性、性能或交互风险
26
+ - Differences in page tasks and information density
27
+ - Layout differences: workspace, table, chart, form, detail page or marketing first screen
28
+ - token difference: only write the semantic color, spacing, status or chart color that needs to be covered
29
+ - Component differences: only write new or changed component behaviors on the current page
30
+ - QA Focus: The current page’s most error-prone responsiveness, accessibility, performance, or interaction risks
@@ -1,33 +1,39 @@
1
- # UI/UX 交付前检查
2
-
3
- ## 严重
4
-
5
- - 文本对比度:正文至少 4.5:1,大字号至少 3:1。
6
- - 键盘可达:菜单、弹窗、标签页、抽屉和自定义控件都能键盘操作。
7
- - 焦点可见:focus ring 不能被全局样式移除。
8
- - 图标按钮:必须有可访问名称。
9
- - 触摸目标:移动端主要交互至少 44x44px;空间允许时使用 48px。
10
-
11
- ## 高优先级
12
-
13
- - 首屏:工具型界面直接展示核心工作区,不用营销 hero 替代功能。
14
- - 响应式:375px、768px、1024px、1440px 无水平溢出、遮挡或文本截断。
15
- - 性能:图片有尺寸或 aspect-ratio;非首屏图片懒加载;列表过大时虚拟化。
16
- - 动效:只动画 transform/opacity,尊重 `prefers-reduced-motion`。
17
- - 状态:loading、empty、error、disabled、hover、focus、selected 都有设计。
18
-
19
- ## 中优先级
20
-
21
- - 字体:正文不小于 16px;数字列、金额、计时器使用 tabular nums。
22
- - 颜色:错误、成功、警告不只靠颜色表达。
23
- - 表单:label 常驻,错误靠近字段,提交后有 loading/success/error。
24
- - 导航:当前路由可识别,返回行为可预测,深层页面仍能回到主路径。
25
- - 图表:有标题、单位、图例、tooltip 或明细表替代,色彩不依赖红绿区分。
26
-
27
- ## 反模式
28
-
29
- - 用装饰光斑、紫色渐变、卡片堆叠掩盖信息结构不足。
30
- - hover 导致布局位移。
1
+ # UI/UX pre-delivery inspection
2
+
3
+ ## Serious
4
+
5
+ - Text contrast: at least 4.5:1 for main text and 3:1 for large fonts.
6
+ - Keyboard accessible: menus, pop-up windows, tabs, drawers and custom controls can all be operated by the keyboard.
7
+ - Focus visible: focus ring cannot be removed by global styles.
8
+ - Icon button: must have an accessible name.
9
+ - Touch targets: Primary interactions on mobile should be at least 44x44px; use 48px when space allows.
10
+
11
+ ## High priority
12
+
13
+ - First screen: The tool-based interface directly displays the core workspace, without the need for marketing hero replacement functions.
14
+ - Above the fold: Marketing, portfolio, and brand pages display body, CTA, and next-screen cues within common small notebook heights.
15
+ - CTA: The button copy does not wrap on the desktop, the contrast is acceptable, and consistent labels are used for the same purpose.
16
+ - Navigation: Keep a single line on the desktop, and the main path can still be reached after folding on the mobile version.
17
+ - Responsive: 375px, 768px, 1024px, 1440px No horizontal overflow, occlusion or text truncation.
18
+ - Performance: images have size or aspect-ratio; images below the first screen are lazy loaded; virtualization is used when the list is too large.
19
+ - Animation: only animate transform/opacity, respecting `prefers-reduced-motion`.
20
+ - Status: loading, empty, error, disabled, hover, focus, and selected are all designed.
21
+
22
+ ## Medium priority
23
+
24
+ - Font: The main text should not be smaller than 16px; use tabular nums for numerical columns, amounts, and timers.
25
+ - Color: Error, success, and warning are not only expressed by color.
26
+ - Form: label is resident, errors are close to fields, and there will be loading/success/error after submission.
27
+ - Navigation: The current route is identifiable, the return behavior is predictable, and deep pages can still return to the main path.
28
+ - Charts: replaced by titles, units, legends, tooltips or detailed tables, and the colors do not rely on the distinction between red and green.
29
+
30
+ ## Anti-pattern
31
+
32
+ - Use decorative light spots, purple gradients, and card stacks to cover up the lack of information structure.
33
+ - Reuse three cards, left and right interleaving, split header or the same reveal animation for more than three consecutive paragraphs.
34
+ - Visual pages have only text and gradients, no real products, real status, brand applications or inspectable media.
35
+ - Bento uses empty grids to complete the composition, or feature grid. Each grid has the same weight, background, and rhythm.
36
+ -Hover causes layout displacement.
31
37
  - `transition: all`、`will-change: all`。
32
- - 低对比灰字、无意义透明度、单一色相界面。
33
- - 空状态只有“暂无数据”,没有下一步动作。
38
+ - Low-contrast gray text, meaningless transparency, and single-hue interface.
39
+ - The empty status is only "No data yet" and there is no next action.