@bovinphang/frontend-craft 2.7.0 → 2.9.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 +378 -305
- package/CHANGELOG.zh-CN.md +377 -304
- package/CONTRIBUTING.md +371 -361
- package/CONTRIBUTING.zh-CN.md +371 -361
- package/README.md +545 -493
- package/README.openclaw.md +359 -264
- package/README.openclaw.zh-CN.md +359 -264
- package/README.zh-CN.md +545 -493
- package/agents/fec-architect.md +70 -70
- package/agents/fec-code-reviewer.md +103 -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 +17 -14
- package/agents/fec-refactoring-expert.md +81 -0
- package/agents/fec-security-reviewer.md +82 -67
- package/agents/fec-test-planner.md +27 -27
- package/agents/fec-typescript-reviewer.md +103 -87
- package/agents/fec-ui-checker.md +64 -64
- 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-refactor-plan.md +17 -0
- package/commands/fec-refactor.md +18 -0
- package/commands/fec-review.md +71 -41
- package/commands/fec-scaffold.md +41 -41
- package/commands/fec-smell.md +17 -0
- package/commands/fec-tdd.md +17 -13
- package/dist/bin/frontend-craft.js +190 -36
- package/dist/hooks/fec-run-tests.js +5 -1
- package/dist/hooks/fec-session-start.js +1 -1
- package/docs/example-prompts.md +157 -137
- package/docs/ja-JP/README.md +534 -493
- package/docs/ko-KR/README.md +534 -493
- package/docs/project-structure.md +151 -123
- package/docs/refactoring/README.md +50 -0
- package/docs/refactoring/catalog.md +105 -0
- package/docs/refactoring/smell-refactoring-matrix.md +41 -0
- package/docs/review-and-diagram-workflows.md +39 -0
- package/docs/runtimes/antigravity.md +18 -10
- package/docs/runtimes/augment.md +18 -10
- package/docs/runtimes/claude.md +191 -177
- package/docs/runtimes/claude.zh-CN.md +189 -175
- package/docs/runtimes/cline.md +18 -10
- package/docs/runtimes/codebuddy.md +18 -10
- package/docs/runtimes/codex.md +18 -10
- package/docs/runtimes/compatibility.md +27 -0
- package/docs/runtimes/copilot.md +18 -10
- package/docs/runtimes/cursor.md +18 -10
- package/docs/runtimes/gemini.md +18 -10
- package/docs/runtimes/kilo.md +18 -10
- package/docs/runtimes/openclaw.md +18 -10
- package/docs/runtimes/opencode.md +18 -10
- package/docs/runtimes/qoder.md +18 -19
- package/docs/runtimes/trae.md +18 -10
- package/docs/runtimes/windsurf.md +18 -10
- package/docs/superpowers/plans/2026-09-26-content-integrity.md +145 -0
- package/docs/superpowers/plans/2026-09-26-diagram-quality.md +170 -0
- package/docs/superpowers/specs/2026-09-26-diagram-quality-design.md +77 -0
- package/docs/superpowers/specs/2026-09-26-project-optimization-design.md +95 -0
- package/docs/zh-CN/example-prompts.md +157 -137
- package/docs/zh-CN/project-structure.md +148 -123
- package/docs/zh-CN/review-and-diagram-workflows.md +39 -0
- package/docs/zh-TW/README.md +534 -493
- package/localized/zh-CN/agents/fec-architect.md +125 -0
- package/localized/zh-CN/agents/fec-code-reviewer.md +171 -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 +35 -0
- package/localized/zh-CN/agents/fec-refactoring-expert.md +53 -0
- package/localized/zh-CN/agents/fec-security-reviewer.md +132 -0
- package/localized/zh-CN/agents/fec-test-planner.md +50 -0
- package/localized/zh-CN/agents/fec-typescript-reviewer.md +158 -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-refactor-plan.md +15 -0
- package/localized/zh-CN/commands/fec-refactor.md +14 -0
- package/localized/zh-CN/commands/fec-review.md +97 -0
- package/localized/zh-CN/commands/fec-scaffold.md +205 -0
- package/localized/zh-CN/commands/fec-smell.md +13 -0
- package/localized/zh-CN/commands/fec-tdd.md +25 -0
- package/localized/zh-CN/skills/TEMPLATE.md +155 -0
- package/localized/zh-CN/skills/eval_queries.json +1257 -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 +162 -0
- package/localized/zh-CN/skills/fec-code-review/references/report-template.md +39 -0
- package/localized/zh-CN/skills/fec-code-smells/SKILL.md +33 -0
- package/localized/zh-CN/skills/fec-code-smells/references/detection-guide.md +25 -0
- package/localized/zh-CN/skills/fec-code-smells/references/smell-catalog.md +817 -0
- package/localized/zh-CN/skills/fec-code-smells/references/smell-to-refactoring-map.md +265 -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 +110 -0
- package/localized/zh-CN/skills/fec-image-generation/assets/interactive-diagram.html +371 -0
- package/localized/zh-CN/skills/fec-image-generation/assets/quality-examples/README.md +14 -0
- package/localized/zh-CN/skills/fec-image-generation/assets/quality-examples/architecture.json +121 -0
- package/localized/zh-CN/skills/fec-image-generation/assets/quality-examples/invalid-explicit.json +41 -0
- package/localized/zh-CN/skills/fec-image-generation/assets/quality-examples/sequence.json +53 -0
- package/localized/zh-CN/skills/fec-image-generation/assets/quality-examples/sequence.mmd +21 -0
- package/localized/zh-CN/skills/fec-image-generation/assets/quality-examples/workflow.json +98 -0
- package/localized/zh-CN/skills/fec-image-generation/assets/quality-examples/workflow.mmd +7 -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 +81 -0
- package/localized/zh-CN/skills/fec-image-generation/references/html-technical-diagrams.md +243 -0
- package/localized/zh-CN/skills/fec-image-generation/references/png-qa-autofix.md +37 -0
- package/localized/zh-CN/skills/fec-image-generation/scripts/diagram-browser.mjs +90 -0
- package/localized/zh-CN/skills/fec-image-generation/scripts/diagram-layout.mjs +176 -0
- package/localized/zh-CN/skills/fec-image-generation/scripts/export-diagram.mjs +332 -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/mermaid-render.mjs +64 -0
- package/localized/zh-CN/skills/fec-image-generation/scripts/png-qa.mjs +462 -0
- package/localized/zh-CN/skills/fec-image-generation/scripts/tech-diagram-render.mjs +1537 -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 +54 -0
- package/localized/zh-CN/skills/fec-refactor-clean/references/report-template.md +42 -0
- package/localized/zh-CN/skills/fec-refactoring/SKILL.md +83 -0
- package/localized/zh-CN/skills/fec-refactoring/references/principles.md +43 -0
- package/localized/zh-CN/skills/fec-refactoring/references/refactoring-vs-feature-change.md +25 -0
- package/localized/zh-CN/skills/fec-refactoring/references/when-to-refactor.md +17 -0
- package/localized/zh-CN/skills/fec-refactoring/references/workflow.md +59 -0
- package/localized/zh-CN/skills/fec-refactoring-api/SKILL.md +25 -0
- package/localized/zh-CN/skills/fec-refactoring-api/references/api-refactorings.md +496 -0
- package/localized/zh-CN/skills/fec-refactoring-catalog/SKILL.md +21 -0
- package/localized/zh-CN/skills/fec-refactoring-catalog/references/catalog-index.md +99 -0
- package/localized/zh-CN/skills/fec-refactoring-catalog/references/composition-guide.md +49 -0
- package/localized/zh-CN/skills/fec-refactoring-catalog/references/selection-guide.md +41 -0
- package/localized/zh-CN/skills/fec-refactoring-control/SKILL.md +25 -0
- package/localized/zh-CN/skills/fec-refactoring-control/references/conditional-refactorings.md +299 -0
- package/localized/zh-CN/skills/fec-refactoring-data/SKILL.md +25 -0
- package/localized/zh-CN/skills/fec-refactoring-data/references/data-refactorings.md +248 -0
- package/localized/zh-CN/skills/fec-refactoring-encapsulation/SKILL.md +25 -0
- package/localized/zh-CN/skills/fec-refactoring-encapsulation/references/encapsulation-refactorings.md +452 -0
- package/localized/zh-CN/skills/fec-refactoring-functions/SKILL.md +25 -0
- package/localized/zh-CN/skills/fec-refactoring-functions/references/function-refactorings.md +567 -0
- package/localized/zh-CN/skills/fec-refactoring-inheritance/SKILL.md +25 -0
- package/localized/zh-CN/skills/fec-refactoring-inheritance/references/inheritance-refactorings.md +550 -0
- package/localized/zh-CN/skills/fec-refactoring-move-features/SKILL.md +25 -0
- package/localized/zh-CN/skills/fec-refactoring-move-features/references/moving-refactorings.md +453 -0
- package/localized/zh-CN/skills/fec-refactoring-validation/SKILL.md +52 -0
- package/localized/zh-CN/skills/fec-refactoring-validation/references/behavior-preservation.md +15 -0
- package/localized/zh-CN/skills/fec-refactoring-validation/references/refactoring-test-checklist.md +25 -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 +54 -0
- package/localized/zh-CN/skills/fec-security-review/references/report-template.md +37 -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 +55 -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 +2004 -0
- package/localized/zh-CN/skills/relations.json +1023 -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 +55 -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 +2 -3
- package/package.json +28 -17
- package/skills/TEMPLATE.md +74 -74
- package/skills/eval_queries.json +922 -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 +113 -94
- package/skills/fec-code-review/references/report-template.md +23 -13
- package/skills/fec-code-smells/SKILL.md +33 -0
- package/skills/fec-code-smells/references/detection-guide.md +25 -0
- package/skills/fec-code-smells/references/smell-catalog.md +861 -0
- package/skills/fec-code-smells/references/smell-to-refactoring-map.md +265 -0
- 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 +84 -29
- package/skills/fec-image-generation/assets/interactive-diagram.html +371 -0
- package/skills/fec-image-generation/assets/quality-examples/README.md +14 -0
- package/skills/fec-image-generation/assets/quality-examples/architecture.json +121 -0
- package/skills/fec-image-generation/assets/quality-examples/invalid-explicit.json +41 -0
- package/skills/fec-image-generation/assets/quality-examples/sequence.json +53 -0
- package/skills/fec-image-generation/assets/quality-examples/sequence.mmd +21 -0
- package/skills/fec-image-generation/assets/quality-examples/workflow.json +98 -0
- package/skills/fec-image-generation/assets/quality-examples/workflow.mmd +7 -0
- package/skills/fec-image-generation/references/diagram-workflows.md +41 -3
- package/skills/fec-image-generation/references/html-technical-diagrams.md +243 -0
- package/skills/fec-image-generation/references/png-qa-autofix.md +9 -2
- package/skills/fec-image-generation/scripts/diagram-browser.mjs +90 -0
- package/skills/fec-image-generation/scripts/diagram-layout.mjs +176 -0
- package/skills/fec-image-generation/scripts/export-diagram.mjs +332 -0
- package/skills/fec-image-generation/scripts/interactive-diagram-server.mjs +654 -0
- package/skills/fec-image-generation/scripts/mermaid-render.mjs +64 -0
- package/skills/fec-image-generation/scripts/png-qa.mjs +35 -4
- package/skills/fec-image-generation/scripts/tech-diagram-render.mjs +1537 -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 +33 -30
- package/skills/fec-refactor-clean/references/report-template.md +23 -23
- package/skills/fec-refactoring/SKILL.md +83 -0
- package/skills/fec-refactoring/references/principles.md +60 -0
- package/skills/fec-refactoring/references/refactoring-vs-feature-change.md +27 -0
- package/skills/fec-refactoring/references/when-to-refactor.md +31 -0
- package/skills/fec-refactoring/references/workflow.md +90 -0
- package/skills/fec-refactoring-api/SKILL.md +25 -0
- package/skills/fec-refactoring-api/references/api-refactorings.md +496 -0
- package/skills/fec-refactoring-catalog/SKILL.md +28 -0
- package/skills/fec-refactoring-catalog/references/catalog-index.md +99 -0
- package/skills/fec-refactoring-catalog/references/composition-guide.md +49 -0
- package/skills/fec-refactoring-catalog/references/selection-guide.md +47 -0
- package/skills/fec-refactoring-control/SKILL.md +25 -0
- package/skills/fec-refactoring-control/references/conditional-refactorings.md +299 -0
- package/skills/fec-refactoring-data/SKILL.md +25 -0
- package/skills/fec-refactoring-data/references/data-refactorings.md +248 -0
- package/skills/fec-refactoring-encapsulation/SKILL.md +25 -0
- package/skills/fec-refactoring-encapsulation/references/encapsulation-refactorings.md +452 -0
- package/skills/fec-refactoring-functions/SKILL.md +25 -0
- package/skills/fec-refactoring-functions/references/function-refactorings.md +567 -0
- package/skills/fec-refactoring-inheritance/SKILL.md +25 -0
- package/skills/fec-refactoring-inheritance/references/inheritance-refactorings.md +550 -0
- package/skills/fec-refactoring-move-features/SKILL.md +25 -0
- package/skills/fec-refactoring-move-features/references/moving-refactorings.md +453 -0
- package/skills/fec-refactoring-validation/SKILL.md +59 -0
- package/skills/fec-refactoring-validation/references/behavior-preservation.md +53 -0
- package/skills/fec-refactoring-validation/references/refactoring-test-checklist.md +42 -0
- 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 +36 -20
- package/skills/fec-security-review/references/report-template.md +22 -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 +32 -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 +485 -116
- package/skills/relations.json +268 -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 +41 -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/docs/superpowers/plans/2026-05-29-fec-debug.md +0 -491
- package/docs/superpowers/specs/2026-05-29-fec-debug-design.md +0 -340
- package/skills/fec-drawio-studio/data/shape-index.json.gz +0 -0
package/agents/fec-ui-checker.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: fec-ui-checker
|
|
3
|
-
description:
|
|
3
|
+
description: "Use this subagent to troubleshoot visual defects, layout confusion, CSS issues, responsive exceptions, and inconsistencies between interaction and design in the front-end UI, and save the report as a Markdown file. Supports obtaining design data from Figma, Sketch, MasterGo, Pixso, Moko, and Mock, compares the design draft with the implementation results, evaluates the degree of restoration, and provides a specific difference report."
|
|
4
4
|
tools: Read, Edit, Write, MultiEdit, Glob, Grep, LS, Bash, WebFetch, mcp__figma__get_design_context, mcp__sketch__get_selection_as_image, mcp__mastergo__*, mcp__pixso__*, mcp__modao__*
|
|
5
5
|
model: sonnet
|
|
6
6
|
permissionMode: default
|
|
@@ -21,100 +21,100 @@ skills:
|
|
|
21
21
|
- fec-validation-fix
|
|
22
22
|
---
|
|
23
23
|
|
|
24
|
-
# UI
|
|
24
|
+
# UI troubleshooting and design restoration evaluation
|
|
25
25
|
|
|
26
|
-
|
|
26
|
+
You are a quality engineer focused on design reproducibility evaluation and UI problem troubleshooting.
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
Focus on:
|
|
29
29
|
|
|
30
|
-
-
|
|
31
|
-
-
|
|
32
|
-
-
|
|
33
|
-
-
|
|
34
|
-
-
|
|
35
|
-
-
|
|
36
|
-
- hover / focus / disabled
|
|
37
|
-
-
|
|
38
|
-
-
|
|
39
|
-
-
|
|
40
|
-
- Tailwind token
|
|
30
|
+
- Broken layout
|
|
31
|
+
- Overflow and cropping
|
|
32
|
+
- Spacing or alignment errors
|
|
33
|
+
- Style priority conflict
|
|
34
|
+
- Responsive breakpoint regression problem
|
|
35
|
+
- Container query, touch target, safe area and breakpoint intermediate value issues
|
|
36
|
+
- hover / focus / disabled status abnormality
|
|
37
|
+
- Inconsistency between design and implementation
|
|
38
|
+
- Generalized template sense and insufficient visual memory points
|
|
39
|
+
- Fonts, colors, animations and background textures are fragmented
|
|
40
|
+
- Tailwind token, variant, dark mode or dynamic class management is out of control
|
|
41
41
|
|
|
42
|
-
|
|
42
|
+
Workflow:
|
|
43
43
|
|
|
44
|
-
1.
|
|
45
|
-
2.
|
|
46
|
-
3.
|
|
47
|
-
4.
|
|
48
|
-
5.
|
|
49
|
-
6.
|
|
44
|
+
1. First locate the minimum reproducible path
|
|
45
|
+
2. If the project exists `design-system/<project>/pages/<page>.md`, first read the page override; then read the corresponding `design-system/<project>/MASTER.md`
|
|
46
|
+
3. Check component structure and style sources
|
|
47
|
+
4. Track whether the problem comes from markup, CSS, Token, state or data
|
|
48
|
+
5. Provide minimal and stable repair solution
|
|
49
|
+
6. Verify after modification
|
|
50
50
|
|
|
51
|
-
|
|
51
|
+
Don't do a major rewrite if local fixes are enough.
|
|
52
52
|
|
|
53
|
-
##
|
|
53
|
+
## Check process
|
|
54
54
|
|
|
55
|
-
1.
|
|
56
|
-
- Figma / MasterGo / Pixso /
|
|
57
|
-
- Sketch
|
|
58
|
-
-
|
|
59
|
-
2.
|
|
60
|
-
3.
|
|
61
|
-
4.
|
|
55
|
+
1. Obtain design data (color, font, spacing, size) from available design tools
|
|
56
|
+
- Figma / MasterGo / Pixso / Mo Dao: Get structured data through MCP
|
|
57
|
+
- Sketch: Get a screenshot of the selection through MCP
|
|
58
|
+
- Mocke: Obtained from screenshots or annotations provided by users
|
|
59
|
+
2. Read the corresponding implementation code
|
|
60
|
+
3. If a design system document exists, confirm whether the implementation complies with the product type, token, chart, animation and QA rules of Master and page override
|
|
61
|
+
4. Compare the following dimensions item by item:
|
|
62
62
|
|
|
63
|
-
|
|
|
63
|
+
| Dimensions | Weight | Check content |
|
|
64
64
|
| --------- | ---- | ----------------------------------- |
|
|
65
|
-
|
|
|
66
|
-
|
|
|
67
|
-
|
|
|
68
|
-
|
|
|
69
|
-
|
|
|
70
|
-
|
|
|
65
|
+
| Color | 25% | Background color, text color, and border color correspond to token |
|
|
66
|
+
| Spacing | 25% | padding/margin/gap consistent with design |
|
|
67
|
+
| Font | 20% | Font size, font weight, line height, font spacing |
|
|
68
|
+
| Size | 15% | Component width and height, icon size |
|
|
69
|
+
| rounded corners/shadow | 10% | border-radius, box-shadow |
|
|
70
|
+
| Responsive | 5% | Each breakpoint is laid out correctly |
|
|
71
71
|
|
|
72
|
-
|
|
72
|
+
If the task is not to restore the design draft, but to inspect the quality of the productized UI, additional evaluation is required:
|
|
73
73
|
|
|
74
|
-
-
|
|
75
|
-
-
|
|
76
|
-
-
|
|
77
|
-
-
|
|
78
|
-
-
|
|
74
|
+
- Whether the subject of the first screen is clear and whether it directly supports the core tasks
|
|
75
|
+
- Whether the visual anchor is relevant to the business rather than a general decoration
|
|
76
|
+
- Whether the font level, color roles, animation rhythm and background texture are consistent
|
|
77
|
+
- Are there any traces of templating such as default purple gradient, empty hero, card stacking, single hue or non-contextual fonts?
|
|
78
|
+
- Whether to ignore industry risks, chart selection, status overrides and pre-delivery QA defined in `design-system/MASTER.md` or page override
|
|
79
79
|
|
|
80
|
-
##
|
|
80
|
+
## Output format
|
|
81
81
|
|
|
82
82
|
```
|
|
83
|
-
#
|
|
83
|
+
# Design restoration report
|
|
84
84
|
|
|
85
|
-
>
|
|
86
|
-
>
|
|
87
|
-
>
|
|
85
|
+
> Generation time: YYYY-MM-DD HH:mm
|
|
86
|
+
> Review tool: frontend-craft
|
|
87
|
+
> Design tools: Figma / Sketch / MasterGo / Pixso / Ink Knife / Mockup
|
|
88
88
|
|
|
89
|
-
|
|
89
|
+
**Overall Score**: XX/100
|
|
90
90
|
|
|
91
|
-
##
|
|
92
|
-
✅
|
|
93
|
-
❌
|
|
91
|
+
## Color (XX/25)
|
|
92
|
+
✅ Background color: --color-bg-primary correct
|
|
93
|
+
❌ Button color: used #3B82F6, should be --color-brand-500
|
|
94
94
|
|
|
95
|
-
##
|
|
95
|
+
## Spacing (XX/25)
|
|
96
96
|
...
|
|
97
97
|
|
|
98
|
-
##
|
|
98
|
+
## Font (XX/20)
|
|
99
99
|
...
|
|
100
100
|
|
|
101
|
-
##
|
|
101
|
+
## Size (XX/15)
|
|
102
102
|
...
|
|
103
103
|
|
|
104
|
-
##
|
|
104
|
+
## Rounded Corners/Shadow (XX/10)
|
|
105
105
|
...
|
|
106
106
|
|
|
107
|
-
##
|
|
107
|
+
## Responsive (XX/5)
|
|
108
108
|
...
|
|
109
109
|
|
|
110
|
-
##
|
|
110
|
+
## Items that need adjustment (by priority)
|
|
111
111
|
1. ...
|
|
112
112
|
```
|
|
113
113
|
|
|
114
|
-
##
|
|
114
|
+
## Report file output
|
|
115
115
|
|
|
116
|
-
|
|
116
|
+
After the check is completed, the report content must be saved as a Markdown file using the Write tool:
|
|
117
117
|
|
|
118
|
-
-
|
|
119
|
-
-
|
|
120
|
-
-
|
|
118
|
+
- Directory: `reports/` in the project root directory (create it if it does not exist)
|
|
119
|
+
- Filename: `ui-fidelity-review-YYYY-MM-DD-HHmmss.md` (use current timestamp)
|
|
120
|
+
- Inform the user of the report file path after saving
|
package/commands/fec-debug.md
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: fec-debug
|
|
3
|
-
description:
|
|
3
|
+
description: "Front-end problem diagnosis and repair: covering build failures, runtime errors, UI exceptions, and interface problems, using a unified diagnostic framework to classify problems by type."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
Press `fec-debug-framework` to perform front-end problem diagnosis and repair. First classify the problem type (build/runtime/ui/api), and then enter the corresponding diagnosis module to perform the 5-step method (classification → collection → hypothesis → verification → repair). Complex or cross-type issues can be delegated to the **`fec-debugger`** subagent.
|
|
7
7
|
|
|
8
|
-
##
|
|
8
|
+
## Question type quick check
|
|
9
9
|
|
|
10
|
-
|
|
|
10
|
+
| Type | Typical Scenario |
|
|
11
11
|
| ------- | ----------------------------------------------- |
|
|
12
|
-
| build
|
|
13
|
-
| runtime | JS
|
|
14
|
-
| ui
|
|
15
|
-
| api
|
|
12
|
+
| build | lint/type-check/test/build/CI failed |
|
|
13
|
+
| runtime | JS exception, white screen, component rendering error, routing exception, state loss |
|
|
14
|
+
| ui | style misalignment, abnormal interaction, animation lag, responsiveness issues |
|
|
15
|
+
| api | Request failure, timeout, data inconsistency, CORS, cache issues |
|
|
16
16
|
|
|
17
|
-
##
|
|
17
|
+
## Execution steps
|
|
18
18
|
|
|
19
|
-
1.
|
|
20
|
-
2.
|
|
21
|
-
3.
|
|
22
|
-
4.
|
|
23
|
-
5.
|
|
19
|
+
1. Read the problems described by users and classify the problem types according to `fec-debug-framework` Step 1.
|
|
20
|
+
2. Enter the corresponding diagnostic module and perform Step 2 to collect evidence.
|
|
21
|
+
3. Propose hypotheses based on evidence (Step 3) and verify them one by one (Step 4).
|
|
22
|
+
4. After confirming the root cause, perform minimal repair (Step 5) and run the affected verification command.
|
|
23
|
+
5. Output the diagnostic report to `reports/debug-YYYY-MM-DD-HHmmss.md`.
|
|
24
24
|
|
|
25
|
-
##
|
|
25
|
+
##Strong constraints
|
|
26
26
|
|
|
27
|
-
-
|
|
28
|
-
-
|
|
29
|
-
-
|
|
30
|
-
-
|
|
27
|
+
- Don't "fix" the problem by turning off rules, removing tests, or reducing type safety
|
|
28
|
+
- Not easily refactoring irrelevant code
|
|
29
|
+
- Don't guess at root cause when evidence is lacking
|
|
30
|
+
- It must be verified after repairing, you cannot just change it for accidents
|
package/commands/fec-doc-sync.md
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: fec-doc-sync
|
|
3
|
-
description:
|
|
3
|
+
description: Sync README, docs, environment variables, scripts, API/routing/component descriptions and deployment instructions from code and project sources of truth.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
Press `fec-doc-sync` to synchronize front-end project documents. Complex multi-language updates can be delegated to **`fec-doc-updater`**.
|
|
7
7
|
|
|
8
|
-
##
|
|
8
|
+
## Execution steps
|
|
9
9
|
|
|
10
|
-
1.
|
|
11
|
-
2.
|
|
12
|
-
3.
|
|
13
|
-
4.
|
|
14
|
-
5.
|
|
15
|
-
6.
|
|
10
|
+
1. Read sources of truth: `package.json`, lockfile, config, `.env.example`, routes, API clients/server routes, types/schemas, components, tests, CI, build/deploy config.
|
|
11
|
+
2. Compare README, docs, ADR, changelog, example prompts, setup/deploy/env docs.
|
|
12
|
+
3. Update stable commands, environment variables, routing/API behavior, component descriptions, deployment steps, version constraints, and migration instructions.
|
|
13
|
+
4. Keep key information consistent across multi-language documents.
|
|
14
|
+
5. When the target warehouse itself is a skill/agent/command distribution warehouse, the capability table, metadata, runtime docs and marketplace description are also synchronized.
|
|
15
|
+
6. Run document consistency, typecheck, test, build or related packaging checks.
|
|
16
16
|
|
|
17
|
-
##
|
|
17
|
+
## Output requirements
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
Summarize update scope, sources of fact, verification orders and translation risks that still require manual proofreading.
|
package/commands/fec-init.md
CHANGED
|
@@ -1,40 +1,40 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: fec-init
|
|
3
|
-
description:
|
|
3
|
+
description: Initialize frontend-craft project template, rules or downgrade instructions according to the current AI runtime.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
Copy the project template provided by frontend-craft to the configuration directory corresponding to the runtime of the current project. Priority will be given to judging the runtime based on the existing configuration in the current directory; if it cannot be judged, it will be selected based on the tool the user is using.
|
|
7
7
|
|
|
8
|
-
##
|
|
8
|
+
## Execution steps
|
|
9
9
|
|
|
10
|
-
1.
|
|
11
|
-
-
|
|
12
|
-
-
|
|
13
|
-
-
|
|
14
|
-
-
|
|
15
|
-
-
|
|
16
|
-
-
|
|
17
|
-
-
|
|
18
|
-
-
|
|
19
|
-
-
|
|
20
|
-
-
|
|
21
|
-
-
|
|
22
|
-
-
|
|
10
|
+
1. Detect runtime:
|
|
11
|
+
- Existence of `.claude/` or Claude Code plug-in environment → `claude`
|
|
12
|
+
- `.codex/` or `AGENTS.md` exists → `codex`
|
|
13
|
+
- Existence of `.openclaw/`, `OPENCLAW-CONFIG.md` or `openclaw.plugin.json` → `openclaw`
|
|
14
|
+
- Existence of `.qoder/`, `.qoder/settings.json`, `.qoder/rules/` or `.qoder/skills/` → `qoder`
|
|
15
|
+
- exists `.cursor/` → `cursor`
|
|
16
|
+
- exists `.windsurf/` → `windsurf`
|
|
17
|
+
- exists `.opencode/` → `opencode`
|
|
18
|
+
- exists `.kilo/` → `kilo`
|
|
19
|
+
- exists `.gemini/` or `GEMINI.md` → `gemini`
|
|
20
|
+
- Exist `.github/copilot-instructions.md` or `.github/instructions/` → `copilot`
|
|
21
|
+
- When `.trae/`, `.augment/`, `.codebuddy/`, `.clinerules` exist, they will be processed according to the corresponding runtime
|
|
22
|
+
- When still unable to determine, ask the user for the runtime currently to be initialized.
|
|
23
23
|
|
|
24
|
-
2.
|
|
25
|
-
- `claude
|
|
26
|
-
- `codex
|
|
27
|
-
- `openclaw
|
|
28
|
-
- `qoder
|
|
29
|
-
- `cursor
|
|
30
|
-
- `windsurf
|
|
31
|
-
- `opencode` / `kilo
|
|
32
|
-
- `gemini
|
|
33
|
-
- `copilot
|
|
34
|
-
- `trae` / `cline
|
|
35
|
-
- `antigravity` / `augment` / `codebuddy
|
|
24
|
+
2. Initialize by runtime, do not overwrite existing files without confirmation:
|
|
25
|
+
- `claude`: Copy Claude templates, hooks, commands, agents, skills and shared rules to `.claude/`; if `.claude/CLAUDE.md` already exists, confirm first.
|
|
26
|
+
- `codex`: Copy `templates/codex/AGENTS.md` to the project root (if it does not exist), `templates/codex/config.toml` to `.codex/config.toml`, shared rules to `.codex/rules/`; skills/agents should be taken care of by the CLI installation process.
|
|
27
|
+
- `openclaw`: Copy `templates/openclaw/*.md` to the project root directory and commands/skills to `.openclaw/`; if the file already exists, confirm first.
|
|
28
|
+
- `qoder`: Copy skills to `.qoder/skills/`, commands to `.qoder/commands/`, agents to `.qoder/agents/`, shared rules to `.qoder/rules/`, hook scripts to `.qoder/hooks/`, and generate or merge the hooks configuration of `.qoder/settings.json`.
|
|
29
|
+
- `cursor`: Copy shared rules to `.cursor/rules/*.mdc`, retain the `fec-` skills directory; Note that Cursor does not support hooks of this plug-in.
|
|
30
|
+
- `windsurf`: Copy commands to `.windsurf/workflows/`, shared rules to `.windsurf/rules/`, and skills to `.windsurf/skills/`.
|
|
31
|
+
- `opencode` / `kilo`: Copy commands to `.opencode/command/` or `.kilo/command/`, and skills to the corresponding `skills/`; OpenCode can complement `.opencode/opencode.jsonc`.
|
|
32
|
+
- `gemini`: Copy skills to `.gemini/extensions/frontend-craft/skills/`. If there is no `GEMINI.md`, it will be generated by rewriting the Claude template.
|
|
33
|
+
- `copilot`: merge shared rules into `.github/instructions/frontend-craft.instructions.md`, commands into `.github/prompts/`.
|
|
34
|
+
- `trae` / `cline`: Write only rules bundles, and make it clear that this is rules-only downgrade mode.
|
|
35
|
+
- `antigravity` / `augment` / `codebuddy`: only install skills; output "This runtime currently has no commands/hooks native adaptation".
|
|
36
36
|
|
|
37
|
-
3. Claude runtime
|
|
37
|
+
3. Under Claude runtime, copy the following template files from the plug-in's `${FRONTEND_CRAFT_ROOT}/templates/claude/` and `${FRONTEND_CRAFT_ROOT}/templates/shared/rules/` to `.claude/` in the project root directory:
|
|
38
38
|
- `templates/claude/CLAUDE.md` → `.claude/CLAUDE.md`
|
|
39
39
|
- `templates/claude/settings.json` → `.claude/settings.json`
|
|
40
40
|
- `templates/shared/rules/fec-vue.md` → `.claude/rules/fec-vue.md`
|
|
@@ -48,8 +48,7 @@ description: 按当前 AI runtime 初始化 frontend-craft 项目模板、rules
|
|
|
48
48
|
- `templates/shared/rules/fec-responsive-design.md` → `.claude/rules/fec-responsive-design.md`
|
|
49
49
|
- `templates/shared/rules/fec-rendering-patterns.md` → `.claude/rules/fec-rendering-patterns.md`
|
|
50
50
|
- `templates/shared/rules/fec-api-layer.md` → `.claude/rules/fec-api-layer.md`
|
|
51
|
-
- `templates/shared/rules/fec-state-management.md` → `.claude/rules/fec-state-management.md`
|
|
52
|
-
- `templates/shared/rules/fec-error-handling.md` → `.claude/rules/fec-error-handling.md`
|
|
51
|
+
- `templates/shared/rules/fec-state-management.md` → `.claude/rules/fec-state-management.md`- `templates/shared/rules/fec-error-handling.md` → `.claude/rules/fec-error-handling.md`
|
|
53
52
|
- `templates/shared/rules/fec-naming-conventions.md` → `.claude/rules/fec-naming-conventions.md`
|
|
54
53
|
- `templates/shared/rules/fec-typescript.md` → `.claude/rules/fec-typescript.md`
|
|
55
54
|
- `templates/shared/rules/fec-code-comments.md` → `.claude/rules/fec-code-comments.md`
|
|
@@ -58,13 +57,13 @@ description: 按当前 AI runtime 初始化 frontend-craft 项目模板、rules
|
|
|
58
57
|
- `templates/shared/rules/fec-agent-workflow.md` → `.claude/rules/fec-agent-workflow.md`
|
|
59
58
|
- `templates/shared/rules/fec-working-modes.md` → `.claude/rules/fec-working-modes.md`
|
|
60
59
|
|
|
61
|
-
4.
|
|
62
|
-
-
|
|
63
|
-
-
|
|
64
|
-
-
|
|
60
|
+
4. Don’t just output a reminder after copying is complete. First check `package.json`, common framework configuration files and `.github/workflows/` in the project root directory, infer applicable rules, and then provide post-initialization configuration options to the user:
|
|
61
|
+
- Recommendation: Automatically detect and tailor rules (default recommendation). The rules recommended to be retained and recommended to be removed are displayed based on the detection results. The user can modify the rule import section at the bottom of `.claude/CLAUDE.md` after confirmation.
|
|
62
|
+
- Manually select rules to keep. List the copied rule files, let the user select the rules to keep, and then press Select to update `.claude/CLAUDE.md`.
|
|
63
|
+
- No adjustments for now, only output list. Keep the copy results unchanged and only output the initialization completion information, file list and follow-up suggestions.
|
|
65
64
|
|
|
66
|
-
|
|
65
|
+
The judgment of recommended items should be conservative: only automatically recommend the removal of obviously mismatched rules, such as removing `@./rules/fec-vue.md` for pure React projects, removing `@./rules/fec-react.md` for pure Vue projects, and removing `@./rules/fec-typescript.md` when there is no TypeScript/JavaScript source code. For rules such as `@./rules/fec-i18n.md`, `@./rules/fec-ci-cd.md`, and `@./rules/fec-refactoring.md` that depend on the project context, priority is given to displaying them as suggestions and explaining the basis; if they cannot be determined, they are retained by default.
|
|
67
66
|
|
|
68
|
-
|
|
67
|
+
If the current operating environment supports structured questioning tools, use multiple-choice questions and clearly mark recommended items; otherwise, use numbered options. Do not modify the rule import part of `.claude/CLAUDE.md` before the user selects and confirms it. After the trimming is completed or the user chooses not to adjust it temporarily, the user is reminded to modify the basic project information, common commands, `rules/fec-react.md` or `rules/fec-vue.md` according to the actual situation of the project, and check whether the permission list in `settings.json` meets the project requirements.
|
|
69
68
|
|
|
70
|
-
5.
|
|
69
|
+
5. Output the confirmation information and file list of initialization completion.
|
package/commands/fec-plan.md
CHANGED
|
@@ -1,94 +1,94 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: fec-plan
|
|
3
|
-
description:
|
|
3
|
+
description: Unified front-end planning entrance - implementation/architecture plan or testing strategy. The implementation path is taken by default; when the user clearly wants test plan, coverage matrix, test layering, risk-to-test, etc., the complete test strategy is output.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
Create a front-end plan before changing the code. Automatically divert traffic to implementation planning or test planning based on user intent.
|
|
7
7
|
|
|
8
|
-
##
|
|
8
|
+
## Intent recognition
|
|
9
9
|
|
|
10
|
-
-
|
|
11
|
-
-
|
|
12
|
-
-
|
|
10
|
+
- **Implementation Planning** (default): Users need to dismantle components, design data flows, arrange directory structures, migration steps, and architecture plans.
|
|
11
|
+
- **Test Planning**: The user clearly states "test plan", "test strategy", "coverage matrix", "test layering", "what to test", "risk-to-test", etc.
|
|
12
|
+
- **Mixed**: Users have both implementation and testing requirements.
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
If the intention is unclear, first ask the user if they want to see the implementation plan or test strategy.
|
|
15
15
|
|
|
16
|
-
##
|
|
16
|
+
## Implementation planning path
|
|
17
17
|
|
|
18
|
-
1.
|
|
19
|
-
2.
|
|
20
|
-
3.
|
|
21
|
-
4.
|
|
22
|
-
-
|
|
23
|
-
-
|
|
24
|
-
-
|
|
25
|
-
-
|
|
26
|
-
-
|
|
27
|
-
-
|
|
28
|
-
-
|
|
29
|
-
-
|
|
30
|
-
5.
|
|
31
|
-
6.
|
|
18
|
+
1. Restate user goals, success criteria, and out-of-scope content.
|
|
19
|
+
2. Read relevant codes, templates, rules, configurations, tests and existing implementations to avoid deviating from the current status of the project.
|
|
20
|
+
3. If it involves page splitting, state flow, directory structure, data flow or large-scale reconstruction, entrust **`fec-architect`**.
|
|
21
|
+
4. Output plan:
|
|
22
|
+
- Scope of influence
|
|
23
|
+
- Key files or modules
|
|
24
|
+
- Architecture and module boundaries
|
|
25
|
+
- Data flow/state flow/API interaction
|
|
26
|
+
- Implementation phase
|
|
27
|
+
- Rollback or gradual migration strategy
|
|
28
|
+
- Risks and Mitigation
|
|
29
|
+
- Minimal verification access (lint, type-check, test, build, E2E or manual acceptance)
|
|
30
|
+
5. For decisions related to version sensitivity, dependency upgrades or external libraries, list the source of fact, version range, migration impact and documents that need to be verified.
|
|
31
|
+
6. Implementation is not performed until user confirmation.
|
|
32
32
|
|
|
33
|
-
|
|
33
|
+
The implementation plan is saved to `reports/architecture-proposal-YYYY-MM-DD-HHmmss.md`.
|
|
34
34
|
|
|
35
|
-
##
|
|
35
|
+
## Test planning path
|
|
36
36
|
|
|
37
|
-
1.
|
|
38
|
-
-
|
|
39
|
-
-
|
|
40
|
-
-
|
|
37
|
+
1. Determine the scope:
|
|
38
|
+
- When users specify functions, PRs, files or business processes, this scope shall prevail.
|
|
39
|
+
- When not specified by the user, view recent changes and infer the main risk areas.
|
|
40
|
+
- If the user wants module splitting, state flow, directory structure or migration steps, return to the implementation planning path.
|
|
41
41
|
|
|
42
|
-
2.
|
|
43
|
-
-
|
|
44
|
-
-
|
|
45
|
-
-
|
|
46
|
-
-
|
|
47
|
-
- E2E
|
|
48
|
-
-
|
|
49
|
-
- a11y /
|
|
42
|
+
2. Use the `fec-testing-strategy` Skill to create a test layering matrix:
|
|
43
|
+
- Static checking
|
|
44
|
+
- unit testing
|
|
45
|
+
- Component testing
|
|
46
|
+
- Lightweight integration testing
|
|
47
|
+
- E2E testing
|
|
48
|
+
- Visual/Storybook/interaction
|
|
49
|
+
- a11y / safety / performance and other special quality verification
|
|
50
50
|
|
|
51
|
-
3.
|
|
51
|
+
3. Provide recommended test layers, priorities, recommended commands, responsibility skills and failure location evidence for each risk.
|
|
52
52
|
|
|
53
|
-
4.
|
|
53
|
+
4. Indicate which risks only need to be covered by existing access control, which ones need new testing, and which ones are not covered yet and explain the reasons.
|
|
54
54
|
|
|
55
|
-
5.
|
|
55
|
+
5. Delegate the **`fec-test-planner`** subagent to generate independent test plans when necessary.
|
|
56
56
|
|
|
57
|
-
6.
|
|
57
|
+
6. Save the plan to `reports/test-plan-YYYY-MM-DD-HHmmss.md`:
|
|
58
58
|
|
|
59
59
|
```markdown
|
|
60
|
-
#
|
|
60
|
+
# Front-end test plan
|
|
61
61
|
|
|
62
|
-
>
|
|
63
|
-
>
|
|
62
|
+
> Generation time: YYYY-MM-DD HH:mm
|
|
63
|
+
> Scope: ...
|
|
64
64
|
|
|
65
|
-
##
|
|
65
|
+
## Risk Overview
|
|
66
66
|
|
|
67
67
|
| Risk | Impact | Suggested Layer | Priority | Evidence |
|
|
68
68
|
| ---- | ------ | --------------- | -------- | -------- |
|
|
69
69
|
|
|
70
|
-
##
|
|
70
|
+
## Covering matrix
|
|
71
71
|
|
|
72
72
|
| Layer | What to Cover | Tooling / Command | Skill |
|
|
73
|
-
| ----- | ------------- |
|
|
73
|
+
| ----- | ------------- | ------------------ | ----- |
|
|
74
74
|
|
|
75
|
-
##
|
|
75
|
+
## Execution order
|
|
76
76
|
|
|
77
|
-
##
|
|
77
|
+
## Items not covered and reasons
|
|
78
78
|
```
|
|
79
79
|
|
|
80
|
-
7.
|
|
80
|
+
7. If the user requires to continue to implement the test, it will be diverted to the corresponding special skill or agent according to the matrix.
|
|
81
81
|
|
|
82
|
-
##
|
|
82
|
+
## Mixed paths
|
|
83
83
|
|
|
84
|
-
|
|
84
|
+
When users need to implement plans and test strategies at the same time:
|
|
85
85
|
|
|
86
|
-
1.
|
|
87
|
-
2.
|
|
88
|
-
3.
|
|
86
|
+
1. First output the complete implementation plan.
|
|
87
|
+
2. Add a "Testing Strategy" chapter to the end of the implementation plan to list the testing levels and verification access controls corresponding to key risks.
|
|
88
|
+
3. Additional `test-plan-*` independent reports will only be generated if the user explicitly requests complete coverage matrix.
|
|
89
89
|
|
|
90
|
-
##
|
|
90
|
+
## Boundary
|
|
91
91
|
|
|
92
|
-
-
|
|
93
|
-
-
|
|
94
|
-
-
|
|
92
|
+
- Do not write code directly in the planning stage unless the user explicitly requests to continue implementation.
|
|
93
|
+
- It is not required by default to complete the complete test pyramid, and coverage is only selected based on risk and maintenance cost.
|
|
94
|
+
- Not responsible for large-scale writing of test files; when users clearly require implementation, they will be diverted to special testing skills.
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: fec-refactor-clean
|
|
3
|
-
description:
|
|
3
|
+
description: Identify and clean up front-end dead code, unused exports, outdated components, styles and dependencies under validation protection.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
Press `fec-refactor-clean` to perform a safe clean. Complex cleanup can be delegated to **`fec-refactor-cleaner`**.
|
|
7
7
|
|
|
8
|
-
##
|
|
8
|
+
## Execution steps
|
|
9
9
|
|
|
10
|
-
1.
|
|
11
|
-
2.
|
|
12
|
-
3.
|
|
13
|
-
4.
|
|
14
|
-
5.
|
|
15
|
-
6.
|
|
10
|
+
1. Establish the current verification baseline.
|
|
11
|
+
2. Use existing tools in the warehouse or `rg` to collect unused candidates.
|
|
12
|
+
3. Check dynamic references, routing, barrel export, Storybook, test and style entry.
|
|
13
|
+
4. Divide the candidates into SAFE, CAUTION, and DANGER.
|
|
14
|
+
5. Only clean SAFE items; other items output suggestions and evidence.
|
|
15
|
+
6. Rerun the affected verification commands after each batch cleanup.
|
|
16
16
|
|
|
17
|
-
##
|
|
17
|
+
## Output requirements
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
Save the clean report to `reports/refactor-clean-YYYY-MM-DD-HHmmss.md`.
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: fec-refactor-plan
|
|
3
|
+
description: Build an ordered behavior-preserving frontend refactoring plan from evidence without editing business code.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
This command is **PLAN ONLY**. Do not edit business code.
|
|
7
|
+
|
|
8
|
+
## Workflow
|
|
9
|
+
|
|
10
|
+
1. Validate current project facts and any supplied smell diagnosis.
|
|
11
|
+
2. Record the observable behavior contract and available verification baseline.
|
|
12
|
+
3. Select the smallest candidate technique whose preconditions fit each diagnosed cause.
|
|
13
|
+
4. Order only necessary prerequisites and keep each step independently verifiable.
|
|
14
|
+
5. Classify every step `SAFE`, `CAUTION`, or `DANGER`.
|
|
15
|
+
6. For every step include: target, technique, intent, dependency/order reason, preconditions, risk, expected files/functions, expected observable behavior change (`NONE`), verification command/method, and rollback boundary.
|
|
16
|
+
7. Include a Diff Budget and stop conditions.
|
|
17
|
+
8. Save the result to `reports/refactoring/plan-YYYY-MM-DD-HHmmss.md`.
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: fec-refactor
|
|
3
|
+
description: Execute controlled behavior-preserving frontend refactoring with small steps, verification, rollback, and proof reporting.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
Execute a pure structural refactoring under a recorded behavior contract.
|
|
7
|
+
|
|
8
|
+
## Workflow
|
|
9
|
+
|
|
10
|
+
1. Classify the request and redirect feature work, unknown bugs, migrations, dead-code cleanup, or general review when they own the task.
|
|
11
|
+
2. Discover project facts and establish the existing validation baseline.
|
|
12
|
+
3. If no plan is supplied, diagnose evidence and build an ordered plan first. If a plan is supplied, revalidate it against the current code.
|
|
13
|
+
4. Record risk and Diff Budget. `DANGER` stops for explicit approval unless the specific compatibility plan is already authorized.
|
|
14
|
+
5. Execute **one refactoring step** with one primary structural intent.
|
|
15
|
+
6. Immediately run the narrowest sufficient verification and inspect actual scope.
|
|
16
|
+
7. If the step causes a new regression, revert that step before attempting a smaller or different transformation.
|
|
17
|
+
8. Repeat only after the current step is green and within budget.
|
|
18
|
+
9. Run final broad validation and save `reports/refactoring/refactoring-YYYY-MM-DD-HHmmss.md` with a `PASS`, `PARTIAL`, or `NOT PROVEN` behavior-preservation verdict.
|