@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.
- package/.claude-plugin/marketplace.json +3 -3
- package/.claude-plugin/plugin.json +1 -1
- package/CHANGELOG.md +72 -1
- package/CHANGELOG.zh-CN.md +71 -1
- package/README.md +10 -6
- package/README.openclaw.md +100 -42
- package/README.openclaw.zh-CN.md +100 -42
- package/README.zh-CN.md +10 -6
- package/agents/fec-architect.md +70 -70
- package/agents/fec-code-reviewer.md +82 -82
- package/agents/fec-debugger.md +20 -20
- package/agents/fec-design-token-mapper.md +36 -36
- package/agents/fec-doc-updater.md +13 -13
- package/agents/fec-e2e-runner.md +45 -45
- package/agents/fec-figma-implementer.md +59 -59
- package/agents/fec-performance-optimizer.md +128 -128
- package/agents/fec-refactor-cleaner.md +14 -14
- package/agents/fec-security-reviewer.md +66 -67
- package/agents/fec-test-planner.md +27 -27
- package/agents/fec-typescript-reviewer.md +88 -88
- package/agents/fec-ui-checker.md +74 -74
- package/commands/fec-debug.md +19 -19
- package/commands/fec-doc-sync.md +11 -11
- package/commands/fec-init.md +37 -38
- package/commands/fec-plan.md +58 -58
- package/commands/fec-refactor-clean.md +11 -11
- package/commands/fec-review.md +41 -41
- package/commands/fec-scaffold.md +41 -41
- package/commands/fec-tdd.md +13 -13
- package/dist/bin/frontend-craft.js +29 -27
- package/docs/example-prompts.md +84 -69
- package/docs/ja-JP/README.md +56 -52
- package/docs/ko-KR/README.md +45 -41
- package/docs/project-structure.md +19 -7
- package/docs/superpowers/plans/2026-05-29-fec-debug.md +491 -0
- package/docs/superpowers/specs/2026-05-29-fec-debug-design.md +340 -0
- package/docs/zh-CN/example-prompts.md +84 -69
- package/docs/zh-CN/project-structure.md +14 -5
- package/docs/zh-TW/README.md +33 -29
- package/localized/zh-CN/agents/fec-architect.md +125 -0
- package/localized/zh-CN/agents/fec-code-reviewer.md +152 -0
- package/localized/zh-CN/agents/fec-debugger.md +44 -0
- package/localized/zh-CN/agents/fec-design-token-mapper.md +75 -0
- package/localized/zh-CN/agents/fec-doc-updater.md +30 -0
- package/localized/zh-CN/agents/fec-e2e-runner.md +107 -0
- package/localized/zh-CN/agents/fec-figma-implementer.md +104 -0
- package/localized/zh-CN/agents/fec-performance-optimizer.md +293 -0
- package/localized/zh-CN/agents/fec-refactor-cleaner.md +32 -0
- package/localized/zh-CN/agents/fec-security-reviewer.md +116 -0
- package/localized/zh-CN/agents/fec-test-planner.md +50 -0
- package/localized/zh-CN/agents/fec-typescript-reviewer.md +142 -0
- package/localized/zh-CN/agents/fec-ui-checker.md +120 -0
- package/localized/zh-CN/commands/fec-debug.md +30 -0
- package/localized/zh-CN/commands/fec-doc-sync.md +19 -0
- package/localized/zh-CN/commands/fec-init.md +70 -0
- package/localized/zh-CN/commands/fec-plan.md +94 -0
- package/localized/zh-CN/commands/fec-refactor-clean.md +19 -0
- package/localized/zh-CN/commands/fec-review.md +66 -0
- package/localized/zh-CN/commands/fec-scaffold.md +205 -0
- package/localized/zh-CN/commands/fec-tdd.md +21 -0
- package/localized/zh-CN/skills/TEMPLATE.md +155 -0
- package/localized/zh-CN/skills/eval_queries.json +1013 -0
- package/localized/zh-CN/skills/fec-accessibility-check/SKILL.md +39 -0
- package/localized/zh-CN/skills/fec-accessibility-check/references/report-template.md +23 -0
- package/localized/zh-CN/skills/fec-accessibility-check/references/screen-reader-testing.md +33 -0
- package/localized/zh-CN/skills/fec-alchemy/SKILL.md +74 -0
- package/localized/zh-CN/skills/fec-alchemy/assets/absorption-plan-template.md +47 -0
- package/localized/zh-CN/skills/fec-alchemy/assets/intake-template.md +55 -0
- package/localized/zh-CN/skills/fec-alchemy/assets/review-checklist.md +31 -0
- package/localized/zh-CN/skills/fec-alchemy/references/methodology.md +94 -0
- package/localized/zh-CN/skills/fec-alchemy/references/originality-and-licensing.md +57 -0
- package/localized/zh-CN/skills/fec-api-integration/SKILL.md +78 -0
- package/localized/zh-CN/skills/fec-api-integration/references/integration-patterns.md +80 -0
- package/localized/zh-CN/skills/fec-backend-requirements-handoff/SKILL.md +45 -0
- package/localized/zh-CN/skills/fec-browser-storage/SKILL.md +34 -0
- package/localized/zh-CN/skills/fec-browser-storage/references/storage-patterns.md +65 -0
- package/localized/zh-CN/skills/fec-canvas-threejs/SKILL.md +66 -0
- package/localized/zh-CN/skills/fec-canvas-threejs/references/rendering-patterns.md +67 -0
- package/localized/zh-CN/skills/fec-canvas-threejs/references/shader-webgl-patterns.md +67 -0
- package/localized/zh-CN/skills/fec-code-review/SKILL.md +143 -0
- package/localized/zh-CN/skills/fec-code-review/references/report-template.md +29 -0
- package/localized/zh-CN/skills/fec-component-testing/SKILL.md +119 -0
- package/localized/zh-CN/skills/fec-data-fetching/SKILL.md +62 -0
- package/localized/zh-CN/skills/fec-data-fetching/references/query-patterns.md +103 -0
- package/localized/zh-CN/skills/fec-debug-framework/SKILL.md +157 -0
- package/localized/zh-CN/skills/fec-debug-framework/references/report-template.md +58 -0
- package/localized/zh-CN/skills/fec-dependency-upgrade/SKILL.md +34 -0
- package/localized/zh-CN/skills/fec-dependency-upgrade/references/dependency-upgrade-workflow.md +56 -0
- package/localized/zh-CN/skills/fec-doc-sync/SKILL.md +39 -0
- package/localized/zh-CN/skills/fec-drawio-studio/SKILL.md +73 -0
- package/localized/zh-CN/skills/fec-drawio-studio/data/THIRD_PARTY_NOTICES.md +10 -0
- package/localized/zh-CN/skills/fec-drawio-studio/data/brand-icons.json +878 -0
- package/localized/zh-CN/skills/fec-drawio-studio/data/shape-index.json +83570 -0
- package/localized/zh-CN/skills/fec-drawio-studio/references/data-residency.md +27 -0
- package/localized/zh-CN/skills/fec-drawio-studio/references/diagram-patterns.md +60 -0
- package/localized/zh-CN/skills/fec-drawio-studio/references/flowchart-quality.md +49 -0
- package/localized/zh-CN/skills/fec-drawio-studio/references/layout-and-export.md +72 -0
- package/localized/zh-CN/skills/fec-drawio-studio/references/troubleshooting.md +29 -0
- package/localized/zh-CN/skills/fec-drawio-studio/references/xml-and-mermaid.md +58 -0
- package/localized/zh-CN/skills/fec-drawio-studio/scripts/brand-symbols.mjs +99 -0
- package/localized/zh-CN/skills/fec-drawio-studio/scripts/diagram-lint.mjs +205 -0
- package/localized/zh-CN/skills/fec-drawio-studio/scripts/diagram-url.mjs +102 -0
- package/localized/zh-CN/skills/fec-drawio-studio/scripts/drawio-export.mjs +134 -0
- package/localized/zh-CN/skills/fec-drawio-studio/scripts/layout-graph.mjs +107 -0
- package/localized/zh-CN/skills/fec-drawio-studio/scripts/png-embed-fix.mjs +26 -0
- package/localized/zh-CN/skills/fec-drawio-studio/scripts/scan-go-packages.mjs +36 -0
- package/localized/zh-CN/skills/fec-drawio-studio/scripts/scan-js-modules.mjs +52 -0
- package/localized/zh-CN/skills/fec-drawio-studio/scripts/scan-python-classes.mjs +30 -0
- package/localized/zh-CN/skills/fec-drawio-studio/scripts/scan-python-modules.mjs +55 -0
- package/localized/zh-CN/skills/fec-drawio-studio/scripts/scan-rust-modules.mjs +35 -0
- package/localized/zh-CN/skills/fec-drawio-studio/scripts/scan-ts-modules.mjs +7 -0
- package/localized/zh-CN/skills/fec-drawio-studio/scripts/shape-query.mjs +121 -0
- package/localized/zh-CN/skills/fec-drawio-studio/scripts/studio-core.mjs +139 -0
- package/localized/zh-CN/skills/fec-drawio-studio/styles/built-in/corporate.json +49 -0
- package/localized/zh-CN/skills/fec-drawio-studio/styles/built-in/default.json +49 -0
- package/localized/zh-CN/skills/fec-drawio-studio/styles/built-in/handdrawn.json +49 -0
- package/localized/zh-CN/skills/fec-drawio-studio/styles/schema.json +112 -0
- package/localized/zh-CN/skills/fec-e2e-testing/SKILL.md +42 -0
- package/localized/zh-CN/skills/fec-e2e-testing/references/e2e-ci-reporting.md +62 -0
- package/localized/zh-CN/skills/fec-e2e-testing/references/e2e-special-scenarios.md +52 -0
- package/localized/zh-CN/skills/fec-e2e-testing/references/e2e-visual-regression.md +60 -0
- package/localized/zh-CN/skills/fec-e2e-testing/references/playwright-patterns.md +95 -0
- package/localized/zh-CN/skills/fec-form-handling/SKILL.md +76 -0
- package/localized/zh-CN/skills/fec-form-handling/references/advanced-form-patterns.md +101 -0
- package/localized/zh-CN/skills/fec-image-generation/SKILL.md +80 -0
- package/localized/zh-CN/skills/fec-image-generation/assets/interactive-diagram.html +371 -0
- package/localized/zh-CN/skills/fec-image-generation/references/artifact-routing.md +80 -0
- package/localized/zh-CN/skills/fec-image-generation/references/diagram-workflows.md +74 -0
- package/localized/zh-CN/skills/fec-image-generation/references/html-technical-diagrams.md +236 -0
- package/localized/zh-CN/skills/fec-image-generation/references/png-qa-autofix.md +30 -0
- package/localized/zh-CN/skills/fec-image-generation/scripts/export-diagram.mjs +364 -0
- package/localized/zh-CN/skills/fec-image-generation/scripts/interactive-diagram-server.mjs +654 -0
- package/localized/zh-CN/skills/fec-image-generation/scripts/png-qa.mjs +431 -0
- package/localized/zh-CN/skills/fec-image-generation/scripts/tech-diagram-render.mjs +1397 -0
- package/localized/zh-CN/skills/fec-implement-from-design/SKILL.md +129 -0
- package/localized/zh-CN/skills/fec-implement-from-design/references/design-plan-template.md +36 -0
- package/localized/zh-CN/skills/fec-legacy-to-modern-migration/SKILL.md +46 -0
- package/localized/zh-CN/skills/fec-legacy-to-modern-migration/references/migration-execution-checklist.md +110 -0
- package/localized/zh-CN/skills/fec-legacy-to-modern-migration/references/migration-report-template.md +41 -0
- package/localized/zh-CN/skills/fec-legacy-to-modern-migration/references/migration-strategy-and-mapping.md +48 -0
- package/localized/zh-CN/skills/fec-legacy-web-standard/SKILL.md +35 -0
- package/localized/zh-CN/skills/fec-legacy-web-standard/references/legacy-patterns.md +85 -0
- package/localized/zh-CN/skills/fec-list-virtualization/SKILL.md +34 -0
- package/localized/zh-CN/skills/fec-list-virtualization/references/virtualization-patterns.md +80 -0
- package/localized/zh-CN/skills/fec-monorepo-project-standard/SKILL.md +142 -0
- package/localized/zh-CN/skills/fec-motion-interaction/SKILL.md +73 -0
- package/localized/zh-CN/skills/fec-motion-interaction/references/motion-patterns.md +112 -0
- package/localized/zh-CN/skills/fec-nextjs-project-standard/SKILL.md +123 -0
- package/localized/zh-CN/skills/fec-nuxt-project-standard/SKILL.md +122 -0
- package/localized/zh-CN/skills/fec-performance-optimization/SKILL.md +80 -0
- package/localized/zh-CN/skills/fec-performance-optimization/references/framework-performance-patterns.md +38 -0
- package/localized/zh-CN/skills/fec-performance-optimization/references/report-template.md +59 -0
- package/localized/zh-CN/skills/fec-pwa-implementation/SKILL.md +35 -0
- package/localized/zh-CN/skills/fec-pwa-implementation/references/manifest-and-icons.md +53 -0
- package/localized/zh-CN/skills/fec-pwa-implementation/references/service-worker-workbox.md +68 -0
- package/localized/zh-CN/skills/fec-react-project-standard/SKILL.md +91 -0
- package/localized/zh-CN/skills/fec-react-project-standard/references/react-performance-patterns.md +35 -0
- package/localized/zh-CN/skills/fec-react-project-standard/references/react-project-structure.md +197 -0
- package/localized/zh-CN/skills/fec-react-project-standard/references/react-quality-patterns.md +131 -0
- package/localized/zh-CN/skills/fec-react-project-standard/references/react-runtime-patterns.md +293 -0
- package/localized/zh-CN/skills/fec-refactor-clean/SKILL.md +51 -0
- package/localized/zh-CN/skills/fec-refactor-clean/references/report-template.md +42 -0
- package/localized/zh-CN/skills/fec-responsive-layout/SKILL.md +34 -0
- package/localized/zh-CN/skills/fec-responsive-layout/references/responsive-layout-patterns.md +70 -0
- package/localized/zh-CN/skills/fec-route-protection/SKILL.md +135 -0
- package/localized/zh-CN/skills/fec-security-review/SKILL.md +38 -0
- package/localized/zh-CN/skills/fec-security-review/references/report-template.md +27 -0
- package/localized/zh-CN/skills/fec-security-review/references/security-checklist.md +64 -0
- package/localized/zh-CN/skills/fec-source-driven-development/SKILL.md +87 -0
- package/localized/zh-CN/skills/fec-state-management/SKILL.md +140 -0
- package/localized/zh-CN/skills/fec-state-management/references/state-patterns.md +109 -0
- package/localized/zh-CN/skills/fec-storybook-component-doc/SKILL.md +37 -0
- package/localized/zh-CN/skills/fec-storybook-component-doc/references/story-patterns.md +118 -0
- package/localized/zh-CN/skills/fec-svg-animation/SKILL.md +148 -0
- package/localized/zh-CN/skills/fec-tailwind-design-system/SKILL.md +34 -0
- package/localized/zh-CN/skills/fec-tailwind-design-system/references/tailwind-system-patterns.md +59 -0
- package/localized/zh-CN/skills/fec-tdd-workflow/SKILL.md +52 -0
- package/localized/zh-CN/skills/fec-testing-strategy/SKILL.md +45 -0
- package/localized/zh-CN/skills/fec-typescript-project-standard/SKILL.md +54 -0
- package/{skills/fec-typescript-type-safety → localized/zh-CN/skills/fec-typescript-project-standard}/references/type-safety-patterns.md +1 -1
- package/{skills/fec-typescript-type-safety/SKILL.md → localized/zh-CN/skills/fec-typescript-project-standard/references/type-safety.md} +5 -14
- package/localized/zh-CN/skills/fec-ui-design/SKILL.md +108 -0
- package/localized/zh-CN/skills/fec-ui-design/data/product-rules.json +231 -0
- package/localized/zh-CN/skills/fec-ui-design/data/stack-ui-rules.json +146 -0
- package/localized/zh-CN/skills/fec-ui-design/data/style-archetypes.json +373 -0
- package/localized/zh-CN/skills/fec-ui-design/data/ux-quality-rules.json +203 -0
- package/localized/zh-CN/skills/fec-ui-design/references/design-intelligence.md +97 -0
- package/localized/zh-CN/skills/fec-ui-design/references/master-page-overrides.md +30 -0
- package/localized/zh-CN/skills/fec-ui-design/references/pre-delivery-checklist.md +39 -0
- package/localized/zh-CN/skills/fec-ui-design/scripts/design-system.mjs +648 -0
- package/localized/zh-CN/skills/fec-validation-fix/SKILL.md +51 -0
- package/localized/zh-CN/skills/fec-validation-fix/references/report-template.md +43 -0
- package/localized/zh-CN/skills/fec-vite-project-standard/SKILL.md +83 -0
- package/localized/zh-CN/skills/fec-vue3-project-standard/SKILL.md +58 -0
- package/localized/zh-CN/skills/fec-vue3-project-standard/references/vue3-composables-routing.md +162 -0
- package/localized/zh-CN/skills/fec-vue3-project-standard/references/vue3-performance-patterns.md +13 -0
- package/localized/zh-CN/skills/fec-vue3-project-standard/references/vue3-project-structure.md +176 -0
- package/localized/zh-CN/skills/fec-vue3-project-standard/references/vue3-state-api-quality.md +216 -0
- package/localized/zh-CN/skills/fec-web-video-presentation/SKILL.md +61 -0
- package/localized/zh-CN/skills/fec-web-video-presentation/data/starter-themes.json +59 -0
- package/localized/zh-CN/skills/fec-web-video-presentation/references/chapter-craft.md +37 -0
- package/localized/zh-CN/skills/fec-web-video-presentation/references/content-plan.md +38 -0
- package/localized/zh-CN/skills/fec-web-video-presentation/references/recording-and-audio.md +33 -0
- package/localized/zh-CN/skills/fec-web-video-presentation/references/theme-system.md +36 -0
- package/localized/zh-CN/skills/fec-web-video-presentation/scripts/create-video-presentation.mjs +430 -0
- package/localized/zh-CN/skills/fec-web-workers/SKILL.md +35 -0
- package/localized/zh-CN/skills/fec-web-workers/references/advanced-workers.md +54 -0
- package/localized/zh-CN/skills/fec-web-workers/references/basic-worker.md +67 -0
- package/localized/zh-CN/skills/metadata.json +1646 -0
- package/localized/zh-CN/skills/relations.json +755 -0
- package/localized/zh-CN/templates/claude/CLAUDE.md +106 -0
- package/localized/zh-CN/templates/claude/settings.json +62 -0
- package/localized/zh-CN/templates/codex/AGENTS.md +105 -0
- package/localized/zh-CN/templates/codex/config.toml +32 -0
- package/localized/zh-CN/templates/openclaw/AGENTS.md +101 -0
- package/localized/zh-CN/templates/openclaw/OPENCLAW-CONFIG.md +12 -0
- package/localized/zh-CN/templates/shared/rules/fec-agent-workflow.md +54 -0
- package/localized/zh-CN/templates/shared/rules/fec-api-layer.md +99 -0
- package/localized/zh-CN/templates/shared/rules/fec-ci-cd.md +40 -0
- package/localized/zh-CN/templates/shared/rules/fec-code-comments.md +33 -0
- package/localized/zh-CN/templates/shared/rules/fec-design-system.md +72 -0
- package/localized/zh-CN/templates/shared/rules/fec-error-handling.md +56 -0
- package/localized/zh-CN/templates/shared/rules/fec-git-conventions.md +73 -0
- package/localized/zh-CN/templates/shared/rules/fec-i18n.md +64 -0
- package/localized/zh-CN/templates/shared/rules/fec-naming-conventions.md +120 -0
- package/localized/zh-CN/templates/shared/rules/fec-performance.md +101 -0
- package/localized/zh-CN/templates/shared/rules/fec-react.md +82 -0
- package/localized/zh-CN/templates/shared/rules/fec-refactoring.md +47 -0
- package/localized/zh-CN/templates/shared/rules/fec-rendering-patterns.md +40 -0
- package/localized/zh-CN/templates/shared/rules/fec-responsive-design.md +50 -0
- package/localized/zh-CN/templates/shared/rules/fec-source-driven-development.md +31 -0
- package/localized/zh-CN/templates/shared/rules/fec-state-management.md +60 -0
- package/localized/zh-CN/templates/shared/rules/fec-testing.md +98 -0
- package/localized/zh-CN/templates/shared/rules/fec-typescript.md +112 -0
- package/localized/zh-CN/templates/shared/rules/fec-vue.md +64 -0
- package/localized/zh-CN/templates/shared/rules/fec-working-modes.md +50 -0
- package/openclaw.plugin.json +1 -1
- package/package.json +4 -3
- package/skills/TEMPLATE.md +74 -74
- package/skills/eval_queries.json +717 -619
- package/skills/fec-accessibility-check/SKILL.md +21 -21
- package/skills/fec-accessibility-check/references/report-template.md +12 -12
- package/skills/fec-accessibility-check/references/screen-reader-testing.md +24 -24
- package/skills/fec-alchemy/SKILL.md +50 -50
- package/skills/fec-alchemy/assets/absorption-plan-template.md +32 -32
- package/skills/fec-alchemy/assets/intake-template.md +55 -55
- package/skills/fec-alchemy/assets/review-checklist.md +23 -23
- package/skills/fec-alchemy/references/methodology.md +66 -66
- package/skills/fec-alchemy/references/originality-and-licensing.md +42 -42
- package/skills/fec-api-integration/SKILL.md +61 -61
- package/skills/fec-api-integration/references/integration-patterns.md +30 -30
- package/skills/fec-backend-requirements-handoff/SKILL.md +45 -0
- package/skills/fec-browser-storage/SKILL.md +16 -16
- package/skills/fec-browser-storage/references/storage-patterns.md +16 -16
- package/skills/fec-canvas-threejs/SKILL.md +21 -21
- package/skills/fec-canvas-threejs/references/rendering-patterns.md +10 -10
- package/skills/fec-canvas-threejs/references/shader-webgl-patterns.md +37 -37
- package/skills/fec-code-review/SKILL.md +94 -94
- package/skills/fec-code-review/references/report-template.md +13 -13
- package/skills/fec-component-testing/SKILL.md +39 -39
- package/skills/fec-data-fetching/SKILL.md +16 -16
- package/skills/fec-data-fetching/references/query-patterns.md +27 -27
- package/skills/fec-debug-framework/SKILL.md +95 -95
- package/skills/fec-debug-framework/references/report-template.md +34 -34
- package/skills/fec-dependency-upgrade/SKILL.md +17 -17
- package/skills/fec-dependency-upgrade/references/dependency-upgrade-workflow.md +31 -31
- package/skills/fec-doc-sync/SKILL.md +23 -23
- package/skills/fec-drawio-studio/SKILL.md +73 -0
- package/skills/fec-drawio-studio/data/THIRD_PARTY_NOTICES.md +10 -0
- package/skills/fec-drawio-studio/data/brand-icons.json +878 -0
- package/skills/fec-drawio-studio/data/shape-index.json +83570 -0
- package/skills/fec-drawio-studio/references/data-residency.md +27 -0
- package/skills/fec-drawio-studio/references/diagram-patterns.md +60 -0
- package/skills/fec-drawio-studio/references/flowchart-quality.md +49 -0
- package/skills/fec-drawio-studio/references/layout-and-export.md +72 -0
- package/skills/fec-drawio-studio/references/troubleshooting.md +29 -0
- package/skills/fec-drawio-studio/references/xml-and-mermaid.md +58 -0
- package/skills/fec-drawio-studio/scripts/brand-symbols.mjs +99 -0
- package/skills/fec-drawio-studio/scripts/diagram-lint.mjs +205 -0
- package/skills/fec-drawio-studio/scripts/diagram-url.mjs +102 -0
- package/skills/fec-drawio-studio/scripts/drawio-export.mjs +134 -0
- package/skills/fec-drawio-studio/scripts/layout-graph.mjs +107 -0
- package/skills/fec-drawio-studio/scripts/png-embed-fix.mjs +26 -0
- package/skills/fec-drawio-studio/scripts/scan-go-packages.mjs +36 -0
- package/skills/fec-drawio-studio/scripts/scan-js-modules.mjs +52 -0
- package/skills/fec-drawio-studio/scripts/scan-python-classes.mjs +30 -0
- package/skills/fec-drawio-studio/scripts/scan-python-modules.mjs +55 -0
- package/skills/fec-drawio-studio/scripts/scan-rust-modules.mjs +35 -0
- package/skills/fec-drawio-studio/scripts/scan-ts-modules.mjs +7 -0
- package/skills/fec-drawio-studio/scripts/shape-query.mjs +121 -0
- package/skills/fec-drawio-studio/scripts/studio-core.mjs +139 -0
- package/skills/fec-drawio-studio/styles/built-in/corporate.json +49 -0
- package/skills/fec-drawio-studio/styles/built-in/default.json +49 -0
- package/skills/fec-drawio-studio/styles/built-in/handdrawn.json +49 -0
- package/skills/fec-drawio-studio/styles/schema.json +112 -0
- package/skills/fec-e2e-testing/SKILL.md +24 -22
- package/skills/fec-e2e-testing/references/e2e-ci-reporting.md +62 -0
- package/skills/fec-e2e-testing/references/e2e-special-scenarios.md +52 -0
- package/skills/fec-e2e-testing/references/e2e-visual-regression.md +60 -0
- package/skills/fec-e2e-testing/references/playwright-patterns.md +6 -6
- package/skills/fec-form-handling/SKILL.md +21 -21
- package/skills/fec-form-handling/references/advanced-form-patterns.md +41 -41
- package/skills/fec-image-generation/SKILL.md +81 -0
- package/skills/fec-image-generation/assets/interactive-diagram.html +371 -0
- package/skills/fec-image-generation/references/artifact-routing.md +80 -0
- package/skills/fec-image-generation/references/diagram-workflows.md +74 -0
- package/skills/fec-image-generation/references/html-technical-diagrams.md +236 -0
- package/skills/fec-image-generation/references/png-qa-autofix.md +30 -0
- package/skills/fec-image-generation/scripts/export-diagram.mjs +364 -0
- package/skills/fec-image-generation/scripts/interactive-diagram-server.mjs +654 -0
- package/skills/fec-image-generation/scripts/png-qa.mjs +431 -0
- package/skills/fec-image-generation/scripts/tech-diagram-render.mjs +1397 -0
- package/skills/fec-implement-from-design/SKILL.md +81 -74
- package/skills/fec-implement-from-design/references/design-plan-template.md +16 -16
- package/skills/fec-legacy-to-modern-migration/SKILL.md +29 -173
- package/skills/fec-legacy-to-modern-migration/references/migration-execution-checklist.md +110 -0
- package/skills/fec-legacy-to-modern-migration/references/migration-report-template.md +37 -37
- package/skills/fec-legacy-to-modern-migration/references/migration-strategy-and-mapping.md +48 -0
- package/skills/fec-legacy-web-standard/SKILL.md +17 -17
- package/skills/fec-legacy-web-standard/references/legacy-patterns.md +16 -16
- package/skills/fec-list-virtualization/SKILL.md +16 -16
- package/skills/fec-list-virtualization/references/virtualization-patterns.md +31 -31
- package/skills/fec-monorepo-project-standard/SKILL.md +52 -52
- package/skills/fec-motion-interaction/SKILL.md +51 -44
- package/skills/fec-motion-interaction/references/motion-patterns.md +11 -11
- package/skills/fec-nextjs-project-standard/SKILL.md +64 -58
- package/skills/fec-nuxt-project-standard/SKILL.md +57 -57
- package/skills/fec-performance-optimization/SKILL.md +54 -50
- package/skills/fec-performance-optimization/references/framework-performance-patterns.md +38 -0
- package/skills/fec-performance-optimization/references/report-template.md +34 -28
- package/skills/fec-pwa-implementation/SKILL.md +17 -17
- package/skills/fec-pwa-implementation/references/manifest-and-icons.md +12 -12
- package/skills/fec-pwa-implementation/references/service-worker-workbox.md +13 -13
- package/skills/fec-react-project-standard/SKILL.md +72 -64
- package/skills/fec-react-project-standard/references/react-performance-patterns.md +35 -0
- package/skills/fec-react-project-standard/references/react-project-structure.md +197 -0
- package/skills/fec-react-project-standard/references/react-quality-patterns.md +131 -0
- package/skills/fec-react-project-standard/references/react-runtime-patterns.md +293 -0
- package/skills/fec-refactor-clean/SKILL.md +30 -30
- package/skills/fec-refactor-clean/references/report-template.md +23 -23
- package/skills/fec-responsive-layout/SKILL.md +17 -17
- package/skills/fec-responsive-layout/references/responsive-layout-patterns.md +39 -28
- package/skills/fec-route-protection/SKILL.md +26 -26
- package/skills/fec-security-review/SKILL.md +20 -20
- package/skills/fec-security-review/references/report-template.md +12 -12
- package/skills/fec-security-review/references/security-checklist.md +27 -27
- package/skills/fec-source-driven-development/SKILL.md +66 -40
- package/skills/fec-state-management/SKILL.md +34 -34
- package/skills/fec-state-management/references/state-patterns.md +19 -19
- package/skills/fec-storybook-component-doc/SKILL.md +19 -19
- package/skills/fec-storybook-component-doc/references/story-patterns.md +12 -12
- package/skills/fec-svg-animation/SKILL.md +32 -32
- package/skills/fec-tailwind-design-system/SKILL.md +17 -17
- package/skills/fec-tailwind-design-system/references/tailwind-system-patterns.md +36 -32
- package/skills/fec-tdd-workflow/SKILL.md +28 -28
- package/skills/fec-testing-strategy/SKILL.md +29 -29
- package/skills/fec-typescript-project-standard/SKILL.md +54 -0
- package/skills/fec-typescript-project-standard/references/type-safety-patterns.md +102 -0
- package/skills/fec-typescript-project-standard/references/type-safety.md +148 -0
- package/skills/fec-ui-design/SKILL.md +90 -72
- package/skills/fec-ui-design/data/style-archetypes.json +40 -0
- package/skills/fec-ui-design/data/ux-quality-rules.json +35 -0
- package/skills/fec-ui-design/references/design-intelligence.md +81 -21
- package/skills/fec-ui-design/references/master-page-overrides.md +15 -15
- package/skills/fec-ui-design/references/pre-delivery-checklist.md +38 -32
- package/skills/fec-ui-design/scripts/design-system.mjs +119 -1
- package/skills/fec-validation-fix/SKILL.md +26 -26
- package/skills/fec-validation-fix/references/report-template.md +25 -25
- package/skills/fec-vite-project-standard/SKILL.md +39 -39
- package/skills/fec-vue3-project-standard/SKILL.md +39 -30
- package/skills/fec-vue3-project-standard/references/vue3-composables-routing.md +163 -0
- package/skills/fec-vue3-project-standard/references/vue3-performance-patterns.md +13 -0
- package/skills/fec-vue3-project-standard/references/vue3-project-structure.md +177 -0
- package/skills/fec-vue3-project-standard/references/vue3-state-api-quality.md +216 -0
- package/skills/fec-web-video-presentation/SKILL.md +61 -0
- package/skills/fec-web-video-presentation/data/starter-themes.json +59 -0
- package/skills/fec-web-video-presentation/references/chapter-craft.md +37 -0
- package/skills/fec-web-video-presentation/references/content-plan.md +38 -0
- package/skills/fec-web-video-presentation/references/recording-and-audio.md +33 -0
- package/skills/fec-web-video-presentation/references/theme-system.md +36 -0
- package/skills/fec-web-video-presentation/scripts/create-video-presentation.mjs +430 -0
- package/skills/fec-web-workers/SKILL.md +16 -16
- package/skills/fec-web-workers/references/advanced-workers.md +13 -13
- package/skills/fec-web-workers/references/basic-worker.md +8 -8
- package/skills/metadata.json +402 -220
- package/skills/relations.json +120 -25
- package/templates/claude/CLAUDE.md +60 -60
- package/templates/codex/AGENTS.md +76 -76
- package/templates/codex/config.toml +4 -4
- package/templates/openclaw/AGENTS.md +68 -68
- package/templates/openclaw/OPENCLAW-CONFIG.md +8 -8
- package/templates/shared/rules/fec-agent-workflow.md +40 -40
- package/templates/shared/rules/fec-api-layer.md +52 -52
- package/templates/shared/rules/fec-ci-cd.md +29 -117
- package/templates/shared/rules/fec-code-comments.md +22 -22
- package/templates/shared/rules/fec-design-system.md +65 -241
- package/templates/shared/rules/fec-error-handling.md +41 -185
- package/templates/shared/rules/fec-git-conventions.md +42 -42
- package/templates/shared/rules/fec-i18n.md +48 -96
- package/templates/shared/rules/fec-naming-conventions.md +91 -91
- package/templates/shared/rules/fec-performance.md +78 -78
- package/templates/shared/rules/fec-react.md +58 -58
- package/templates/shared/rules/fec-refactoring.md +34 -30
- package/templates/shared/rules/fec-rendering-patterns.md +40 -183
- package/templates/shared/rules/fec-responsive-design.md +37 -214
- package/templates/shared/rules/fec-source-driven-development.md +22 -22
- package/templates/shared/rules/fec-state-management.md +45 -148
- package/templates/shared/rules/fec-testing.md +64 -64
- package/templates/shared/rules/fec-typescript.md +98 -341
- package/templates/shared/rules/fec-vue.md +42 -42
- package/templates/shared/rules/fec-working-modes.md +34 -34
- package/skills/fec-e2e-testing/references/e2e-advanced.md +0 -176
- package/skills/fec-react-project-standard/references/react-project-details.md +0 -642
- package/skills/fec-vue3-project-standard/references/vue3-project-details.md +0 -547
|
@@ -0,0 +1,373 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"id": "minimal",
|
|
4
|
+
"keywords": [
|
|
5
|
+
"minimal",
|
|
6
|
+
"clean",
|
|
7
|
+
"enterprise",
|
|
8
|
+
"trust",
|
|
9
|
+
"calm"
|
|
10
|
+
],
|
|
11
|
+
"description": "安静的界面表层、清晰的信息层级、克制的强调色,并支持快速扫读。",
|
|
12
|
+
"tokens": {
|
|
13
|
+
"radius": "4-8px",
|
|
14
|
+
"shadow": "低",
|
|
15
|
+
"density": "中高"
|
|
16
|
+
},
|
|
17
|
+
"bestFor": [
|
|
18
|
+
"企业级产品",
|
|
19
|
+
"金融",
|
|
20
|
+
"医疗健康",
|
|
21
|
+
"文档"
|
|
22
|
+
],
|
|
23
|
+
"avoid": [
|
|
24
|
+
"没有信息优先级的空白区域",
|
|
25
|
+
"低对比度灰色文本"
|
|
26
|
+
]
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"id": "editorial",
|
|
30
|
+
"keywords": [
|
|
31
|
+
"editorial",
|
|
32
|
+
"magazine",
|
|
33
|
+
"portfolio",
|
|
34
|
+
"brand",
|
|
35
|
+
"luxury"
|
|
36
|
+
],
|
|
37
|
+
"description": "表现力强的排版、明确的媒体主导、受控的不对称布局和叙事节奏。",
|
|
38
|
+
"tokens": {
|
|
39
|
+
"radius": "0-8px",
|
|
40
|
+
"shadow": "取决于内容",
|
|
41
|
+
"density": "中等"
|
|
42
|
+
},
|
|
43
|
+
"bestFor": [
|
|
44
|
+
"创意项目",
|
|
45
|
+
"电商",
|
|
46
|
+
"作品集",
|
|
47
|
+
"发布页"
|
|
48
|
+
],
|
|
49
|
+
"avoid": [
|
|
50
|
+
"影响阅读的装饰性文字",
|
|
51
|
+
"遮挡真实产品的媒体素材"
|
|
52
|
+
]
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"id": "glass",
|
|
56
|
+
"keywords": [
|
|
57
|
+
"glass",
|
|
58
|
+
"modern",
|
|
59
|
+
"ai",
|
|
60
|
+
"overlay",
|
|
61
|
+
"depth"
|
|
62
|
+
],
|
|
63
|
+
"description": "谨慎使用分层半透明表层,用于建立层级和聚焦。",
|
|
64
|
+
"tokens": {
|
|
65
|
+
"radius": "12-20px",
|
|
66
|
+
"shadow": "柔和深度",
|
|
67
|
+
"density": "中等"
|
|
68
|
+
},
|
|
69
|
+
"bestFor": [
|
|
70
|
+
"现代 SaaS",
|
|
71
|
+
"AI 工具",
|
|
72
|
+
"可视化"
|
|
73
|
+
],
|
|
74
|
+
"avoid": [
|
|
75
|
+
"模糊且低对比度的文本",
|
|
76
|
+
"把 blur 当作纯装饰"
|
|
77
|
+
]
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"id": "brutalist",
|
|
81
|
+
"keywords": [
|
|
82
|
+
"brutalist",
|
|
83
|
+
"raw",
|
|
84
|
+
"bold",
|
|
85
|
+
"youth",
|
|
86
|
+
"experimental"
|
|
87
|
+
],
|
|
88
|
+
"description": "硬边界、强对比、可见结构,以及刻意直接的构图。",
|
|
89
|
+
"tokens": {
|
|
90
|
+
"radius": "0-4px",
|
|
91
|
+
"shadow": "硬阴影或无阴影",
|
|
92
|
+
"density": "可变"
|
|
93
|
+
},
|
|
94
|
+
"bestFor": [
|
|
95
|
+
"创意活动",
|
|
96
|
+
"年轻品牌",
|
|
97
|
+
"实验性作品集"
|
|
98
|
+
],
|
|
99
|
+
"avoid": [
|
|
100
|
+
"严肃的受监管工作流",
|
|
101
|
+
"不可访问的对比度或混乱导航"
|
|
102
|
+
]
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"id": "bento",
|
|
106
|
+
"keywords": [
|
|
107
|
+
"bento",
|
|
108
|
+
"cards",
|
|
109
|
+
"modular",
|
|
110
|
+
"features",
|
|
111
|
+
"education"
|
|
112
|
+
],
|
|
113
|
+
"description": "模块化信息区块,尺度有变化,分组清晰。",
|
|
114
|
+
"tokens": {
|
|
115
|
+
"radius": "8px 或更小,除非设计系统不同",
|
|
116
|
+
"shadow": "轻微",
|
|
117
|
+
"density": "中等"
|
|
118
|
+
},
|
|
119
|
+
"bestFor": [
|
|
120
|
+
"功能概览",
|
|
121
|
+
"学习路径",
|
|
122
|
+
"产品摘要"
|
|
123
|
+
],
|
|
124
|
+
"avoid": [
|
|
125
|
+
"card 内嵌 card 的布局",
|
|
126
|
+
"权重相同而掩盖优先级的模块"
|
|
127
|
+
]
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"id": "data-dense",
|
|
131
|
+
"keywords": [
|
|
132
|
+
"dashboard",
|
|
133
|
+
"analytics",
|
|
134
|
+
"table",
|
|
135
|
+
"monitoring",
|
|
136
|
+
"dense"
|
|
137
|
+
],
|
|
138
|
+
"description": "面向运营的高信息密度,表格与图表对齐,语义化用色,控件稳定。",
|
|
139
|
+
"tokens": {
|
|
140
|
+
"radius": "4-8px",
|
|
141
|
+
"shadow": "极少",
|
|
142
|
+
"density": "高"
|
|
143
|
+
},
|
|
144
|
+
"bestFor": [
|
|
145
|
+
"仪表盘",
|
|
146
|
+
"管理后台",
|
|
147
|
+
"监控",
|
|
148
|
+
"分析"
|
|
149
|
+
],
|
|
150
|
+
"avoid": [
|
|
151
|
+
"营销式 hero 首屏",
|
|
152
|
+
"大型装饰性 card"
|
|
153
|
+
]
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"id": "immersive",
|
|
157
|
+
"keywords": [
|
|
158
|
+
"immersive",
|
|
159
|
+
"game",
|
|
160
|
+
"3d",
|
|
161
|
+
"canvas",
|
|
162
|
+
"story",
|
|
163
|
+
"visualization"
|
|
164
|
+
],
|
|
165
|
+
"description": "全出血视觉空间,同时保持控件可预测、可阅读。",
|
|
166
|
+
"tokens": {
|
|
167
|
+
"radius": "取决于上下文",
|
|
168
|
+
"shadow": "由场景驱动",
|
|
169
|
+
"density": "低到中等"
|
|
170
|
+
},
|
|
171
|
+
"bestFor": [
|
|
172
|
+
"游戏",
|
|
173
|
+
"3D 预览",
|
|
174
|
+
"交互式可视化"
|
|
175
|
+
],
|
|
176
|
+
"avoid": [
|
|
177
|
+
"把主场景放进装饰性 card 中",
|
|
178
|
+
"被氛围遮住的控件"
|
|
179
|
+
]
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
"id": "mobile-native",
|
|
183
|
+
"keywords": [
|
|
184
|
+
"mobile",
|
|
185
|
+
"app",
|
|
186
|
+
"native",
|
|
187
|
+
"touch",
|
|
188
|
+
"safe-area"
|
|
189
|
+
],
|
|
190
|
+
"description": "触控优先布局,具备平台安全间距、清晰反馈和稳健的文本缩放。",
|
|
191
|
+
"tokens": {
|
|
192
|
+
"radius": "与平台一致",
|
|
193
|
+
"shadow": "原生层级阴影",
|
|
194
|
+
"density": "适合触控"
|
|
195
|
+
},
|
|
196
|
+
"bestFor": [
|
|
197
|
+
"移动应用",
|
|
198
|
+
"响应式工具",
|
|
199
|
+
"现场作业流程"
|
|
200
|
+
],
|
|
201
|
+
"avoid": [
|
|
202
|
+
"仅 hover 可用的行为",
|
|
203
|
+
"被 safe area 遮挡的内容"
|
|
204
|
+
]
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
"id": "soft",
|
|
208
|
+
"keywords": [
|
|
209
|
+
"soft",
|
|
210
|
+
"wellness",
|
|
211
|
+
"beauty",
|
|
212
|
+
"calm",
|
|
213
|
+
"organic"
|
|
214
|
+
],
|
|
215
|
+
"description": "温暖表层、柔和对比、触感化间距,以及平静的交互节奏。",
|
|
216
|
+
"tokens": {
|
|
217
|
+
"radius": "8-16px",
|
|
218
|
+
"shadow": "柔和",
|
|
219
|
+
"density": "低到中等"
|
|
220
|
+
},
|
|
221
|
+
"bestFor": [
|
|
222
|
+
"身心健康",
|
|
223
|
+
"美妆",
|
|
224
|
+
"生活方式",
|
|
225
|
+
"照护服务"
|
|
226
|
+
],
|
|
227
|
+
"avoid": [
|
|
228
|
+
"粉彩配色导致的对比度失败",
|
|
229
|
+
"用模糊氛围图替代真实服务"
|
|
230
|
+
]
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
"id": "editorial-premium",
|
|
234
|
+
"keywords": [
|
|
235
|
+
"premium",
|
|
236
|
+
"luxury",
|
|
237
|
+
"fashion",
|
|
238
|
+
"magazine",
|
|
239
|
+
"launch",
|
|
240
|
+
"campaign"
|
|
241
|
+
],
|
|
242
|
+
"description": "以图片驱动构图,文案克制,排版高对比,并有意保留负空间。",
|
|
243
|
+
"tokens": {
|
|
244
|
+
"radius": "0-8px",
|
|
245
|
+
"shadow": "极少",
|
|
246
|
+
"density": "低到中等"
|
|
247
|
+
},
|
|
248
|
+
"bestFor": [
|
|
249
|
+
"品牌发布",
|
|
250
|
+
"高端电商",
|
|
251
|
+
"编辑式落地页",
|
|
252
|
+
"作品集专题"
|
|
253
|
+
],
|
|
254
|
+
"avoid": [
|
|
255
|
+
"没有品牌依据的米色奢华默认风格",
|
|
256
|
+
"削弱可读性的衬线装饰",
|
|
257
|
+
"把 CTA 推到首屏下方的 hero 文案"
|
|
258
|
+
]
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
"id": "industrial-brutalist",
|
|
262
|
+
"keywords": [
|
|
263
|
+
"industrial",
|
|
264
|
+
"brutalist",
|
|
265
|
+
"mechanical",
|
|
266
|
+
"terminal",
|
|
267
|
+
"tactical",
|
|
268
|
+
"blueprint"
|
|
269
|
+
],
|
|
270
|
+
"description": "可见网格、硬边界、强烈字号层级对比,以及有明确目的的实用型元数据。",
|
|
271
|
+
"tokens": {
|
|
272
|
+
"radius": "0-2px",
|
|
273
|
+
"shadow": "无",
|
|
274
|
+
"density": "中高"
|
|
275
|
+
},
|
|
276
|
+
"bestFor": [
|
|
277
|
+
"技术作品集",
|
|
278
|
+
"开发者工具",
|
|
279
|
+
"编辑式实验",
|
|
280
|
+
"遥测界面"
|
|
281
|
+
],
|
|
282
|
+
"avoid": [
|
|
283
|
+
"受监管的消费流程",
|
|
284
|
+
"过小的全大写正文",
|
|
285
|
+
"没有真实信息的装饰性终端外壳"
|
|
286
|
+
]
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
"id": "minimal-utilitarian",
|
|
290
|
+
"keywords": [
|
|
291
|
+
"utilitarian",
|
|
292
|
+
"document",
|
|
293
|
+
"linear",
|
|
294
|
+
"notion",
|
|
295
|
+
"workspace",
|
|
296
|
+
"minimalist"
|
|
297
|
+
],
|
|
298
|
+
"description": "安静的文档式表层、精确结构、低装饰,并主要依靠排版建立层级。",
|
|
299
|
+
"tokens": {
|
|
300
|
+
"radius": "4-8px",
|
|
301
|
+
"shadow": "无到低",
|
|
302
|
+
"density": "中等"
|
|
303
|
+
},
|
|
304
|
+
"bestFor": [
|
|
305
|
+
"SaaS 设置页",
|
|
306
|
+
"文档",
|
|
307
|
+
"团队工作区",
|
|
308
|
+
"生产力工具"
|
|
309
|
+
],
|
|
310
|
+
"avoid": [
|
|
311
|
+
"没有任务优先级的大片空白",
|
|
312
|
+
"灰底灰字的低对比",
|
|
313
|
+
"所有 section 都使用相同扁平 card"
|
|
314
|
+
]
|
|
315
|
+
},
|
|
316
|
+
{
|
|
317
|
+
"id": "image-led-landing",
|
|
318
|
+
"keywords": [
|
|
319
|
+
"landing",
|
|
320
|
+
"website",
|
|
321
|
+
"hero",
|
|
322
|
+
"visual",
|
|
323
|
+
"image-led",
|
|
324
|
+
"marketing"
|
|
325
|
+
],
|
|
326
|
+
"description": "由真实或生成媒体承载清晰转化路径,section 结构有变化,并提供可检查的视觉资产。",
|
|
327
|
+
"tokens": {
|
|
328
|
+
"radius": "取决于上下文",
|
|
329
|
+
"shadow": "取决于媒体",
|
|
330
|
+
"density": "低到中等"
|
|
331
|
+
},
|
|
332
|
+
"bestFor": [
|
|
333
|
+
"营销网站",
|
|
334
|
+
"产品页",
|
|
335
|
+
"活动页",
|
|
336
|
+
"代理商网站"
|
|
337
|
+
],
|
|
338
|
+
"avoid": [
|
|
339
|
+
"只有文字加渐变的 hero",
|
|
340
|
+
"伪造截图",
|
|
341
|
+
"重复的左文右图 section",
|
|
342
|
+
"桌面端会换行的 CTA 标签"
|
|
343
|
+
]
|
|
344
|
+
},
|
|
345
|
+
{
|
|
346
|
+
"id": "brand-system-board",
|
|
347
|
+
"keywords": [
|
|
348
|
+
"brand",
|
|
349
|
+
"brandkit",
|
|
350
|
+
"identity",
|
|
351
|
+
"logo",
|
|
352
|
+
"guidelines",
|
|
353
|
+
"visual system"
|
|
354
|
+
],
|
|
355
|
+
"description": "以 presentation grid 呈现 identity board,连贯展示 logo 逻辑、色板、字体、应用场景和视觉世界。",
|
|
356
|
+
"tokens": {
|
|
357
|
+
"radius": "由系统定义",
|
|
358
|
+
"shadow": "取决于展示方式",
|
|
359
|
+
"density": "中等"
|
|
360
|
+
},
|
|
361
|
+
"bestFor": [
|
|
362
|
+
"品牌探索",
|
|
363
|
+
"识别系统",
|
|
364
|
+
"设计方向交接",
|
|
365
|
+
"视觉语言提案"
|
|
366
|
+
],
|
|
367
|
+
"avoid": [
|
|
368
|
+
"随机 moodboard",
|
|
369
|
+
"通用 logo",
|
|
370
|
+
"无法解释品牌理念的面板"
|
|
371
|
+
]
|
|
372
|
+
}
|
|
373
|
+
]
|
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"category": "accessibility",
|
|
4
|
+
"priority": "critical",
|
|
5
|
+
"checks": [
|
|
6
|
+
"文本对比度满足 WCAG AA",
|
|
7
|
+
"焦点环可见",
|
|
8
|
+
"纯图标控件有可访问名称",
|
|
9
|
+
"键盘顺序遵循视觉顺序"
|
|
10
|
+
],
|
|
11
|
+
"avoid": [
|
|
12
|
+
"全局移除 outline",
|
|
13
|
+
"仅用颜色表达错误或成功状态"
|
|
14
|
+
]
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"category": "interaction",
|
|
18
|
+
"priority": "critical",
|
|
19
|
+
"checks": [
|
|
20
|
+
"主控件在 100ms 内响应",
|
|
21
|
+
"触摸目标至少 44x44px",
|
|
22
|
+
"禁用状态具备语义且可见"
|
|
23
|
+
],
|
|
24
|
+
"avoid": [
|
|
25
|
+
"主要操作只能 hover 触发",
|
|
26
|
+
"点击目标过密且缺少间距"
|
|
27
|
+
]
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"category": "performance",
|
|
31
|
+
"priority": "high",
|
|
32
|
+
"checks": [
|
|
33
|
+
"图片预留尺寸",
|
|
34
|
+
"大列表已虚拟化",
|
|
35
|
+
"动画使用 transform/opacity",
|
|
36
|
+
"重型视觉工作延后执行或移出主线程"
|
|
37
|
+
],
|
|
38
|
+
"avoid": [
|
|
39
|
+
"动画驱动 layout 属性",
|
|
40
|
+
"无限制渲染图表或表格"
|
|
41
|
+
]
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"category": "layout",
|
|
45
|
+
"priority": "high",
|
|
46
|
+
"checks": [
|
|
47
|
+
"已检查 375/768/1024/1440px 布局",
|
|
48
|
+
"无水平溢出",
|
|
49
|
+
"固定 header/footer 为内容预留空间"
|
|
50
|
+
],
|
|
51
|
+
"avoid": [
|
|
52
|
+
"desktop-first 的 max-width 补丁",
|
|
53
|
+
"无理由嵌套滚动区域"
|
|
54
|
+
]
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"category": "typography",
|
|
58
|
+
"priority": "medium",
|
|
59
|
+
"checks": [
|
|
60
|
+
"正文保持可读",
|
|
61
|
+
"行长受控",
|
|
62
|
+
"需要对齐时数字使用 tabular figures"
|
|
63
|
+
],
|
|
64
|
+
"avoid": [
|
|
65
|
+
"低对比小标签",
|
|
66
|
+
"正文使用负字距"
|
|
67
|
+
]
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"category": "animation",
|
|
71
|
+
"priority": "medium",
|
|
72
|
+
"checks": [
|
|
73
|
+
"微交互时长为 150-300ms",
|
|
74
|
+
"退出动画快于进入动画",
|
|
75
|
+
"尊重 reduced motion"
|
|
76
|
+
],
|
|
77
|
+
"avoid": [
|
|
78
|
+
"无原因的装饰性动效",
|
|
79
|
+
"转场期间阻塞输入"
|
|
80
|
+
]
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"category": "forms",
|
|
84
|
+
"priority": "medium",
|
|
85
|
+
"checks": [
|
|
86
|
+
"标签持久可见",
|
|
87
|
+
"错误显示在字段附近",
|
|
88
|
+
"提交包含 loading/success/error 反馈",
|
|
89
|
+
"首个无效字段获得焦点"
|
|
90
|
+
],
|
|
91
|
+
"avoid": [
|
|
92
|
+
"仅使用 placeholder 作为标签",
|
|
93
|
+
"错误摘要无法引导字段恢复"
|
|
94
|
+
]
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"category": "navigation",
|
|
98
|
+
"priority": "high",
|
|
99
|
+
"checks": [
|
|
100
|
+
"当前位置可见",
|
|
101
|
+
"返回行为保留状态",
|
|
102
|
+
"主导航保持可达"
|
|
103
|
+
],
|
|
104
|
+
"avoid": [
|
|
105
|
+
"混用多个主导航系统",
|
|
106
|
+
"用 modal 承载主导航"
|
|
107
|
+
]
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"category": "charts",
|
|
111
|
+
"priority": "medium",
|
|
112
|
+
"checks": [
|
|
113
|
+
"图表类型匹配数据问题",
|
|
114
|
+
"单位和图例可见",
|
|
115
|
+
"数据有文本/表格兜底",
|
|
116
|
+
"颜色由形状或标签补充"
|
|
117
|
+
],
|
|
118
|
+
"avoid": [
|
|
119
|
+
"多类别使用饼图",
|
|
120
|
+
"仅用颜色区分系列"
|
|
121
|
+
]
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"category": "first-viewport",
|
|
125
|
+
"label": "First viewport",
|
|
126
|
+
"priority": "high",
|
|
127
|
+
"checks": [
|
|
128
|
+
"Hero 或工作区适配常见笔记本高度",
|
|
129
|
+
"主 CTA 或任务入口无需滚动即可看到",
|
|
130
|
+
"桌面导航保持单行",
|
|
131
|
+
"促销页面中下一屏内容留下可读提示"
|
|
132
|
+
],
|
|
133
|
+
"avoid": [
|
|
134
|
+
"顶部 padding 过大",
|
|
135
|
+
"Hero 文案把操作推到首屏以下",
|
|
136
|
+
"桌面导航变成两行"
|
|
137
|
+
]
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"category": "cta-quality",
|
|
141
|
+
"label": "CTA quality",
|
|
142
|
+
"priority": "high",
|
|
143
|
+
"checks": [
|
|
144
|
+
"CTA 文本对比度满足 WCAG AA",
|
|
145
|
+
"桌面端主 CTA 标签保持单行",
|
|
146
|
+
"每种 CTA 意图使用一致标签",
|
|
147
|
+
"媒体背景上的 ghost button 仍可见"
|
|
148
|
+
],
|
|
149
|
+
"avoid": [
|
|
150
|
+
"浅色按钮上使用白字",
|
|
151
|
+
"同一操作使用多个联系类标签",
|
|
152
|
+
"繁忙图像上叠透明按钮"
|
|
153
|
+
]
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"category": "section-variety",
|
|
157
|
+
"label": "Section variety",
|
|
158
|
+
"priority": "medium",
|
|
159
|
+
"checks": [
|
|
160
|
+
"相邻 section 承担不同布局职责",
|
|
161
|
+
"Bento 单元数量匹配真实内容",
|
|
162
|
+
"Feature grid 有清晰视觉优先级",
|
|
163
|
+
"少量使用小号大写 eyebrow 标签"
|
|
164
|
+
],
|
|
165
|
+
"avoid": [
|
|
166
|
+
"默认节奏总是三个等权卡片",
|
|
167
|
+
"连续三个或更多 zigzag section",
|
|
168
|
+
"为空装饰而放置 bento 单元"
|
|
169
|
+
]
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"category": "media-authenticity",
|
|
173
|
+
"label": "Media authenticity",
|
|
174
|
+
"priority": "high",
|
|
175
|
+
"checks": [
|
|
176
|
+
"视觉页面使用有明确职责的真实或生成资产",
|
|
177
|
+
"产品页面展示可检查的产品或状态",
|
|
178
|
+
"截图代表真实 UI,或标记为概念稿",
|
|
179
|
+
"图片预留 aspect ratio,信息性图片有有意义 alt 文本"
|
|
180
|
+
],
|
|
181
|
+
"avoid": [
|
|
182
|
+
"纯文本促销页",
|
|
183
|
+
"伪造 dashboard 矩形",
|
|
184
|
+
"用模糊 stock 氛围图作为主体"
|
|
185
|
+
]
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
"category": "state-completeness",
|
|
189
|
+
"label": "State completeness",
|
|
190
|
+
"priority": "critical",
|
|
191
|
+
"checks": [
|
|
192
|
+
"Loading 形态匹配最终布局",
|
|
193
|
+
"空状态包含有用下一步",
|
|
194
|
+
"错误可恢复且靠近来源",
|
|
195
|
+
"覆盖 selected、invalid、disabled、hover、focus 和 reduced-motion 状态"
|
|
196
|
+
],
|
|
197
|
+
"avoid": [
|
|
198
|
+
"到处使用通用 spinner",
|
|
199
|
+
"空状态只写 no data",
|
|
200
|
+
"禁用控件只靠透明度表达"
|
|
201
|
+
]
|
|
202
|
+
}
|
|
203
|
+
]
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
# 设计智能参考
|
|
2
|
+
|
|
3
|
+
本参考用于把模糊的 UI 请求转成可执行设计系统。先识别产品类别,再组合风格原型、色彩角色、字体情绪、动效节奏、图表任务和 UX 风险。
|
|
4
|
+
|
|
5
|
+
## 决策流程
|
|
6
|
+
|
|
7
|
+
1. 提取关键词:产品类型、用户、场景、主要任务、内容密度、品牌语气、技术栈。
|
|
8
|
+
2. 写出设计读取:页面类型、受众、主任务、品牌约束和可信赖感来源。
|
|
9
|
+
3. 匹配产品规则:从 `data/product-rules.json` 选择最接近的类别,记录推荐结构、风险和反模式。
|
|
10
|
+
4. 选择风格原型:从 `data/style-archetypes.json` 选择 1 个主风格和最多 1 个辅助风格,避免风格拼贴。
|
|
11
|
+
5. 设定设计拨盘:视觉张力、动效强度、信息密度、媒体真实性、内容说服力都用 1-10 表达,并随页面类型变化。
|
|
12
|
+
6. 建立 token 方向:定义主色、强调色、背景、前景、边框、危险色和 focus ring 的语义角色。
|
|
13
|
+
7. 选择字体情绪:不要只选“好看的字体”,要说明标题和正文各自承担的语气与可读性。
|
|
14
|
+
8. 判断数据表达:趋势用折线/面积,比较用柱状,构成少量类别可用环图,流程用漏斗/步骤,明细必须保留表格替代。
|
|
15
|
+
9. 输出反模式和质量门禁:每个设计建议必须附带“不要做什么”,并根据页面类型补充首屏、CTA、媒体真实性、section 变化和状态完整度检查。
|
|
16
|
+
|
|
17
|
+
## 方向 Advisor
|
|
18
|
+
|
|
19
|
+
当用户只说“好看一点”“给几个方向”“我也不知道什么风格”且没有权威设计稿时,不要连续追问泛泛口味问题。先给 3 个差异明显的方向,让用户能判断取舍。
|
|
20
|
+
|
|
21
|
+
每个方向必须包含:
|
|
22
|
+
|
|
23
|
+
- 适用场景:为什么适合当前产品、受众和任务。
|
|
24
|
+
- 视觉锚点:信息结构、真实媒体、数据形态、材质、字体性格、空间组织或交互节奏。
|
|
25
|
+
- 关键 token:主色、强调色、背景、字体情绪、圆角/边框/阴影倾向。
|
|
26
|
+
- 避免项:这个方向最容易滑向的模板化错误。
|
|
27
|
+
|
|
28
|
+
三个方向应来自不同设计逻辑,例如:
|
|
29
|
+
|
|
30
|
+
- 信息架构型:高密度、理性、数据优先,适合 B2B、运营、金融、工程工具。
|
|
31
|
+
- 编辑叙事型:版式、留白、强文字层级,适合品牌故事、内容产品、作品集。
|
|
32
|
+
- 产品实证型:真实截图、对象、状态、流程证据优先,适合 SaaS、硬件、开发者工具。
|
|
33
|
+
- 表现实验型:强动效、空间感、生成视觉,适合发布页、活动页、艺术/创意项目。
|
|
34
|
+
- 温暖人本型:低攻击性色彩、可亲近插画或真实人物,适合教育、健康、生活方式。
|
|
35
|
+
|
|
36
|
+
用户选择方向后,再把它落成设计系统和页面结构;不要把 3 个方向拼贴成一个混杂系统。
|
|
37
|
+
|
|
38
|
+
## 真实资产优先
|
|
39
|
+
|
|
40
|
+
品牌或产品相关 UI 的识别度来自真实资产,而不是颜色猜测。优先级:
|
|
41
|
+
|
|
42
|
+
1. Logo、产品图、真实 UI 截图、实体照片、品牌应用图。
|
|
43
|
+
2. 项目内已有 icon、组件、数据状态、图表和截图。
|
|
44
|
+
3. 为当前任务生成的专用资产。
|
|
45
|
+
4. 明确标记的结构化 placeholder。
|
|
46
|
+
|
|
47
|
+
不要用 CSS 轮廓、通用插画、假截图或远程占位图替代用户需要识别的主体。缺少关键资产时,先标记资产缺口并给替代路线;若 logo 或主体产品是首屏识别核心,应暂停确认或改为不依赖品牌识别的结构方案。
|
|
48
|
+
|
|
49
|
+
## v0 校准
|
|
50
|
+
|
|
51
|
+
视觉风险高、方向不明确或页面影响面较大时,先交付一个可看的 v0,而不是一次性做完整页面。
|
|
52
|
+
|
|
53
|
+
v0 应包含:
|
|
54
|
+
|
|
55
|
+
- 核心布局、首屏层级、主要 token 和一个关键模块。
|
|
56
|
+
- 明确 placeholder 和资产缺口。
|
|
57
|
+
- 1-2 个可替换方向点,例如密度、色彩温度或媒体策略。
|
|
58
|
+
- 不包含完整状态矩阵、所有内容细节或生产级动效。
|
|
59
|
+
|
|
60
|
+
v0 通过后再补齐组件、状态、响应式和交互动效。
|
|
61
|
+
|
|
62
|
+
## 设计 Critique
|
|
63
|
+
|
|
64
|
+
当用户要求“评审 UI”“好不好看”“再高级一点”或交付前需要自检时,按 5 个维度输出具体问题,而不是只给主观形容:
|
|
65
|
+
|
|
66
|
+
- 方向一致性:视觉选择是否服务设计读取和产品任务。
|
|
67
|
+
- 层级与扫描:首屏、标题、CTA、数据、状态是否有清楚主次。
|
|
68
|
+
- 工艺质量:间距、对齐、色彩数量、文字换行、圆角/边框/阴影是否稳定。
|
|
69
|
+
- 功能完整度:loading、empty、error、disabled、hover、focus、selected 是否覆盖。
|
|
70
|
+
- 原创性与识别度:是否摆脱通用渐变、三卡片、假截图、无主体 hero。
|
|
71
|
+
|
|
72
|
+
输出应按严重程度给出可执行修复,不评价设计者本人。
|
|
73
|
+
|
|
74
|
+
## 何时运行生成器
|
|
75
|
+
|
|
76
|
+
使用以下命令生成设计系统建议:
|
|
77
|
+
|
|
78
|
+
```bash
|
|
79
|
+
node skills/fec-ui-design/scripts/design-system.mjs "beauty spa booking" --project "Serenity Spa"
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
输出 Markdown 适合贴入计划或 PR 描述;输出 JSON 适合测试或工具消费:
|
|
83
|
+
|
|
84
|
+
```bash
|
|
85
|
+
node skills/fec-ui-design/scripts/design-system.mjs "fintech analytics dashboard" --format json --stack next
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
## 输出必须回答
|
|
89
|
+
|
|
90
|
+
- 这个界面的主任务是什么?
|
|
91
|
+
- 设计读取和五个设计拨盘分别是什么?
|
|
92
|
+
- 推荐哪种页面结构或工作区结构?
|
|
93
|
+
- 视觉锚点是什么,为什么贴合业务?
|
|
94
|
+
- 主风格、字体、色彩、动效分别服务什么目标?
|
|
95
|
+
- 图表和数据密度如何处理?
|
|
96
|
+
- 哪些反模式必须避免?
|
|
97
|
+
- 上线前最小 QA 清单是什么?
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# 全局/页面级差异覆盖
|
|
2
|
+
|
|
3
|
+
当项目需要长期保持 UI 一致性时,用 `design-system/MASTER.md` 存放全局设计系统,用 `design-system/pages/<page>.md` 存放页面级差异。
|
|
4
|
+
|
|
5
|
+
## 读取顺序
|
|
6
|
+
|
|
7
|
+
1. 先检查当前页面是否有 `design-system/<project>/pages/<page>.md`。
|
|
8
|
+
2. 如果存在,页面文件里的规则覆盖 Master 中相同维度。
|
|
9
|
+
3. 如果不存在,完全遵循 `design-system/<project>/MASTER.md`。
|
|
10
|
+
4. 页面文件只记录差异,不复制 Master 全文。
|
|
11
|
+
|
|
12
|
+
## 生成命令
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
node skills/fec-ui-design/scripts/design-system.mjs "saas analytics dashboard" --project "Acme Console" --persist --output-dir .
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
生成页面 overrides:
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
node skills/fec-ui-design/scripts/design-system.mjs "saas analytics dashboard" --project "Acme Console" --page dashboard --persist --output-dir .
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## 页面 override 应包含
|
|
25
|
+
|
|
26
|
+
- 页面任务和信息密度差异
|
|
27
|
+
- 布局差异:工作区、表格、图表、表单、详情页或营销首屏
|
|
28
|
+
- token 差异:只写需要覆盖的语义色、间距、状态或图表色
|
|
29
|
+
- 组件差异:只写当前页面新增或改变的组件行为
|
|
30
|
+
- QA 焦点:当前页面最容易出错的响应式、可访问性、性能或交互风险
|