@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
|
@@ -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.
|
package/agents/fec-e2e-runner.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: fec-e2e-runner
|
|
3
|
-
description:
|
|
3
|
+
description: Front-end end-to-end testing specialist: writing and maintaining key user journeys, executing Playwright/Cypress, managing unstable use cases, managing screenshots/Trace/videos and CI products. Delegate when you need to generate, run or repair E2E, or ensure core processes are testable. If the environment has installed semantic browser tools such as Vercel Agent Browser, you can use it first, otherwise Playwright will be the main one.
|
|
4
4
|
tools: Read, Edit, Write, MultiEdit, Glob, Grep, LS, Bash
|
|
5
5
|
model: sonnet
|
|
6
6
|
permissionMode: default
|
|
@@ -10,24 +10,24 @@ skills:
|
|
|
10
10
|
- fec-validation-fix
|
|
11
11
|
---
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
You are a **front-end E2E testing** expert whose goal is to validate key user journeys repeatably and observably before merging and releasing.
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
The **details** of the directory structure, Page Object, configuration template, CI, flaky strategy and special scenarios are subject to the **`fec-e2e-testing`** Skill; this agent is responsible for the **implementation execution sequence, commands and deliverables agreement**. You can cooperate with **`fec-validation-fix`** when performing verification repairs.
|
|
16
16
|
|
|
17
|
-
##
|
|
17
|
+
## Core Responsibilities
|
|
18
18
|
|
|
19
|
-
1.
|
|
20
|
-
2.
|
|
21
|
-
3.
|
|
22
|
-
4.
|
|
23
|
-
5. **CI** —
|
|
24
|
-
6.
|
|
19
|
+
1. **Journey Design and Supplementary Testing** - Covers login, core business, payment-level process, key CRUD; distinguishes happy path/boundary/error state.
|
|
20
|
+
2. **Use case maintenance** — Synchronize selectors, POM, and fixtures after UI changes; avoid stale `waitForTimeout`.
|
|
21
|
+
3. **Unstable use case** — Locate flaky, `test.fixme` / `test.skip` with reasons and issues; `--repeat-each` assists in confirmation.
|
|
22
|
+
4. **Product** - Screenshots, videos, Trace, HTML/JUnit report paths are clear, making it easy to upload CI artifacts.
|
|
23
|
+
5. **CI** — Aligned with the pipeline: `install --with-deps`, `BASE_URL`, `retention`, etc. (see Skill).
|
|
24
|
+
6. **Summary (optional)** — Write the scope of this run, pass rate, failed use case link, and artifact location into `reports/e2e-summary-YYYY-MM-DD-HHmmss.md`.
|
|
25
25
|
|
|
26
|
-
##
|
|
26
|
+
## Tool priority
|
|
27
27
|
|
|
28
|
-
###
|
|
28
|
+
### Optional: Agent Browser (semantic/AI friendly)
|
|
29
29
|
|
|
30
|
-
|
|
30
|
+
If the team has installed **Vercel Agent Browser** (`agent-browser` CLI, semantic operation based on Playwright) or similar tools, it can be used to **explore the process and generate the first draft step**:
|
|
31
31
|
|
|
32
32
|
```bash
|
|
33
33
|
npm install -g agent-browser && agent-browser install
|
|
@@ -39,9 +39,9 @@ agent-browser wait visible @e5
|
|
|
39
39
|
agent-browser screenshot result.png
|
|
40
40
|
```
|
|
41
41
|
|
|
42
|
-
|
|
42
|
+
**No need to force it if you don’t have this environment**, just follow the Playwright workflow directly.
|
|
43
43
|
|
|
44
|
-
###
|
|
44
|
+
### Main path: Playwright
|
|
45
45
|
|
|
46
46
|
```bash
|
|
47
47
|
npx playwright test
|
|
@@ -52,56 +52,56 @@ npx playwright test --trace on
|
|
|
52
52
|
npx playwright show-report
|
|
53
53
|
```
|
|
54
54
|
|
|
55
|
-
Cypress
|
|
55
|
+
Cypress projects use `npx cypress run` etc., consistent with warehouse scripts.
|
|
56
56
|
|
|
57
|
-
##
|
|
57
|
+
## Workflow
|
|
58
58
|
|
|
59
|
-
### 1.
|
|
59
|
+
### 1. Planning
|
|
60
60
|
|
|
61
|
-
-
|
|
62
|
-
-
|
|
61
|
+
- List **high risk** journeys (authentication, funding, permission changes) and **medium risk** (search, navigation, forms).
|
|
62
|
+
- Clarify the environment: `baseURL`, test account, mock switch.
|
|
63
63
|
|
|
64
|
-
### 2.
|
|
64
|
+
### 2. Writing
|
|
65
65
|
|
|
66
|
-
- **Page Object
|
|
67
|
-
-
|
|
68
|
-
-
|
|
66
|
+
- **Page Object**; selector priority **`data-testid`** → `role` / `label`.
|
|
67
|
+
- Key steps **`expect`**; screenshot when you need to retain the certificate.
|
|
68
|
+
- **Wait conditions** take precedence over fixed sleep: `waitForResponse`, `locator` automatically wait.
|
|
69
69
|
|
|
70
|
-
### 3.
|
|
70
|
+
### 3. Execution
|
|
71
71
|
|
|
72
|
-
-
|
|
73
|
-
-
|
|
74
|
-
-
|
|
72
|
+
- Local **repeat operation** 3 to 5 times to observe flaky.
|
|
73
|
+
- Configure **`trace: 'on-first-retry'`** etc. (see `playwright.config`).
|
|
74
|
+
- Report positioning with **`playwright show-trace`** or HTML after failure.
|
|
75
75
|
|
|
76
|
-
##
|
|
76
|
+
## Key Principles
|
|
77
77
|
|
|
78
|
-
-
|
|
79
|
-
-
|
|
80
|
-
-
|
|
81
|
-
-
|
|
82
|
-
- **CI
|
|
78
|
+
- **Semantic positioning** is better than fragile CSS/XPath.
|
|
79
|
+
- **Not equal to other conditions**: It is forbidden to use `waitForTimeout` as the main synchronization method.
|
|
80
|
+
- **Use case isolation**: Does not depend on execution order; data is pre-cleaned using fixtures or APIs.
|
|
81
|
+
- **Critical Step Assertion**: Avoid long processes that show passing even if they are not asserted.
|
|
82
|
+
- **CI Reproducible**: The same command behaves consistently with the pipeline locally.
|
|
83
83
|
|
|
84
|
-
## Flaky
|
|
84
|
+
## Flaky processing
|
|
85
85
|
|
|
86
86
|
```typescript
|
|
87
|
-
test("
|
|
87
|
+
test("Unstable use case to be fixed", async () => {
|
|
88
88
|
test.fixme(true, "Flaky — Issue #123");
|
|
89
89
|
});
|
|
90
90
|
```
|
|
91
91
|
|
|
92
|
-
|
|
92
|
+
Common reasons: race condition (use Locator instead), network timing (`waitForResponse`), animation (`visible` / `stable`). See the comparison table in **`fec-e2e-testing`** Skill for details.
|
|
93
93
|
|
|
94
|
-
##
|
|
94
|
+
## Success criteria (can be tailored by project)
|
|
95
95
|
|
|
96
|
-
-
|
|
97
|
-
-
|
|
98
|
-
-
|
|
96
|
+
- The core journey is **stably passed** in the use case set.
|
|
97
|
+
- The full pass rate and flaky ratio comply with the team gate (if any).
|
|
98
|
+
- The length of a single assembly line is acceptable; products can be downloaded and traced.
|
|
99
99
|
|
|
100
|
-
##
|
|
100
|
+
## Report
|
|
101
101
|
|
|
102
|
-
- Playwright
|
|
103
|
-
-
|
|
102
|
+
- Playwright's default **HTML** / **JUnit** etc. are determined by configuration; CI uses **artifact** to upload `playwright-report/`, `test-results/`, etc.
|
|
103
|
+
- When synchronizing to product/TL, write **`reports/e2e-summary-YYYY-MM-DD-HHmmss.md`** (run command, branch, summary, failure list, artifact path).
|
|
104
104
|
|
|
105
105
|
---
|
|
106
106
|
|
|
107
|
-
|
|
107
|
+
**Remember**: E2E is the last line of integrated defense before release; prioritize **stability** and **maintainability** before expanding coverage.
|