@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
package/README.openclaw.zh-CN.md
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
**Language / 语言**
|
|
14
14
|
|
|
15
|
-
[English](README.md) | [**简体中文**](README.zh-CN.md)
|
|
15
|
+
[English](README.openclaw.md) | [**简体中文**](README.openclaw.zh-CN.md)
|
|
16
16
|
|
|
17
17
|
</div>
|
|
18
18
|
|
|
@@ -136,40 +136,92 @@ frontend-craft/
|
|
|
136
136
|
|
|
137
137
|
### 技能
|
|
138
138
|
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
|
144
|
-
|
|
|
145
|
-
| `fec-
|
|
146
|
-
| `fec-
|
|
147
|
-
| `fec-
|
|
148
|
-
| `fec-
|
|
149
|
-
| `fec-
|
|
150
|
-
| `fec-
|
|
151
|
-
| `fec-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
|
156
|
-
|
|
|
157
|
-
| `fec-
|
|
158
|
-
| `fec-
|
|
159
|
-
| `fec-
|
|
160
|
-
| `fec-
|
|
161
|
-
| `fec-
|
|
162
|
-
| `fec-
|
|
163
|
-
| `fec-
|
|
164
|
-
| `fec-
|
|
165
|
-
| `fec-
|
|
166
|
-
| `fec-
|
|
167
|
-
| `fec-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
|
172
|
-
|
|
|
139
|
+
OpenClaw 包包含 `skills/` 下全部 45 个公开工作流技能,按使用场景分组如下。
|
|
140
|
+
|
|
141
|
+
**项目规范**
|
|
142
|
+
|
|
143
|
+
| 技能 | 用途 |
|
|
144
|
+
| -------------------------------- | --------------------------------------------------- |
|
|
145
|
+
| `fec-react-project-standard` | React + TypeScript 项目规范 |
|
|
146
|
+
| `fec-vue3-project-standard` | Vue 3 + TypeScript 项目规范 |
|
|
147
|
+
| `fec-nextjs-project-standard` | Next.js App Router、SSR/SSG、路由、元数据、中间件 |
|
|
148
|
+
| `fec-nuxt-project-standard` | Nuxt 3 SSR/SSG、组合式函数、路由、中间件 |
|
|
149
|
+
| `fec-vite-project-standard` | Vite 配置、环境变量安全、HMR、开发代理、构建优化 |
|
|
150
|
+
| `fec-monorepo-project-standard` | pnpm workspace、Turborepo、Nx 结构与任务编排 |
|
|
151
|
+
| `fec-typescript-project-standard` | TypeScript 配置、公开类型、声明文件、DTO 和泛型 |
|
|
152
|
+
|
|
153
|
+
**实现能力**
|
|
154
|
+
|
|
155
|
+
| 技能 | 用途 |
|
|
156
|
+
| ------------------------- | -------------------------------------------------------------- |
|
|
157
|
+
| `fec-data-fetching` | 服务端状态获取、缓存、失效、SSR 与无限加载 |
|
|
158
|
+
| `fec-api-integration` | 类型化 API 客户端、鉴权刷新、上传与实时通信 |
|
|
159
|
+
| `fec-state-management` | 状态归属、store 选型、URL/服务端/表单/本地状态边界 |
|
|
160
|
+
| `fec-form-handling` | 跨框架表单选型、schema 校验、动态字段、上传、多步流程 |
|
|
161
|
+
| `fec-browser-storage` | localStorage/sessionStorage/IndexedDB/Cookies 选型与安全持久化 |
|
|
162
|
+
| `fec-route-protection` | React Router、Next.js、Vue Router、Nuxt 的权限路由保护 |
|
|
163
|
+
| `fec-pwa-implementation` | PWA manifest、Service Worker、离线缓存与安装提示 |
|
|
164
|
+
| `fec-web-workers` | Web Worker、Transferable、Comlink、Worker 池 |
|
|
165
|
+
| `fec-canvas-threejs` | Canvas 2D、Three.js、React Three Fiber、WebGL 性能与可访问性 |
|
|
166
|
+
| `fec-svg-animation` | CSS、Framer Motion、GSAP SVG 动画与 reduced-motion 降级 |
|
|
167
|
+
| `fec-list-virtualization` | 按框架选型的大列表虚拟滚动、测量、网格和无限滚动 |
|
|
168
|
+
|
|
169
|
+
**测试**
|
|
170
|
+
|
|
171
|
+
| 技能 | 用途 |
|
|
172
|
+
| ----------------------- | -------------------------------------------------------- |
|
|
173
|
+
| `fec-testing-strategy` | 测试层级选择、风险矩阵与覆盖规划 |
|
|
174
|
+
| `fec-component-testing` | RTL / Vue Test Utils 组件测试与回归用例 |
|
|
175
|
+
| `fec-e2e-testing` | Playwright / Cypress E2E 结构、产物、CI 与不稳定用例治理 |
|
|
176
|
+
| `fec-tdd-workflow` | 测试先行的 red-green-refactor 前端实现流程 |
|
|
177
|
+
|
|
178
|
+
**评审与质量**
|
|
179
|
+
|
|
180
|
+
| 技能 | 用途 |
|
|
181
|
+
| ------------------------------ | -------------------------------------------------------- |
|
|
182
|
+
| `fec-code-review` | 架构、类型安全、渲染、样式、可访问性、测试、安全评审 |
|
|
183
|
+
| `fec-debug-framework` | 构建、运行时、UI 与 API/data 问题的系统化诊断 |
|
|
184
|
+
| `fec-security-review` | XSS、CSRF、敏感数据泄露、不安全输入处理 |
|
|
185
|
+
| `fec-accessibility-check` | 面向 WCAG 的语义结构、键盘支持、焦点、标签检查 |
|
|
186
|
+
| `fec-dependency-upgrade` | 依赖升级、lockfile 评审、CVE 修复和迁移验证 |
|
|
187
|
+
| `fec-validation-fix` | 执行校验命令、分析失败并安全修复 |
|
|
188
|
+
| `fec-performance-optimization` | Core Web Vitals、bundle、渲染、内存、网络和预算评审 |
|
|
189
|
+
| `fec-refactor-clean` | 安全清理死代码、未用导出、样式、路由与依赖 |
|
|
190
|
+
|
|
191
|
+
**设计 UI**
|
|
192
|
+
|
|
193
|
+
| 技能 | 用途 |
|
|
194
|
+
| ----------------------------- | ---------------------------------------------------------- |
|
|
195
|
+
| `fec-ui-design` | UI 方向、视觉识别、界面打磨、状态与视觉 QA |
|
|
196
|
+
| `fec-image-generation` | 图表、图片生成/编辑、视觉资产与 PNG QA 修复循环 |
|
|
197
|
+
| `fec-drawio-studio` | 可编辑 draw.io / diagrams.net 技术图、形状检索与代码结构图 |
|
|
198
|
+
| `fec-web-video-presentation` | 将文章、口播稿、课程和 demo 转成可录屏的 16:9 步进网页演示 |
|
|
199
|
+
| `fec-tailwind-design-system` | Tailwind token、主题扩展、组件变体、class 治理和暗色模式 |
|
|
200
|
+
| `fec-responsive-layout` | 移动优先布局、容器查询、数据密集型响应式界面 |
|
|
201
|
+
| `fec-motion-interaction` | 上下文感知动效、页面转场、滚动动画与 reduced motion |
|
|
202
|
+
| `fec-implement-from-design` | 基于 Figma、Sketch、MasterGo、Pixso、墨刀或截图实现 UI |
|
|
203
|
+
| `fec-storybook-component-doc` | Storybook 组件文档、设计系统展示与隔离状态预览 |
|
|
204
|
+
|
|
205
|
+
**遗留迁移**
|
|
206
|
+
|
|
207
|
+
| 技能 | 用途 |
|
|
208
|
+
| -------------------------------- | ------------------------------------------ |
|
|
209
|
+
| `fec-legacy-web-standard` | JavaScript + jQuery + HTML/CSS 传统前端规范 |
|
|
210
|
+
| `fec-legacy-to-modern-migration` | 遗留前端现代化、目标栈识别与分阶段迁移策略 |
|
|
211
|
+
|
|
212
|
+
**项目演进**
|
|
213
|
+
|
|
214
|
+
| 技能 | 用途 |
|
|
215
|
+
| ------------- | ------------------------------------------------ |
|
|
216
|
+
| `fec-alchemy` | 吸收参考系统想法,并重设计为原创、项目原生改进 |
|
|
217
|
+
|
|
218
|
+
**维护与文档**
|
|
219
|
+
|
|
220
|
+
| 技能 | 用途 |
|
|
221
|
+
| ------------------------------- | -------------------------------------------------------- |
|
|
222
|
+
| `fec-backend-requirements-handoff` | 面向后端交接 UI 数据需求、用户动作、状态、规则和问题 |
|
|
223
|
+
| `fec-doc-sync` | 同步 README、配置、脚本、路由/API、环境变量与部署事实 |
|
|
224
|
+
| `fec-source-driven-development` | 根据项目事实和官方来源校验版本敏感的前端决策 |
|
|
173
225
|
|
|
174
226
|
### 技能使用:场景与示例
|
|
175
227
|
|
|
@@ -213,17 +265,23 @@ frontend-craft/
|
|
|
213
265
|
| 构建交互式 3D 场景 | `fec-canvas-threejs` | 「在 `src/components/ProductViewer.tsx` 添加 Three.js 产品展示,兼顾性能和降级方案。」 |
|
|
214
266
|
| 为落地页添加 SVG 动效 | `fec-svg-animation` | 「用 Framer Motion 为 hero 区 SVG 添加动画,并为 reduced-motion 用户提供静态降级方案。」 |
|
|
215
267
|
| 设计与打磨 UI | `fec-ui-design` | 「请评审 `src/components/Dashboard.tsx` 的 UI 方向、视觉识别、间距、状态和动效打磨。」 |
|
|
268
|
+
| 构建可录屏网页演示 | `fec-web-video-presentation` | 「把这段产品 demo 口播稿转成 16:9 浏览器演示:拆口播节拍、章节 step、主题 token,并给出录屏指引。」 |
|
|
216
269
|
| 优化 Vite 构建配置 | `fec-vite-project-standard` | 「请审计 `vite.config.ts` 的 HMR、开发代理、环境变量安全和库模式最佳实践。」 |
|
|
217
270
|
|
|
218
271
|
**斜杠命令(`commands/` 下的 Markdown)**
|
|
219
272
|
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
| 命令文档
|
|
223
|
-
|
|
|
224
|
-
| `fec-init.md`
|
|
225
|
-
| `fec-review.md`
|
|
226
|
-
| `fec-scaffold.md`
|
|
273
|
+
作为**固定步骤**的命令说明加载。对话里用自然语言描述要做的事即可,代理可按对应命令文档执行,**无需**说出命令文件名。完整命令提示词见 [docs/zh-CN/example-prompts.md](docs/zh-CN/example-prompts.md#高级用户提示词)。
|
|
274
|
+
|
|
275
|
+
| 命令文档 | 适用时机 | 示例(自然语言) |
|
|
276
|
+
| ------------------------ | ---------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- |
|
|
277
|
+
| `fec-init.md` | 在**业务仓库**里初始化 **Claude 风格** 的 `.claude/` 模板(文档内路径针对 `.claude/`)。 | 「请在本仓库初始化 `.claude/`,按插件提供的模板与规则复制;若已有文件请先问我是否覆盖。」 |
|
|
278
|
+
| `fec-review.md` | 引导式评审并保存 `reports/code-review-*.md`。 | 「请评审我上一次提交里改动的文件,并写一份结构化 Markdown 报告到 `reports/`。」 |
|
|
279
|
+
| `fec-scaffold.md` | 页面 / 功能 / 组件目录脚手架。 | 「请为 React 项目脚手架一个新页面 UserDetail:放在 `src/pages/...`,并带上空的 `components/` 与 `hooks/` 目录。」 |
|
|
280
|
+
| `fec-plan.md` | 实现前做架构方案或测试策略规划。 | 「先规划 checkout 重写:组件边界、状态流、风险和测试覆盖。」 |
|
|
281
|
+
| `fec-tdd.md` | 使用 red-green-refactor 的测试驱动实现流程。 | 「这个筛选组件请按 TDD 做:先写失败测试,再实现最小行为。」 |
|
|
282
|
+
| `fec-debug.md` | 诊断构建、运行时、UI 或 API/data 失败。 | 「登录后 dashboard 崩溃,请检查错误路径、定位根因,并写一份 debug 报告。」 |
|
|
283
|
+
| `fec-refactor-clean.md` | 分类并安全清理死代码、未用导出、样式和依赖。 | 「清理 `src/features/billing/` 里的未用导出和样式,保持行为不变并报告变更。」 |
|
|
284
|
+
| `fec-doc-sync.md` | 同步 README、文档、环境说明、脚本列表、API/路由说明和部署事实。 | 「检查 README 命令列表是否还匹配 package scripts,并更新漂移的文档。」 |
|
|
227
285
|
|
|
228
286
|
### Hooks
|
|
229
287
|
|
package/README.zh-CN.md
CHANGED
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
|
|
33
33
|
各运行时的路径与注意事项详见 [`docs/runtimes/`](docs/runtimes/)。
|
|
34
34
|
|
|
35
|
-
它将 **13 个专业 agent**、**
|
|
35
|
+
它将 **13 个专业 agent**、**45 个自动激活 skill**、**8 个斜杠命令**、**5 个事件驱动 hook**、面向 6 个设计工具端点的 **MCP 集成**以及一整套**规则库**打包为一个可安装单元。运行一条命令,团队里的每一次 AI 会话都将以相同的方式编写 React、Vue、Next.js 或 Nuxt——类型安全、可访问、安全、一致。
|
|
36
36
|
|
|
37
37
|
---
|
|
38
38
|
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
|
|
41
41
|
| 痛点 | frontend-craft 的解法 |
|
|
42
42
|
| --------------------------------------------- | --------------------------------------------------------------------- |
|
|
43
|
-
| AI 助手写出的前端代码风格不一、缺类型、不安全 | **
|
|
43
|
+
| AI 助手写出的前端代码风格不一、缺类型、不安全 | **45 个 skill** 将团队规范编码为可自动激活的工作流 |
|
|
44
44
|
| 每款 AI 工具都有自己的插件格式 | **一条 CLI 命令** 把相同的规则、agent 和 hook 安装到 15 个运行时 |
|
|
45
45
|
| 设计稿到代码的交接总有信息损失 | **MCP 集成** 从 Figma、Figma Desktop、Sketch、MasterGo、Pixso、墨刀引入更完整设计上下文 |
|
|
46
46
|
| 代码评审随意、浅层 | **13 个 agent** 输出分级报告:代码、安全、无障碍、性能、TS、UI 还原度 |
|
|
@@ -187,6 +187,7 @@ npx @bovinphang/frontend-craft@latest list
|
|
|
187
187
|
| `fec-nuxt-project-standard` | Nuxt 3 SSR/SSG、组合式 API、数据获取、中间件 |
|
|
188
188
|
| `fec-vite-project-standard` | Vite 配置、环境变量安全、HMR、开发代理、构建优化 |
|
|
189
189
|
| `fec-monorepo-project-standard` | pnpm workspace、Turborepo、Nx 结构与任务编排 |
|
|
190
|
+
| `fec-typescript-project-standard` | TypeScript 配置、公开类型、声明文件、DTO 和泛型 |
|
|
190
191
|
|
|
191
192
|
**实现能力** — 构建特定前端能力时激活:
|
|
192
193
|
|
|
@@ -219,7 +220,6 @@ npx @bovinphang/frontend-craft@latest list
|
|
|
219
220
|
| ------------------------------ | ----------------------------------------------------- |
|
|
220
221
|
| `fec-code-review` | 架构、类型、渲染、样式、可访问性评审 |
|
|
221
222
|
| `fec-debug-framework` | 系统化诊断构建、运行时、UI 和 API/数据问题 |
|
|
222
|
-
| `fec-typescript-type-safety` | 类型契约、DTO 映射、类型守卫、泛型和类型级检查 |
|
|
223
223
|
| `fec-security-review` | XSS、CSRF、敏感数据泄露、输入校验 |
|
|
224
224
|
| `fec-accessibility-check` | WCAG 2.2、键盘、焦点、触控和屏幕阅读器行为 |
|
|
225
225
|
| `fec-dependency-upgrade` | 依赖升级、lockfile 评审、CVE 修复和迁移验证 |
|
|
@@ -231,11 +231,14 @@ npx @bovinphang/frontend-craft@latest list
|
|
|
231
231
|
|
|
232
232
|
| 技能 | 范围 |
|
|
233
233
|
| ----------------------------- | -------------------------------------------------------- |
|
|
234
|
-
| `fec-ui-design` | UI
|
|
234
|
+
| `fec-ui-design` | 产品语境 UI 方向、反模板设计拨盘、媒体策略、状态、视觉 QA |
|
|
235
|
+
| `fec-image-generation` | 系统蓝图、流程工作流、交互式实时图、HTML/SVG/PNG 导出、图片生成/编辑、视觉资产和 PNG 自检 |
|
|
236
|
+
| `fec-drawio-studio` | 可编辑 draw.io / diagrams.net 技术图、XML/Mermaid/CSV URL 交付、形状检索、自动布局和代码结构图 |
|
|
237
|
+
| `fec-web-video-presentation` | 将文章、口播稿、课程和 demo 转成可录屏的 16:9 步进网页演示 |
|
|
235
238
|
| `fec-tailwind-design-system` | Tailwind token、主题扩展、组件变体、class 治理和暗色模式 |
|
|
236
239
|
| `fec-responsive-layout` | 移动优先布局、容器查询、数据密集型响应式界面 |
|
|
237
|
-
| `fec-motion-interaction` |
|
|
238
|
-
| `fec-implement-from-design` |
|
|
240
|
+
| `fec-motion-interaction` | 场景化动效强度、页面转场、滚动动画、reduced-motion |
|
|
241
|
+
| `fec-implement-from-design` | 基于设计工具、截图或分区级视觉参考实现 UI |
|
|
239
242
|
| `fec-storybook-component-doc` | Storybook 组件文档、设计系统呈现、隔离状态预览 |
|
|
240
243
|
|
|
241
244
|
**遗留迁移** — 现代化迁移时激活:
|
|
@@ -255,6 +258,7 @@ npx @bovinphang/frontend-craft@latest list
|
|
|
255
258
|
|
|
256
259
|
| 技能 | 范围 |
|
|
257
260
|
| ------------------------------- | ------------------------------------------ |
|
|
261
|
+
| `fec-backend-requirements-handoff` | 前端向后端交接 UI 数据需求、用户动作、状态、业务规则与待确认问题 |
|
|
258
262
|
| `fec-doc-sync` | 让前端文档与代码、配置、脚本、路由、API、环境变量和部署事实保持同步 |
|
|
259
263
|
| `fec-source-driven-development` | 以项目事实和官方来源验证版本敏感的前端决策 |
|
|
260
264
|
|
package/agents/fec-architect.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: fec-architect
|
|
3
|
-
description:
|
|
3
|
+
description: Use this subagent when the task involves page splitting, component architecture, state flow design, catalog planning, data flow design, module boundary demarcation, or large front-end refactoring. Save the architecture proposal report as a Markdown file.
|
|
4
4
|
tools: Read, Edit, Write, MultiEdit, Glob, Grep, LS, Bash
|
|
5
5
|
model: sonnet
|
|
6
6
|
permissionMode: default
|
|
@@ -17,109 +17,109 @@ skills:
|
|
|
17
17
|
- fec-monorepo-project-standard
|
|
18
18
|
---
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
You are a senior front-end architecture expert.
|
|
21
21
|
|
|
22
|
-
##
|
|
22
|
+
## Core Responsibilities
|
|
23
23
|
|
|
24
|
-
-
|
|
25
|
-
-
|
|
26
|
-
-
|
|
27
|
-
-
|
|
28
|
-
-
|
|
29
|
-
-
|
|
24
|
+
- Split large UI tasks into maintainable modules
|
|
25
|
+
- Clarify component boundaries and directory structure
|
|
26
|
+
- Distinguish the responsibilities of the presentation layer, status layer and service layer
|
|
27
|
+
- Design data flow and state management solutions
|
|
28
|
+
- Give the minimum reasonable architecture required to solve the current problem
|
|
29
|
+
- Maintain team agreement and avoid over-design
|
|
30
30
|
|
|
31
|
-
##
|
|
31
|
+
## Architecture analysis process
|
|
32
32
|
|
|
33
|
-
1.
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
33
|
+
1. **Understand the current situation**
|
|
34
|
+
- Scan project directory structure and technology stack
|
|
35
|
+
- Identify existing patterns (component organization, state management, routing structures)
|
|
36
|
+
- Check CLAUDE.md or README for project conventions
|
|
37
37
|
|
|
38
|
-
2.
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
38
|
+
2. **Requirement dismantling**
|
|
39
|
+
- Decompose functional requirements into independent modules
|
|
40
|
+
- Identify data dependencies between modules
|
|
41
|
+
- Distinguish between shared components and business components
|
|
42
42
|
|
|
43
|
-
3.
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
43
|
+
3. **Project Design**
|
|
44
|
+
- Give the target directory structure
|
|
45
|
+
- Describe the boundaries of responsibilities of each component/module
|
|
46
|
+
- Design state management solution (local state / global store / URL state)
|
|
47
|
+
- Description of shared hooks/composables/utilities
|
|
48
|
+
- Clarify how the API layer interacts
|
|
49
|
+
- Annotate sources and assumptions for version-sensitive framework/API/library decisions
|
|
50
50
|
|
|
51
|
-
4.
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
51
|
+
4. **Risk Assessment**
|
|
52
|
+
- If refactoring, indicate migration risks and scope of impact
|
|
53
|
+
- Mark interface changes that require negotiation with the backend
|
|
54
|
+
- Assess impact on existing tests
|
|
55
|
+
- Identify critical paths that need to be closed with build, test, E2E or manual acceptance
|
|
56
56
|
|
|
57
|
-
##
|
|
57
|
+
## Component layering principle
|
|
58
58
|
|
|
59
59
|
```
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
60
|
+
Pages
|
|
61
|
+
└── Container components (Containers) — Responsible for data acquisition and status management
|
|
62
|
+
└── Business Components (Features) — Responsible for displaying business logic
|
|
63
|
+
└── Universal Component (UI) - pure presentation, no business coupling
|
|
64
64
|
```
|
|
65
65
|
|
|
66
|
-
-
|
|
67
|
-
-
|
|
68
|
-
-
|
|
69
|
-
-
|
|
66
|
+
- The page component only does route mapping and layout combination
|
|
67
|
+
- Container components manage data flow and do not include UI details
|
|
68
|
+
- Business components can contain domain logic but do not directly call APIs
|
|
69
|
+
- Common components receive data through props/slots and can be reused across projects
|
|
70
70
|
|
|
71
|
-
##
|
|
71
|
+
## State management decisions
|
|
72
72
|
|
|
73
|
-
|
|
|
73
|
+
| Status type | Recommended solution |
|
|
74
74
|
|----------|----------|
|
|
75
|
-
|
|
|
76
|
-
|
|
|
77
|
-
|
|
|
78
|
-
| URL
|
|
79
|
-
|
|
|
75
|
+
| Temporary UI state within the component | Local state (useState / ref) |
|
|
76
|
+
| Business state shared across components | Global store (Pinia / Zustand) |
|
|
77
|
+
| Server-side data caching | Data request library (React Query / VueQuery) |
|
|
78
|
+
| URL driver status | routing parameters / search parameters |
|
|
79
|
+
| Form Status | Form Library (React Hook Form / VeeValidate) |
|
|
80
80
|
|
|
81
|
-
##
|
|
81
|
+
## Output format
|
|
82
82
|
|
|
83
83
|
```
|
|
84
|
-
#
|
|
84
|
+
# Architecture plan report
|
|
85
85
|
|
|
86
|
-
>
|
|
87
|
-
>
|
|
86
|
+
> Generation time: YYYY-MM-DD HH:mm
|
|
87
|
+
> Review tool: frontend-craft
|
|
88
88
|
|
|
89
|
-
##
|
|
90
|
-
|
|
89
|
+
## Target structure
|
|
90
|
+
<directory tree>
|
|
91
91
|
|
|
92
|
-
##
|
|
93
|
-
|
|
|
92
|
+
## Module responsibilities
|
|
93
|
+
| Module | Responsibilities | Dependencies |
|
|
94
94
|
|------|------|------|
|
|
95
95
|
|
|
96
|
-
##
|
|
97
|
-
|
|
96
|
+
## Data flow
|
|
97
|
+
<State management scheme and data flow description>
|
|
98
98
|
|
|
99
|
-
##
|
|
99
|
+
## Shared abstraction
|
|
100
100
|
- hooks / composables
|
|
101
101
|
- utilities
|
|
102
|
-
-
|
|
102
|
+
- Type definition
|
|
103
103
|
|
|
104
|
-
##
|
|
104
|
+
## Implementation steps
|
|
105
105
|
1. ...
|
|
106
106
|
2. ...
|
|
107
107
|
|
|
108
|
-
##
|
|
108
|
+
## Risks and Precautions
|
|
109
109
|
- ...
|
|
110
110
|
```
|
|
111
111
|
|
|
112
|
-
##
|
|
112
|
+
## Report file output
|
|
113
113
|
|
|
114
|
-
|
|
114
|
+
After the architectural plan is completed, the report content must be saved as a Markdown file using the Write tool:
|
|
115
115
|
|
|
116
|
-
-
|
|
117
|
-
-
|
|
118
|
-
-
|
|
116
|
+
- Directory: `reports/` in the project root directory (create if it does not exist)
|
|
117
|
+
- File name: `architecture-proposal-YYYY-MM-DD-HHmmss.md` (use current timestamp)
|
|
118
|
+
- Inform the user of the report file path after saving
|
|
119
119
|
|
|
120
|
-
##
|
|
120
|
+
##Strong constraints
|
|
121
121
|
|
|
122
|
-
-
|
|
123
|
-
-
|
|
124
|
-
-
|
|
125
|
-
-
|
|
122
|
+
- Do not design a completely new architecture that departs from the existing conventions of the project
|
|
123
|
+
- Do not introduce technology stacks that are not used by the project
|
|
124
|
+
- Prioritize incremental improvements rather than reinventing the wheel
|
|
125
|
+
- Each module should be independently understandable and testable
|