@zeyue0329/xiaoma-cli 1.0.49 → 6.0.0-alpha.14
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/README.md +0 -2
- package/custom/src/agents/commit-poet/commit-poet.agent.yaml +129 -0
- package/custom/src/agents/commit-poet/installation-guide.md +36 -0
- package/custom/src/agents/toolsmith/installation-guide.md +36 -0
- package/custom/src/agents/toolsmith/toolsmith-sidecar/instructions.md +70 -0
- package/custom/src/agents/toolsmith/toolsmith-sidecar/knowledge/bundlers.md +111 -0
- package/custom/src/agents/toolsmith/toolsmith-sidecar/knowledge/deploy.md +70 -0
- package/custom/src/agents/toolsmith/toolsmith-sidecar/knowledge/docs.md +114 -0
- package/custom/src/agents/toolsmith/toolsmith-sidecar/knowledge/installers.md +134 -0
- package/custom/src/agents/toolsmith/toolsmith-sidecar/knowledge/modules.md +160 -0
- package/custom/src/agents/toolsmith/toolsmith-sidecar/knowledge/tests.md +103 -0
- package/custom/src/agents/toolsmith/toolsmith-sidecar/memories.md +17 -0
- package/custom/src/agents/toolsmith/toolsmith.agent.yaml +108 -0
- package/docs/BUNDLE_DISTRIBUTION_SETUP.md +95 -0
- package/docs/agent-customization-guide.md +208 -0
- package/docs/custom-agent-installation.md +183 -0
- package/docs/document-sharding-guide.md +449 -0
- package/docs/ide-info/auggie.md +31 -0
- package/docs/ide-info/claude-code.md +25 -0
- package/docs/ide-info/cline.md +31 -0
- package/docs/ide-info/codex.md +21 -0
- package/docs/ide-info/crush.md +30 -0
- package/docs/ide-info/cursor.md +25 -0
- package/docs/ide-info/gemini.md +25 -0
- package/docs/ide-info/github-copilot.md +26 -0
- package/docs/ide-info/iflow.md +33 -0
- package/docs/ide-info/kilo.md +24 -0
- package/docs/ide-info/opencode.md +24 -0
- package/docs/ide-info/qwen.md +25 -0
- package/docs/ide-info/roo.md +27 -0
- package/docs/ide-info/rovo-dev.md +388 -0
- package/docs/ide-info/trae.md +25 -0
- package/docs/ide-info/windsurf.md +22 -0
- package/docs/index.md +144 -0
- package/docs/installers-bundlers/ide-injections.md +186 -0
- package/docs/installers-bundlers/installers-modules-platforms-reference.md +379 -0
- package/docs/rag/rag.md +812 -0
- package/docs/v4-to-v6-upgrade.md +220 -0
- package/docs/v6-open-items.md +17 -0
- package/docs/web-bundles-gemini-gpt-guide.md +468 -0
- package/eslint.config.mjs +133 -0
- package/package.json +41 -51
- package/prettier.config.mjs +32 -0
- package/src/core/_module-installer/install-config.yaml +29 -0
- package/src/core/_module-installer/installer.js +60 -0
- package/src/core/agents/xiaoma-master.agent.yaml +39 -0
- package/src/core/agents/xiaoma-web-orchestrator.agent.xml +113 -0
- package/src/core/resources/excalidraw/README.md +160 -0
- package/src/core/resources/excalidraw/excalidraw-helpers.md +127 -0
- package/src/core/resources/excalidraw/library-loader.md +50 -0
- package/src/core/resources/excalidraw/validate-json-instructions.md +79 -0
- package/src/core/tasks/advanced-elicitation-methods.csv +51 -0
- package/src/core/tasks/advanced-elicitation.xml +116 -0
- package/src/core/tasks/index-docs.xml +65 -0
- package/src/core/tasks/validate-workflow.xml +89 -0
- package/src/core/tasks/workflow.xml +235 -0
- package/src/core/tools/shard-doc.xml +109 -0
- package/src/core/workflows/brainstorming/brain-methods.csv +62 -0
- package/src/core/workflows/brainstorming/steps/step-01-session-setup.md +196 -0
- package/src/core/workflows/brainstorming/steps/step-01b-continue.md +121 -0
- package/src/core/workflows/brainstorming/steps/step-02a-user-selected.md +224 -0
- package/src/core/workflows/brainstorming/steps/step-02b-ai-recommended.md +236 -0
- package/src/core/workflows/brainstorming/steps/step-02c-random-selection.md +208 -0
- package/src/core/workflows/brainstorming/steps/step-02d-progressive-flow.md +263 -0
- package/src/core/workflows/brainstorming/steps/step-03-technique-execution.md +339 -0
- package/src/core/workflows/brainstorming/steps/step-04-idea-organization.md +302 -0
- package/src/core/workflows/brainstorming/template.md +15 -0
- package/src/core/workflows/brainstorming/workflow.md +51 -0
- package/src/core/workflows/party-mode/steps/step-01-agent-loading.md +138 -0
- package/src/core/workflows/party-mode/steps/step-02-discussion-orchestration.md +203 -0
- package/src/core/workflows/party-mode/steps/step-03-graceful-exit.md +159 -0
- package/src/core/workflows/party-mode/workflow.md +207 -0
- package/src/modules/cis/_module-installer/install-config.yaml +16 -0
- package/src/modules/cis/_module-installer/installer.js +92 -0
- package/src/modules/cis/agents/README.md +104 -0
- package/src/modules/cis/agents/brainstorming-coach.agent.yaml +29 -0
- package/src/modules/cis/agents/creative-problem-solver.agent.yaml +29 -0
- package/src/modules/cis/agents/design-thinking-coach.agent.yaml +29 -0
- package/src/modules/cis/agents/innovation-strategist.agent.yaml +29 -0
- package/src/modules/cis/agents/presentation-master.agent.yaml +61 -0
- package/src/modules/cis/agents/storyteller.agent.yaml +29 -0
- package/src/modules/cis/readme.md +153 -0
- package/src/modules/cis/teams/creative-squad.yaml +7 -0
- package/src/modules/cis/teams/default-party.csv +12 -0
- package/src/modules/cis/workflows/README.md +139 -0
- package/src/modules/cis/workflows/design-thinking/README.md +56 -0
- package/src/modules/cis/workflows/design-thinking/design-methods.csv +31 -0
- package/src/modules/cis/workflows/design-thinking/instructions.md +202 -0
- package/src/modules/cis/workflows/design-thinking/template.md +111 -0
- package/src/modules/cis/workflows/design-thinking/workflow.yaml +38 -0
- package/src/modules/cis/workflows/innovation-strategy/README.md +56 -0
- package/src/modules/cis/workflows/innovation-strategy/innovation-frameworks.csv +31 -0
- package/src/modules/cis/workflows/innovation-strategy/instructions.md +276 -0
- package/src/modules/cis/workflows/innovation-strategy/template.md +189 -0
- package/src/modules/cis/workflows/innovation-strategy/workflow.yaml +38 -0
- package/src/modules/cis/workflows/problem-solving/README.md +56 -0
- package/src/modules/cis/workflows/problem-solving/instructions.md +252 -0
- package/src/modules/cis/workflows/problem-solving/solving-methods.csv +31 -0
- package/src/modules/cis/workflows/problem-solving/template.md +165 -0
- package/src/modules/cis/workflows/problem-solving/workflow.yaml +38 -0
- package/src/modules/cis/workflows/storytelling/README.md +58 -0
- package/src/modules/cis/workflows/storytelling/instructions.md +293 -0
- package/src/modules/cis/workflows/storytelling/story-types.csv +26 -0
- package/src/modules/cis/workflows/storytelling/template.md +113 -0
- package/src/modules/cis/workflows/storytelling/workflow.yaml +38 -0
- package/src/modules/xmb/README.md +261 -0
- package/src/modules/xmb/_module-installer/install-config.yaml +28 -0
- package/src/modules/xmb/agents/xiaoma-builder.agent.yaml +71 -0
- package/src/modules/xmb/docs/agents/agent-compilation.md +340 -0
- package/src/modules/xmb/docs/agents/agent-menu-patterns.md +524 -0
- package/src/modules/xmb/docs/agents/expert-agent-architecture.md +364 -0
- package/src/modules/xmb/docs/agents/index.md +55 -0
- package/src/modules/xmb/docs/agents/kb.csv +0 -0
- package/src/modules/xmb/docs/agents/module-agent-architecture.md +367 -0
- package/src/modules/xmb/docs/agents/simple-agent-architecture.md +288 -0
- package/src/modules/xmb/docs/agents/understanding-agent-types.md +184 -0
- package/src/modules/xmb/docs/workflows/architecture.md +220 -0
- package/src/modules/xmb/docs/workflows/common-workflow-tools.csv +19 -0
- package/src/modules/xmb/docs/workflows/csv-data-file-standards.md +206 -0
- package/src/modules/xmb/docs/workflows/index.md +45 -0
- package/src/modules/xmb/docs/workflows/intent-vs-prescriptive-spectrum.md +220 -0
- package/src/modules/xmb/docs/workflows/kb.csv +0 -0
- package/src/modules/xmb/docs/workflows/step-template.md +283 -0
- package/src/modules/xmb/docs/workflows/terms.md +97 -0
- package/src/modules/xmb/docs/workflows/workflow-template.md +152 -0
- package/src/modules/xmb/reference/agents/expert-examples/journal-keeper/README.md +242 -0
- package/src/modules/xmb/reference/agents/expert-examples/journal-keeper/journal-keeper-sidecar/breakthroughs.md +24 -0
- package/src/modules/xmb/reference/agents/expert-examples/journal-keeper/journal-keeper-sidecar/instructions.md +108 -0
- package/src/modules/xmb/reference/agents/expert-examples/journal-keeper/journal-keeper-sidecar/memories.md +46 -0
- package/src/modules/xmb/reference/agents/expert-examples/journal-keeper/journal-keeper-sidecar/mood-patterns.md +39 -0
- package/src/modules/xmb/reference/agents/expert-examples/journal-keeper/journal-keeper.agent.yaml +152 -0
- package/src/modules/xmb/reference/agents/module-examples/README.md +50 -0
- package/src/modules/xmb/reference/agents/module-examples/security-engineer.agent.yaml +53 -0
- package/src/modules/xmb/reference/agents/module-examples/trend-analyst.agent.yaml +57 -0
- package/src/modules/xmb/reference/agents/simple-examples/README.md +223 -0
- package/src/modules/xmb/reference/agents/simple-examples/commit-poet.agent.yaml +126 -0
- package/src/modules/xmb/reference/readme.md +3 -0
- package/src/modules/xmb/reference/workflows/meal-prep-nutrition/data/dietary-restrictions.csv +18 -0
- package/src/modules/xmb/reference/workflows/meal-prep-nutrition/data/macro-calculator.csv +16 -0
- package/src/modules/xmb/reference/workflows/meal-prep-nutrition/data/recipe-database.csv +28 -0
- package/src/modules/xmb/reference/workflows/meal-prep-nutrition/steps/step-01-init.md +177 -0
- package/src/modules/xmb/reference/workflows/meal-prep-nutrition/steps/step-01b-continue.md +150 -0
- package/src/modules/xmb/reference/workflows/meal-prep-nutrition/steps/step-02-profile.md +164 -0
- package/src/modules/xmb/reference/workflows/meal-prep-nutrition/steps/step-03-assessment.md +152 -0
- package/src/modules/xmb/reference/workflows/meal-prep-nutrition/steps/step-04-strategy.md +182 -0
- package/src/modules/xmb/reference/workflows/meal-prep-nutrition/steps/step-05-shopping.md +167 -0
- package/src/modules/xmb/reference/workflows/meal-prep-nutrition/steps/step-06-prep-schedule.md +194 -0
- package/src/modules/xmb/reference/workflows/meal-prep-nutrition/templates/assessment-section.md +25 -0
- package/src/modules/xmb/reference/workflows/meal-prep-nutrition/templates/nutrition-plan.md +68 -0
- package/src/modules/xmb/reference/workflows/meal-prep-nutrition/templates/prep-schedule-section.md +29 -0
- package/src/modules/xmb/reference/workflows/meal-prep-nutrition/templates/profile-section.md +47 -0
- package/src/modules/xmb/reference/workflows/meal-prep-nutrition/templates/shopping-section.md +37 -0
- package/src/modules/xmb/reference/workflows/meal-prep-nutrition/templates/strategy-section.md +18 -0
- package/src/modules/xmb/reference/workflows/meal-prep-nutrition/workflow.md +58 -0
- package/src/modules/xmb/workflows/create-agent/data/agent-validation-checklist.md +174 -0
- package/src/modules/xmb/workflows/create-agent/data/brainstorm-context.md +153 -0
- package/src/modules/xmb/workflows/create-agent/data/communication-presets.csv +61 -0
- package/src/modules/xmb/workflows/create-agent/data/info-and-installation-guide.md +17 -0
- package/src/modules/xmb/workflows/create-agent/data/reference/README.md +3 -0
- package/src/modules/xmb/workflows/create-agent/data/reference/agents/expert-examples/journal-keeper/README.md +242 -0
- package/src/modules/xmb/workflows/create-agent/data/reference/agents/expert-examples/journal-keeper/journal-keeper-sidecar/breakthroughs.md +24 -0
- package/src/modules/xmb/workflows/create-agent/data/reference/agents/expert-examples/journal-keeper/journal-keeper-sidecar/instructions.md +108 -0
- package/src/modules/xmb/workflows/create-agent/data/reference/agents/expert-examples/journal-keeper/journal-keeper-sidecar/memories.md +46 -0
- package/src/modules/xmb/workflows/create-agent/data/reference/agents/expert-examples/journal-keeper/journal-keeper-sidecar/mood-patterns.md +39 -0
- package/src/modules/xmb/workflows/create-agent/data/reference/agents/expert-examples/journal-keeper/journal-keeper.agent.yaml +152 -0
- package/src/modules/xmb/workflows/create-agent/data/reference/agents/module-examples/README.md +50 -0
- package/src/modules/xmb/workflows/create-agent/data/reference/agents/module-examples/security-engineer.agent.yaml +53 -0
- package/src/modules/xmb/workflows/create-agent/data/reference/agents/module-examples/trend-analyst.agent.yaml +57 -0
- package/src/modules/xmb/workflows/create-agent/data/reference/agents/simple-examples/README.md +223 -0
- package/src/modules/xmb/workflows/create-agent/data/reference/agents/simple-examples/commit-poet.agent.yaml +126 -0
- package/src/modules/xmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/data/dietary-restrictions.csv +18 -0
- package/src/modules/xmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/data/macro-calculator.csv +16 -0
- package/src/modules/xmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/data/recipe-database.csv +28 -0
- package/src/modules/xmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/steps/step-01-init.md +177 -0
- package/src/modules/xmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/steps/step-01b-continue.md +150 -0
- package/src/modules/xmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/steps/step-02-profile.md +164 -0
- package/src/modules/xmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/steps/step-03-assessment.md +152 -0
- package/src/modules/xmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/steps/step-04-strategy.md +182 -0
- package/src/modules/xmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/steps/step-05-shopping.md +167 -0
- package/src/modules/xmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/steps/step-06-prep-schedule.md +194 -0
- package/src/modules/xmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/templates/assessment-section.md +25 -0
- package/src/modules/xmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/templates/nutrition-plan.md +68 -0
- package/src/modules/xmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/templates/prep-schedule-section.md +29 -0
- package/src/modules/xmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/templates/profile-section.md +47 -0
- package/src/modules/xmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/templates/shopping-section.md +37 -0
- package/src/modules/xmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/templates/strategy-section.md +18 -0
- package/src/modules/xmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/workflow.md +58 -0
- package/src/modules/xmb/workflows/create-agent/data/validation-complete.md +305 -0
- package/src/modules/xmb/workflows/create-agent/steps/step-01-brainstorm.md +145 -0
- package/src/modules/xmb/workflows/create-agent/steps/step-02-discover.md +210 -0
- package/src/modules/xmb/workflows/create-agent/steps/step-03-persona.md +260 -0
- package/src/modules/xmb/workflows/create-agent/steps/step-04-commands.md +237 -0
- package/src/modules/xmb/workflows/create-agent/steps/step-05-name.md +231 -0
- package/src/modules/xmb/workflows/create-agent/steps/step-06-build.md +224 -0
- package/src/modules/xmb/workflows/create-agent/steps/step-07-validate.md +234 -0
- package/src/modules/xmb/workflows/create-agent/steps/step-08-setup.md +179 -0
- package/src/modules/xmb/workflows/create-agent/steps/step-09-customize.md +197 -0
- package/src/modules/xmb/workflows/create-agent/steps/step-10-build-tools.md +180 -0
- package/src/modules/xmb/workflows/create-agent/steps/step-11-celebrate.md +222 -0
- package/src/modules/xmb/workflows/create-agent/templates/agent_commands.md +21 -0
- package/src/modules/xmb/workflows/create-agent/templates/agent_persona.md +25 -0
- package/src/modules/xmb/workflows/create-agent/templates/agent_purpose_and_type.md +23 -0
- package/src/modules/xmb/workflows/create-agent/workflow.md +91 -0
- package/src/modules/xmb/workflows/create-workflow/steps/step-01-init.md +168 -0
- package/src/modules/xmb/workflows/create-workflow/steps/step-02-gather.md +233 -0
- package/src/modules/xmb/workflows/create-workflow/steps/step-03-tools-overview.md +127 -0
- package/src/modules/xmb/workflows/create-workflow/steps/step-04-core-tools.md +145 -0
- package/src/modules/xmb/workflows/create-workflow/steps/step-05-memory-requirements.md +136 -0
- package/src/modules/xmb/workflows/create-workflow/steps/step-06-external-tools.md +154 -0
- package/src/modules/xmb/workflows/create-workflow/steps/step-07-installation-guidance.md +159 -0
- package/src/modules/xmb/workflows/create-workflow/steps/step-08-tools-summary.md +167 -0
- package/src/modules/xmb/workflows/create-workflow/steps/step-09-design.md +239 -0
- package/src/modules/xmb/workflows/create-workflow/steps/step-10-plan-review.md +215 -0
- package/src/modules/xmb/workflows/create-workflow/steps/step-11-build.md +262 -0
- package/src/modules/xmb/workflows/create-workflow/steps/step-12-review.md +270 -0
- package/src/modules/xmb/workflows/create-workflow/templates/build-summary.md +36 -0
- package/src/modules/xmb/workflows/create-workflow/templates/completion-section.md +39 -0
- package/src/modules/xmb/workflows/create-workflow/templates/content-template.md +21 -0
- package/src/modules/xmb/workflows/create-workflow/templates/design-section.md +53 -0
- package/src/modules/xmb/workflows/create-workflow/templates/project-info.md +18 -0
- package/src/modules/xmb/workflows/create-workflow/templates/requirements-section.md +47 -0
- package/src/modules/xmb/workflows/create-workflow/templates/review-section.md +56 -0
- package/src/modules/xmb/workflows/create-workflow/templates/step-file.md +139 -0
- package/src/modules/xmb/workflows/create-workflow/templates/workflow-plan.md +54 -0
- package/src/modules/xmb/workflows/create-workflow/templates/workflow.md +58 -0
- package/src/modules/xmb/workflows/create-workflow/workflow.md +58 -0
- package/src/modules/xmb/workflows/edit-agent/steps/step-01-discover-intent.md +134 -0
- package/src/modules/xmb/workflows/edit-agent/steps/step-02-analyze-agent.md +202 -0
- package/src/modules/xmb/workflows/edit-agent/steps/step-03-propose-changes.md +157 -0
- package/src/modules/xmb/workflows/edit-agent/steps/step-04-apply-changes.md +150 -0
- package/src/modules/xmb/workflows/edit-agent/steps/step-05-validate.md +150 -0
- package/src/modules/xmb/workflows/edit-agent/workflow.md +58 -0
- package/src/modules/xmb/workflows/edit-workflow/steps/step-01-analyze.md +221 -0
- package/src/modules/xmb/workflows/edit-workflow/steps/step-02-discover.md +253 -0
- package/src/modules/xmb/workflows/edit-workflow/steps/step-03-improve.md +217 -0
- package/src/modules/xmb/workflows/edit-workflow/steps/step-04-validate.md +193 -0
- package/src/modules/xmb/workflows/edit-workflow/steps/step-05-compliance-check.md +245 -0
- package/src/modules/xmb/workflows/edit-workflow/templates/completion-summary.md +75 -0
- package/src/modules/xmb/workflows/edit-workflow/templates/improvement-goals.md +68 -0
- package/src/modules/xmb/workflows/edit-workflow/templates/improvement-log.md +40 -0
- package/src/modules/xmb/workflows/edit-workflow/templates/validation-results.md +51 -0
- package/src/modules/xmb/workflows/edit-workflow/templates/workflow-analysis.md +56 -0
- package/src/modules/xmb/workflows/edit-workflow/workflow.md +58 -0
- package/src/modules/xmb/workflows/workflow-compliance-check/steps/step-01-validate-goal.md +152 -0
- package/src/modules/xmb/workflows/workflow-compliance-check/steps/step-02-workflow-validation.md +243 -0
- package/src/modules/xmb/workflows/workflow-compliance-check/steps/step-03-step-validation.md +274 -0
- package/src/modules/xmb/workflows/workflow-compliance-check/steps/step-04-file-validation.md +295 -0
- package/src/modules/xmb/workflows/workflow-compliance-check/steps/step-05-intent-spectrum-validation.md +264 -0
- package/src/modules/xmb/workflows/workflow-compliance-check/steps/step-06-web-subprocess-validation.md +360 -0
- package/src/modules/xmb/workflows/workflow-compliance-check/steps/step-07-holistic-analysis.md +258 -0
- package/src/modules/xmb/workflows/workflow-compliance-check/steps/step-08-generate-report.md +301 -0
- package/src/modules/xmb/workflows/workflow-compliance-check/templates/compliance-report.md +140 -0
- package/src/modules/xmb/workflows/workflow-compliance-check/workflow.md +58 -0
- package/src/modules/xmb/workflows-legacy/create-module/README.md +229 -0
- package/src/modules/xmb/workflows-legacy/create-module/brainstorm-context.md +137 -0
- package/src/modules/xmb/workflows-legacy/create-module/checklist.md +235 -0
- package/src/modules/xmb/workflows-legacy/create-module/installer-templates/install-config.yaml +92 -0
- package/src/modules/xmb/workflows-legacy/create-module/installer-templates/installer.js +231 -0
- package/src/modules/xmb/workflows-legacy/create-module/instructions.md +577 -0
- package/src/modules/xmb/workflows-legacy/create-module/module-structure.md +400 -0
- package/src/modules/xmb/workflows-legacy/create-module/workflow.yaml +52 -0
- package/src/modules/xmb/workflows-legacy/edit-module/README.md +187 -0
- package/src/modules/xmb/workflows-legacy/edit-module/checklist.md +165 -0
- package/src/modules/xmb/workflows-legacy/edit-module/instructions.md +341 -0
- package/src/modules/xmb/workflows-legacy/edit-module/workflow.yaml +34 -0
- package/src/modules/xmb/workflows-legacy/module-brief/README.md +264 -0
- package/src/modules/xmb/workflows-legacy/module-brief/checklist.md +116 -0
- package/src/modules/xmb/workflows-legacy/module-brief/instructions.md +268 -0
- package/src/modules/xmb/workflows-legacy/module-brief/template.md +275 -0
- package/src/modules/xmb/workflows-legacy/module-brief/workflow.yaml +36 -0
- package/src/modules/xmc/README.md +128 -0
- package/src/modules/xmc/_module-installer/install-config.yaml +53 -0
- package/src/modules/xmc/_module-installer/installer.js +131 -0
- package/src/modules/xmc/_module-installer/platform-specifics/claude-code.js +35 -0
- package/src/modules/xmc/_module-installer/platform-specifics/windsurf.js +32 -0
- package/src/modules/xmc/agents/analyst.agent.yaml +49 -0
- package/src/modules/xmc/agents/architect.agent.yaml +52 -0
- package/src/modules/xmc/agents/auto-iteration-orchestrator.agent.yaml +115 -0
- package/src/modules/xmc/agents/dev.agent.yaml +44 -0
- package/src/modules/xmc/agents/pm.agent.yaml +50 -0
- package/src/modules/xmc/agents/quick-flow-solo-dev.agent.yaml +36 -0
- package/src/modules/xmc/agents/sm.agent.yaml +55 -0
- package/src/modules/xmc/agents/tea.agent.yaml +70 -0
- package/src/modules/xmc/agents/tech-writer.agent.yaml +67 -0
- package/src/modules/xmc/agents/ux-designer.agent.yaml +45 -0
- package/src/modules/xmc/data/README.md +29 -0
- package/src/modules/xmc/data/documentation-standards.md +262 -0
- package/src/modules/xmc/data/project-context-template.md +40 -0
- package/src/modules/xmc/docs/README.md +252 -0
- package/src/modules/xmc/docs/agents-guide.md +952 -0
- package/src/modules/xmc/docs/brownfield-guide.md +750 -0
- package/src/modules/xmc/docs/enterprise-agentic-development.md +686 -0
- package/src/modules/xmc/docs/faq.md +561 -0
- package/src/modules/xmc/docs/glossary.md +303 -0
- package/src/modules/xmc/docs/images/workflow-method-greenfield.excalidraw +5174 -0
- package/src/modules/xmc/docs/images/workflow-method-greenfield.svg +2 -0
- package/src/modules/xmc/docs/iteration-development-guide.md +752 -0
- package/src/modules/xmc/docs/party-mode.md +224 -0
- package/src/modules/xmc/docs/quick-flow-solo-dev.md +337 -0
- package/src/modules/xmc/docs/quick-start.md +367 -0
- package/src/modules/xmc/docs/scale-adaptive-system.md +618 -0
- package/src/modules/xmc/docs/test-architecture.md +462 -0
- package/src/modules/xmc/docs/workflow-architecture-reference.md +366 -0
- package/src/modules/xmc/docs/workflow-document-project-reference.md +489 -0
- package/src/modules/xmc/docs/workflows-analysis.md +266 -0
- package/src/modules/xmc/docs/workflows-implementation.md +171 -0
- package/src/modules/xmc/docs/workflows-planning.md +451 -0
- package/src/modules/xmc/docs/workflows-solutioning.md +509 -0
- package/src/modules/xmc/docs/xiaoma-quick-flow.md +528 -0
- package/src/modules/xmc/sub-modules/claude-code/config.yaml +5 -0
- package/src/modules/xmc/sub-modules/claude-code/injections.yaml +242 -0
- package/src/modules/xmc/sub-modules/claude-code/readme.md +87 -0
- package/src/modules/xmc/sub-modules/claude-code/sub-agents/bmad-analysis/api-documenter.md +102 -0
- package/src/modules/xmc/sub-modules/claude-code/sub-agents/bmad-analysis/codebase-analyzer.md +82 -0
- package/src/modules/xmc/sub-modules/claude-code/sub-agents/bmad-analysis/data-analyst.md +101 -0
- package/src/modules/xmc/sub-modules/claude-code/sub-agents/bmad-analysis/pattern-detector.md +84 -0
- package/src/modules/xmc/sub-modules/claude-code/sub-agents/bmad-planning/dependency-mapper.md +83 -0
- package/src/modules/xmc/sub-modules/claude-code/sub-agents/bmad-planning/epic-optimizer.md +81 -0
- package/src/modules/xmc/sub-modules/claude-code/sub-agents/bmad-planning/requirements-analyst.md +61 -0
- package/src/modules/xmc/sub-modules/claude-code/sub-agents/bmad-planning/technical-decisions-curator.md +168 -0
- package/src/modules/xmc/sub-modules/claude-code/sub-agents/bmad-planning/trend-spotter.md +115 -0
- package/src/modules/xmc/sub-modules/claude-code/sub-agents/bmad-planning/user-journey-mapper.md +123 -0
- package/src/modules/xmc/sub-modules/claude-code/sub-agents/bmad-planning/user-researcher.md +72 -0
- package/src/modules/xmc/sub-modules/claude-code/sub-agents/bmad-research/market-researcher.md +51 -0
- package/src/modules/xmc/sub-modules/claude-code/sub-agents/bmad-research/tech-debt-auditor.md +106 -0
- package/src/modules/xmc/sub-modules/claude-code/sub-agents/bmad-review/document-reviewer.md +102 -0
- package/src/modules/xmc/sub-modules/claude-code/sub-agents/bmad-review/technical-evaluator.md +68 -0
- package/src/modules/xmc/sub-modules/claude-code/sub-agents/bmad-review/test-coverage-analyzer.md +108 -0
- package/src/modules/xmc/teams/default-party.csv +21 -0
- package/src/modules/xmc/teams/team-fullstack.yaml +12 -0
- package/src/modules/xmc/testarch/knowledge/api-request.md +303 -0
- package/src/modules/xmc/testarch/knowledge/auth-session.md +356 -0
- package/src/modules/xmc/testarch/knowledge/burn-in.md +273 -0
- package/src/modules/xmc/testarch/knowledge/ci-burn-in.md +675 -0
- package/src/modules/xmc/testarch/knowledge/component-tdd.md +486 -0
- package/src/modules/xmc/testarch/knowledge/contract-testing.md +957 -0
- package/src/modules/xmc/testarch/knowledge/data-factories.md +500 -0
- package/src/modules/xmc/testarch/knowledge/email-auth.md +721 -0
- package/src/modules/xmc/testarch/knowledge/error-handling.md +725 -0
- package/src/modules/xmc/testarch/knowledge/feature-flags.md +750 -0
- package/src/modules/xmc/testarch/knowledge/file-utils.md +260 -0
- package/src/modules/xmc/testarch/knowledge/fixture-architecture.md +401 -0
- package/src/modules/xmc/testarch/knowledge/fixtures-composition.md +382 -0
- package/src/modules/xmc/testarch/knowledge/intercept-network-call.md +280 -0
- package/src/modules/xmc/testarch/knowledge/log.md +294 -0
- package/src/modules/xmc/testarch/knowledge/network-error-monitor.md +272 -0
- package/src/modules/xmc/testarch/knowledge/network-first.md +486 -0
- package/src/modules/xmc/testarch/knowledge/network-recorder.md +265 -0
- package/src/modules/xmc/testarch/knowledge/nfr-criteria.md +670 -0
- package/src/modules/xmc/testarch/knowledge/overview.md +284 -0
- package/src/modules/xmc/testarch/knowledge/playwright-config.md +730 -0
- package/src/modules/xmc/testarch/knowledge/probability-impact.md +601 -0
- package/src/modules/xmc/testarch/knowledge/recurse.md +296 -0
- package/src/modules/xmc/testarch/knowledge/risk-governance.md +615 -0
- package/src/modules/xmc/testarch/knowledge/selective-testing.md +732 -0
- package/src/modules/xmc/testarch/knowledge/selector-resilience.md +527 -0
- package/src/modules/xmc/testarch/knowledge/test-healing-patterns.md +644 -0
- package/src/modules/xmc/testarch/knowledge/test-levels-framework.md +473 -0
- package/src/modules/xmc/testarch/knowledge/test-priorities-matrix.md +373 -0
- package/src/modules/xmc/testarch/knowledge/test-quality.md +664 -0
- package/src/modules/xmc/testarch/knowledge/timing-debugging.md +372 -0
- package/src/modules/xmc/testarch/knowledge/visual-debugging.md +524 -0
- package/src/modules/xmc/testarch/tea-index.csv +33 -0
- package/src/modules/xmc/workflows/1-analysis/product-brief/product-brief.template.md +8 -0
- package/src/modules/xmc/workflows/1-analysis/product-brief/steps/step-01-init.md +192 -0
- package/src/modules/xmc/workflows/1-analysis/product-brief/steps/step-01b-continue.md +167 -0
- package/src/modules/xmc/workflows/1-analysis/product-brief/steps/step-02-vision.md +203 -0
- package/src/modules/xmc/workflows/1-analysis/product-brief/steps/step-03-users.md +206 -0
- package/src/modules/xmc/workflows/1-analysis/product-brief/steps/step-04-metrics.md +209 -0
- package/src/modules/xmc/workflows/1-analysis/product-brief/steps/step-05-scope.md +223 -0
- package/src/modules/xmc/workflows/1-analysis/product-brief/steps/step-06-complete.md +199 -0
- package/src/modules/xmc/workflows/1-analysis/product-brief/workflow.md +58 -0
- package/src/modules/xmc/workflows/1-analysis/research/domain-steps/step-01-init.md +136 -0
- package/src/modules/xmc/workflows/1-analysis/research/domain-steps/step-02-domain-analysis.md +228 -0
- package/src/modules/xmc/workflows/1-analysis/research/domain-steps/step-03-competitive-landscape.md +237 -0
- package/src/modules/xmc/workflows/1-analysis/research/domain-steps/step-04-regulatory-focus.md +205 -0
- package/src/modules/xmc/workflows/1-analysis/research/domain-steps/step-05-technical-trends.md +233 -0
- package/src/modules/xmc/workflows/1-analysis/research/domain-steps/step-06-research-synthesis.md +443 -0
- package/src/modules/xmc/workflows/1-analysis/research/market-steps/step-01-init.md +182 -0
- package/src/modules/xmc/workflows/1-analysis/research/market-steps/step-02-customer-behavior.md +235 -0
- package/src/modules/xmc/workflows/1-analysis/research/market-steps/step-02-customer-insights.md +198 -0
- package/src/modules/xmc/workflows/1-analysis/research/market-steps/step-03-customer-pain-points.md +247 -0
- package/src/modules/xmc/workflows/1-analysis/research/market-steps/step-04-customer-decisions.md +257 -0
- package/src/modules/xmc/workflows/1-analysis/research/market-steps/step-05-competitive-analysis.md +175 -0
- package/src/modules/xmc/workflows/1-analysis/research/market-steps/step-06-research-completion.md +475 -0
- package/src/modules/xmc/workflows/1-analysis/research/research.template.md +16 -0
- package/src/modules/xmc/workflows/1-analysis/research/technical-steps/step-01-init.md +136 -0
- package/src/modules/xmc/workflows/1-analysis/research/technical-steps/step-02-technical-overview.md +237 -0
- package/src/modules/xmc/workflows/1-analysis/research/technical-steps/step-03-integration-patterns.md +246 -0
- package/src/modules/xmc/workflows/1-analysis/research/technical-steps/step-04-architectural-patterns.md +200 -0
- package/src/modules/xmc/workflows/1-analysis/research/technical-steps/step-05-implementation-research.md +237 -0
- package/src/modules/xmc/workflows/1-analysis/research/technical-steps/step-06-research-synthesis.md +486 -0
- package/src/modules/xmc/workflows/1-analysis/research/workflow.md +198 -0
- package/src/modules/xmc/workflows/2-plan-workflows/create-ux-design/steps/step-01-init.md +159 -0
- package/src/modules/xmc/workflows/2-plan-workflows/create-ux-design/steps/step-01b-continue.md +126 -0
- package/src/modules/xmc/workflows/2-plan-workflows/create-ux-design/steps/step-02-discovery.md +209 -0
- package/src/modules/xmc/workflows/2-plan-workflows/create-ux-design/steps/step-03-core-experience.md +215 -0
- package/src/modules/xmc/workflows/2-plan-workflows/create-ux-design/steps/step-04-emotional-response.md +218 -0
- package/src/modules/xmc/workflows/2-plan-workflows/create-ux-design/steps/step-05-inspiration.md +233 -0
- package/src/modules/xmc/workflows/2-plan-workflows/create-ux-design/steps/step-06-design-system.md +251 -0
- package/src/modules/xmc/workflows/2-plan-workflows/create-ux-design/steps/step-07-defining-experience.md +253 -0
- package/src/modules/xmc/workflows/2-plan-workflows/create-ux-design/steps/step-08-visual-foundation.md +223 -0
- package/src/modules/xmc/workflows/2-plan-workflows/create-ux-design/steps/step-09-design-directions.md +223 -0
- package/src/modules/xmc/workflows/2-plan-workflows/create-ux-design/steps/step-10-user-journeys.md +240 -0
- package/src/modules/xmc/workflows/2-plan-workflows/create-ux-design/steps/step-11-component-strategy.md +247 -0
- package/src/modules/xmc/workflows/2-plan-workflows/create-ux-design/steps/step-12-ux-patterns.md +236 -0
- package/src/modules/xmc/workflows/2-plan-workflows/create-ux-design/steps/step-13-responsive-accessibility.md +263 -0
- package/src/modules/xmc/workflows/2-plan-workflows/create-ux-design/steps/step-14-complete.md +226 -0
- package/src/modules/xmc/workflows/2-plan-workflows/create-ux-design/ux-design-template.md +13 -0
- package/src/modules/xmc/workflows/2-plan-workflows/create-ux-design/workflow.md +53 -0
- package/src/modules/xmc/workflows/2-plan-workflows/prd/domain-complexity.csv +13 -0
- package/src/modules/xmc/workflows/2-plan-workflows/prd/prd-template.md +9 -0
- package/src/modules/xmc/workflows/2-plan-workflows/prd/project-types.csv +11 -0
- package/src/modules/xmc/workflows/2-plan-workflows/prd/steps/step-01-init.md +161 -0
- package/src/modules/xmc/workflows/2-plan-workflows/prd/steps/step-01b-continue.md +123 -0
- package/src/modules/xmc/workflows/2-plan-workflows/prd/steps/step-02-discovery.md +275 -0
- package/src/modules/xmc/workflows/2-plan-workflows/prd/steps/step-03-success.md +271 -0
- package/src/modules/xmc/workflows/2-plan-workflows/prd/steps/step-04-journeys.md +272 -0
- package/src/modules/xmc/workflows/2-plan-workflows/prd/steps/step-05-domain.md +249 -0
- package/src/modules/xmc/workflows/2-plan-workflows/prd/steps/step-06-innovation.md +240 -0
- package/src/modules/xmc/workflows/2-plan-workflows/prd/steps/step-07-project-type.md +236 -0
- package/src/modules/xmc/workflows/2-plan-workflows/prd/steps/step-08-scoping.md +280 -0
- package/src/modules/xmc/workflows/2-plan-workflows/prd/steps/step-09-functional.md +251 -0
- package/src/modules/xmc/workflows/2-plan-workflows/prd/steps/step-10-nonfunctional.md +275 -0
- package/src/modules/xmc/workflows/2-plan-workflows/prd/steps/step-11-complete.md +210 -0
- package/src/modules/xmc/workflows/2-plan-workflows/prd/workflow.md +61 -0
- package/src/modules/xmc/workflows/3-solutioning/architecture/architecture-decision-template.md +13 -0
- package/src/modules/xmc/workflows/3-solutioning/architecture/data/domain-complexity.csv +11 -0
- package/src/modules/xmc/workflows/3-solutioning/architecture/data/project-types.csv +7 -0
- package/src/modules/xmc/workflows/3-solutioning/architecture/steps/step-01-init.md +194 -0
- package/src/modules/xmc/workflows/3-solutioning/architecture/steps/step-01b-continue.md +163 -0
- package/src/modules/xmc/workflows/3-solutioning/architecture/steps/step-02-context.md +223 -0
- package/src/modules/xmc/workflows/3-solutioning/architecture/steps/step-03-starter.md +330 -0
- package/src/modules/xmc/workflows/3-solutioning/architecture/steps/step-04-decisions.md +317 -0
- package/src/modules/xmc/workflows/3-solutioning/architecture/steps/step-05-patterns.md +358 -0
- package/src/modules/xmc/workflows/3-solutioning/architecture/steps/step-06-structure.md +378 -0
- package/src/modules/xmc/workflows/3-solutioning/architecture/steps/step-07-validation.md +358 -0
- package/src/modules/xmc/workflows/3-solutioning/architecture/steps/step-08-complete.md +351 -0
- package/src/modules/xmc/workflows/3-solutioning/architecture/workflow.md +48 -0
- package/src/modules/xmc/workflows/3-solutioning/create-epics-and-stories/epics-template.md +80 -0
- package/src/modules/xmc/workflows/3-solutioning/create-epics-and-stories/instructions.md +387 -0
- package/src/modules/xmc/workflows/3-solutioning/create-epics-and-stories/workflow.yaml +53 -0
- package/src/modules/xmc/workflows/3-solutioning/implementation-readiness/checklist.md +169 -0
- package/src/modules/xmc/workflows/3-solutioning/implementation-readiness/instructions.md +332 -0
- package/src/modules/xmc/workflows/3-solutioning/implementation-readiness/template.md +146 -0
- package/src/modules/xmc/workflows/3-solutioning/implementation-readiness/workflow.yaml +64 -0
- package/src/modules/xmc/workflows/4-implementation/code-review/instructions.xml +176 -0
- package/src/modules/xmc/workflows/4-implementation/code-review/workflow.yaml +54 -0
- package/src/modules/xmc/workflows/4-implementation/correct-course/checklist.md +279 -0
- package/src/modules/xmc/workflows/4-implementation/correct-course/instructions.md +206 -0
- package/src/modules/xmc/workflows/4-implementation/correct-course/workflow.yaml +58 -0
- package/src/modules/xmc/workflows/4-implementation/create-story/checklist.md +358 -0
- package/src/modules/xmc/workflows/4-implementation/create-story/instructions.xml +354 -0
- package/src/modules/xmc/workflows/4-implementation/create-story/template.md +51 -0
- package/src/modules/xmc/workflows/4-implementation/create-story/workflow.yaml +60 -0
- package/src/modules/xmc/workflows/4-implementation/dev-story/checklist.md +80 -0
- package/src/modules/xmc/workflows/4-implementation/dev-story/instructions.xml +406 -0
- package/src/modules/xmc/workflows/4-implementation/dev-story/workflow.yaml +27 -0
- package/src/modules/xmc/workflows/4-implementation/retrospective/instructions.md +1443 -0
- package/src/modules/xmc/workflows/4-implementation/retrospective/workflow.yaml +57 -0
- package/src/modules/xmc/workflows/4-implementation/sprint-planning/checklist.md +33 -0
- package/src/modules/xmc/workflows/4-implementation/sprint-planning/instructions.md +232 -0
- package/src/modules/xmc/workflows/4-implementation/sprint-planning/sprint-status-template.yaml +56 -0
- package/src/modules/xmc/workflows/4-implementation/sprint-planning/workflow.yaml +53 -0
- package/src/modules/xmc/workflows/auto-iteration/full-auto-workflow.md +692 -0
- package/src/modules/xmc/workflows/auto-iteration/knowledge-base/kb-call-points.md +595 -0
- package/src/modules/xmc/workflows/auto-iteration/knowledge-base/kb-interface.md +347 -0
- package/src/modules/xmc/workflows/auto-iteration/knowledge-base/kb-query.md +368 -0
- package/src/modules/xmc/workflows/auto-iteration/knowledge-base/kb-setup.md +343 -0
- package/src/modules/xmc/workflows/auto-iteration/phases/phase-1-analyze.md +406 -0
- package/src/modules/xmc/workflows/auto-iteration/phases/phase-2-plan.md +574 -0
- package/src/modules/xmc/workflows/auto-iteration/phases/phase-3-design.md +628 -0
- package/src/modules/xmc/workflows/auto-iteration/phases/phase-4-develop.md +622 -0
- package/src/modules/xmc/workflows/auto-iteration/phases/phase-5-test.md +538 -0
- package/src/modules/xmc/workflows/auto-iteration/resume.md +254 -0
- package/src/modules/xmc/workflows/auto-iteration/status.md +194 -0
- package/src/modules/xmc/workflows/auto-iteration/templates/auto-iteration-status.template.yaml +142 -0
- package/src/modules/xmc/workflows/bmad-quick-flow/create-tech-spec/instructions.md +115 -0
- package/src/modules/xmc/workflows/bmad-quick-flow/create-tech-spec/workflow.yaml +26 -0
- package/src/modules/xmc/workflows/bmad-quick-flow/quick-dev/checklist.md +25 -0
- package/src/modules/xmc/workflows/bmad-quick-flow/quick-dev/instructions.md +105 -0
- package/src/modules/xmc/workflows/bmad-quick-flow/quick-dev/workflow.yaml +29 -0
- package/src/modules/xmc/workflows/diagrams/_shared/excalidraw-library.json +90 -0
- package/src/modules/xmc/workflows/diagrams/_shared/excalidraw-templates.yaml +127 -0
- package/src/modules/xmc/workflows/diagrams/create-dataflow/checklist.md +39 -0
- package/src/modules/xmc/workflows/diagrams/create-dataflow/instructions.md +130 -0
- package/src/modules/xmc/workflows/diagrams/create-dataflow/workflow.yaml +27 -0
- package/src/modules/xmc/workflows/diagrams/create-diagram/checklist.md +43 -0
- package/src/modules/xmc/workflows/diagrams/create-diagram/instructions.md +141 -0
- package/src/modules/xmc/workflows/diagrams/create-diagram/workflow.yaml +27 -0
- package/src/modules/xmc/workflows/diagrams/create-flowchart/checklist.md +49 -0
- package/src/modules/xmc/workflows/diagrams/create-flowchart/instructions.md +241 -0
- package/src/modules/xmc/workflows/diagrams/create-flowchart/workflow.yaml +27 -0
- package/src/modules/xmc/workflows/diagrams/create-wireframe/checklist.md +38 -0
- package/src/modules/xmc/workflows/diagrams/create-wireframe/instructions.md +133 -0
- package/src/modules/xmc/workflows/diagrams/create-wireframe/workflow.yaml +27 -0
- package/src/modules/xmc/workflows/document-project/checklist.md +245 -0
- package/src/modules/xmc/workflows/document-project/documentation-requirements.csv +12 -0
- package/src/modules/xmc/workflows/document-project/instructions.md +222 -0
- package/src/modules/xmc/workflows/document-project/templates/deep-dive-template.md +345 -0
- package/src/modules/xmc/workflows/document-project/templates/index-template.md +169 -0
- package/src/modules/xmc/workflows/document-project/templates/project-overview-template.md +103 -0
- package/src/modules/xmc/workflows/document-project/templates/project-scan-report-schema.json +160 -0
- package/src/modules/xmc/workflows/document-project/templates/source-tree-template.md +135 -0
- package/src/modules/xmc/workflows/document-project/workflow.yaml +31 -0
- package/src/modules/xmc/workflows/document-project/workflows/deep-dive-instructions.md +298 -0
- package/src/modules/xmc/workflows/document-project/workflows/deep-dive.yaml +31 -0
- package/src/modules/xmc/workflows/document-project/workflows/full-scan-instructions.md +1106 -0
- package/src/modules/xmc/workflows/document-project/workflows/full-scan.yaml +31 -0
- package/src/modules/xmc/workflows/generate-project-context/project-context-template.md +20 -0
- package/src/modules/xmc/workflows/generate-project-context/steps/step-01-discover.md +193 -0
- package/src/modules/xmc/workflows/generate-project-context/steps/step-02-generate.md +317 -0
- package/src/modules/xmc/workflows/generate-project-context/steps/step-03-complete.md +277 -0
- package/src/modules/xmc/workflows/generate-project-context/workflow.md +48 -0
- package/src/modules/xmc/workflows/testarch/atdd/atdd-checklist-template.md +363 -0
- package/src/modules/xmc/workflows/testarch/atdd/checklist.md +373 -0
- package/src/modules/xmc/workflows/testarch/atdd/instructions.md +805 -0
- package/src/modules/xmc/workflows/testarch/atdd/workflow.yaml +47 -0
- package/src/modules/xmc/workflows/testarch/automate/checklist.md +580 -0
- package/src/modules/xmc/workflows/testarch/automate/instructions.md +1324 -0
- package/src/modules/xmc/workflows/testarch/automate/workflow.yaml +54 -0
- package/src/modules/xmc/workflows/testarch/ci/checklist.md +246 -0
- package/src/modules/xmc/workflows/testarch/ci/github-actions-template.yaml +165 -0
- package/src/modules/xmc/workflows/testarch/ci/gitlab-ci-template.yaml +128 -0
- package/src/modules/xmc/workflows/testarch/ci/instructions.md +534 -0
- package/src/modules/xmc/workflows/testarch/ci/workflow.yaml +47 -0
- package/src/modules/xmc/workflows/testarch/framework/checklist.md +321 -0
- package/src/modules/xmc/workflows/testarch/framework/instructions.md +481 -0
- package/src/modules/xmc/workflows/testarch/framework/workflow.yaml +49 -0
- package/src/modules/xmc/workflows/testarch/nfr-assess/checklist.md +405 -0
- package/src/modules/xmc/workflows/testarch/nfr-assess/instructions.md +722 -0
- package/src/modules/xmc/workflows/testarch/nfr-assess/nfr-report-template.md +443 -0
- package/src/modules/xmc/workflows/testarch/nfr-assess/workflow.yaml +49 -0
- package/src/modules/xmc/workflows/testarch/test-design/checklist.md +234 -0
- package/src/modules/xmc/workflows/testarch/test-design/instructions.md +788 -0
- package/src/modules/xmc/workflows/testarch/test-design/test-design-template.md +285 -0
- package/src/modules/xmc/workflows/testarch/test-design/workflow.yaml +50 -0
- package/src/modules/xmc/workflows/testarch/test-review/checklist.md +470 -0
- package/src/modules/xmc/workflows/testarch/test-review/instructions.md +628 -0
- package/src/modules/xmc/workflows/testarch/test-review/test-review-template.md +388 -0
- package/src/modules/xmc/workflows/testarch/test-review/workflow.yaml +48 -0
- package/src/modules/xmc/workflows/testarch/trace/checklist.md +654 -0
- package/src/modules/xmc/workflows/testarch/trace/instructions.md +1045 -0
- package/src/modules/xmc/workflows/testarch/trace/trace-template.md +673 -0
- package/src/modules/xmc/workflows/testarch/trace/workflow.yaml +57 -0
- package/src/modules/xmc/workflows/workflow-status/init/instructions.md +331 -0
- package/src/modules/xmc/workflows/workflow-status/init/workflow.yaml +29 -0
- package/src/modules/xmc/workflows/workflow-status/instructions.md +395 -0
- package/src/modules/xmc/workflows/workflow-status/paths/enterprise-brownfield.yaml +127 -0
- package/src/modules/xmc/workflows/workflow-status/paths/enterprise-greenfield.yaml +115 -0
- package/src/modules/xmc/workflows/workflow-status/paths/method-brownfield.yaml +111 -0
- package/src/modules/xmc/workflows/workflow-status/paths/method-greenfield.yaml +102 -0
- package/src/modules/xmc/workflows/workflow-status/project-levels.yaml +59 -0
- package/src/modules/xmc/workflows/workflow-status/workflow-status-template.yaml +24 -0
- package/src/modules/xmc/workflows/workflow-status/workflow.yaml +30 -0
- package/src/utility/models/action-command-header.md +0 -0
- package/src/utility/models/agent-activation-ide.xml +51 -0
- package/src/utility/models/agent-activation-web.xml +50 -0
- package/src/utility/models/agent-command-header.md +1 -0
- package/src/utility/models/agent-config-template.md +23 -0
- package/src/utility/models/agent-in-team-activation.xml +3 -0
- package/src/utility/models/fragments/activation-rules.xml +7 -0
- package/src/utility/models/fragments/activation-steps.xml +16 -0
- package/src/utility/models/fragments/handler-action.xml +4 -0
- package/src/utility/models/fragments/handler-data.xml +5 -0
- package/src/utility/models/fragments/handler-exec.xml +6 -0
- package/src/utility/models/fragments/handler-multi.xml +14 -0
- package/src/utility/models/fragments/handler-tmpl.xml +5 -0
- package/src/utility/models/fragments/handler-validate-workflow.xml +7 -0
- package/src/utility/models/fragments/handler-workflow.xml +9 -0
- package/src/utility/models/fragments/menu-handlers.xml +6 -0
- package/src/utility/models/fragments/web-bundle-activation-steps.xml +32 -0
- package/src/utility/templates/agent.customize.template.yaml +42 -0
- package/test/README.md +295 -0
- package/test/fixtures/agent-schema/invalid/critical-actions/actions-as-string.agent.yaml +26 -0
- package/test/fixtures/agent-schema/invalid/critical-actions/empty-string-in-actions.agent.yaml +29 -0
- package/test/fixtures/agent-schema/invalid/menu/empty-menu.agent.yaml +21 -0
- package/test/fixtures/agent-schema/invalid/menu/missing-menu.agent.yaml +19 -0
- package/test/fixtures/agent-schema/invalid/menu-commands/empty-command-target.agent.yaml +24 -0
- package/test/fixtures/agent-schema/invalid/menu-commands/no-command-target.agent.yaml +23 -0
- package/test/fixtures/agent-schema/invalid/menu-triggers/camel-case.agent.yaml +24 -0
- package/test/fixtures/agent-schema/invalid/menu-triggers/duplicate-triggers.agent.yaml +30 -0
- package/test/fixtures/agent-schema/invalid/menu-triggers/empty-trigger.agent.yaml +24 -0
- package/test/fixtures/agent-schema/invalid/menu-triggers/leading-asterisk.agent.yaml +24 -0
- package/test/fixtures/agent-schema/invalid/menu-triggers/snake-case.agent.yaml +24 -0
- package/test/fixtures/agent-schema/invalid/menu-triggers/trigger-with-spaces.agent.yaml +24 -0
- package/test/fixtures/agent-schema/invalid/metadata/core-agent-with-module.agent.yaml +26 -0
- package/test/fixtures/agent-schema/invalid/metadata/empty-module-string.agent.yaml +26 -0
- package/test/fixtures/agent-schema/invalid/metadata/empty-name.agent.yaml +24 -0
- package/test/fixtures/agent-schema/invalid/metadata/extra-metadata-fields.agent.yaml +26 -0
- package/test/fixtures/agent-schema/invalid/metadata/missing-id.agent.yaml +23 -0
- package/test/fixtures/agent-schema/invalid/metadata/module-agent-missing-module.agent.yaml +25 -0
- package/test/fixtures/agent-schema/invalid/metadata/wrong-module-value.agent.yaml +26 -0
- package/test/fixtures/agent-schema/invalid/persona/empty-principles-array.agent.yaml +23 -0
- package/test/fixtures/agent-schema/invalid/persona/empty-string-in-principles.agent.yaml +26 -0
- package/test/fixtures/agent-schema/invalid/persona/extra-persona-fields.agent.yaml +26 -0
- package/test/fixtures/agent-schema/invalid/persona/missing-role.agent.yaml +23 -0
- package/test/fixtures/agent-schema/invalid/prompts/empty-content.agent.yaml +28 -0
- package/test/fixtures/agent-schema/invalid/prompts/extra-prompt-fields.agent.yaml +30 -0
- package/test/fixtures/agent-schema/invalid/prompts/missing-content.agent.yaml +27 -0
- package/test/fixtures/agent-schema/invalid/prompts/missing-id.agent.yaml +27 -0
- package/test/fixtures/agent-schema/invalid/top-level/empty-file.agent.yaml +5 -0
- package/test/fixtures/agent-schema/invalid/top-level/extra-top-level-keys.agent.yaml +27 -0
- package/test/fixtures/agent-schema/invalid/top-level/missing-agent-key.agent.yaml +11 -0
- package/test/fixtures/agent-schema/invalid/yaml-errors/invalid-indentation.agent.yaml +19 -0
- package/test/fixtures/agent-schema/invalid/yaml-errors/malformed-yaml.agent.yaml +18 -0
- package/test/fixtures/agent-schema/valid/critical-actions/empty-critical-actions.agent.yaml +23 -0
- package/test/fixtures/agent-schema/valid/critical-actions/no-critical-actions.agent.yaml +21 -0
- package/test/fixtures/agent-schema/valid/critical-actions/valid-critical-actions.agent.yaml +26 -0
- package/test/fixtures/agent-schema/valid/menu/multiple-menu-items.agent.yaml +30 -0
- package/test/fixtures/agent-schema/valid/menu/single-menu-item.agent.yaml +21 -0
- package/test/fixtures/agent-schema/valid/menu-commands/all-command-types.agent.yaml +37 -0
- package/test/fixtures/agent-schema/valid/menu-commands/multiple-commands.agent.yaml +23 -0
- package/test/fixtures/agent-schema/valid/menu-triggers/kebab-case-triggers.agent.yaml +33 -0
- package/test/fixtures/agent-schema/valid/metadata/empty-module-name-in-path.agent.yaml +23 -0
- package/test/fixtures/agent-schema/valid/metadata/malformed-path-treated-as-core.agent.yaml +23 -0
- package/test/fixtures/agent-schema/valid/metadata/module-agent-correct.agent.yaml +23 -0
- package/test/fixtures/agent-schema/valid/persona/complete-persona.agent.yaml +23 -0
- package/test/fixtures/agent-schema/valid/prompts/empty-prompts.agent.yaml +23 -0
- package/test/fixtures/agent-schema/valid/prompts/no-prompts.agent.yaml +21 -0
- package/test/fixtures/agent-schema/valid/prompts/valid-prompts-minimal.agent.yaml +27 -0
- package/test/fixtures/agent-schema/valid/prompts/valid-prompts-with-description.agent.yaml +29 -0
- package/test/fixtures/agent-schema/valid/top-level/minimal-core-agent.agent.yaml +23 -0
- package/test/test-agent-schema.js +387 -0
- package/test/test-cli-integration.sh +159 -0
- package/test/test-installation-components.js +214 -0
- package/test/unit-test-schema.js +133 -0
- package/tools/cli/README.md +609 -0
- package/tools/cli/bundlers/bundle-web.js +179 -0
- package/tools/cli/bundlers/test-analyst.js +28 -0
- package/tools/cli/bundlers/test-bundler.js +119 -0
- package/tools/cli/bundlers/web-bundler.js +1764 -0
- package/tools/cli/commands/agent-install.js +409 -0
- package/tools/cli/commands/build.js +458 -0
- package/tools/cli/commands/cleanup.js +141 -0
- package/tools/cli/commands/install.js +124 -0
- package/tools/cli/commands/list.js +28 -0
- package/tools/cli/commands/status.js +47 -0
- package/tools/cli/commands/uninstall.js +44 -0
- package/tools/cli/commands/update.js +28 -0
- package/tools/cli/installers/lib/core/config-collector.js +876 -0
- package/tools/cli/installers/lib/core/dependency-resolver.js +725 -0
- package/tools/cli/installers/lib/core/detector.js +329 -0
- package/tools/cli/installers/lib/core/ide-config-manager.js +154 -0
- package/tools/cli/installers/lib/core/installer.js +2956 -0
- package/tools/cli/installers/lib/core/manifest-generator.js +692 -0
- package/tools/cli/installers/lib/core/manifest.js +540 -0
- package/tools/cli/installers/lib/ide/_base-ide.js +651 -0
- package/tools/cli/installers/lib/ide/antigravity.js +510 -0
- package/tools/cli/installers/lib/ide/auggie.js +232 -0
- package/tools/cli/installers/lib/ide/claude-code.js +512 -0
- package/tools/cli/installers/lib/ide/cline.js +269 -0
- package/tools/cli/installers/lib/ide/codex.js +388 -0
- package/tools/cli/installers/lib/ide/crush.js +287 -0
- package/tools/cli/installers/lib/ide/cursor.js +400 -0
- package/tools/cli/installers/lib/ide/gemini.js +253 -0
- package/tools/cli/installers/lib/ide/github-copilot.js +387 -0
- package/tools/cli/installers/lib/ide/iflow.js +172 -0
- package/tools/cli/installers/lib/ide/kilo.js +249 -0
- package/tools/cli/installers/lib/ide/manager.js +245 -0
- package/tools/cli/installers/lib/ide/opencode.js +257 -0
- package/tools/cli/installers/lib/ide/qwen.js +372 -0
- package/tools/cli/installers/lib/ide/roo.js +324 -0
- package/tools/cli/installers/lib/ide/rovo-dev.js +290 -0
- package/tools/cli/installers/lib/ide/shared/agent-command-generator.js +90 -0
- package/tools/cli/installers/lib/ide/shared/module-injections.js +133 -0
- package/tools/cli/installers/lib/ide/shared/task-tool-command-generator.js +119 -0
- package/tools/cli/installers/lib/ide/shared/workflow-command-generator.js +237 -0
- package/tools/cli/installers/lib/ide/shared/xiaoma-artifacts.js +143 -0
- package/tools/cli/installers/lib/ide/templates/agent-command-template.md +14 -0
- package/tools/cli/installers/lib/ide/templates/gemini-agent-command.toml +14 -0
- package/tools/cli/installers/lib/ide/templates/gemini-task-command.toml +12 -0
- package/tools/cli/installers/lib/ide/templates/workflow-command-template.md +13 -0
- package/tools/cli/installers/lib/ide/trae.js +313 -0
- package/tools/cli/installers/lib/ide/windsurf.js +258 -0
- package/tools/cli/installers/lib/modules/manager.js +751 -0
- package/tools/cli/lib/activation-builder.js +168 -0
- package/tools/cli/lib/agent/compiler.js +524 -0
- package/tools/cli/lib/agent/installer.js +735 -0
- package/tools/cli/lib/agent/template-engine.js +152 -0
- package/tools/cli/lib/agent-analyzer.js +109 -0
- package/tools/cli/lib/agent-party-generator.js +206 -0
- package/tools/cli/lib/cli-utils.js +210 -0
- package/tools/cli/lib/config.js +212 -0
- package/tools/cli/lib/file-ops.js +204 -0
- package/tools/cli/lib/platform-codes.js +116 -0
- package/tools/cli/lib/project-root.js +71 -0
- package/tools/cli/lib/replace-project-root.js +239 -0
- package/tools/cli/lib/ui.js +769 -0
- package/tools/cli/lib/xml-handler.js +229 -0
- package/tools/cli/lib/xml-to-markdown.js +82 -0
- package/tools/{yaml-format.js → cli/lib/yaml-format.js} +36 -66
- package/tools/cli/lib/yaml-xml-builder.js +606 -0
- package/tools/cli/regenerate-manifests.js +28 -0
- package/tools/cli/test-yaml-builder.js +43 -0
- package/tools/cli/xiaoma-cli.js +40 -0
- package/tools/flattener/aggregate.js +12 -30
- package/tools/flattener/binary.js +43 -46
- package/tools/flattener/discovery.js +15 -23
- package/tools/flattener/files.js +6 -6
- package/tools/flattener/ignoreRules.js +122 -127
- package/tools/flattener/main.js +140 -330
- package/tools/flattener/projectRoot.js +71 -81
- package/tools/flattener/prompts.js +10 -12
- package/tools/flattener/stats.helpers.js +63 -119
- package/tools/flattener/stats.js +2 -7
- package/tools/flattener/test-matrix.js +169 -228
- package/tools/flattener/xml.js +23 -31
- package/tools/format-workflow-md.js +263 -0
- package/tools/platform-codes.yaml +145 -0
- package/tools/schema/agent.js +389 -0
- package/tools/validate-agent-schema.js +110 -0
- package/tools/validate-bundles.js +87 -0
- package/tools/xiaoma-npx-wrapper.js +18 -24
- package/.claude/agents/tech-translator.md +0 -124
- package/.claude/settings.local.json +0 -37
- package/.idea/XiaoMa-Cli.iml +0 -9
- package/.idea/inspectionProfiles/Project_Default.xml +0 -6
- package/.idea/misc.xml +0 -6
- package/.idea/modules.xml +0 -8
- package/.idea/prettier.xml +0 -6
- package/.idea/vcs.xml +0 -7
- package/.idea/workspace.xml +0 -117
- package/.xiaoma-core/.coordinator-state.json +0 -19
- package/CLAUDE.md +0 -283
- package/JAVA-BACKEND-COMMANDS-REFERENCE.md +0 -300
- package/JAVA-BACKEND-ITERATION-GUIDE.md +0 -2116
- package/common/tasks/create-doc.md +0 -103
- package/common/tasks/execute-checklist.md +0 -88
- package/common/utils/bmad-doc-template.md +0 -327
- package/common/utils/workflow-management.md +0 -71
- package/dist/agents/analyst.txt +0 -6308
- package/dist/agents/architect.txt +0 -5046
- package/dist/agents/automation-orchestrator.txt +0 -396
- package/dist/agents/dev.txt +0 -1180
- package/dist/agents/full-requirement-orchestrator.txt +0 -505
- package/dist/agents/pm.txt +0 -3078
- package/dist/agents/po.txt +0 -1358
- package/dist/agents/qa.txt +0 -2002
- package/dist/agents/sm.txt +0 -3044
- package/dist/agents/ux-expert.txt +0 -707
- package/dist/agents/workflow-executor.txt +0 -1029
- package/dist/agents/workflow-helper.txt +0 -93
- package/dist/agents/xiaoma-master.txt +0 -9008
- package/dist/agents/xiaoma-orchestrator.txt +0 -1523
- package/dist/teams/team-all.txt +0 -23101
- package/dist/teams/team-fullstack-with-database.txt +0 -25076
- package/dist/teams/team-fullstack.txt +0 -15820
- package/dist/teams/team-ide-minimal.txt +0 -8285
- package/dist/teams/team-no-ui.txt +0 -14368
- package/docs/GUIDING-PRINCIPLES.md +0 -91
- package/docs/architecture/workflow-coordinator-implementation.md +0 -1188
- package/docs/architecture-sharding-modification.md +0 -623
- package/docs/automated-requirements-analysis-outputs.md +0 -896
- package/docs/core-architecture.md +0 -219
- package/docs/enhanced-ide-development-workflow.md +0 -248
- package/docs/prd/workflow-coordinator-prd.md +0 -1214
- package/docs/user-guide.md +0 -530
- package/docs/versioning-and-releases.md +0 -155
- package/docs/versions.md +0 -48
- package/docs/working-in-the-brownfield.md +0 -597
- package/tools/api-server.js +0 -367
- package/tools/builders/web-builder.js +0 -830
- package/tools/bump-all-versions.js +0 -133
- package/tools/cli.js +0 -157
- package/tools/installer/README.md +0 -8
- package/tools/installer/bin/xiaoma.js +0 -477
- package/tools/installer/config/ide-agent-config.yaml +0 -58
- package/tools/installer/config/install.config.yaml +0 -164
- package/tools/installer/lib/config-loader.js +0 -286
- package/tools/installer/lib/file-manager.js +0 -446
- package/tools/installer/lib/ide-base-setup.js +0 -238
- package/tools/installer/lib/ide-setup.js +0 -2027
- package/tools/installer/lib/installer.js +0 -2333
- package/tools/installer/lib/memory-profiler.js +0 -235
- package/tools/installer/lib/module-manager.js +0 -116
- package/tools/installer/lib/resource-locator.js +0 -334
- package/tools/installer/package-lock.json +0 -715
- package/tools/installer/package.json +0 -44
- package/tools/lib/dependency-resolver.js +0 -186
- package/tools/lib/yaml-utils.js +0 -34
- package/tools/md-assets/web-agent-startup-instructions.md +0 -39
- package/tools/preview-release-notes.js +0 -74
- package/tools/setup-hooks.sh +0 -37
- package/tools/shared/bannerArt.js +0 -105
- package/tools/sync-installer-version.js +0 -41
- package/tools/sync-version.sh +0 -23
- package/tools/upgraders/v3-to-v4-upgrader.js +0 -753
- package/tools/version-bump.js +0 -100
- package/tools/workflow-coordinator/README.md +0 -38
- package/tools/workflow-coordinator/USAGE.md +0 -548
- package/tools/workflow-coordinator/package-lock.json +0 -4868
- package/tools/workflow-coordinator/package.json +0 -35
- package/tools/workflow-coordinator/src/api/server.js +0 -207
- package/tools/workflow-coordinator/src/controller/workflow-controller.js +0 -263
- package/tools/workflow-coordinator/src/index.js +0 -113
- package/tools/workflow-coordinator/src/parser/workflow-parser.js +0 -144
- package/tools/workflow-coordinator/src/utils/state-manager.js +0 -59
- package/tools/workflow-coordinator/src/utils/validator.js +0 -86
- package/tools/workflow-coordinator/test/integration-test.js +0 -266
- package/tools/workflow-coordinator/test/quick-test.js +0 -127
- package/xiaoma-core/agent-teams/team-all.yaml +0 -15
- package/xiaoma-core/agent-teams/team-fullstack-with-database.yaml +0 -27
- package/xiaoma-core/agent-teams/team-fullstack.yaml +0 -19
- package/xiaoma-core/agent-teams/team-ide-minimal.yaml +0 -11
- package/xiaoma-core/agent-teams/team-no-ui.yaml +0 -14
- package/xiaoma-core/agents/analyst.md +0 -91
- package/xiaoma-core/agents/architect.md +0 -88
- package/xiaoma-core/agents/automated-fix-validator.yaml +0 -579
- package/xiaoma-core/agents/automated-quality-validator.yaml +0 -549
- package/xiaoma-core/agents/automation-orchestrator.md +0 -353
- package/xiaoma-core/agents/dev.md +0 -144
- package/xiaoma-core/agents/enhanced-workflow-orchestrator.yaml +0 -304
- package/xiaoma-core/agents/full-requirement-orchestrator.md +0 -462
- package/xiaoma-core/agents/global-requirements-auditor.yaml +0 -520
- package/xiaoma-core/agents/intelligent-template-adapter.yaml +0 -389
- package/xiaoma-core/agents/issue-dispatcher.yaml +0 -627
- package/xiaoma-core/agents/master-execution-engine.yaml +0 -543
- package/xiaoma-core/agents/pm.md +0 -85
- package/xiaoma-core/agents/po.md +0 -77
- package/xiaoma-core/agents/qa.md +0 -88
- package/xiaoma-core/agents/requirements-coverage-auditor.yaml +0 -373
- package/xiaoma-core/agents/sm.md +0 -125
- package/xiaoma-core/agents/ux-expert.md +0 -67
- package/xiaoma-core/agents/workflow-executor.md +0 -1031
- package/xiaoma-core/agents/workflow-helper.md +0 -481
- package/xiaoma-core/agents/xiaoma-master.md +0 -108
- package/xiaoma-core/agents/xiaoma-orchestrator.md +0 -145
- package/xiaoma-core/checklists/architect-checklist.md +0 -440
- package/xiaoma-core/checklists/change-checklist.md +0 -184
- package/xiaoma-core/checklists/dev-completion-checklist.md +0 -324
- package/xiaoma-core/checklists/pm-checklist.md +0 -372
- package/xiaoma-core/checklists/po-master-checklist.md +0 -434
- package/xiaoma-core/checklists/po-story-validation-checklist.md +0 -219
- package/xiaoma-core/checklists/qa-approval-checklist.md +0 -393
- package/xiaoma-core/checklists/story-dod-checklist.md +0 -96
- package/xiaoma-core/checklists/story-draft-checklist.md +0 -155
- package/xiaoma-core/core-config.yaml +0 -23
- package/xiaoma-core/data/bmad-kb.md +0 -809
- package/xiaoma-core/data/brainstorming-techniques.md +0 -38
- package/xiaoma-core/data/elicitation-methods.md +0 -156
- package/xiaoma-core/data/technical-preferences.md +0 -5
- package/xiaoma-core/data/test-levels-framework.md +0 -148
- package/xiaoma-core/data/test-priorities-matrix.md +0 -174
- package/xiaoma-core/scripts/build-validation/pre-dev-validation.sh +0 -71
- package/xiaoma-core/scripts/build-validation/progressive-validation.sh +0 -88
- package/xiaoma-core/scripts/build-validation/quick-check.sh +0 -69
- package/xiaoma-core/tasks/advanced-elicitation.md +0 -119
- package/xiaoma-core/tasks/analyze-existing-database.md +0 -155
- package/xiaoma-core/tasks/apply-qa-fixes.md +0 -150
- package/xiaoma-core/tasks/automated-story-cycle.md +0 -370
- package/xiaoma-core/tasks/batch-story-generation.md +0 -354
- package/xiaoma-core/tasks/brownfield-create-epic.md +0 -162
- package/xiaoma-core/tasks/brownfield-create-story.md +0 -149
- package/xiaoma-core/tasks/correct-course.md +0 -72
- package/xiaoma-core/tasks/create-brownfield-story.md +0 -314
- package/xiaoma-core/tasks/create-database-design.md +0 -161
- package/xiaoma-core/tasks/create-deep-research-prompt.md +0 -280
- package/xiaoma-core/tasks/create-enhanced-story-with-database.md +0 -250
- package/xiaoma-core/tasks/create-incremental-architecture.md +0 -525
- package/xiaoma-core/tasks/create-next-story.md +0 -114
- package/xiaoma-core/tasks/create-prd-from-rag.md +0 -435
- package/xiaoma-core/tasks/create-story-with-rag.md +0 -559
- package/xiaoma-core/tasks/develop-story-with-rag.md +0 -536
- package/xiaoma-core/tasks/document-project.md +0 -345
- package/xiaoma-core/tasks/facilitate-brainstorming-session.md +0 -138
- package/xiaoma-core/tasks/generate-ai-frontend-prompt.md +0 -53
- package/xiaoma-core/tasks/generate-database-ddl.md +0 -240
- package/xiaoma-core/tasks/generate-database-entities.md +0 -501
- package/xiaoma-core/tasks/generate-rag-questions.md +0 -312
- package/xiaoma-core/tasks/index-docs.md +0 -175
- package/xiaoma-core/tasks/kb-mode-interaction.md +0 -77
- package/xiaoma-core/tasks/nfr-assess.md +0 -345
- package/xiaoma-core/tasks/project-integration-testing.md +0 -477
- package/xiaoma-core/tasks/qa-gate.md +0 -163
- package/xiaoma-core/tasks/requirement-analysis-with-rag.md +0 -1318
- package/xiaoma-core/tasks/requirements-coverage-audit.md +0 -198
- package/xiaoma-core/tasks/review-story.md +0 -316
- package/xiaoma-core/tasks/risk-profile.md +0 -355
- package/xiaoma-core/tasks/serial-development-orchestration.md +0 -426
- package/xiaoma-core/tasks/shard-doc.md +0 -187
- package/xiaoma-core/tasks/test-design.md +0 -176
- package/xiaoma-core/tasks/trace-requirements.md +0 -266
- package/xiaoma-core/tasks/validate-next-story.md +0 -136
- package/xiaoma-core/templates/api-design-tmpl.yaml +0 -704
- package/xiaoma-core/templates/architecture-tmpl.yaml +0 -650
- package/xiaoma-core/templates/brainstorming-output-tmpl.yaml +0 -156
- package/xiaoma-core/templates/brownfield-architecture-tmpl.yaml +0 -476
- package/xiaoma-core/templates/brownfield-prd-tmpl.yaml +0 -280
- package/xiaoma-core/templates/competitor-analysis-tmpl.yaml +0 -336
- package/xiaoma-core/templates/database-design-tmpl.yaml +0 -266
- package/xiaoma-core/templates/enhanced-story-with-database-tmpl.yaml +0 -428
- package/xiaoma-core/templates/front-end-architecture-tmpl.yaml +0 -272
- package/xiaoma-core/templates/front-end-spec-tmpl.yaml +0 -354
- package/xiaoma-core/templates/fullstack-architecture-tmpl.yaml +0 -925
- package/xiaoma-core/templates/global-qa-monitoring-tmpl.yaml +0 -443
- package/xiaoma-core/templates/incremental-architecture-tmpl.yaml +0 -601
- package/xiaoma-core/templates/market-research-tmpl.yaml +0 -252
- package/xiaoma-core/templates/maven-lombok-template.xml +0 -111
- package/xiaoma-core/templates/prd-from-rag-tmpl.yaml +0 -410
- package/xiaoma-core/templates/prd-tmpl.yaml +0 -202
- package/xiaoma-core/templates/project-brief-tmpl.yaml +0 -221
- package/xiaoma-core/templates/qa-gate-tmpl.yaml +0 -102
- package/xiaoma-core/templates/rag-knowledge-tmpl.yaml +0 -569
- package/xiaoma-core/templates/rag-questions-tmpl.yaml +0 -949
- package/xiaoma-core/templates/requirements-coverage-audit.yaml +0 -330
- package/xiaoma-core/templates/start-enhanced-workflow.yaml +0 -347
- package/xiaoma-core/templates/story-tmpl.yaml +0 -137
- package/xiaoma-core/templates/story-with-rag-tmpl.yaml +0 -360
- package/xiaoma-core/workflows/automated-requirements-analysis.yaml +0 -2149
- package/xiaoma-core/workflows/automated-requirements-development.yaml +0 -739
- package/xiaoma-core/workflows/automated-story-development.yaml +0 -1264
- package/xiaoma-core/workflows/brownfield-fullstack.yaml +0 -298
- package/xiaoma-core/workflows/brownfield-service.yaml +0 -188
- package/xiaoma-core/workflows/brownfield-ui.yaml +0 -198
- package/xiaoma-core/workflows/enhanced-fullstack-with-database.yaml +0 -427
- package/xiaoma-core/workflows/enhanced-fullstack-with-qa-loop.yaml +0 -766
- package/xiaoma-core/workflows/full-requirement-automation.yaml +0 -1305
- package/xiaoma-core/workflows/greenfield-fullstack.yaml +0 -241
- package/xiaoma-core/workflows/greenfield-service.yaml +0 -207
- package/xiaoma-core/workflows/greenfield-ui.yaml +0 -236
|
@@ -1,925 +0,0 @@
|
|
|
1
|
-
template:
|
|
2
|
-
id: fullstack-architecture-template-v2
|
|
3
|
-
name: 全栈架构文档
|
|
4
|
-
version: 2.0
|
|
5
|
-
output:
|
|
6
|
-
format: markdown
|
|
7
|
-
filename: docs/architecture.md
|
|
8
|
-
title: "{{project_name}} Fullstack Architecture Document"
|
|
9
|
-
|
|
10
|
-
workflow:
|
|
11
|
-
mode: interactive
|
|
12
|
-
elicitation: advanced-elicitation
|
|
13
|
-
|
|
14
|
-
sections:
|
|
15
|
-
- id: introduction
|
|
16
|
-
title: 引言
|
|
17
|
-
instruction: |
|
|
18
|
-
如果可以,请在开始前审阅所有提供的相关文档以收集全部上下文。你至少应能访问 docs/prd.md 和 docs/front-end-spec.md。如果需要但找不到任何文档,请向用户索取。该模板旨在创建一个统一的架构,涵盖后端和前端的关注点,以指导 AI 驱动的全栈开发。
|
|
19
|
-
elicit: true
|
|
20
|
-
content: |
|
|
21
|
-
本文档概述了 {{project_name}} 的完整全栈架构,包括后端系统、前端实现及其集成。它将作为 AI 驱动开发的唯一事实来源,确保整个技术栈的一致性。
|
|
22
|
-
|
|
23
|
-
这种统一的方法结合了传统上独立的后端和前端架构文档,为现代全栈应用简化了开发流程,因为在这些应用中,前后端的关注点日益交织在一起。
|
|
24
|
-
sections:
|
|
25
|
-
- id: starter-template
|
|
26
|
-
title: 启动模板或现有项目
|
|
27
|
-
instruction: |
|
|
28
|
-
在进行架构设计之前,请检查项目是否基于任何启动模板或现有代码库:
|
|
29
|
-
|
|
30
|
-
1. 审阅 PRD 和其他文档,查找是否提及:
|
|
31
|
-
- 全栈启动模板 (例如, T3 Stack, MEAN/MERN starters, Django + React templates)
|
|
32
|
-
- Monorepo 模板 (例如, Nx, Turborepo starters)
|
|
33
|
-
- 特定平台的启动模板 (例如, Vercel templates, AWS Amplify starters)
|
|
34
|
-
- 正在扩展或克隆的现有项目
|
|
35
|
-
|
|
36
|
-
2. 如果提到了启动模板或现有项目:
|
|
37
|
-
- 请求用户提供访问权限 (链接、代码库或文件)
|
|
38
|
-
- 分析以理解预先配置的选择和约束
|
|
39
|
-
- 注意任何已经做出的架构决策
|
|
40
|
-
- 确定哪些可以修改,哪些必须保留
|
|
41
|
-
|
|
42
|
-
3. 如果没有提到启动模板但这是一个全新项目:
|
|
43
|
-
- 根据技术偏好建议合适的的全栈启动模板
|
|
44
|
-
- 考虑特定平台的选项 (Vercel, AWS, 等)
|
|
45
|
-
- 让用户决定是否使用
|
|
46
|
-
|
|
47
|
-
4. 记录下最终决定及其带来的任何约束
|
|
48
|
-
|
|
49
|
-
如果没有,请注明“N/A - 全新项目”
|
|
50
|
-
- id: changelog
|
|
51
|
-
title: 变更日志
|
|
52
|
-
type: table
|
|
53
|
-
columns: [日期, 版本, 描述, 作者]
|
|
54
|
-
instruction: 跟踪文档版本和变更
|
|
55
|
-
|
|
56
|
-
- id: high-level-architecture
|
|
57
|
-
title: 高层架构
|
|
58
|
-
instruction: 本节包含多个用于奠定基础的子部分。请将所有子部分一并呈现,然后就整个部分征求反馈。
|
|
59
|
-
elicit: true
|
|
60
|
-
sections:
|
|
61
|
-
- id: technical-summary
|
|
62
|
-
title: 技术摘要
|
|
63
|
-
instruction: |
|
|
64
|
-
提供一个全面的概述 (4-6句话),涵盖:
|
|
65
|
-
- 整体架构风格和部署方法
|
|
66
|
-
- 前端框架和后端技术的选择
|
|
67
|
-
- 前后端之间的关键集成点
|
|
68
|
-
- 基础设施平台与服务
|
|
69
|
-
- 该架构如何实现 PRD 目标
|
|
70
|
-
- id: platform-infrastructure
|
|
71
|
-
title: 平台与基础设施选择
|
|
72
|
-
instruction: |
|
|
73
|
-
基于 PRD 需求和技术假设,提出平台建议:
|
|
74
|
-
|
|
75
|
-
1. 考虑常见模式 (非详尽列表,请运用你的最佳判断并根据需要搜索网络以了解新兴趋势):
|
|
76
|
-
- **Vercel + Supabase**: 用于 Next.js 的快速开发,内置认证/存储
|
|
77
|
-
- **AWS Full Stack**: 用于企业级规模,使用 Lambda, API Gateway, S3, Cognito
|
|
78
|
-
- **Azure**: 用于 .NET 生态系统或企业微软环境
|
|
79
|
-
- **Google Cloud**: 用于重度依赖 ML/AI 的应用或 Google 生态系统集成
|
|
80
|
-
|
|
81
|
-
2. 提出 2-3 个可行的选项,并清晰说明其优缺点
|
|
82
|
-
3. 提出建议并附上理由
|
|
83
|
-
4. 获得用户的明确确认
|
|
84
|
-
|
|
85
|
-
记录所选平台及将要使用的关键服务。
|
|
86
|
-
template: |
|
|
87
|
-
**平台:** {{selected_platform}}
|
|
88
|
-
**核心服务:** {{core_services_list}}
|
|
89
|
-
**部署主机与区域:** {{regions}}
|
|
90
|
-
- id: repository-structure
|
|
91
|
-
title: 代码仓库结构
|
|
92
|
-
instruction: |
|
|
93
|
-
根据 PRD 需求和平台选择定义代码仓库方案,解释你的理由,如果不确定则向用户提问:
|
|
94
|
-
|
|
95
|
-
1. 对于现代全栈应用,通常首选 monorepo
|
|
96
|
-
2. 考虑相关工具 (Nx, Turborepo, Lerna, npm workspaces)
|
|
97
|
-
3. 定义包/应用的边界
|
|
98
|
-
4. 为前后端之间的共享代码进行规划
|
|
99
|
-
template: |
|
|
100
|
-
**结构:** {{repo_structure_choice}}
|
|
101
|
-
**Monorepo 工具:** {{monorepo_tool_if_applicable}}
|
|
102
|
-
**包组织方式:** {{package_strategy}}
|
|
103
|
-
- id: architecture-diagram
|
|
104
|
-
title: 高层架构图
|
|
105
|
-
type: mermaid
|
|
106
|
-
mermaid_type: graph
|
|
107
|
-
instruction: |
|
|
108
|
-
创建一个 Mermaid 图,展示完整的系统架构,包括:
|
|
109
|
-
- 用户入口点 (Web, 移动端)
|
|
110
|
-
- 前端应用部署
|
|
111
|
-
- API 层 (REST/GraphQL)
|
|
112
|
-
- 后端服务
|
|
113
|
-
- 数据库和存储
|
|
114
|
-
- 外部集成
|
|
115
|
-
- CDN 和缓存层
|
|
116
|
-
|
|
117
|
-
使用合适的图表类型以保证清晰。
|
|
118
|
-
- id: architectural-patterns
|
|
119
|
-
title: 架构模式
|
|
120
|
-
instruction: |
|
|
121
|
-
列出将指导前后端开发的模式。包括以下模式:
|
|
122
|
-
- 整体架构 (例如, Jamstack, Serverless, Microservices)
|
|
123
|
-
- 前端模式 (例如, Component-based, State management)
|
|
124
|
-
- 后端模式 (例如, Repository, CQRS, Event-driven)
|
|
125
|
-
- 集成模式 (例如, BFF, API Gateway)
|
|
126
|
-
|
|
127
|
-
为每种模式提供建议和理由。
|
|
128
|
-
repeatable: true
|
|
129
|
-
template: "- **{{pattern_name}}:** {{pattern_description}} - _理由:_ {{rationale}}"
|
|
130
|
-
examples:
|
|
131
|
-
- "**Jamstack Architecture:** 静态站点生成与无服务器 API - _理由:_ 为内容密集型应用提供最佳性能和可伸缩性"
|
|
132
|
-
- "**Component-Based UI:** 使用 TypeScript 的可复用 React 组件 - _理由:_ 保证大型代码库的可维护性和类型安全"
|
|
133
|
-
- "**Repository Pattern:** 抽象数据访问逻辑 - _理由:_ 便于测试和未来的数据库迁移"
|
|
134
|
-
- "**API Gateway Pattern:** 所有 API 调用的单一入口点 - _理由:_ 集中进行认证、速率限制和监控"
|
|
135
|
-
|
|
136
|
-
- id: tech-stack
|
|
137
|
-
title: 技术栈
|
|
138
|
-
instruction: |
|
|
139
|
-
这是整个项目最终的技术选型。与用户合作敲定所有选择。此表是唯一的事实来源——所有开发都必须使用这些确切的版本。
|
|
140
|
-
|
|
141
|
-
需要涵盖的关键领域:
|
|
142
|
-
- 前后端语言/框架
|
|
143
|
-
- 数据库和缓存
|
|
144
|
-
- 认证和授权
|
|
145
|
-
- API 方案
|
|
146
|
-
- 前后端测试工具
|
|
147
|
-
- 构建和部署工具
|
|
148
|
-
- 监控和日志记录
|
|
149
|
-
|
|
150
|
-
渲染后,立即征求反馈。
|
|
151
|
-
elicit: true
|
|
152
|
-
sections:
|
|
153
|
-
- id: tech-stack-table
|
|
154
|
-
title: 技术栈表
|
|
155
|
-
type: table
|
|
156
|
-
columns: [类别, 技术, 版本, 用途, 理由]
|
|
157
|
-
rows:
|
|
158
|
-
- [
|
|
159
|
-
"前端语言",
|
|
160
|
-
"{{fe_language}}",
|
|
161
|
-
"{{version}}",
|
|
162
|
-
"{{purpose}}",
|
|
163
|
-
"{{why_chosen}}",
|
|
164
|
-
]
|
|
165
|
-
- [
|
|
166
|
-
"前端框架",
|
|
167
|
-
"{{fe_framework}}",
|
|
168
|
-
"{{version}}",
|
|
169
|
-
"{{purpose}}",
|
|
170
|
-
"{{why_chosen}}",
|
|
171
|
-
]
|
|
172
|
-
- [
|
|
173
|
-
"UI 组件库",
|
|
174
|
-
"{{ui_library}}",
|
|
175
|
-
"{{version}}",
|
|
176
|
-
"{{purpose}}",
|
|
177
|
-
"{{why_chosen}}",
|
|
178
|
-
]
|
|
179
|
-
- [
|
|
180
|
-
"状态管理",
|
|
181
|
-
"{{state_mgmt}}",
|
|
182
|
-
"{{version}}",
|
|
183
|
-
"{{purpose}}",
|
|
184
|
-
"{{why_chosen}}",
|
|
185
|
-
]
|
|
186
|
-
- [
|
|
187
|
-
"后端语言",
|
|
188
|
-
"{{be_language}}",
|
|
189
|
-
"{{version}}",
|
|
190
|
-
"{{purpose}}",
|
|
191
|
-
"{{why_chosen}}",
|
|
192
|
-
]
|
|
193
|
-
- [
|
|
194
|
-
"后端框架",
|
|
195
|
-
"{{be_framework}}",
|
|
196
|
-
"{{version}}",
|
|
197
|
-
"{{purpose}}",
|
|
198
|
-
"{{why_chosen}}",
|
|
199
|
-
]
|
|
200
|
-
- [
|
|
201
|
-
"API 风格",
|
|
202
|
-
"{{api_style}}",
|
|
203
|
-
"{{version}}",
|
|
204
|
-
"{{purpose}}",
|
|
205
|
-
"{{why_chosen}}",
|
|
206
|
-
]
|
|
207
|
-
- [
|
|
208
|
-
"数据库",
|
|
209
|
-
"{{database}}",
|
|
210
|
-
"{{version}}",
|
|
211
|
-
"{{purpose}}",
|
|
212
|
-
"{{why_chosen}}",
|
|
213
|
-
]
|
|
214
|
-
- [
|
|
215
|
-
"缓存",
|
|
216
|
-
"{{cache}}",
|
|
217
|
-
"{{version}}",
|
|
218
|
-
"{{purpose}}",
|
|
219
|
-
"{{why_chosen}}",
|
|
220
|
-
]
|
|
221
|
-
- [
|
|
222
|
-
"文件存储",
|
|
223
|
-
"{{storage}}",
|
|
224
|
-
"{{version}}",
|
|
225
|
-
"{{purpose}}",
|
|
226
|
-
"{{why_chosen}}",
|
|
227
|
-
]
|
|
228
|
-
- ["认证", "{{auth}}", "{{version}}", "{{purpose}}", "{{why_chosen}}"]
|
|
229
|
-
- [
|
|
230
|
-
"前端测试",
|
|
231
|
-
"{{fe_test}}",
|
|
232
|
-
"{{version}}",
|
|
233
|
-
"{{purpose}}",
|
|
234
|
-
"{{why_chosen}}",
|
|
235
|
-
]
|
|
236
|
-
- [
|
|
237
|
-
"后端测试",
|
|
238
|
-
"{{be_test}}",
|
|
239
|
-
"{{version}}",
|
|
240
|
-
"{{purpose}}",
|
|
241
|
-
"{{why_chosen}}",
|
|
242
|
-
]
|
|
243
|
-
- [
|
|
244
|
-
"E2E 测试",
|
|
245
|
-
"{{e2e_test}}",
|
|
246
|
-
"{{version}}",
|
|
247
|
-
"{{purpose}}",
|
|
248
|
-
"{{why_chosen}}",
|
|
249
|
-
]
|
|
250
|
-
- [
|
|
251
|
-
"构建工具",
|
|
252
|
-
"{{build_tool}}",
|
|
253
|
-
"{{version}}",
|
|
254
|
-
"{{purpose}}",
|
|
255
|
-
"{{why_chosen}}",
|
|
256
|
-
]
|
|
257
|
-
- [
|
|
258
|
-
"打包工具",
|
|
259
|
-
"{{bundler}}",
|
|
260
|
-
"{{version}}",
|
|
261
|
-
"{{purpose}}",
|
|
262
|
-
"{{why_chosen}}",
|
|
263
|
-
]
|
|
264
|
-
- [
|
|
265
|
-
"IaC 工具",
|
|
266
|
-
"{{iac_tool}}",
|
|
267
|
-
"{{version}}",
|
|
268
|
-
"{{purpose}}",
|
|
269
|
-
"{{why_chosen}}",
|
|
270
|
-
]
|
|
271
|
-
- [
|
|
272
|
-
"CI/CD",
|
|
273
|
-
"{{cicd}}",
|
|
274
|
-
"{{version}}",
|
|
275
|
-
"{{purpose}}",
|
|
276
|
-
"{{why_chosen}}",
|
|
277
|
-
]
|
|
278
|
-
- [
|
|
279
|
-
"监控",
|
|
280
|
-
"{{monitoring}}",
|
|
281
|
-
"{{version}}",
|
|
282
|
-
"{{purpose}}",
|
|
283
|
-
"{{why_chosen}}",
|
|
284
|
-
]
|
|
285
|
-
- [
|
|
286
|
-
"日志",
|
|
287
|
-
"{{logging}}",
|
|
288
|
-
"{{version}}",
|
|
289
|
-
"{{purpose}}",
|
|
290
|
-
"{{why_chosen}}",
|
|
291
|
-
]
|
|
292
|
-
- [
|
|
293
|
-
"CSS 框架",
|
|
294
|
-
"{{css_framework}}",
|
|
295
|
-
"{{version}}",
|
|
296
|
-
"{{purpose}}",
|
|
297
|
-
"{{why_chosen}}",
|
|
298
|
-
]
|
|
299
|
-
|
|
300
|
-
- id: data-models
|
|
301
|
-
title: 数据模型
|
|
302
|
-
instruction: |
|
|
303
|
-
定义将在前后端共享的核心数据模型/实体:
|
|
304
|
-
|
|
305
|
-
1. 审阅 PRD 需求,识别关键业务实体
|
|
306
|
-
2. 对每个模型,解释其用途和关系
|
|
307
|
-
3. 包括关键属性和数据类型
|
|
308
|
-
4. 展示模型之间的关系
|
|
309
|
-
5. 创建可以共享的 TypeScript 接口
|
|
310
|
-
6. 与用户讨论设计决策
|
|
311
|
-
|
|
312
|
-
在进入数据库模式设计之前,创建一个清晰的概念模型。
|
|
313
|
-
elicit: true
|
|
314
|
-
repeatable: true
|
|
315
|
-
sections:
|
|
316
|
-
- id: model
|
|
317
|
-
title: "{{model_name}}"
|
|
318
|
-
template: |
|
|
319
|
-
**用途:** {{model_purpose}}
|
|
320
|
-
|
|
321
|
-
**关键属性:**
|
|
322
|
-
- {{attribute_1}}: {{type_1}} - {{description_1}}
|
|
323
|
-
- {{attribute_2}}: {{type_2}} - {{description_2}}
|
|
324
|
-
sections:
|
|
325
|
-
- id: typescript-interface
|
|
326
|
-
title: TypeScript 接口
|
|
327
|
-
type: code
|
|
328
|
-
language: typescript
|
|
329
|
-
template: "{{model_interface}}"
|
|
330
|
-
- id: relationships
|
|
331
|
-
title: 关系
|
|
332
|
-
type: bullet-list
|
|
333
|
-
template: "- {{relationship}}"
|
|
334
|
-
|
|
335
|
-
- id: api-spec
|
|
336
|
-
title: API 规范
|
|
337
|
-
instruction: |
|
|
338
|
-
基于在技术栈中选择的 API 风格:
|
|
339
|
-
|
|
340
|
-
1. 如果是 REST API, 创建一个 OpenAPI 3.0 规范
|
|
341
|
-
2. 如果是 GraphQL, 提供 GraphQL 模式
|
|
342
|
-
3. 如果是 tRPC, 展示路由定义
|
|
343
|
-
4. 包括来自模块/故事的所有端点
|
|
344
|
-
5. 基于数据模型定义请求/响应模式
|
|
345
|
-
6. 记录认证要求
|
|
346
|
-
7. 包括请求/响应示例
|
|
347
|
-
|
|
348
|
-
使用与所选 API 风格相符的格式。如果项目没有 API (例如, 静态网站),则跳过此部分。
|
|
349
|
-
elicit: true
|
|
350
|
-
sections:
|
|
351
|
-
- id: rest-api
|
|
352
|
-
title: REST API 规范
|
|
353
|
-
condition: API 风格为 REST
|
|
354
|
-
type: code
|
|
355
|
-
language: yaml
|
|
356
|
-
template: |
|
|
357
|
-
openapi: 3.0.0
|
|
358
|
-
info:
|
|
359
|
-
title: {{api_title}}
|
|
360
|
-
version: {{api_version}}
|
|
361
|
-
description: {{api_description}}
|
|
362
|
-
servers:
|
|
363
|
-
- url: {{server_url}}
|
|
364
|
-
description: {{server_description}}
|
|
365
|
-
- id: graphql-api
|
|
366
|
-
title: GraphQL 模式
|
|
367
|
-
condition: API 风格为 GraphQL
|
|
368
|
-
type: code
|
|
369
|
-
language: graphql
|
|
370
|
-
template: "{{graphql_schema}}"
|
|
371
|
-
- id: trpc-api
|
|
372
|
-
title: tRPC 路由定义
|
|
373
|
-
condition: API 风格为 tRPC
|
|
374
|
-
type: code
|
|
375
|
-
language: typescript
|
|
376
|
-
template: "{{trpc_routers}}"
|
|
377
|
-
|
|
378
|
-
- id: components
|
|
379
|
-
title: 组件
|
|
380
|
-
instruction: |
|
|
381
|
-
基于上述的架构模式、技术栈和数据模型:
|
|
382
|
-
|
|
383
|
-
1. 识别整个全栈中的主要逻辑组件/服务
|
|
384
|
-
2. 同时考虑前端和后端组件
|
|
385
|
-
3. 在组件之间定义清晰的边界和接口
|
|
386
|
-
4. 对每个组件,指明:
|
|
387
|
-
- 主要职责
|
|
388
|
-
- 暴露的关键接口/API
|
|
389
|
-
- 对其他组件的依赖
|
|
390
|
-
- 基于技术栈选择的技术细节
|
|
391
|
-
|
|
392
|
-
5. 在有帮助的地方创建组件图
|
|
393
|
-
elicit: true
|
|
394
|
-
sections:
|
|
395
|
-
- id: component-list
|
|
396
|
-
repeatable: true
|
|
397
|
-
title: "{{component_name}}"
|
|
398
|
-
template: |
|
|
399
|
-
**职责:** {{component_description}}
|
|
400
|
-
|
|
401
|
-
**关键接口:**
|
|
402
|
-
- {{interface_1}}
|
|
403
|
-
- {{interface_2}}
|
|
404
|
-
|
|
405
|
-
**依赖:** {{dependencies}}
|
|
406
|
-
|
|
407
|
-
**技术栈:** {{component_tech_details}}
|
|
408
|
-
- id: component-diagrams
|
|
409
|
-
title: 组件图
|
|
410
|
-
type: mermaid
|
|
411
|
-
instruction: |
|
|
412
|
-
创建 Mermaid 图来可视化组件关系。选项包括:
|
|
413
|
-
- 用于高层视图的 C4 容器图
|
|
414
|
-
- 用于详细内部结构的组件图
|
|
415
|
-
- 用于复杂交互的时序图
|
|
416
|
-
选择最合适的图以保证清晰。
|
|
417
|
-
|
|
418
|
-
- id: external-apis
|
|
419
|
-
title: 外部 API
|
|
420
|
-
condition: 项目需要集成外部 API
|
|
421
|
-
instruction: |
|
|
422
|
-
对于每个外部服务集成:
|
|
423
|
-
|
|
424
|
-
1. 根据 PRD 需求和组件设计,识别所需的 API
|
|
425
|
-
2. 如果文档 URL 未知,向用户询问具体信息
|
|
426
|
-
3. 记录认证方法和安全考量
|
|
427
|
-
4. 列出将要使用的具体端点
|
|
428
|
-
5. 注意任何速率限制或使用约束
|
|
429
|
-
|
|
430
|
-
如果不需要外部 API,请明确说明并跳到下一部分。
|
|
431
|
-
elicit: true
|
|
432
|
-
repeatable: true
|
|
433
|
-
sections:
|
|
434
|
-
- id: api
|
|
435
|
-
title: "{{api_name}} API"
|
|
436
|
-
template: |
|
|
437
|
-
- **用途:** {{api_purpose}}
|
|
438
|
-
- **文档:** {{api_docs_url}}
|
|
439
|
-
- **基础 URL(s):** {{api_base_url}}
|
|
440
|
-
- **认证:** {{auth_method}}
|
|
441
|
-
- **速率限制:** {{rate_limits}}
|
|
442
|
-
|
|
443
|
-
**使用的关键端点:**
|
|
444
|
-
- `{{method}} {{endpoint_path}}` - {{endpoint_purpose}}
|
|
445
|
-
|
|
446
|
-
**集成说明:** {{integration_considerations}}
|
|
447
|
-
|
|
448
|
-
- id: core-workflows
|
|
449
|
-
title: 核心工作流
|
|
450
|
-
type: mermaid
|
|
451
|
-
mermaid_type: sequence
|
|
452
|
-
instruction: |
|
|
453
|
-
使用时序图阐释关键的系统工作流:
|
|
454
|
-
|
|
455
|
-
1. 从 PRD 中识别关键的用户旅程
|
|
456
|
-
2. 展示包括外部 API 在内的组件交互
|
|
457
|
-
3. 包括前端和后端的流程
|
|
458
|
-
4. 包括错误处理路径
|
|
459
|
-
5. 记录异步操作
|
|
460
|
-
6. 根据需要创建高层和详细的图表
|
|
461
|
-
|
|
462
|
-
重点关注那些能阐明架构决策或复杂交互的工作流。
|
|
463
|
-
elicit: true
|
|
464
|
-
|
|
465
|
-
- id: database-schema
|
|
466
|
-
title: 数据库模式
|
|
467
|
-
instruction: |
|
|
468
|
-
将概念数据模型转换为具体的数据库模式:
|
|
469
|
-
|
|
470
|
-
1. 使用技术栈中选择的数据库类型
|
|
471
|
-
2. 使用适当的表示法创建模式定义
|
|
472
|
-
3. 包括索引、约束和关系
|
|
473
|
-
4. 考虑性能和可伸缩性
|
|
474
|
-
5. 对于 NoSQL, 展示文档结构
|
|
475
|
-
|
|
476
|
-
以适合数据库类型的格式呈现模式 (SQL DDL, JSON schema, 等)。
|
|
477
|
-
elicit: true
|
|
478
|
-
|
|
479
|
-
- id: frontend-architecture
|
|
480
|
-
title: 前端架构
|
|
481
|
-
instruction: 定义前端特定的架构细节。在每个子部分之后,询问用户是否希望在继续前进行优化。
|
|
482
|
-
elicit: true
|
|
483
|
-
sections:
|
|
484
|
-
- id: component-architecture
|
|
485
|
-
title: 组件架构
|
|
486
|
-
instruction: 根据所选框架定义组件组织和模式。
|
|
487
|
-
sections:
|
|
488
|
-
- id: component-organization
|
|
489
|
-
title: 组件组织
|
|
490
|
-
type: code
|
|
491
|
-
language: text
|
|
492
|
-
template: "{{component_structure}}"
|
|
493
|
-
- id: component-template
|
|
494
|
-
title: 组件模板
|
|
495
|
-
type: code
|
|
496
|
-
language: typescript
|
|
497
|
-
template: "{{component_template}}"
|
|
498
|
-
- id: state-management
|
|
499
|
-
title: 状态管理架构
|
|
500
|
-
instruction: 基于所选方案详细说明状态管理方法。
|
|
501
|
-
sections:
|
|
502
|
-
- id: state-structure
|
|
503
|
-
title: 状态结构
|
|
504
|
-
type: code
|
|
505
|
-
language: typescript
|
|
506
|
-
template: "{{state_structure}}"
|
|
507
|
-
- id: state-patterns
|
|
508
|
-
title: 状态管理模式
|
|
509
|
-
type: bullet-list
|
|
510
|
-
template: "- {{pattern}}"
|
|
511
|
-
- id: routing-architecture
|
|
512
|
-
title: 路由架构
|
|
513
|
-
instruction: 根据框架选择定义路由结构。
|
|
514
|
-
sections:
|
|
515
|
-
- id: route-organization
|
|
516
|
-
title: 路由组织
|
|
517
|
-
type: code
|
|
518
|
-
language: text
|
|
519
|
-
template: "{{route_structure}}"
|
|
520
|
-
- id: protected-routes
|
|
521
|
-
title: 受保护路由模式
|
|
522
|
-
type: code
|
|
523
|
-
language: typescript
|
|
524
|
-
template: "{{protected_route_example}}"
|
|
525
|
-
- id: frontend-services
|
|
526
|
-
title: 前端服务层
|
|
527
|
-
instruction: 定义前端如何与后端通信。
|
|
528
|
-
sections:
|
|
529
|
-
- id: api-client-setup
|
|
530
|
-
title: API 客户端设置
|
|
531
|
-
type: code
|
|
532
|
-
language: typescript
|
|
533
|
-
template: "{{api_client_setup}}"
|
|
534
|
-
- id: service-example
|
|
535
|
-
title: 服务示例
|
|
536
|
-
type: code
|
|
537
|
-
language: typescript
|
|
538
|
-
template: "{{service_example}}"
|
|
539
|
-
|
|
540
|
-
- id: backend-architecture
|
|
541
|
-
title: 后端架构
|
|
542
|
-
instruction: 定义后端特定的架构细节。考虑 serverless 与传统服务器方法。
|
|
543
|
-
elicit: true
|
|
544
|
-
sections:
|
|
545
|
-
- id: service-architecture
|
|
546
|
-
title: 服务架构
|
|
547
|
-
instruction: 基于平台选择,定义服务组织。
|
|
548
|
-
sections:
|
|
549
|
-
- id: serverless-architecture
|
|
550
|
-
condition: 选择 Serverless 架构时
|
|
551
|
-
sections:
|
|
552
|
-
- id: function-organization
|
|
553
|
-
title: 函数组织
|
|
554
|
-
type: code
|
|
555
|
-
language: text
|
|
556
|
-
template: "{{function_structure}}"
|
|
557
|
-
- id: function-template
|
|
558
|
-
title: 函数模板
|
|
559
|
-
type: code
|
|
560
|
-
language: typescript
|
|
561
|
-
template: "{{function_template}}"
|
|
562
|
-
- id: traditional-server
|
|
563
|
-
condition: 选择传统服务器架构时
|
|
564
|
-
sections:
|
|
565
|
-
- id: controller-organization
|
|
566
|
-
title: 控制器/路由组织
|
|
567
|
-
type: code
|
|
568
|
-
language: text
|
|
569
|
-
template: "{{controller_structure}}"
|
|
570
|
-
- id: controller-template
|
|
571
|
-
title: 控制器模板
|
|
572
|
-
type: code
|
|
573
|
-
language: typescript
|
|
574
|
-
template: "{{controller_template}}"
|
|
575
|
-
- id: database-architecture
|
|
576
|
-
title: 数据库架构
|
|
577
|
-
instruction: 定义数据库模式和访问模式。
|
|
578
|
-
sections:
|
|
579
|
-
- id: schema-design
|
|
580
|
-
title: 模式设计
|
|
581
|
-
type: code
|
|
582
|
-
language: sql
|
|
583
|
-
template: "{{database_schema}}"
|
|
584
|
-
- id: data-access-layer
|
|
585
|
-
title: 数据访问层
|
|
586
|
-
type: code
|
|
587
|
-
language: typescript
|
|
588
|
-
template: "{{repository_pattern}}"
|
|
589
|
-
- id: auth-architecture
|
|
590
|
-
title: 认证与授权
|
|
591
|
-
instruction: 定义认证实现的细节。
|
|
592
|
-
sections:
|
|
593
|
-
- id: auth-flow
|
|
594
|
-
title: 认证流程
|
|
595
|
-
type: mermaid
|
|
596
|
-
mermaid_type: sequence
|
|
597
|
-
template: "{{auth_flow_diagram}}"
|
|
598
|
-
- id: auth-middleware
|
|
599
|
-
title: 中间件/守卫
|
|
600
|
-
type: code
|
|
601
|
-
language: typescript
|
|
602
|
-
template: "{{auth_middleware}}"
|
|
603
|
-
|
|
604
|
-
- id: unified-project-structure
|
|
605
|
-
title: 统一项目结构
|
|
606
|
-
instruction: 创建一个能够容纳前后端的 monorepo 结构。根据所选的工具和框架进行调整。
|
|
607
|
-
elicit: true
|
|
608
|
-
type: code
|
|
609
|
-
language: plaintext
|
|
610
|
-
examples:
|
|
611
|
-
- |
|
|
612
|
-
{{project-name}}/
|
|
613
|
-
├── .github/ # CI/CD 工作流
|
|
614
|
-
│ └── workflows/
|
|
615
|
-
│ ├── ci.yaml
|
|
616
|
-
│ └── deploy.yaml
|
|
617
|
-
├── apps/ # 应用包
|
|
618
|
-
│ ├── web/ # 前端应用
|
|
619
|
-
│ │ ├── src/
|
|
620
|
-
│ │ │ ├── components/ # UI 组件
|
|
621
|
-
│ │ │ ├── pages/ # 页面组件/路由
|
|
622
|
-
│ │ │ ├── hooks/ # 自定义 React 钩子
|
|
623
|
-
│ │ │ ├── services/ # API 客户端服务
|
|
624
|
-
│ │ │ ├── stores/ # 状态管理
|
|
625
|
-
│ │ │ ├── styles/ # 全局样式/主题
|
|
626
|
-
│ │ │ └── utils/ # 前端工具库
|
|
627
|
-
│ │ ├── public/ # 静态资源
|
|
628
|
-
│ │ ├── tests/ # 前端测试
|
|
629
|
-
│ │ └── package.json
|
|
630
|
-
│ └── api/ # 后端应用
|
|
631
|
-
│ ├── src/
|
|
632
|
-
│ │ ├── routes/ # API 路由/控制器
|
|
633
|
-
│ │ ├── services/ # 业务逻辑
|
|
634
|
-
│ │ ├── models/ # 数据模型
|
|
635
|
-
│ │ ├── middleware/ # Express/API 中间件
|
|
636
|
-
│ │ ├── utils/ # 后端工具库
|
|
637
|
-
│ │ └── {{serverless_or_server_entry}}
|
|
638
|
-
│ ├── tests/ # 后端测试
|
|
639
|
-
│ └── package.json
|
|
640
|
-
├── packages/ # 共享包
|
|
641
|
-
│ ├── shared/ # 共享类型/工具库
|
|
642
|
-
│ │ ├── src/
|
|
643
|
-
│ │ │ ├── types/ # TypeScript 接口
|
|
644
|
-
│ │ │ ├── constants/ # 共享常量
|
|
645
|
-
│ │ │ └── utils/ # 共享工具库
|
|
646
|
-
│ │ └── package.json
|
|
647
|
-
│ ├── ui/ # 共享 UI 组件
|
|
648
|
-
│ │ ├── src/
|
|
649
|
-
│ │ └── package.json
|
|
650
|
-
│ └── config/ # 共享配置
|
|
651
|
-
│ ├── eslint/
|
|
652
|
-
│ ├── typescript/
|
|
653
|
-
│ └── jest/
|
|
654
|
-
├── infrastructure/ # IaC 定义
|
|
655
|
-
│ └── {{iac_structure}}
|
|
656
|
-
├── scripts/ # 构建/部署脚本
|
|
657
|
-
├── docs/ # 文档
|
|
658
|
-
│ ├── prd.md
|
|
659
|
-
│ ├── front-end-spec.md
|
|
660
|
-
│ └── fullstack-architecture.md
|
|
661
|
-
├── .env.example # 环境模板
|
|
662
|
-
├── package.json # 根 package.json
|
|
663
|
-
├── {{monorepo_config}} # Monorepo 配置文件
|
|
664
|
-
└── README.md
|
|
665
|
-
|
|
666
|
-
- id: development-workflow
|
|
667
|
-
title: 开发工作流
|
|
668
|
-
instruction: 为全栈应用定义开发设置和工作流。
|
|
669
|
-
elicit: true
|
|
670
|
-
sections:
|
|
671
|
-
- id: local-setup
|
|
672
|
-
title: 本地开发设置
|
|
673
|
-
sections:
|
|
674
|
-
- id: prerequisites
|
|
675
|
-
title: 先决条件
|
|
676
|
-
type: code
|
|
677
|
-
language: bash
|
|
678
|
-
template: "{{prerequisites_commands}}"
|
|
679
|
-
- id: initial-setup
|
|
680
|
-
title: 初始设置
|
|
681
|
-
type: code
|
|
682
|
-
language: bash
|
|
683
|
-
template: "{{setup_commands}}"
|
|
684
|
-
- id: dev-commands
|
|
685
|
-
title: 开发命令
|
|
686
|
-
type: code
|
|
687
|
-
language: bash
|
|
688
|
-
template: |
|
|
689
|
-
# 启动所有服务
|
|
690
|
-
{{start_all_command}}
|
|
691
|
-
|
|
692
|
-
# 仅启动前端
|
|
693
|
-
{{start_frontend_command}}
|
|
694
|
-
|
|
695
|
-
# 仅启动后端
|
|
696
|
-
{{start_backend_command}}
|
|
697
|
-
|
|
698
|
-
# 运行测试
|
|
699
|
-
{{test_commands}}
|
|
700
|
-
- id: environment-config
|
|
701
|
-
title: 环境配置
|
|
702
|
-
sections:
|
|
703
|
-
- id: env-vars
|
|
704
|
-
title: 所需环境变量
|
|
705
|
-
type: code
|
|
706
|
-
language: bash
|
|
707
|
-
template: |
|
|
708
|
-
# 前端 (.env.local)
|
|
709
|
-
{{frontend_env_vars}}
|
|
710
|
-
|
|
711
|
-
# 后端 (.env)
|
|
712
|
-
{{backend_env_vars}}
|
|
713
|
-
|
|
714
|
-
# 共享
|
|
715
|
-
{{shared_env_vars}}
|
|
716
|
-
|
|
717
|
-
- id: deployment-architecture
|
|
718
|
-
title: 部署架构
|
|
719
|
-
instruction: 基于平台选择定义部署策略。
|
|
720
|
-
elicit: true
|
|
721
|
-
sections:
|
|
722
|
-
- id: deployment-strategy
|
|
723
|
-
title: 部署策略
|
|
724
|
-
template: |
|
|
725
|
-
**前端部署:**
|
|
726
|
-
- **平台:** {{frontend_deploy_platform}}
|
|
727
|
-
- **构建命令:** {{frontend_build_command}}
|
|
728
|
-
- **输出目录:** {{frontend_output_dir}}
|
|
729
|
-
- **CDN/边缘网络:** {{cdn_strategy}}
|
|
730
|
-
|
|
731
|
-
**后端部署:**
|
|
732
|
-
- **平台:** {{backend_deploy_platform}}
|
|
733
|
-
- **构建命令:** {{backend_build_command}}
|
|
734
|
-
- **部署方法:** {{deployment_method}}
|
|
735
|
-
- id: cicd-pipeline
|
|
736
|
-
title: CI/CD 流水线
|
|
737
|
-
type: code
|
|
738
|
-
language: yaml
|
|
739
|
-
template: "{{cicd_pipeline_config}}"
|
|
740
|
-
- id: environments
|
|
741
|
-
title: 环境
|
|
742
|
-
type: table
|
|
743
|
-
columns: [环境, 前端 URL, 后端 URL, 用途]
|
|
744
|
-
rows:
|
|
745
|
-
- ["开发", "{{dev_fe_url}}", "{{dev_be_url}}", "本地开发"]
|
|
746
|
-
- ["预发布", "{{staging_fe_url}}", "{{staging_be_url}}", "生产前测试"]
|
|
747
|
-
- ["生产", "{{prod_fe_url}}", "{{prod_be_url}}", "线上环境"]
|
|
748
|
-
|
|
749
|
-
- id: security-performance
|
|
750
|
-
title: 安全性与性能
|
|
751
|
-
instruction: 为全栈应用定义安全性和性能方面的考量。
|
|
752
|
-
elicit: true
|
|
753
|
-
sections:
|
|
754
|
-
- id: security-requirements
|
|
755
|
-
title: 安全要求
|
|
756
|
-
template: |
|
|
757
|
-
**前端安全:**
|
|
758
|
-
- CSP 头: {{csp_policy}}
|
|
759
|
-
- XSS 防护: {{xss_strategy}}
|
|
760
|
-
- 安全存储: {{storage_strategy}}
|
|
761
|
-
|
|
762
|
-
**后端安全:**
|
|
763
|
-
- 输入验证: {{validation_approach}}
|
|
764
|
-
- 速率限制: {{rate_limit_config}}
|
|
765
|
-
- CORS 策略: {{cors_config}}
|
|
766
|
-
|
|
767
|
-
**认证安全:**
|
|
768
|
-
- 令牌存储: {{token_strategy}}
|
|
769
|
-
- 会话管理: {{session_approach}}
|
|
770
|
-
- 密码策略: {{password_requirements}}
|
|
771
|
-
- id: performance-optimization
|
|
772
|
-
title: 性能优化
|
|
773
|
-
template: |
|
|
774
|
-
**前端性能:**
|
|
775
|
-
- 打包体积目标: {{bundle_size}}
|
|
776
|
-
- 加载策略: {{loading_approach}}
|
|
777
|
-
- 缓存策略: {{fe_cache_strategy}}
|
|
778
|
-
|
|
779
|
-
**后端性能:**
|
|
780
|
-
- 响应时间目标: {{response_target}}
|
|
781
|
-
- 数据库优化: {{db_optimization}}
|
|
782
|
-
- 缓存策略: {{be_cache_strategy}}
|
|
783
|
-
|
|
784
|
-
- id: testing-strategy
|
|
785
|
-
title: 测试策略
|
|
786
|
-
instruction: 为全栈应用定义全面的测试方法。
|
|
787
|
-
elicit: true
|
|
788
|
-
sections:
|
|
789
|
-
- id: testing-pyramid
|
|
790
|
-
title: 测试金字塔
|
|
791
|
-
type: code
|
|
792
|
-
language: text
|
|
793
|
-
template: |
|
|
794
|
-
E2E 测试
|
|
795
|
-
/ \
|
|
796
|
-
集成测试
|
|
797
|
-
/ \
|
|
798
|
-
前端单元测试 后端单元测试
|
|
799
|
-
- id: test-organization
|
|
800
|
-
title: 测试组织
|
|
801
|
-
sections:
|
|
802
|
-
- id: frontend-tests
|
|
803
|
-
title: 前端测试
|
|
804
|
-
type: code
|
|
805
|
-
language: text
|
|
806
|
-
template: "{{frontend_test_structure}}"
|
|
807
|
-
- id: backend-tests
|
|
808
|
-
title: 后端测试
|
|
809
|
-
type: code
|
|
810
|
-
language: text
|
|
811
|
-
template: "{{backend_test_structure}}"
|
|
812
|
-
- id: e2e-tests
|
|
813
|
-
title: E2E 测试
|
|
814
|
-
type: code
|
|
815
|
-
language: text
|
|
816
|
-
template: "{{e2e_test_structure}}"
|
|
817
|
-
- id: test-examples
|
|
818
|
-
title: 测试示例
|
|
819
|
-
sections:
|
|
820
|
-
- id: frontend-test
|
|
821
|
-
title: 前端组件测试
|
|
822
|
-
type: code
|
|
823
|
-
language: typescript
|
|
824
|
-
template: "{{frontend_test_example}}"
|
|
825
|
-
- id: backend-test
|
|
826
|
-
title: 后端 API 测试
|
|
827
|
-
type: code
|
|
828
|
-
language: typescript
|
|
829
|
-
template: "{{backend_test_example}}"
|
|
830
|
-
- id: e2e-test
|
|
831
|
-
title: E2E 测试
|
|
832
|
-
type: code
|
|
833
|
-
language: typescript
|
|
834
|
-
template: "{{e2e_test_example}}"
|
|
835
|
-
|
|
836
|
-
- id: coding-standards
|
|
837
|
-
title: 编码规范
|
|
838
|
-
instruction: 为 AI 代理定义最少但关键的规范。仅关注能防止常见错误的项目特定规则。这些规范将由开发代理使用。
|
|
839
|
-
elicit: true
|
|
840
|
-
sections:
|
|
841
|
-
- id: critical-rules
|
|
842
|
-
title: 关键全栈规则
|
|
843
|
-
repeatable: true
|
|
844
|
-
template: "- **{{rule_name}}:** {{rule_description}}"
|
|
845
|
-
examples:
|
|
846
|
-
- "**类型共享:** 始终在 packages/shared 中定义类型并从那里导入"
|
|
847
|
-
- "**API 调用:** 绝不直接进行 HTTP 调用 - 使用服务层"
|
|
848
|
-
- "**环境变量:** 仅通过配置对象访问,绝不直接使用 process.env"
|
|
849
|
-
- "**错误处理:** 所有 API 路由必须使用标准的错误处理器"
|
|
850
|
-
- "**状态更新:** 绝不直接修改状态 - 使用正确的状态管理模式"
|
|
851
|
-
- id: naming-conventions
|
|
852
|
-
title: 命名约定
|
|
853
|
-
type: table
|
|
854
|
-
columns: [元素, 前端, 后端, 示例]
|
|
855
|
-
rows:
|
|
856
|
-
- ["组件", "PascalCase", "-", "`UserProfile.tsx`"]
|
|
857
|
-
- ["Hooks", "使用 'use' 前缀的 camelCase", "-", "`useAuth.ts`"]
|
|
858
|
-
- ["API 路由", "-", "kebab-case", "`/api/user-profile`"]
|
|
859
|
-
- ["数据库表", "-", "snake_case", "`user_profiles`"]
|
|
860
|
-
|
|
861
|
-
- id: error-handling
|
|
862
|
-
title: 错误处理策略
|
|
863
|
-
instruction: 定义跨前后端的统一错误处理。
|
|
864
|
-
elicit: true
|
|
865
|
-
sections:
|
|
866
|
-
- id: error-flow
|
|
867
|
-
title: 错误流程
|
|
868
|
-
type: mermaid
|
|
869
|
-
mermaid_type: sequence
|
|
870
|
-
template: "{{error_flow_diagram}}"
|
|
871
|
-
- id: error-format
|
|
872
|
-
title: 错误响应格式
|
|
873
|
-
type: code
|
|
874
|
-
language: typescript
|
|
875
|
-
template: |
|
|
876
|
-
interface ApiError {
|
|
877
|
-
error: {
|
|
878
|
-
code: string;
|
|
879
|
-
message: string;
|
|
880
|
-
details?: Record<string, any>;
|
|
881
|
-
timestamp: string;
|
|
882
|
-
requestId: string;
|
|
883
|
-
};
|
|
884
|
-
}
|
|
885
|
-
- id: frontend-error-handling
|
|
886
|
-
title: 前端错误处理
|
|
887
|
-
type: code
|
|
888
|
-
language: typescript
|
|
889
|
-
template: "{{frontend_error_handler}}"
|
|
890
|
-
- id: backend-error-handling
|
|
891
|
-
title: 后端错误处理
|
|
892
|
-
type: code
|
|
893
|
-
language: typescript
|
|
894
|
-
template: "{{backend_error_handler}}"
|
|
895
|
-
|
|
896
|
-
- id: monitoring
|
|
897
|
-
title: 监控与可观测性
|
|
898
|
-
instruction: 为全栈应用定义监控策略。
|
|
899
|
-
elicit: true
|
|
900
|
-
sections:
|
|
901
|
-
- id: monitoring-stack
|
|
902
|
-
title: 监控技术栈
|
|
903
|
-
template: |
|
|
904
|
-
- **前端监控:** {{frontend_monitoring}}
|
|
905
|
-
- **后端监控:** {{backend_monitoring}}
|
|
906
|
-
- **错误跟踪:** {{error_tracking}}
|
|
907
|
-
- **性能监控:** {{perf_monitoring}}
|
|
908
|
-
- id: key-metrics
|
|
909
|
-
title: 关键指标
|
|
910
|
-
template: |
|
|
911
|
-
**前端指标:**
|
|
912
|
-
- Core Web Vitals
|
|
913
|
-
- JavaScript 错误
|
|
914
|
-
- API 响应时间
|
|
915
|
-
- 用户交互
|
|
916
|
-
|
|
917
|
-
**后端指标:**
|
|
918
|
-
- 请求速率
|
|
919
|
-
- 错误率
|
|
920
|
-
- 响应时间
|
|
921
|
-
- 数据库查询性能
|
|
922
|
-
|
|
923
|
-
- id: checklist-results
|
|
924
|
-
title: 检查清单结果报告
|
|
925
|
-
instruction: 在运行检查清单前,提议输出完整的架构文档。一旦用户确认,执行 architect-checklist 并在此处填充结果。
|