@bovinphang/frontend-craft 2.7.0 → 2.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/marketplace.json +2 -2
- package/.claude-plugin/plugin.json +1 -1
- package/CHANGELOG.md +34 -0
- package/CHANGELOG.zh-CN.md +34 -0
- package/README.md +1 -1
- package/README.openclaw.md +99 -43
- package/README.openclaw.zh-CN.md +99 -43
- package/README.zh-CN.md +1 -1
- 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 +87 -87
- 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 +3 -0
- package/docs/ja-JP/README.md +1 -1
- package/docs/ko-KR/README.md +1 -1
- package/docs/project-structure.md +13 -5
- package/docs/zh-CN/example-prompts.md +3 -0
- package/docs/zh-CN/project-structure.md +6 -1
- package/docs/zh-TW/README.md +1 -1
- 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/localized/zh-CN/skills/fec-typescript-project-standard/references/type-safety-patterns.md +102 -0
- package/localized/zh-CN/skills/fec-typescript-project-standard/references/type-safety.md +148 -0
- 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 +3 -2
- package/skills/TEMPLATE.md +74 -74
- package/skills/eval_queries.json +678 -678
- 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 +25 -25
- 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 +42 -38
- package/skills/fec-drawio-studio/data/THIRD_PARTY_NOTICES.md +1 -1
- package/skills/fec-drawio-studio/data/shape-index.json +83570 -0
- package/skills/fec-drawio-studio/references/diagram-patterns.md +19 -0
- package/skills/fec-drawio-studio/references/flowchart-quality.md +49 -0
- package/skills/fec-drawio-studio/references/layout-and-export.md +18 -3
- package/skills/fec-drawio-studio/references/xml-and-mermaid.md +5 -1
- package/skills/fec-drawio-studio/scripts/diagram-lint.mjs +62 -0
- package/skills/fec-drawio-studio/scripts/drawio-export.mjs +134 -0
- package/skills/fec-drawio-studio/scripts/shape-query.mjs +55 -15
- package/skills/fec-e2e-testing/SKILL.md +24 -24
- package/skills/fec-e2e-testing/references/e2e-ci-reporting.md +20 -20
- package/skills/fec-e2e-testing/references/e2e-special-scenarios.md +10 -10
- package/skills/fec-e2e-testing/references/e2e-visual-regression.md +17 -17
- 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 +54 -29
- package/skills/fec-image-generation/assets/interactive-diagram.html +371 -0
- package/skills/fec-image-generation/references/diagram-workflows.md +33 -2
- package/skills/fec-image-generation/references/html-technical-diagrams.md +236 -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/tech-diagram-render.mjs +1397 -0
- package/skills/fec-implement-from-design/SKILL.md +81 -81
- package/skills/fec-implement-from-design/references/design-plan-template.md +16 -16
- package/skills/fec-legacy-to-modern-migration/SKILL.md +29 -29
- package/skills/fec-legacy-to-modern-migration/references/migration-execution-checklist.md +81 -81
- 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 +31 -31
- 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 -51
- package/skills/fec-motion-interaction/references/motion-patterns.md +11 -11
- package/skills/fec-nextjs-project-standard/SKILL.md +64 -64
- package/skills/fec-nuxt-project-standard/SKILL.md +57 -57
- package/skills/fec-performance-optimization/SKILL.md +54 -54
- package/skills/fec-performance-optimization/references/framework-performance-patterns.md +23 -23
- package/skills/fec-performance-optimization/references/report-template.md +31 -31
- 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 -72
- package/skills/fec-react-project-standard/references/react-performance-patterns.md +28 -28
- package/skills/fec-react-project-standard/references/react-project-structure.md +112 -112
- package/skills/fec-react-project-standard/references/react-quality-patterns.md +72 -72
- package/skills/fec-react-project-standard/references/react-runtime-patterns.md +94 -94
- 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 +37 -37
- 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 +59 -59
- 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 -36
- 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 +38 -38
- package/skills/fec-typescript-project-standard/references/type-safety-patterns.md +20 -20
- package/skills/fec-typescript-project-standard/references/type-safety.md +18 -18
- package/skills/fec-ui-design/SKILL.md +90 -90
- package/skills/fec-ui-design/references/design-intelligence.md +61 -61
- package/skills/fec-ui-design/references/master-page-overrides.md +15 -15
- package/skills/fec-ui-design/references/pre-delivery-checklist.md +38 -38
- 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 +38 -38
- package/skills/fec-vue3-project-standard/references/vue3-composables-routing.md +36 -36
- package/skills/fec-vue3-project-standard/references/vue3-performance-patterns.md +8 -8
- package/skills/fec-vue3-project-standard/references/vue3-project-structure.md +112 -112
- package/skills/fec-vue3-project-standard/references/vue3-state-api-quality.md +74 -74
- package/skills/fec-web-video-presentation/SKILL.md +33 -33
- 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 +121 -115
- package/skills/relations.json +4 -0
- 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 -29
- package/templates/shared/rules/fec-code-comments.md +22 -22
- package/templates/shared/rules/fec-design-system.md +53 -53
- package/templates/shared/rules/fec-error-handling.md +40 -40
- package/templates/shared/rules/fec-git-conventions.md +42 -42
- package/templates/shared/rules/fec-i18n.md +48 -48
- 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 -34
- package/templates/shared/rules/fec-rendering-patterns.md +36 -36
- package/templates/shared/rules/fec-responsive-design.md +37 -37
- package/templates/shared/rules/fec-source-driven-development.md +22 -22
- package/templates/shared/rules/fec-state-management.md +56 -56
- package/templates/shared/rules/fec-testing.md +64 -64
- package/templates/shared/rules/fec-typescript.md +75 -75
- package/templates/shared/rules/fec-vue.md +42 -42
- package/templates/shared/rules/fec-working-modes.md +34 -34
- package/skills/fec-drawio-studio/data/shape-index.json.gz +0 -0
|
@@ -1,54 +1,54 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Subagent collaboration rules
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
When front-end tasks involve multi-perspective analysis, cross-module planning, dedicated quality reviews, or verification failure repairs, give priority to using subagents with clear responsibilities.
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## Selection principle
|
|
6
6
|
|
|
7
|
-
-
|
|
8
|
-
-
|
|
9
|
-
- TypeScript
|
|
10
|
-
-
|
|
11
|
-
-
|
|
12
|
-
- E2E
|
|
13
|
-
-
|
|
14
|
-
-
|
|
15
|
-
- UI
|
|
16
|
-
-
|
|
17
|
-
- Token
|
|
18
|
-
-
|
|
19
|
-
-
|
|
20
|
-
- README
|
|
7
|
+
- Architecture, page splitting, state flow, directory planning: `fec-architect`
|
|
8
|
+
- Front-end PR comprehensive review: `fec-code-reviewer`
|
|
9
|
+
- TypeScript/JavaScript semantics and type risks: `fec-typescript-reviewer`
|
|
10
|
+
- Security risk: `fec-security-reviewer`
|
|
11
|
+
- Test strategy: `fec-test-planner`
|
|
12
|
+
- E2E writing and running: `fec-e2e-runner`
|
|
13
|
+
- Performance bottleneck: `fec-performance-optimizer`
|
|
14
|
+
- Source/version sensitive decision-making: Prioritize the agent to check the project facts and official sources, and then hand it over to the special agent for implementation
|
|
15
|
+
- Differences between UI visual and design draft: `fec-ui-checker`
|
|
16
|
+
- Design draft implementation: `fec-figma-implementer`
|
|
17
|
+
- Token mapping: `fec-design-token-mapper`
|
|
18
|
+
- Build, type, test, CI failed: `fec-build-fixer`
|
|
19
|
+
- Dead code and useless dependency cleaning: `fec-refactor-cleaner`
|
|
20
|
+
- README, runtime docs, capability table synchronization: `fec-doc-updater`
|
|
21
21
|
|
|
22
|
-
##
|
|
22
|
+
## Multi-agent review orchestration
|
|
23
23
|
|
|
24
|
-
|
|
24
|
+
Complex PRs can be reviewed in parallel along quality dimensions, but a lead agent must be responsible for merging conclusions.
|
|
25
25
|
|
|
26
|
-
|
|
|
26
|
+
| Change Type | Recommended Combination | Master Consolidator |
|
|
27
27
|
| --- | --- | --- |
|
|
28
28
|
| UI feature | `fec-code-reviewer` + `fec-typescript-reviewer` + `fec-test-planner` | `fec-code-reviewer` |
|
|
29
|
-
|
|
|
30
|
-
|
|
|
31
|
-
|
|
|
32
|
-
|
|
|
29
|
+
| Authentication / Upload / Rich Text | `fec-security-reviewer` + `fec-code-reviewer` | `fec-security-reviewer` |
|
|
30
|
+
| Big List / Charts / 3D / Performance Issues | `fec-performance-optimizer` + `fec-code-reviewer` | `fec-performance-optimizer` |
|
|
31
|
+
| Design draft landing | `fec-figma-implementer` + `fec-ui-checker` + `fec-code-reviewer` | `fec-figma-implementer` |
|
|
32
|
+
| Large refactoring | `fec-architect` + `fec-refactor-cleaner` + `fec-test-planner` | `fec-architect` |
|
|
33
33
|
|
|
34
|
-
|
|
34
|
+
Merge rules:
|
|
35
35
|
|
|
36
|
-
-
|
|
37
|
-
-
|
|
38
|
-
-
|
|
39
|
-
-
|
|
36
|
+
- Problems with the same file, same line number, and same root cause are merged into one, and the highest severity level is retained.
|
|
37
|
+
- When the same root cause is distributed in multiple places, it is written as a pattern-level discovery. The representative positions are listed and the screen is not refreshed line by line.
|
|
38
|
+
- When conclusions conflict, go back to the project facts, test results and user impact first, and do not use an agent's identity to decide who is right.
|
|
39
|
+
- The main agent outputs the final Verdict and lists the coverage and non-coverage ranges of each special agent.
|
|
40
40
|
|
|
41
|
-
##
|
|
41
|
+
## Collaboration constraints
|
|
42
42
|
|
|
43
|
-
-
|
|
44
|
-
-
|
|
45
|
-
-
|
|
46
|
-
-
|
|
47
|
-
-
|
|
43
|
+
- Clarify the scope, input and output before delegating, and do not leave ambiguous tasks to sub-agents.
|
|
44
|
+
- Multiple independent problems can be analyzed in parallel; tasks that depend on each other are advanced in sequence.
|
|
45
|
+
- Subagent output must lead to verifiable conclusions: reports, file paths, command results, or specific risks.
|
|
46
|
+
- Subagent suggestions do not automatically equal implementation decisions; when they conflict with the existing contracts of the warehouse, the warehouse contracts take precedence.
|
|
47
|
+
- The primary agent must review key evidence, verify orders, and change boundaries, and cannot just relay the subagent's conclusions.
|
|
48
48
|
|
|
49
|
-
##
|
|
49
|
+
## Anti-pattern
|
|
50
50
|
|
|
51
|
-
-
|
|
52
|
-
-
|
|
53
|
-
-
|
|
54
|
-
-
|
|
51
|
+
- Too many proxies were created for simple single file modifications.
|
|
52
|
+
- Let multiple agents modify the same file simultaneously without boundaries.
|
|
53
|
+
- Use subagent instead of code reading that should be done first.
|
|
54
|
+
- Only conclusions are received, key evidence and verification orders are not checked.
|
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
# API
|
|
1
|
+
# API layer specification
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
This document applies whenever HTTP requests, interface calls, data retrieval, or error handling are involved.
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## Core Principles
|
|
6
6
|
|
|
7
|
-
-
|
|
8
|
-
-
|
|
9
|
-
- API
|
|
10
|
-
-
|
|
7
|
+
- Requests and responses must have type definitions
|
|
8
|
+
- Unify error handling without repeating try-catch in each component
|
|
9
|
+
-Separation of API layer and UI layer
|
|
10
|
+
- Sensitive operations (deletion, payment) must require a second confirmation
|
|
11
11
|
|
|
12
|
-
##
|
|
12
|
+
## Directory structure
|
|
13
13
|
|
|
14
|
-
<!--
|
|
14
|
+
<!-- Please adjust according to the actual situation of the project -->
|
|
15
15
|
|
|
16
16
|
```
|
|
17
17
|
src/
|
|
18
|
-
├── api/
|
|
18
|
+
├── api/ # API definition layer
|
|
19
19
|
│ ├── modules/
|
|
20
|
-
│
|
|
21
|
-
│
|
|
20
|
+
│ │ ├── user.ts # User related interface
|
|
21
|
+
│ │ ├── order.ts # Order related interface
|
|
22
22
|
│ │ └── ...
|
|
23
|
-
│
|
|
23
|
+
│ ├── types/ # Request/response type
|
|
24
24
|
│ │ ├── user.types.ts
|
|
25
25
|
│ │ └── order.types.ts
|
|
26
|
-
│
|
|
26
|
+
│ └── request.ts # Unified request encapsulation
|
|
27
27
|
```
|
|
28
28
|
|
|
29
|
-
##
|
|
29
|
+
## Type specification
|
|
30
30
|
|
|
31
31
|
```typescript
|
|
32
|
-
//
|
|
32
|
+
//Request parameter type
|
|
33
33
|
interface GetUserListParams {
|
|
34
34
|
page: number;
|
|
35
35
|
pageSize: number;
|
|
@@ -37,7 +37,7 @@ interface GetUserListParams {
|
|
|
37
37
|
status?: UserStatus;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
//
|
|
40
|
+
//Response data type
|
|
41
41
|
interface GetUserListResponse {
|
|
42
42
|
list: User[];
|
|
43
43
|
total: number;
|
|
@@ -45,55 +45,55 @@ interface GetUserListResponse {
|
|
|
45
45
|
pageSize: number;
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
// API
|
|
48
|
+
// API function signature
|
|
49
49
|
export function getUserList(params: GetUserListParams): Promise<GetUserListResponse>;
|
|
50
50
|
```
|
|
51
51
|
|
|
52
|
-
|
|
52
|
+
Requirements:
|
|
53
53
|
|
|
54
|
-
-
|
|
55
|
-
-
|
|
56
|
-
-
|
|
54
|
+
- Disallow the use of `any` as a request parameter or response type
|
|
55
|
+
- Use TypeScript enum or union type for enumeration values
|
|
56
|
+
- Pagination parameters and response format remain unified
|
|
57
57
|
|
|
58
|
-
##
|
|
58
|
+
## Error handling
|
|
59
59
|
|
|
60
|
-
###
|
|
60
|
+
### Unified Interceptor
|
|
61
61
|
|
|
62
|
-
|
|
62
|
+
Unified processing at the request encapsulation layer:
|
|
63
63
|
|
|
64
|
-
- 401:
|
|
65
|
-
- 403:
|
|
66
|
-
- 500:
|
|
67
|
-
-
|
|
64
|
+
- 401: Jump to login or refresh token
|
|
65
|
+
- 403: Prompt No Permission
|
|
66
|
+
- 500: Display general error message
|
|
67
|
+
- Network error: Display network exception prompts
|
|
68
68
|
|
|
69
|
-
###
|
|
69
|
+
### Business error
|
|
70
70
|
|
|
71
|
-
-
|
|
72
|
-
-
|
|
73
|
-
-
|
|
71
|
+
- Separate business error codes and HTTP status codes
|
|
72
|
+
- Business error messages use i18n key (if internationalization is supported)
|
|
73
|
+
- Errors that require user action (such as form validation failure) are handled by the caller
|
|
74
74
|
|
|
75
|
-
## Loading / Error / Empty
|
|
75
|
+
## Loading / Error / Empty status
|
|
76
76
|
|
|
77
|
-
|
|
77
|
+
Each data request scenario needs to be considered:
|
|
78
78
|
|
|
79
|
-
- **Loading**:
|
|
80
|
-
- **Error**:
|
|
81
|
-
- **Empty**:
|
|
79
|
+
- **Loading**: Load skeleton/spinner for the first time, subsequent refreshes will not block the UI
|
|
80
|
+
- **Error**: display error message + retry button
|
|
81
|
+
- **Empty**: Display empty status placeholder + boot operation
|
|
82
82
|
|
|
83
|
-
##
|
|
83
|
+
## Checklist
|
|
84
84
|
|
|
85
|
-
- [ ]
|
|
86
|
-
- [ ]
|
|
87
|
-
- [ ] Loading / Error / Empty
|
|
88
|
-
- [ ]
|
|
89
|
-
- [ ] Token
|
|
90
|
-
- [ ]
|
|
85
|
+
- [ ] Request parameters and responses have clear types
|
|
86
|
+
- [ ] Error handling does not rely on each component's own try-catch
|
|
87
|
+
- [ ] Loading / Error / Empty three states have been processed
|
|
88
|
+
- [ ] Sensitive operations have secondary confirmation
|
|
89
|
+
- [ ] Token/authentication information is not passed in clear text in the request URL
|
|
90
|
+
- [ ] Use paging or streaming loading for large amounts of data
|
|
91
91
|
|
|
92
|
-
##
|
|
92
|
+
## Anti-pattern
|
|
93
93
|
|
|
94
|
-
-
|
|
95
|
-
-
|
|
96
|
-
-
|
|
97
|
-
-
|
|
98
|
-
-
|
|
99
|
-
-
|
|
94
|
+
- Use `fetch` / `axios` directly in components without unified encapsulation
|
|
95
|
+
- Use `any` for request parameters or responses
|
|
96
|
+
- Ignore error handling and only handle success scenarios
|
|
97
|
+
- Splice token into URL
|
|
98
|
+
- Pass sensitive data in GET requests
|
|
99
|
+
- The same interface is repeatedly defined in multiple files
|
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
# CI/CD
|
|
1
|
+
# CI/CD rules
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
This document stipulates the resident structure and access control of the continuous integration and deployment pipeline. The specific writing method of GitHub Actions, GitLab CI, cloud platform or monorepo pipeline should be implemented according to the existing CI template of the project, and long YAML will not be copied in this rule.
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## Pipeline stage
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
Suggested order:
|
|
8
8
|
|
|
9
|
-
1.
|
|
10
|
-
2. **Lint / Format
|
|
11
|
-
3.
|
|
12
|
-
4.
|
|
13
|
-
5.
|
|
14
|
-
6.
|
|
15
|
-
7.
|
|
9
|
+
1. **Install dependencies**: Use lock file installation, such as `npm ci` or `pnpm install --frozen-lockfile`.
|
|
10
|
+
2. **Lint / Format check**: ESLint, Stylelint, Prettier check or project equivalent command.
|
|
11
|
+
3. **Type check**: `tsc --noEmit` or project typecheck script.
|
|
12
|
+
4. **Unit/component testing**: Jest, Vitest, Testing Library, Vue Test Utils, etc.
|
|
13
|
+
5. **Build**: Project production build command.
|
|
14
|
+
6. **Special quality access control**: package body, lighthouse, dependency security, license, a11y, visual regression, E2E, enabled according to risk.
|
|
15
|
+
7. **Deployment**: Only upload products or trigger deployment after the pre-order access control is passed.
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
Failure at any required stage should abort subsequent steps.
|
|
18
18
|
|
|
19
|
-
##
|
|
19
|
+
## Environment variables and keys
|
|
20
20
|
|
|
21
|
-
-
|
|
22
|
-
-
|
|
23
|
-
- E2E
|
|
24
|
-
- CI
|
|
21
|
+
- Sensitive information uses CI platform Secrets and is not written to the warehouse, logs or build products.
|
|
22
|
+
- Only environment variables with public prefixes are allowed to enter the client bundle, such as `VITE_*`, `NEXT_PUBLIC_*`, etc.; server keys must not use public prefixes.
|
|
23
|
+
- E2E's baseURL, test account, third-party token, etc. are read from Secrets or controlled test environment.
|
|
24
|
+
- CI logs should avoid printing complete environment variables, request headers, tokens or private configurations.
|
|
25
25
|
|
|
26
|
-
##
|
|
26
|
+
## Products and Evidence
|
|
27
27
|
|
|
28
|
-
-
|
|
29
|
-
- CI
|
|
30
|
-
-
|
|
31
|
-
-
|
|
32
|
-
- Monorepo affected
|
|
28
|
+
- Upload or save test reports, coverage, E2E traces, screenshots, build artifacts, package reports and performance budget results.
|
|
29
|
+
- When CI fails, keep enough logs to locate the root cause and not just return "command failure".
|
|
30
|
+
- Confirm version, change description, migration matters, rollback path and impact scope before release.
|
|
31
|
+
- Dependency upgrade PR retains lockfile diff, key package version, release notes summary and verification matrix.
|
|
32
|
+
- Monorepo affected quick verification can be used for PR feedback, but the full verification entry should be retained before release or trunk merging.
|
|
33
33
|
|
|
34
|
-
##
|
|
34
|
+
##Strong constraints
|
|
35
35
|
|
|
36
|
-
-
|
|
37
|
-
-
|
|
38
|
-
-
|
|
39
|
-
-
|
|
40
|
-
- CI
|
|
36
|
+
- Use and submit lock files to disable lockless installations.
|
|
37
|
+
- The build products are not submitted to the source code repository, but are generated and uploaded by CI.
|
|
38
|
+
- Project-defined lint, typecheck, test, and build must be passed before deployment.
|
|
39
|
+
- Do not skip failed access control and deploy directly unless there are clear risk acceptance, approval records and rollback plans.
|
|
40
|
+
- CI configuration should reuse existing commands in the project and do not invent alternative commands in the pipeline that are different from local ones.
|
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Code comments
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Use this document when writing or reviewing front-end implementations.
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## Principles
|
|
6
6
|
|
|
7
|
-
-
|
|
8
|
-
-
|
|
7
|
+
- Intention is expressed first through **naming, type and structure**; comments are used to explain **why**, **constraints and background**, rather than reiterating what the code is doing.
|
|
8
|
+
- Avoid "zero comments in the entire file": Use **short** comments in **non-obvious** places to reduce the cost of accidental modifications, which is not inconsistent with "no nonsense comments".
|
|
9
9
|
|
|
10
|
-
##
|
|
10
|
+
## Situations that should be commented
|
|
11
11
|
|
|
12
|
-
-
|
|
13
|
-
-
|
|
14
|
-
-
|
|
15
|
-
-
|
|
16
|
-
-
|
|
12
|
+
- **Business or product rules**: permissions, display conditions, and the basis behind the verification logic (when related to requirements or domain agreements).
|
|
13
|
+
- **Non-intuitive implementation or trade-offs**: Why choose the current writing method (performance, compatibility, agreement with backend/third party, etc.).
|
|
14
|
+
- **External Contract**: Field meanings and mapping relationships related to interfaces, design drafts, enumerations or units.
|
|
15
|
+
- **Interim Solutions and Technical Debt**: `TODO` / `FIXME` should indicate expected closure or associated work orders (if any).
|
|
16
|
+
- **Easy pitfalls**: Third-party library version differences, the calling sequence that must be met, and known limitations.
|
|
17
17
|
|
|
18
|
-
##
|
|
18
|
+
## Situations to avoid
|
|
19
19
|
|
|
20
|
-
-
|
|
21
|
-
-
|
|
22
|
-
-
|
|
20
|
+
- Line-by-line translation of behavior that can be seen directly from the code.
|
|
21
|
+
- Annotations are chronically inconsistent with the implementation; misleading annotations are updated or deleted synchronously when the logic is modified.
|
|
22
|
+
- Use large comments to replace functions that should be extracted or types that should be completed.
|
|
23
23
|
|
|
24
|
-
##
|
|
24
|
+
## Format Suggestions
|
|
25
25
|
|
|
26
|
-
-
|
|
27
|
-
-
|
|
28
|
-
-
|
|
29
|
-
-
|
|
26
|
+
- The language is consistent with the existing comments in the warehouse (Chinese or English).
|
|
27
|
+
- Complex modules or components can use **1~3 lines** at the top of the file to describe responsibilities and key constraints; cross-package or externally exported APIs should use **JSDoc** to describe parameters, return values and side effects.
|
|
28
|
+
- Complex conditional branches or `useEffect`: If the dependency or triggering condition is not intuitive, use one line to describe the **triggering condition** or **invariant**.
|
|
29
|
+
- Temporary circumvention, compatibility with old systems or performance trade-offs must state reasons and exit conditions.
|
|
30
30
|
|
|
31
|
-
##
|
|
31
|
+
## Document synchronization
|
|
32
32
|
|
|
33
|
-
|
|
33
|
+
When modifying public commands, skills, agents, templates, report naming or installation paths, synchronize updates to README, runtime docs, project structure documents and multi-language instructions. Comments explain local code, and public documentation explains how the team uses capabilities. The two should not replace each other.
|
|
@@ -1,72 +1,72 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Design system rules
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
This document should be used whenever the task involves UI implementation, design draft conversion to code, style, design token, or component reuse. This article only retains the project's resident design constraints; product design direction, design system generation, page-level override, and UI QA details are handed over to `fec-ui-design`; Tailwind token, variant, dark mode and class management are handed over to `fec-tailwind-design-system`; responsive layout is handed over to `fec-responsive-layout`.
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## Core priority
|
|
6
6
|
|
|
7
|
-
1.
|
|
8
|
-
2.
|
|
9
|
-
3.
|
|
10
|
-
4.
|
|
7
|
+
1. Reuse existing components.
|
|
8
|
+
2. Expand on existing components.
|
|
9
|
+
3. Create a new leaf component.
|
|
10
|
+
4. Only create new shared base components if there is good reason, clear boundaries, and if they will be reused.
|
|
11
11
|
|
|
12
|
-
##
|
|
12
|
+
## Product design direction
|
|
13
13
|
|
|
14
|
-
-
|
|
15
|
-
-
|
|
16
|
-
-
|
|
17
|
-
-
|
|
18
|
-
-
|
|
14
|
+
- Tool-type pages, SaaS backend, CRM, and operations desk: Prioritize quiet, dense, and scannable, and the core work area is directly displayed on the first screen.
|
|
15
|
+
- Brand page, portfolio, release page: It can be more expressive, but H1 should be the brand, product, object or category, and the description copy should be placed in the subtitle.
|
|
16
|
+
- Visualization, games, and creative tools: You can use stronger visual assets and animations, but you must keep the interaction controllable and the status clear.
|
|
17
|
+
- Every important interface should have a visual anchor that fits the business, such as real media, data form, industry material, font character, spatial organization or interaction rhythm.
|
|
18
|
+
- Bold design must serve the scene; high-frequency tools focus on efficiency and stability, and display-type pages focus on subject recognition and memory points.
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
Avoid:
|
|
21
21
|
|
|
22
|
-
-
|
|
23
|
-
-
|
|
24
|
-
-
|
|
25
|
-
-
|
|
26
|
-
-
|
|
22
|
+
- Turn daily high-frequency tools into marketing landing pages.
|
|
23
|
+
- Use purple gradient, decorative light spots, stacked cards, empty hero or non-contextual default font by default.
|
|
24
|
+
- Large areas of the page are card-based, especially card sets.
|
|
25
|
+
- Use visible explanatory text to explain the functions that common controls are supposed to express.
|
|
26
|
+
- Let the entire interface consist of only one shade of hue.
|
|
27
27
|
|
|
28
|
-
##
|
|
28
|
+
## Design draft conversion code rules
|
|
29
29
|
|
|
30
|
-
-
|
|
31
|
-
-
|
|
32
|
-
-
|
|
33
|
-
-
|
|
34
|
-
-
|
|
35
|
-
-
|
|
30
|
+
- When given design context, read the source of truth first through MCP or screenshots/annotations, and don’t rely on guesswork to determine layout, spacing, fonts, colors, or status.
|
|
31
|
+
- Colors, spacing, rounded corners, shadows, and fonts in the design should be mapped to existing tokens, CSS variables, theme variables, or component variants.
|
|
32
|
+
- Check existing component libraries and business components before creating new components and prioritize reuse.
|
|
33
|
+
- Default verification is mobile(375px), tablet(768px), desktop(1440px).
|
|
34
|
+
- Pixel restoration requirements are subject to the project agreement; if there is no agreement, the core structure, spacing, fonts, status and interaction will take precedence over mechanical pursuit of screenshot overlap.
|
|
35
|
+
- Before implementing complex design tasks, a brief implementation plan is given, describing reused components, new components, possible changed files, responsive strategies and token mapping.
|
|
36
36
|
|
|
37
|
-
##
|
|
37
|
+
## Design Token and style
|
|
38
38
|
|
|
39
|
-
-
|
|
40
|
-
-
|
|
41
|
-
- Tailwind
|
|
42
|
-
-
|
|
43
|
-
-
|
|
44
|
-
-
|
|
39
|
+
- Prefer using existing design tokens, CSS variables, or theme variables; do not hard-code colors, rounded corners, spacing, shadows, and font values.
|
|
40
|
+
- When required tokens are missing, clearly point them out and centrally complete or record them, rather than scattering literals in multiple components.
|
|
41
|
+
- In the Tailwind project, tokens should be inherited through semantic `theme.extend`, CSS variables or component variants; do not copy specific values such as `blue-600` and `rounded-xl` into de facto standards.
|
|
42
|
+
- Component variants should distinguish semantic tone, size, density and state; do not let a string parameter carry multiple business meanings at the same time.
|
|
43
|
+
- Dynamic Tailwind classes must be recognized by build scans; use explicit objects, variant tools, or safelist for complex mappings.
|
|
44
|
+
- Prioritize the use of local, controlled styles instead of large-scale global coverage; be consistent with the project's existing CSS Modules, Tailwind, component libraries or style systems.
|
|
45
45
|
|
|
46
|
-
##
|
|
46
|
+
## Interface texture baseline
|
|
47
47
|
|
|
48
|
-
-
|
|
49
|
-
-
|
|
50
|
-
-
|
|
51
|
-
-
|
|
52
|
-
-
|
|
53
|
-
-
|
|
48
|
+
- Nested fillets maintain an optical relationship: the outer fillet is approximately equal to the inner fillet + spacing.
|
|
49
|
+
- Asymmetric graphics such as icon buttons, arrows, and playback triangles are fine-tuned according to the visual center.
|
|
50
|
+
- The hit area of the small control should be at least 40x40px, and 44x44px is preferred if space allows.
|
|
51
|
+
- `text-wrap: balance` can be used for titles and short texts, and `text-wrap: pretty` can be used for short and medium text.
|
|
52
|
+
- Use `font-variant-numeric: tabular-nums` for counters, prices, times, and tabular numbers.
|
|
53
|
+
- Animation only declares actual change attributes, prohibits `transition: all` and `will-change: all`, and respects `prefers-reduced-motion`.
|
|
54
54
|
|
|
55
|
-
##
|
|
55
|
+
## Dark mode
|
|
56
56
|
|
|
57
|
-
-
|
|
58
|
-
-
|
|
59
|
-
-
|
|
60
|
-
-
|
|
57
|
+
- Project-level dark mode only selects one main strategy: CSS variables, root node class, `data-theme` or component library theme.
|
|
58
|
+
- When supporting manual theme switching, user preferences must be initialized before the first screen is drawn to avoid theme flickering; the implementation details are left to Tailwind / design-system skill reference.
|
|
59
|
+
- Review disabled, focus, selected, invalid, skeleton, chart, form controls, third-party components and shadow levels for both light and dark colors.
|
|
60
|
+
- Don't just reduce the transparency to express disabled, don't just fill in the background color and ignore text, borders, charts and focus states.
|
|
61
61
|
|
|
62
|
-
##
|
|
62
|
+
## Accessibility Baseline
|
|
63
63
|
|
|
64
|
-
-
|
|
65
|
-
-
|
|
66
|
-
-
|
|
67
|
-
-
|
|
68
|
-
-
|
|
64
|
+
- Prefer semantic HTML.
|
|
65
|
+
- Form controls have labels and pure icon buttons have accessible names.
|
|
66
|
+
- Menus, tabs, dialog boxes and custom controls support keyboard operation.
|
|
67
|
+
- Focus styles are visible, title levels are correct, and real table data uses table semantics.
|
|
68
|
+
- Color contrast, touch targets, reduced-motion and error prompts cannot be destroyed by visual polish.
|
|
69
69
|
|
|
70
|
-
## UI
|
|
70
|
+
## UI task output
|
|
71
71
|
|
|
72
|
-
|
|
72
|
+
After the implementation is completed, explain what was reused, what was newly created, deviations from the design draft or project token, and what resources or interaction details are missing. Complex UIs should also account for state overrides, responsive validation, and remaining design risks.
|