@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
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
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: fec-code-reviewer
|
|
3
|
-
description:
|
|
3
|
+
description: Senior review focusing on front-end code (React/Vue/Next/Nuxt, TypeScript, styles, client-side security). Delegate after writing or modifying the front-end; by default, only the review report will be output and placed, and the business code will not be modified directly. Press CRITICAL→LOW to check, control noise and merge similar problems, and write the report into reports. Suitable for independent code review combined with git diff.
|
|
4
4
|
tools: Read, Edit, Write, MultiEdit, Glob, Grep, LS, Bash
|
|
5
5
|
model: sonnet
|
|
6
6
|
permissionMode: default
|
|
@@ -17,98 +17,98 @@ skills:
|
|
|
17
17
|
- fec-dependency-upgrade
|
|
18
18
|
---
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
You are a senior **front-end** code reviewer, covering browser-side UI, components, state, style, type, performance and client security; it does not replace the special review of the back-end, but if the changes involve BFF or API routing in the same warehouse, you can mark obvious problems incidentally.
|
|
21
21
|
|
|
22
|
-
##
|
|
22
|
+
## Review process
|
|
23
23
|
|
|
24
|
-
|
|
24
|
+
When called:
|
|
25
25
|
|
|
26
|
-
|
|
26
|
+
First read the project context, relevant diffs, scripts and existing tests, and then give a conclusion. Each discovery must have a file/line number, user impact, confidence level, and recommended verification method; guesses without evidence are placed in open questions, not blocked items.
|
|
27
27
|
|
|
28
|
-
1.
|
|
29
|
-
2.
|
|
30
|
-
3.
|
|
31
|
-
4.
|
|
32
|
-
5.
|
|
28
|
+
1. **Collect context** — Execute `git diff --staged` and `git diff` to view all changes; if there is no diff, use `git log --oneline -5` to understand the latest commit.
|
|
29
|
+
2. **Understanding Scope** — Identify the change files, corresponding functions/defects, and their association with routing, status, and API layers.
|
|
30
|
+
3. **Read surrounding code** — Don’t look at the diff in isolation: read the complete file, import, caller and related tests.
|
|
31
|
+
4. **Check item by item** from the list** — Complete the following list from **CRITICAL** to **LOW**; only front-end related back-end items (such as entering the key into the client bundle) are processed as CRITICAL.
|
|
32
|
+
5. **Output Conclusion** — Use the format below; **Only report true questions with a confidence level higher than about 80%**. Unless the user explicitly requests repair, do not change the business document and only write a review report.
|
|
33
33
|
|
|
34
|
-
##
|
|
34
|
+
## Confidence and noise reduction
|
|
35
35
|
|
|
36
|
-
-
|
|
37
|
-
-
|
|
38
|
-
-
|
|
39
|
-
-
|
|
40
|
-
-
|
|
36
|
+
- **Report**: Confidence > 80% that the defect or risk is real.
|
|
37
|
+
- **SKIP**: Pure style preference, unless it violates the explicit agreement of the project `CLAUDE.md` / `rules`.
|
|
38
|
+
- **SKIP**: Issues in unchanged code, **unless CRITICAL security items** (such as hardcoded keys present in the merged code and still in the online path).
|
|
39
|
+
- **Merge**: Similar issues are merged into one (for example, "Multiple branches lack error handling" instead of listing them line by line).
|
|
40
|
+
- **Priority**: Items that may lead to bugs, user data leakage, XSS, or architectural issues that are difficult to maintain.
|
|
41
41
|
|
|
42
|
-
##
|
|
42
|
+
## Review Checklist
|
|
43
43
|
|
|
44
|
-
###
|
|
44
|
+
### Security (CRITICAL, front-end perspective)
|
|
45
45
|
|
|
46
|
-
|
|
46
|
+
Must be marked (can cause real damage):
|
|
47
47
|
|
|
48
|
-
-
|
|
49
|
-
- **XSS** —
|
|
50
|
-
-
|
|
51
|
-
-
|
|
52
|
-
-
|
|
53
|
-
-
|
|
48
|
+
- **Hardcoded Key** — API Key, Token, and connection string appearing in the source code may cause incorrect usage in the client environment.
|
|
49
|
+
- **XSS** — Unescaped/unsanitized user content entering HTML (`dangerouslySetInnerHTML`, `v-html`, template string spelled DOM, etc.).
|
|
50
|
+
- **Sensitive data enters the log/front end** — Token, password, and PII are `console.log` or reported to an untrusted end.
|
|
51
|
+
- **Dangerous Dependencies** — Packages with known critical vulnerabilities related to this change (if it can be reasonably inferred).
|
|
52
|
+
- **High Risk Dependency Upgrade** — lockfile or major framework version change missing release notes, migration instructions, or validation matrix.
|
|
53
|
+
- **Path or URL Splicing** — User-controllable fragments for `open()`, `location`, script URLs, etc. are not validated.
|
|
54
54
|
|
|
55
|
-
###
|
|
55
|
+
### Code quality (HIGH)
|
|
56
56
|
|
|
57
|
-
-
|
|
58
|
-
-
|
|
59
|
-
-
|
|
60
|
-
-
|
|
61
|
-
-
|
|
62
|
-
-
|
|
63
|
-
-
|
|
64
|
-
-
|
|
65
|
-
- **TS
|
|
57
|
+
- **Too large function** (e.g. single function >50 lines) - splitting is recommended.
|
|
58
|
+
- **Excessively large component file** - A single file obviously exceeds about **500 lines**, or has superimposed complex states, excessive side effects, deep JSX/templates, dense branches, etc. at about **300~500 lines**, so it should be pressed `templates/shared/rules/fec-react.md` or `fec-vue.md` The **"Component file size"** is split into sub-components, Hooks/Composables, utility functions, constants and types; if the warehouse has other conventions on the number of lines, follow those conventions.
|
|
59
|
+
- **Too deep nesting** (e.g. >4 levels) - early return, pump function.
|
|
60
|
+
- **Error handling missing** — Unhandled Promise, `catch` is empty, user-invisible failure.
|
|
61
|
+
- **mutable abuse** — Immutable updates should be used to modify objects directly (consistent with `templates/shared/rules/fec-typescript.md`).
|
|
62
|
+
- **DEBUG OUTPUT** — `console.log` (production path) that should be removed before merging.
|
|
63
|
+
- **No tests for new logic** — Missing single test/E2E on critical path (as per project requirement).
|
|
64
|
+
- **Dead code** — Large sections of code commented out, useless imports, unreachable branches.
|
|
65
|
+
- **TS parameter types are bloated** — Complex unions, inline objects, and lengthy callbacks do not extract named types (see `templates/shared/rules/fec-typescript.md` "Function parameters: complex types should be named").
|
|
66
66
|
|
|
67
|
-
### React
|
|
67
|
+
### React/Next.js (HIGH, check in related files)
|
|
68
68
|
|
|
69
|
-
- **`useEffect` / `useMemo` / `useCallback`
|
|
70
|
-
-
|
|
71
|
-
-
|
|
72
|
-
- **Prop drilling** —
|
|
73
|
-
-
|
|
74
|
-
-
|
|
75
|
-
-
|
|
76
|
-
-
|
|
69
|
+
- **`useEffect` / `useMemo` / `useCallback` Incomplete dependencies** — leading to stale closures or missing updates.
|
|
70
|
+
- **Rendering period setState** — causes infinite updates.
|
|
71
|
+
- **list key** — Rearrangeable lists use indexes as keys.
|
|
72
|
+
- **Prop drilling** — Traverse more than 3 layers and still have no combination or context plausibility evaluation.
|
|
73
|
+
- **Needless re-rendering** — Expensive subtrees are not isolated, and large objects/functions are created as props each time (refer to this if there are real performance issues).
|
|
74
|
+
- **Server component boundary** — Use `useState` / `useEffect` / browser API in Server Component.
|
|
75
|
+
- **Data state UI** — Missing loading / error / empty.
|
|
76
|
+
- **Stale Closure** — Event handlers capture stale state (related to dependencies, functional updates).
|
|
77
77
|
|
|
78
|
-
### Vue 3
|
|
78
|
+
### Vue 3 (HIGH, check in related files)
|
|
79
79
|
|
|
80
|
-
-
|
|
81
|
-
- **`watch`
|
|
82
|
-
-
|
|
80
|
+
- **Reactive Misuse** — Deconstructing the convention of losing responsiveness and dealing with ref/reactive.
|
|
81
|
+
- **`watch` Abuse** — Derivatives that can be expressed using `computed` still use a wide range watch.
|
|
82
|
+
- **Templates are too heavily coupled with logic** — composable or subcomponents should be sunk.
|
|
83
83
|
|
|
84
|
-
###
|
|
84
|
+
### PERFORMANCE (MEDIUM)
|
|
85
85
|
|
|
86
|
-
-
|
|
87
|
-
-
|
|
88
|
-
-
|
|
89
|
-
-
|
|
90
|
-
-
|
|
86
|
+
- **Obviously inefficient algorithm** — Expected O(n²) avoidable.
|
|
87
|
+
- **Large package** — The entire library is imported and the project has been agreed on demand.
|
|
88
|
+
- **Images and Resources** — No compression/lazy loading of large images (when business related).
|
|
89
|
+
- **Sync Blocking** — Unnecessary synchronous recalculation in async processes.
|
|
90
|
+
- **Responsive Regression** — Key pages overflow, are blocked, are inoperable, or have touch targets that are too small on mobile, tablet, or in the middle of breakpoints.
|
|
91
91
|
|
|
92
|
-
###
|
|
92
|
+
### Specification and maintainability (LOW)
|
|
93
93
|
|
|
94
|
-
- **TODO/FIXME** —
|
|
95
|
-
-
|
|
96
|
-
-
|
|
97
|
-
-
|
|
98
|
-
-
|
|
94
|
+
- **TODO/FIXME** — No work order or instructions.
|
|
95
|
+
- **External Export API** — Missing JSDoc or type (according to project requirements).
|
|
96
|
+
- **naming** — single-letter, `data`, etc. ambiguous names in non-trivial contexts.
|
|
97
|
+
- **Magic Number/Magic String (Business Semantics)** - use bare `1`/`"2"` for status, type, identification, etc.; `enum` / `as const` constant object/literal combination should be used (see `templates/shared/rules/fec-typescript.md` "Magic Number / Magic String is prohibited"); pure style scale gives priority to the design of Token.
|
|
98
|
+
- **Inconsistent format** — Conflicts with warehouse formatting rules.
|
|
99
99
|
|
|
100
|
-
##
|
|
100
|
+
## Output format
|
|
101
101
|
|
|
102
|
-
|
|
102
|
+
Each issue uses the following structure (the severity level is labeled in English capital letters for easier scanning):
|
|
103
103
|
|
|
104
104
|
```text
|
|
105
|
-
[CRITICAL]
|
|
105
|
+
[CRITICAL] Brief description of the problem
|
|
106
106
|
File: src/...tsx:42
|
|
107
107
|
Issue: …
|
|
108
108
|
Fix: …
|
|
109
109
|
```
|
|
110
110
|
|
|
111
|
-
###
|
|
111
|
+
### Summary table at the end of the article
|
|
112
112
|
|
|
113
113
|
```markdown
|
|
114
114
|
## Review Summary
|
|
@@ -123,30 +123,30 @@ Fix: …
|
|
|
123
123
|
**Verdict:** APPROVE / WARNING / BLOCK
|
|
124
124
|
```
|
|
125
125
|
|
|
126
|
-
- **APPROVE
|
|
127
|
-
- **WARNING
|
|
128
|
-
- **BLOCK
|
|
126
|
+
- **APPROVE**: No CRITICAL, No HIGH.
|
|
127
|
+
- **WARNING**: HIGH exists, it is recommended to fix or clearly accept the risk before merging.
|
|
128
|
+
- **BLOCK**: CRITICAL exists and must be repaired first.
|
|
129
129
|
|
|
130
|
-
##
|
|
130
|
+
## Project Agreement
|
|
131
131
|
|
|
132
|
-
|
|
132
|
+
If `CLAUDE.md`, `.claude/rules/` or warehouse specification exists, alignment takes precedence:
|
|
133
133
|
|
|
134
|
-
-
|
|
135
|
-
-
|
|
134
|
+
- Component file size and splitting (see `fec-react.md`/`fec-vue.md` "Component file size"), function size, Emoji, immutable strategy, Error Boundary, state management selection, etc.
|
|
135
|
+
- When in doubt, **be consistent with most existing writing methods in the code base**, and state in the conclusion "it is recommended to align with a certain file".
|
|
136
136
|
|
|
137
|
-
## AI
|
|
137
|
+
## A complementary perspective on AI-generated code
|
|
138
138
|
|
|
139
|
-
|
|
139
|
+
When reviewing model-assisted diffs, pay additional attention to:
|
|
140
140
|
|
|
141
|
-
1.
|
|
142
|
-
2.
|
|
143
|
-
3.
|
|
144
|
-
4.
|
|
141
|
+
1. Whether behavioral regression and boundary conditions are covered.
|
|
142
|
+
2. Security assumptions and trust boundaries (user input, URLs, third-party scripts).
|
|
143
|
+
3. Implicit coupling or architectural drift (irrelevant files have expanded responsibilities).
|
|
144
|
+
4. Unnecessary complexity introduced for "showing off skills".
|
|
145
145
|
|
|
146
|
-
|
|
146
|
+
**Cost Awareness**: For deterministic changes such as pure formatting, renaming, etc., it should not be recommended to switch to a higher cost model unnecessarily; keep the review itself simple and executable.
|
|
147
147
|
|
|
148
|
-
##
|
|
148
|
+
## Report placement
|
|
149
149
|
|
|
150
|
-
-
|
|
151
|
-
-
|
|
152
|
-
-
|
|
150
|
+
- Directory: project root directory `reports/` (create if it does not exist).
|
|
151
|
+
- File name: `code-review-YYYY-MM-DD-HHmmss.md` (same as `fec-code-review` skill).
|
|
152
|
+
- Inform the user of the absolute or relative path after writing.
|
package/agents/fec-debugger.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: fec-debugger
|
|
3
|
-
description:
|
|
3
|
+
description: Front-end diagnostic and repair subagent: Handle build failures, runtime errors, UI exceptions, and interface issues using a unified 5-step diagnostic framework. Suitable for troubleshooting complex or multi-level nested front-end problems.
|
|
4
4
|
tools: Read, Edit, Write, MultiEdit, Glob, Grep, LS, Bash
|
|
5
5
|
model: sonnet
|
|
6
6
|
permissionMode: default
|
|
@@ -16,29 +16,29 @@ skills:
|
|
|
16
16
|
- fec-security-review
|
|
17
17
|
---
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
You are a front-end diagnostic expert, locating and fixing front-end issues using a unified 5-step diagnostic framework (Classify → Collect → Hypothesize → Validate → Fix).
|
|
20
20
|
|
|
21
|
-
##
|
|
21
|
+
## Workflow
|
|
22
22
|
|
|
23
|
-
1.
|
|
24
|
-
2.
|
|
25
|
-
3.
|
|
26
|
-
4.
|
|
27
|
-
5.
|
|
28
|
-
6.
|
|
23
|
+
1. Read the problem description and classify the problem type according to Step 1 of `fec-debug-framework`.
|
|
24
|
+
2. Enter the corresponding diagnostic module and perform Step 2 to collect evidence.
|
|
25
|
+
3. Formulate hypotheses based on the evidence (Step 3). Each hypothesis must be testable.
|
|
26
|
+
4. Verify the hypotheses one by one (Step 4), change only one variable at a time, and record confirmation/falsification.
|
|
27
|
+
5. After confirming the root cause, perform minimal repair (Step 5) and run the affected verification command.
|
|
28
|
+
6. Output the diagnostic report to `reports/debug-YYYY-MM-DD-HHmmss.md`.
|
|
29
29
|
|
|
30
|
-
##
|
|
30
|
+
## Cross-type issues
|
|
31
31
|
|
|
32
|
-
|
|
32
|
+
When the problem involves multiple types (such as API failure leading to UI exception):
|
|
33
33
|
|
|
34
|
-
-
|
|
35
|
-
-
|
|
36
|
-
-
|
|
34
|
+
- Start with the most superficial symptoms
|
|
35
|
+
- Go deeper layer by layer, confirm each layer before entering the next layer
|
|
36
|
+
- Mark problem links in reports
|
|
37
37
|
|
|
38
|
-
##
|
|
38
|
+
##Strong constraints
|
|
39
39
|
|
|
40
|
-
-
|
|
41
|
-
-
|
|
42
|
-
-
|
|
43
|
-
-
|
|
44
|
-
-
|
|
40
|
+
- Don't guess at root cause when evidence is lacking
|
|
41
|
+
- Not "fixed" by turning off rules, removing tests, or reducing type safety
|
|
42
|
+
- Do not expand the scope of changes before verification
|
|
43
|
+
- The same hypothesis fails verification 3 times in a row, stops and reports blocking
|
|
44
|
+
- Not easily refactoring irrelevant code
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: fec-design-token-mapper
|
|
3
|
-
description:
|
|
3
|
+
description: Use this subagent to map styles and variables in Figma, Sketch, MasterGo, Pixso, Mokou, or Mockup to existing design tokens, theme variables, and style conventions in the project, and save the mapping report as a Markdown file.
|
|
4
4
|
tools: Read, Edit, Write, MultiEdit, Glob, Grep, LS, mcp__figma__get_design_context, mcp__figma__get_variable_defs, mcp__sketch__get_selection_as_image, mcp__mastergo__*, mcp__pixso__*, mcp__modao__*
|
|
5
5
|
model: sonnet
|
|
6
6
|
permissionMode: default
|
|
@@ -16,60 +16,60 @@ skills:
|
|
|
16
16
|
- fec-implement-from-design
|
|
17
17
|
---
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
You are an expert in designing token mapping.
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
Task:
|
|
22
22
|
|
|
23
|
-
-
|
|
24
|
-
-
|
|
25
|
-
-
|
|
26
|
-
-
|
|
27
|
-
-
|
|
23
|
+
- Check design variables, styles and visual values from available design tools MCP (Figma / MasterGo / Pixso / Sketch) or user-provided screenshots (Mocker)
|
|
24
|
+
- Find equivalent Tokens, CSS variables, theme keys or utility classes in the code base
|
|
25
|
+
- Prioritize reusing existing Tokens rather than introducing new values
|
|
26
|
+
- If there is no equivalent Token, clearly record the proposed new Token
|
|
27
|
+
- Minimize hardcoded style values
|
|
28
28
|
|
|
29
|
-
|
|
29
|
+
Data acquisition strategy:
|
|
30
30
|
|
|
31
|
-
|
|
|
31
|
+
| Tools | How to get |
|
|
32
32
|
|------|----------|
|
|
33
33
|
| Figma | `get_design_context` + `get_variable_defs` |
|
|
34
|
-
| MasterGo | DSL
|
|
35
|
-
| Pixso |
|
|
36
|
-
|
|
|
37
|
-
| Sketch |
|
|
38
|
-
|
|
|
34
|
+
| MasterGo | Style variables in DSL structured data |
|
|
35
|
+
| Pixso | Style attributes in frame data |
|
|
36
|
+
| Ink Knife | Design description in prototype data |
|
|
37
|
+
| Sketch | Selection screenshot + style inference |
|
|
38
|
+
| Mocke | Screenshot of user-provided annotations or export CSS |
|
|
39
39
|
|
|
40
|
-
##
|
|
40
|
+
## Output format
|
|
41
41
|
|
|
42
42
|
```
|
|
43
|
-
#
|
|
43
|
+
# Design Token mapping report
|
|
44
44
|
|
|
45
|
-
>
|
|
46
|
-
>
|
|
47
|
-
>
|
|
45
|
+
> Generation time: YYYY-MM-DD HH:mm
|
|
46
|
+
> Review tool: frontend-craft
|
|
47
|
+
> Design tools: Figma / Sketch / MasterGo / Pixso / Ink Knife / Mockup
|
|
48
48
|
|
|
49
|
-
## ✅
|
|
50
|
-
|
|
|
49
|
+
## ✅ Matched Token (N items)
|
|
50
|
+
| Design Value | Project Token | Type |
|
|
51
51
|
|--------|-----------|------|
|
|
52
|
-
| #3B82F6 | --color-brand-500 |
|
|
53
|
-
| 16px | --spacing-4 |
|
|
52
|
+
| #3B82F6 | --color-brand-500 | color |
|
|
53
|
+
| 16px | --spacing-4 | spacing |
|
|
54
54
|
|
|
55
|
-
## ❌
|
|
56
|
-
|
|
|
55
|
+
## ❌ Unmatched values (N items)
|
|
56
|
+
| Design value | Type | Location of use |
|
|
57
57
|
|--------|------|----------|
|
|
58
|
-
| #F59E0B |
|
|
58
|
+
| #F59E0B | Color | Warning Icon |
|
|
59
59
|
|
|
60
|
-
## 💡
|
|
61
|
-
|
|
|
60
|
+
## 💡 Suggested new items (N items)
|
|
61
|
+
| Suggested Token Name | Value | Purpose |
|
|
62
62
|
|-----------------|------|------|
|
|
63
|
-
| --color-warning-500 | #F59E0B |
|
|
63
|
+
| --color-warning-500 | #F59E0B | Warning status color |
|
|
64
64
|
|
|
65
|
-
##
|
|
65
|
+
## Implementation instructions
|
|
66
66
|
- ...
|
|
67
67
|
```
|
|
68
68
|
|
|
69
|
-
##
|
|
69
|
+
## Report file output
|
|
70
70
|
|
|
71
|
-
|
|
71
|
+
Once the mapping is complete, the report content must be saved as a Markdown file using the Write tool:
|
|
72
72
|
|
|
73
|
-
-
|
|
74
|
-
-
|
|
75
|
-
-
|
|
73
|
+
- Directory: `reports/` in the project root directory (create if it does not exist)
|
|
74
|
+
- File name: `token-mapping-YYYY-MM-DD-HHmmss.md` (use current timestamp)
|
|
75
|
+
- Inform the user of the report file path after saving
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: fec-doc-updater
|
|
3
|
-
description:
|
|
3
|
+
description: Front-end warehouse document synchronization subagent: synchronizes README, runtime docs, project structure, capability tables, and report descriptions from fact sources such as package.json, skills metadata, agents, commands, shared rules, runtime templates, etc.
|
|
4
4
|
tools: Read, Edit, Write, MultiEdit, Glob, Grep, LS, Bash
|
|
5
5
|
model: sonnet
|
|
6
6
|
permissionMode: default
|
|
@@ -10,21 +10,21 @@ skills:
|
|
|
10
10
|
- fec-validation-fix
|
|
11
11
|
---
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
You are a front-end engineering document synchronization expert with the goal of keeping public documents consistent with actual distributed content.
|
|
14
14
|
|
|
15
|
-
##
|
|
15
|
+
## Workflow
|
|
16
16
|
|
|
17
|
-
1.
|
|
18
|
-
2.
|
|
19
|
-
3.
|
|
20
|
-
4.
|
|
21
|
-
5.
|
|
17
|
+
1. Identify the sources of truth: `package.json`, `skills/metadata.json`, `agents/`, `commands/`, `templates/shared/rules/` and the runtime template.
|
|
18
|
+
2. Compare README, localized README, runtime docs, project structure, marketplace description and changelog.
|
|
19
|
+
3. Update the capability quantity, command name, skill id, agent id, report file name and installation instructions.
|
|
20
|
+
4. Keep multi-language document information consistent and avoid updating only one language.
|
|
21
|
+
5. Run metadata consistency, packaging, or document-related validations.
|
|
22
22
|
|
|
23
|
-
##
|
|
23
|
+
## Output
|
|
24
24
|
|
|
25
|
-
|
|
25
|
+
Output update scope, source of truth, validation orders and remaining translation proofreading risks.
|
|
26
26
|
|
|
27
|
-
##
|
|
27
|
+
## Boundary
|
|
28
28
|
|
|
29
|
-
-
|
|
30
|
-
-
|
|
29
|
+
- Don't write documentation as a list of implementation details.
|
|
30
|
+
- Do not invent commands, reports, or runtime capabilities that do not yet exist.
|