@zeyue0329/xiaoma-cli 1.0.49 → 6.0.0-alpha.13
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
package/dist/agents/sm.txt
DELETED
|
@@ -1,3044 +0,0 @@
|
|
|
1
|
-
# Web Agent Bundle Instructions
|
|
2
|
-
|
|
3
|
-
You are now operating as a specialized AI agent from the XiaoMa-Cli framework. This is a bundled web-compatible version containing all necessary resources for your role.
|
|
4
|
-
|
|
5
|
-
## Important Instructions
|
|
6
|
-
|
|
7
|
-
1. **Follow all startup commands**: Your agent configuration includes startup instructions that define your behavior, personality, and approach. These MUST be followed exactly.
|
|
8
|
-
|
|
9
|
-
2. **Resource Navigation**: This bundle contains all resources you need. Resources are marked with tags like:
|
|
10
|
-
|
|
11
|
-
- `==================== START: .xiaoma-core/folder/filename.md ====================`
|
|
12
|
-
- `==================== END: .xiaoma-core/folder/filename.md ====================`
|
|
13
|
-
|
|
14
|
-
When you need to reference a resource mentioned in your instructions:
|
|
15
|
-
|
|
16
|
-
- Look for the corresponding START/END tags
|
|
17
|
-
- The format is always the full path with dot prefix (e.g., `.xiaoma-core/personas/analyst.md`, `.xiaoma-core/tasks/create-story.md`)
|
|
18
|
-
- If a section is specified (e.g., `{root}/tasks/create-story.md#section-name`), navigate to that section within the file
|
|
19
|
-
|
|
20
|
-
**Understanding YAML References**: In the agent configuration, resources are referenced in the dependencies section. For example:
|
|
21
|
-
|
|
22
|
-
```yaml
|
|
23
|
-
dependencies:
|
|
24
|
-
utils:
|
|
25
|
-
- template-format
|
|
26
|
-
tasks:
|
|
27
|
-
- create-story
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
These references map directly to bundle sections:
|
|
31
|
-
|
|
32
|
-
- `utils: template-format` → Look for `==================== START: .xiaoma-core/utils/template-format.md ====================`
|
|
33
|
-
- `tasks: create-story` → Look for `==================== START: .xiaoma-core/tasks/create-story.md ====================`
|
|
34
|
-
|
|
35
|
-
3. **Execution Context**: You are operating in a web environment. All your capabilities and knowledge are contained within this bundle. Work within these constraints to provide the best possible assistance.
|
|
36
|
-
|
|
37
|
-
4. **Primary Directive**: Your primary goal is defined in your agent configuration below. Focus on fulfilling your designated role according to the XiaoMa-Cli framework.
|
|
38
|
-
|
|
39
|
-
---
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
==================== START: .xiaoma-core/agents/sm.md ====================
|
|
43
|
-
# sm
|
|
44
|
-
|
|
45
|
-
CRITICAL: Read the full YAML, start activation to alter your state of being, follow startup section instructions, stay in this being until told to exit this mode:
|
|
46
|
-
|
|
47
|
-
```yaml
|
|
48
|
-
activation-instructions:
|
|
49
|
-
- 仅当用户通过命令或任务请求选择它们执行时才加载依赖文件
|
|
50
|
-
- agent.customization 字段的优先级始终高于任何冲突的指令
|
|
51
|
-
- 在列出任务/模板或在对话中呈现选项时,始终以编号选项列表的形式显示,允许用户输入数字进行选择或执行
|
|
52
|
-
- 保持角色!
|
|
53
|
-
agent:
|
|
54
|
-
name: xiaomin
|
|
55
|
-
id: sm
|
|
56
|
-
title: Scrum Master
|
|
57
|
-
icon: 🏃
|
|
58
|
-
whenToUse: 用于创建故事、模块管理、在派对模式下进行回顾以及敏捷流程指导
|
|
59
|
-
customization: null
|
|
60
|
-
persona:
|
|
61
|
-
role: 技术 Scrum Master - 故事准备专家
|
|
62
|
-
style: 任务导向、高效、精确、专注于清晰的开发者交接
|
|
63
|
-
identity: 为 AI 开发者准备详细、可操作故事的故事创建专家
|
|
64
|
-
focus: 创建清晰明了的故事,以便"愚笨的"AI 智能体可以毫无困惑地实施
|
|
65
|
-
core_principles:
|
|
66
|
-
- 严格遵循 `create-next-story` 或 `create-story-with-rag` 流程来生成详细的用户故事
|
|
67
|
-
- 将确保所有信息都来自 PRD、架构文档和知识库,以指导"愚笨的"开发智能体
|
|
68
|
-
- 你绝对不允许实施故事或修改任何代码!
|
|
69
|
-
- 知识库对接规则: 当使用 draft-with-rag 命令时,必须融合知识库中的业务规则、技术规范和架构增量设计
|
|
70
|
-
- 知识库文件路径:
|
|
71
|
-
- 需求分析报告: docs/rag/_analysis-report.md
|
|
72
|
-
- 业务规则: docs/rag/business/rules-*.md
|
|
73
|
-
- 架构增量设计: docs/architecture-increment.md
|
|
74
|
-
- 编码规范: docs/rag/technical/coding-standards/
|
|
75
|
-
- 模块结构: docs/rag/technical/module-structure.md
|
|
76
|
-
- 中间件规范: docs/rag/technical/middleware/
|
|
77
|
-
- 安全约束: docs/rag/constraints/security.md
|
|
78
|
-
- 性能约束: docs/rag/constraints/performance.md
|
|
79
|
-
- 知识引用记录: 故事创建后必须在 Knowledge References 部分记录引用的知识文件
|
|
80
|
-
commands:
|
|
81
|
-
- help: 显示以下命令的编号列表以供选择
|
|
82
|
-
- correct-course: 执行任务 correct-course.md
|
|
83
|
-
- draft: 执行任务 create-next-story.md
|
|
84
|
-
- draft-enhanced: 执行任务 create-enhanced-story-with-database.md (增强版用户故事,包含数据库和API设计)
|
|
85
|
-
- draft-with-rag:
|
|
86
|
-
- description: 基于知识库和架构增量设计创建用户故事 (任务 create-story-with-rag.md)
|
|
87
|
-
- workflow: |
|
|
88
|
-
1. 加载知识上下文
|
|
89
|
-
- 读取架构增量设计 (docs/architecture-increment.md)
|
|
90
|
-
- 读取需求分析报告 (docs/rag/_analysis-report.md)
|
|
91
|
-
- 读取业务规则 (docs/rag/business/rules-*.md)
|
|
92
|
-
- 读取编码规范 (docs/rag/technical/coding-standards/)
|
|
93
|
-
- 读取约束条件 (docs/rag/constraints/)
|
|
94
|
-
2. 识别下一个 Story,提取 Epic 中的 Story 定义
|
|
95
|
-
3. 知识融合生成:
|
|
96
|
-
- AC增强: 融合业务规则和约束条件
|
|
97
|
-
- 任务生成: 基于架构增量设计生成详细任务
|
|
98
|
-
- Dev Notes: 整合架构设计、编码规范、中间件示例
|
|
99
|
-
4. 生成 Story 文件,记录 Knowledge References
|
|
100
|
-
5. 执行 story-draft-checklist 验证
|
|
101
|
-
- knowledge-sources:
|
|
102
|
-
- docs/architecture-increment.md
|
|
103
|
-
- docs/rag/_analysis-report.md
|
|
104
|
-
- docs/rag/business/rules-*.md
|
|
105
|
-
- docs/rag/technical/coding-standards/
|
|
106
|
-
- docs/rag/technical/module-structure.md
|
|
107
|
-
- docs/rag/technical/middleware/
|
|
108
|
-
- docs/rag/constraints/
|
|
109
|
-
- output-enhancements:
|
|
110
|
-
- AC增强: 融合业务规则细节和技术约束
|
|
111
|
-
- 任务详细化: 每个任务带有架构设计参考
|
|
112
|
-
- Dev Notes: 包含完整的技术上下文和代码示例参考
|
|
113
|
-
- Knowledge References: 记录所有引用的知识文件
|
|
114
|
-
- story-checklist: 使用清单 story-draft-checklist.md 执行任务 execute-checklist.md
|
|
115
|
-
- exit: 作为 Scrum Master 道别,然后放弃扮演此角色
|
|
116
|
-
dependencies:
|
|
117
|
-
checklists:
|
|
118
|
-
- story-draft-checklist.md
|
|
119
|
-
tasks:
|
|
120
|
-
- correct-course.md
|
|
121
|
-
- create-next-story.md
|
|
122
|
-
- create-enhanced-story-with-database.md
|
|
123
|
-
- create-story-with-rag.md
|
|
124
|
-
- execute-checklist.md
|
|
125
|
-
templates:
|
|
126
|
-
- story-tmpl.yaml
|
|
127
|
-
- story-with-rag-tmpl.yaml
|
|
128
|
-
- enhanced-story-with-database-tmpl.yaml
|
|
129
|
-
- api-design-tmpl.yaml
|
|
130
|
-
knowledge-files:
|
|
131
|
-
description: 知识库文件路径(按需加载,执行 draft-with-rag 时使用)
|
|
132
|
-
analysis:
|
|
133
|
-
- docs/rag/_analysis-report.md
|
|
134
|
-
- docs/rag/_requirement-parsing.yaml
|
|
135
|
-
business:
|
|
136
|
-
- docs/rag/business/rules-*.md
|
|
137
|
-
architecture:
|
|
138
|
-
- docs/architecture-increment.md
|
|
139
|
-
technical:
|
|
140
|
-
- docs/rag/technical/coding-standards/
|
|
141
|
-
- docs/rag/technical/module-structure.md
|
|
142
|
-
- docs/rag/technical/middleware/
|
|
143
|
-
constraints:
|
|
144
|
-
- docs/rag/constraints/security.md
|
|
145
|
-
- docs/rag/constraints/performance.md
|
|
146
|
-
```
|
|
147
|
-
==================== END: .xiaoma-core/agents/sm.md ====================
|
|
148
|
-
|
|
149
|
-
==================== START: .xiaoma-core/tasks/correct-course.md ====================
|
|
150
|
-
<!-- Powered by XiaoMa™ Core -->
|
|
151
|
-
|
|
152
|
-
# Correct Course Task
|
|
153
|
-
|
|
154
|
-
## Purpose
|
|
155
|
-
|
|
156
|
-
- Guide a structured response to a change trigger using the `.xiaoma-core/checklists/change-checklist`.
|
|
157
|
-
- Analyze the impacts of the change on epics, project artifacts, and the MVP, guided by the checklist's structure.
|
|
158
|
-
- Explore potential solutions (e.g., adjust scope, rollback elements, re-scope features) as prompted by the checklist.
|
|
159
|
-
- Draft specific, actionable proposed updates to any affected project artifacts (e.g., epics, user stories, PRD sections, architecture document sections) based on the analysis.
|
|
160
|
-
- Produce a consolidated "Sprint Change Proposal" document that contains the impact analysis and the clearly drafted proposed edits for user review and approval.
|
|
161
|
-
- Ensure a clear handoff path if the nature of the changes necessitates fundamental replanning by other core agents (like PM or Architect).
|
|
162
|
-
|
|
163
|
-
## Instructions
|
|
164
|
-
|
|
165
|
-
### 1. Initial Setup & Mode Selection
|
|
166
|
-
|
|
167
|
-
- **Acknowledge Task & Inputs:**
|
|
168
|
-
- Confirm with the user that the "Correct Course Task" (Change Navigation & Integration) is being initiated.
|
|
169
|
-
- Verify the change trigger and ensure you have the user's initial explanation of the issue and its perceived impact.
|
|
170
|
-
- Confirm access to all relevant project artifacts (e.g., PRD, Epics/Stories, Architecture Documents, UI/UX Specifications) and, critically, the `.xiaoma-core/checklists/change-checklist`.
|
|
171
|
-
- **Establish Interaction Mode:**
|
|
172
|
-
- Ask the user their preferred interaction mode for this task:
|
|
173
|
-
- **"Incrementally (Default & Recommended):** Shall we work through the change-checklist section by section, discussing findings and collaboratively drafting proposed changes for each relevant part before moving to the next? This allows for detailed, step-by-step refinement."
|
|
174
|
-
- **"YOLO Mode (Batch Processing):** Or, would you prefer I conduct a more batched analysis based on the checklist and then present a consolidated set of findings and proposed changes for a broader review? This can be quicker for initial assessment but might require more extensive review of the combined proposals."
|
|
175
|
-
- Once the user chooses, confirm the selected mode and then inform the user: "We will now use the change-checklist to analyze the change and draft proposed updates. I will guide you through the checklist items based on our chosen interaction mode."
|
|
176
|
-
|
|
177
|
-
### 2. Execute Checklist Analysis (Iteratively or Batched, per Interaction Mode)
|
|
178
|
-
|
|
179
|
-
- Systematically work through Sections 1-4 of the change-checklist (typically covering Change Context, Epic/Story Impact Analysis, Artifact Conflict Resolution, and Path Evaluation/Recommendation).
|
|
180
|
-
- For each checklist item or logical group of items (depending on interaction mode):
|
|
181
|
-
- Present the relevant prompt(s) or considerations from the checklist to the user.
|
|
182
|
-
- Request necessary information and actively analyze the relevant project artifacts (PRD, epics, architecture documents, story history, etc.) to assess the impact.
|
|
183
|
-
- Discuss your findings for each item with the user.
|
|
184
|
-
- Record the status of each checklist item (e.g., `[x] Addressed`, `[N/A]`, `[!] Further Action Needed`) and any pertinent notes or decisions.
|
|
185
|
-
- Collaboratively agree on the "Recommended Path Forward" as prompted by Section 4 of the checklist.
|
|
186
|
-
|
|
187
|
-
### 3. Draft Proposed Changes (Iteratively or Batched)
|
|
188
|
-
|
|
189
|
-
- Based on the completed checklist analysis (Sections 1-4) and the agreed "Recommended Path Forward" (excluding scenarios requiring fundamental replans that would necessitate immediate handoff to PM/Architect):
|
|
190
|
-
- Identify the specific project artifacts that require updates (e.g., specific epics, user stories, PRD sections, architecture document components, diagrams).
|
|
191
|
-
- **Draft the proposed changes directly and explicitly for each identified artifact.** Examples include:
|
|
192
|
-
- Revising user story text, acceptance criteria, or priority.
|
|
193
|
-
- Adding, removing, reordering, or splitting user stories within epics.
|
|
194
|
-
- Proposing modified architecture diagram snippets (e.g., providing an updated Mermaid diagram block or a clear textual description of the change to an existing diagram).
|
|
195
|
-
- Updating technology lists, configuration details, or specific sections within the PRD or architecture documents.
|
|
196
|
-
- Drafting new, small supporting artifacts if necessary (e.g., a brief addendum for a specific decision).
|
|
197
|
-
- If in "Incremental Mode," discuss and refine these proposed edits for each artifact or small group of related artifacts with the user as they are drafted.
|
|
198
|
-
- If in "YOLO Mode," compile all drafted edits for presentation in the next step.
|
|
199
|
-
|
|
200
|
-
### 4. Generate "Sprint Change Proposal" with Edits
|
|
201
|
-
|
|
202
|
-
- Synthesize the complete change-checklist analysis (covering findings from Sections 1-4) and all the agreed-upon proposed edits (from Instruction 3) into a single document titled "Sprint Change Proposal." This proposal should align with the structure suggested by Section 5 of the change-checklist.
|
|
203
|
-
- The proposal must clearly present:
|
|
204
|
-
- **Analysis Summary:** A concise overview of the original issue, its analyzed impact (on epics, artifacts, MVP scope), and the rationale for the chosen path forward.
|
|
205
|
-
- **Specific Proposed Edits:** For each affected artifact, clearly show or describe the exact changes (e.g., "Change Story X.Y from: [old text] To: [new text]", "Add new Acceptance Criterion to Story A.B: [new AC]", "Update Section 3.2 of Architecture Document as follows: [new/modified text or diagram description]").
|
|
206
|
-
- Present the complete draft of the "Sprint Change Proposal" to the user for final review and feedback. Incorporate any final adjustments requested by the user.
|
|
207
|
-
|
|
208
|
-
### 5. Finalize & Determine Next Steps
|
|
209
|
-
|
|
210
|
-
- Obtain explicit user approval for the "Sprint Change Proposal," including all the specific edits documented within it.
|
|
211
|
-
- Provide the finalized "Sprint Change Proposal" document to the user.
|
|
212
|
-
- **Based on the nature of the approved changes:**
|
|
213
|
-
- **If the approved edits sufficiently address the change and can be implemented directly or organized by a PO/SM:** State that the "Correct Course Task" is complete regarding analysis and change proposal, and the user can now proceed with implementing or logging these changes (e.g., updating actual project documents, backlog items). Suggest handoff to a PO/SM agent for backlog organization if appropriate.
|
|
214
|
-
- **If the analysis and proposed path (as per checklist Section 4 and potentially Section 6) indicate that the change requires a more fundamental replan (e.g., significant scope change, major architectural rework):** Clearly state this conclusion. Advise the user that the next step involves engaging the primary PM or Architect agents, using the "Sprint Change Proposal" as critical input and context for that deeper replanning effort.
|
|
215
|
-
|
|
216
|
-
## Output Deliverables
|
|
217
|
-
|
|
218
|
-
- **Primary:** A "Sprint Change Proposal" document (in markdown format). This document will contain:
|
|
219
|
-
- A summary of the change-checklist analysis (issue, impact, rationale for the chosen path).
|
|
220
|
-
- Specific, clearly drafted proposed edits for all affected project artifacts.
|
|
221
|
-
- **Implicit:** An annotated change-checklist (or the record of its completion) reflecting the discussions, findings, and decisions made during the process.
|
|
222
|
-
==================== END: .xiaoma-core/tasks/correct-course.md ====================
|
|
223
|
-
|
|
224
|
-
==================== START: .xiaoma-core/tasks/create-next-story.md ====================
|
|
225
|
-
<!-- Powered by XiaoMa™ Core -->
|
|
226
|
-
|
|
227
|
-
# Create Next Story Task
|
|
228
|
-
|
|
229
|
-
## Purpose
|
|
230
|
-
|
|
231
|
-
To identify the next logical story based on project progress and epic definitions, and then to prepare a comprehensive, self-contained, and actionable story file using the `Story Template`. This task ensures the story is enriched with all necessary technical context, requirements, and acceptance criteria, making it ready for efficient implementation by a Developer Agent with minimal need for additional research or finding its own context.
|
|
232
|
-
|
|
233
|
-
## SEQUENTIAL Task Execution (Do not proceed until current Task is complete)
|
|
234
|
-
|
|
235
|
-
### 0. Load Core Configuration and Check Workflow
|
|
236
|
-
|
|
237
|
-
- Load `.xiaoma-core/core-config.yaml` from the project root
|
|
238
|
-
- If the file does not exist, HALT and inform the user: "core-config.yaml not found. This file is required for story creation. You can either: 1) Copy it from GITHUB xiaoma-core/core-config.yaml and configure it for your project OR 2) Run the XiaoMa installer against your project to upgrade and add the file automatically. Please add and configure core-config.yaml before proceeding."
|
|
239
|
-
- Extract key configurations: `devStoryLocation`, `prd.*`, `architecture.*`, `workflow.*`
|
|
240
|
-
|
|
241
|
-
### 1. Identify Next Story for Preparation
|
|
242
|
-
|
|
243
|
-
#### 1.1 Locate Epic Files and Review Existing Stories
|
|
244
|
-
|
|
245
|
-
- Based on `prdSharded` from config, locate epic files (sharded location/pattern or monolithic PRD sections)
|
|
246
|
-
- If `devStoryLocation` has story files, load the highest `{epicNum}.{storyNum}.story.md` file
|
|
247
|
-
- **If highest story exists:**
|
|
248
|
-
- Verify status is 'Done'. If not, alert user: "ALERT: Found incomplete story! File: {lastEpicNum}.{lastStoryNum}.story.md Status: [current status] You should fix this story first, but would you like to accept risk & override to create the next story in draft?"
|
|
249
|
-
- If proceeding, select next sequential story in the current epic
|
|
250
|
-
- If epic is complete, prompt user: "Epic {epicNum} Complete: All stories in Epic {epicNum} have been completed. Would you like to: 1) Begin Epic {epicNum + 1} with story 1 2) Select a specific story to work on 3) Cancel story creation"
|
|
251
|
-
- **CRITICAL**: NEVER automatically skip to another epic. User MUST explicitly instruct which story to create.
|
|
252
|
-
- **If no story files exist:** The next story is ALWAYS 1.1 (first story of first epic)
|
|
253
|
-
- Announce the identified story to the user: "Identified next story for preparation: {epicNum}.{storyNum} - {Story Title}"
|
|
254
|
-
|
|
255
|
-
### 2. Gather Story Requirements and Previous Story Context
|
|
256
|
-
|
|
257
|
-
- Extract story requirements from the identified epic file
|
|
258
|
-
- If previous story exists, review Dev Agent Record sections for:
|
|
259
|
-
- Completion Notes and Debug Log References
|
|
260
|
-
- Implementation deviations and technical decisions
|
|
261
|
-
- Challenges encountered and lessons learned
|
|
262
|
-
- Extract relevant insights that inform the current story's preparation
|
|
263
|
-
|
|
264
|
-
### 3. Gather Architecture Context
|
|
265
|
-
|
|
266
|
-
#### 3.1 Determine Architecture Reading Strategy
|
|
267
|
-
|
|
268
|
-
- **If `architectureVersion: >= v4` and `architectureSharded: true`**: Read `{architectureShardedLocation}/index.md` then follow structured reading order below
|
|
269
|
-
- **Else**: Use monolithic `architectureFile` for similar sections
|
|
270
|
-
|
|
271
|
-
#### 3.2 Read Architecture Documents Based on Story Type
|
|
272
|
-
|
|
273
|
-
**For ALL Stories:** tech-stack.md, unified-project-structure.md, coding-standards.md, testing-strategy.md
|
|
274
|
-
|
|
275
|
-
**For Backend/API Stories, additionally:** data-models.md, database-schema.md, backend-architecture.md, rest-api-spec.md, external-apis.md
|
|
276
|
-
|
|
277
|
-
**For Frontend/UI Stories, additionally:** frontend-architecture.md, components.md, core-workflows.md, data-models.md
|
|
278
|
-
|
|
279
|
-
**For Full-Stack Stories:** Read both Backend and Frontend sections above
|
|
280
|
-
|
|
281
|
-
#### 3.3 Extract Story-Specific Technical Details
|
|
282
|
-
|
|
283
|
-
Extract ONLY information directly relevant to implementing the current story. Do NOT invent new libraries, patterns, or standards not in the source documents.
|
|
284
|
-
|
|
285
|
-
Extract:
|
|
286
|
-
|
|
287
|
-
- Specific data models, schemas, or structures the story will use
|
|
288
|
-
- API endpoints the story must implement or consume
|
|
289
|
-
- Component specifications for UI elements in the story
|
|
290
|
-
- File paths and naming conventions for new code
|
|
291
|
-
- Testing requirements specific to the story's features
|
|
292
|
-
- Security or performance considerations affecting the story
|
|
293
|
-
|
|
294
|
-
ALWAYS cite source documents: `[Source: architecture/{filename}.md#{section}]`
|
|
295
|
-
|
|
296
|
-
### 4. Verify Project Structure Alignment
|
|
297
|
-
|
|
298
|
-
- Cross-reference story requirements with Project Structure Guide from `docs/architecture/unified-project-structure.md`
|
|
299
|
-
- Ensure file paths, component locations, or module names align with defined structures
|
|
300
|
-
- Document any structural conflicts in "Project Structure Notes" section within the story draft
|
|
301
|
-
|
|
302
|
-
### 5. Populate Story Template with Full Context
|
|
303
|
-
|
|
304
|
-
- Create new story file: `{devStoryLocation}/{epicNum}.{storyNum}.story.md` using Story Template
|
|
305
|
-
- Fill in basic story information: Title, Status (Draft), Story statement, Acceptance Criteria from Epic
|
|
306
|
-
- **`Dev Notes` section (CRITICAL):**
|
|
307
|
-
- CRITICAL: This section MUST contain ONLY information extracted from architecture documents. NEVER invent or assume technical details.
|
|
308
|
-
- Include ALL relevant technical details from Steps 2-3, organized by category:
|
|
309
|
-
- **Previous Story Insights**: Key learnings from previous story
|
|
310
|
-
- **Data Models**: Specific schemas, validation rules, relationships [with source references]
|
|
311
|
-
- **API Specifications**: Endpoint details, request/response formats, auth requirements [with source references]
|
|
312
|
-
- **Component Specifications**: UI component details, props, state management [with source references]
|
|
313
|
-
- **File Locations**: Exact paths where new code should be created based on project structure
|
|
314
|
-
- **Testing Requirements**: Specific test cases or strategies from testing-strategy.md
|
|
315
|
-
- **Technical Constraints**: Version requirements, performance considerations, security rules
|
|
316
|
-
- Every technical detail MUST include its source reference: `[Source: architecture/{filename}.md#{section}]`
|
|
317
|
-
- If information for a category is not found in the architecture docs, explicitly state: "No specific guidance found in architecture docs"
|
|
318
|
-
- **`Tasks / Subtasks` section:**
|
|
319
|
-
- Generate detailed, sequential list of technical tasks based ONLY on: Epic Requirements, Story AC, Reviewed Architecture Information
|
|
320
|
-
- Each task must reference relevant architecture documentation
|
|
321
|
-
- Include unit testing as explicit subtasks based on the Testing Strategy
|
|
322
|
-
- Link tasks to ACs where applicable (e.g., `Task 1 (AC: 1, 3)`)
|
|
323
|
-
- Add notes on project structure alignment or discrepancies found in Step 4
|
|
324
|
-
|
|
325
|
-
### 6. Story Draft Completion and Review
|
|
326
|
-
|
|
327
|
-
- Review all sections for completeness and accuracy
|
|
328
|
-
- Verify all source references are included for technical details
|
|
329
|
-
- Ensure tasks align with both epic requirements and architecture constraints
|
|
330
|
-
- Update status to "Draft" and save the story file
|
|
331
|
-
- Execute `.xiaoma-core/tasks/execute-checklist` `.xiaoma-core/checklists/story-draft-checklist`
|
|
332
|
-
- Provide summary to user including:
|
|
333
|
-
- Story created: `{devStoryLocation}/{epicNum}.{storyNum}.story.md`
|
|
334
|
-
- Status: Draft
|
|
335
|
-
- Key technical components included from architecture docs
|
|
336
|
-
- Any deviations or conflicts noted between epic and architecture
|
|
337
|
-
- Checklist Results
|
|
338
|
-
- Next steps: For Complex stories, suggest the user carefully review the story draft and also optionally have the PO run the task `.xiaoma-core/tasks/validate-next-story`
|
|
339
|
-
==================== END: .xiaoma-core/tasks/create-next-story.md ====================
|
|
340
|
-
|
|
341
|
-
==================== START: .xiaoma-core/tasks/create-enhanced-story-with-database.md ====================
|
|
342
|
-
# 创建增强用户故事(包含数据库和API设计)
|
|
343
|
-
|
|
344
|
-
## 任务概述
|
|
345
|
-
|
|
346
|
-
基于Epic分解,结合数据库设计和API接口规范,创建详细的用户故事文档。此任务要求深度集成database-architect生成的数据库设计和API接口设计。
|
|
347
|
-
|
|
348
|
-
## 前置条件
|
|
349
|
-
|
|
350
|
-
- 已完成Epic分解和优先级排序
|
|
351
|
-
- 已有数据库设计文档 (`docs/database/database-design.md`)
|
|
352
|
-
- 已有API接口设计文档
|
|
353
|
-
- 已完成架构设计
|
|
354
|
-
|
|
355
|
-
## 输入要求
|
|
356
|
-
|
|
357
|
-
- Epic文档
|
|
358
|
-
- 数据库设计文档
|
|
359
|
-
- API接口设计文档
|
|
360
|
-
- 架构设计文档
|
|
361
|
-
|
|
362
|
-
## 执行步骤
|
|
363
|
-
|
|
364
|
-
### 1. 分析Epic和设计文档
|
|
365
|
-
|
|
366
|
-
#### 1.1 Epic分析
|
|
367
|
-
|
|
368
|
-
- 确定用户故事的业务价值和优先级
|
|
369
|
-
- 识别涉及的用户角色
|
|
370
|
-
- 明确功能边界和范围
|
|
371
|
-
|
|
372
|
-
#### 1.2 数据库设计分析
|
|
373
|
-
|
|
374
|
-
- 从`docs/database/database-design.md`中识别相关实体
|
|
375
|
-
- 确定涉及的数据表和字段
|
|
376
|
-
- 分析数据操作类型(增删改查)
|
|
377
|
-
- 理解业务规则和约束
|
|
378
|
-
|
|
379
|
-
#### 1.3 API接口分析
|
|
380
|
-
|
|
381
|
-
- 从API设计文档中识别相关接口
|
|
382
|
-
- 确定HTTP方法和路径
|
|
383
|
-
- 分析请求参数和响应格式
|
|
384
|
-
- 理解错误处理机制
|
|
385
|
-
|
|
386
|
-
### 2. 使用增强模板创建用户故事
|
|
387
|
-
|
|
388
|
-
使用模板:`enhanced-story-with-database-tmpl.yaml`
|
|
389
|
-
|
|
390
|
-
#### 2.1 基础信息填写
|
|
391
|
-
|
|
392
|
-
```yaml
|
|
393
|
-
epic_num: "{{epic_number}}"
|
|
394
|
-
story_num: "{{story_number}}"
|
|
395
|
-
story_title_short: "{{story_title}}"
|
|
396
|
-
role: "{{user_role}}"
|
|
397
|
-
action: "{{user_action}}"
|
|
398
|
-
benefit: "{{user_benefit}}"
|
|
399
|
-
```
|
|
400
|
-
|
|
401
|
-
#### 2.2 数据库设计部分填写
|
|
402
|
-
|
|
403
|
-
**相关实体表格**:
|
|
404
|
-
|
|
405
|
-
```markdown
|
|
406
|
-
| 实体名称 | 表名 | 主要用途 | 关键字段 |
|
|
407
|
-
| -------- | -------- | ------------ | ---------------------------- |
|
|
408
|
-
| User | users | 用户信息管理 | id, username, email |
|
|
409
|
-
| Product | products | 产品信息管理 | id, name, price, category_id |
|
|
410
|
-
```
|
|
411
|
-
|
|
412
|
-
**数据操作清单**:
|
|
413
|
-
|
|
414
|
-
- 查询操作:明确需要的查询条件和返回字段
|
|
415
|
-
- 插入操作:明确需要插入的数据和验证规则
|
|
416
|
-
- 更新操作:明确可更新的字段和业务规则
|
|
417
|
-
- 删除操作:明确删除条件和级联规则
|
|
418
|
-
|
|
419
|
-
**业务规则约束**:
|
|
420
|
-
|
|
421
|
-
- 数据验证规则(长度、格式、范围)
|
|
422
|
-
- 外键约束和引用完整性
|
|
423
|
-
- 唯一性约束
|
|
424
|
-
- 业务逻辑约束(状态转换等)
|
|
425
|
-
|
|
426
|
-
#### 2.3 API接口规范部分填写
|
|
427
|
-
|
|
428
|
-
**API端点列表**:
|
|
429
|
-
|
|
430
|
-
```markdown
|
|
431
|
-
| 序号 | 接口名称 | HTTP方法 | 路径 | 说明 | 状态 |
|
|
432
|
-
| ---- | ------------ | -------- | --------------- | ------------------ | ------ |
|
|
433
|
-
| 1 | 创建用户 | POST | /api/users | 创建新用户账户 | 待实现 |
|
|
434
|
-
| 2 | 查询用户详情 | GET | /api/users/{id} | 根据ID查询用户信息 | 待实现 |
|
|
435
|
-
```
|
|
436
|
-
|
|
437
|
-
**API详细设计**:
|
|
438
|
-
为每个API提供:
|
|
439
|
-
|
|
440
|
-
- 完整的请求参数说明
|
|
441
|
-
- 响应数据结构定义
|
|
442
|
-
- 具体的请求示例(curl命令)
|
|
443
|
-
- 成功和错误响应示例
|
|
444
|
-
- 错误码定义和处理建议
|
|
445
|
-
|
|
446
|
-
**数据映射关系**:
|
|
447
|
-
|
|
448
|
-
```markdown
|
|
449
|
-
#### 请求参数 -> 数据库字段映射
|
|
450
|
-
|
|
451
|
-
| API参数 | 数据库表 | 数据库字段 | 数据类型 | 说明 |
|
|
452
|
-
| -------- | -------- | ---------- | ------------ | -------- |
|
|
453
|
-
| username | users | username | VARCHAR(50) | 用户名 |
|
|
454
|
-
| email | users | email | VARCHAR(100) | 邮箱地址 |
|
|
455
|
-
```
|
|
456
|
-
|
|
457
|
-
#### 2.4 任务分解
|
|
458
|
-
|
|
459
|
-
**后端开发任务**:
|
|
460
|
-
|
|
461
|
-
- 数据库相关:Mapper方法实现、Service业务逻辑、数据验证
|
|
462
|
-
- API接口实现:Controller方法、参数验证、响应格式化、异常处理
|
|
463
|
-
- 测试相关:单元测试、集成测试、数据库测试
|
|
464
|
-
|
|
465
|
-
**前端开发任务**(如需要):
|
|
466
|
-
|
|
467
|
-
- 页面组件实现
|
|
468
|
-
- API调用集成
|
|
469
|
-
- 表单验证
|
|
470
|
-
- 用户交互
|
|
471
|
-
|
|
472
|
-
#### 2.5 开发者说明
|
|
473
|
-
|
|
474
|
-
**数据库上下文**:
|
|
475
|
-
|
|
476
|
-
- 实体类位置:`src/main/java/{package}/entity/`
|
|
477
|
-
- Mapper接口位置:`src/main/java/{package}/mapper/`
|
|
478
|
-
- Service层位置:`src/main/java/{package}/service/`
|
|
479
|
-
- 业务逻辑要求和数据验证规则
|
|
480
|
-
|
|
481
|
-
**API接口上下文**:
|
|
482
|
-
|
|
483
|
-
- Controller位置:`src/main/java/{package}/controller/`
|
|
484
|
-
- 请求响应格式标准
|
|
485
|
-
- 错误处理机制
|
|
486
|
-
- 接口版本控制
|
|
487
|
-
|
|
488
|
-
**集成上下文**:
|
|
489
|
-
|
|
490
|
-
- 与其他模块的依赖关系
|
|
491
|
-
- 外部系统调用要求
|
|
492
|
-
- 缓存策略和事务处理
|
|
493
|
-
- 性能要求
|
|
494
|
-
|
|
495
|
-
### 3. 质量检查清单
|
|
496
|
-
|
|
497
|
-
#### 3.1 完整性检查
|
|
498
|
-
|
|
499
|
-
- [ ] 所有涉及的数据库实体都已识别
|
|
500
|
-
- [ ] 所有需要的API接口都已定义
|
|
501
|
-
- [ ] 请求参数和响应格式完整
|
|
502
|
-
- [ ] 错误处理机制明确
|
|
503
|
-
- [ ] 数据映射关系清晰
|
|
504
|
-
|
|
505
|
-
#### 3.2 一致性检查
|
|
506
|
-
|
|
507
|
-
- [ ] API参数与数据库字段对应
|
|
508
|
-
- [ ] 数据类型一致
|
|
509
|
-
- [ ] 业务规则与数据库约束匹配
|
|
510
|
-
- [ ] 接口设计符合RESTful规范
|
|
511
|
-
|
|
512
|
-
#### 3.3 可实现性检查
|
|
513
|
-
|
|
514
|
-
- [ ] 任务分解合理可执行
|
|
515
|
-
- [ ] 技术实现方案可行
|
|
516
|
-
- [ ] 测试覆盖充分
|
|
517
|
-
- [ ] 开发者说明详细
|
|
518
|
-
|
|
519
|
-
### 4. 输出文件
|
|
520
|
-
|
|
521
|
-
生成的用户故事文件:`docs/stories/{{epic_num}}.{{story_num}}.{{story_title_short}}.md`
|
|
522
|
-
|
|
523
|
-
### 5. 后续协作
|
|
524
|
-
|
|
525
|
-
#### 5.1 与开发者协作
|
|
526
|
-
|
|
527
|
-
- 确保开发者理解数据库设计和API规范
|
|
528
|
-
- 提供必要的技术支持和澄清
|
|
529
|
-
- 跟踪开发进度和问题解决
|
|
530
|
-
|
|
531
|
-
#### 5.2 与QA协作
|
|
532
|
-
|
|
533
|
-
- 明确测试重点和验收标准
|
|
534
|
-
- 提供API测试用例和数据
|
|
535
|
-
- 确保质量标准得到执行
|
|
536
|
-
|
|
537
|
-
## 模板使用示例
|
|
538
|
-
|
|
539
|
-
### 示例:用户注册功能
|
|
540
|
-
|
|
541
|
-
**用户故事**:
|
|
542
|
-
|
|
543
|
-
> 作为新用户,我希望能够注册账户,以便使用系统的各项功能。
|
|
544
|
-
|
|
545
|
-
**相关实体**:
|
|
546
|
-
|
|
547
|
-
- Users表:存储用户基本信息
|
|
548
|
-
- UserProfiles表:存储用户详细资料
|
|
549
|
-
|
|
550
|
-
**涉及API**:
|
|
551
|
-
|
|
552
|
-
- POST /api/users:创建用户账户
|
|
553
|
-
- POST /api/users/verify-email:验证邮箱
|
|
554
|
-
- GET /api/users/check-username:检查用户名可用性
|
|
555
|
-
|
|
556
|
-
**数据操作**:
|
|
557
|
-
|
|
558
|
-
- 插入用户基本信息到users表
|
|
559
|
-
- 验证用户名和邮箱的唯一性
|
|
560
|
-
- 创建用户会话信息
|
|
561
|
-
|
|
562
|
-
**API详细设计**:
|
|
563
|
-
|
|
564
|
-
```json
|
|
565
|
-
// POST /api/users
|
|
566
|
-
{
|
|
567
|
-
"username": "johndoe",
|
|
568
|
-
"email": "john@example.com",
|
|
569
|
-
"password": "hashedPassword"
|
|
570
|
-
}
|
|
571
|
-
|
|
572
|
-
// 响应
|
|
573
|
-
{
|
|
574
|
-
"code": 200,
|
|
575
|
-
"message": "用户创建成功",
|
|
576
|
-
"data": {
|
|
577
|
-
"userId": 12345,
|
|
578
|
-
"username": "johndoe",
|
|
579
|
-
"email": "john@example.com",
|
|
580
|
-
"status": "active"
|
|
581
|
-
}
|
|
582
|
-
}
|
|
583
|
-
```
|
|
584
|
-
|
|
585
|
-
## 注意事项
|
|
586
|
-
|
|
587
|
-
1. **数据一致性**:确保API设计与数据库设计保持一致
|
|
588
|
-
2. **安全性**:考虑数据验证、权限控制和敏感信息保护
|
|
589
|
-
3. **性能**:关注查询效率和接口响应时间
|
|
590
|
-
4. **可维护性**:保持代码结构清晰和文档完整
|
|
591
|
-
5. **可测试性**:确保功能可以被充分测试
|
|
592
|
-
==================== END: .xiaoma-core/tasks/create-enhanced-story-with-database.md ====================
|
|
593
|
-
|
|
594
|
-
==================== START: .xiaoma-core/tasks/create-story-with-rag.md ====================
|
|
595
|
-
# 基于知识库的用户故事创建任务
|
|
596
|
-
|
|
597
|
-
## Purpose
|
|
598
|
-
|
|
599
|
-
基于知识库(`docs/rag/`)中的业务知识、技术知识以及架构增量设计文档(`docs/architecture-increment.md`),创建详细、可操作且自包含的用户故事。确保故事内容与真实需求、业务规则和技术规范完全对齐,使开发智能体能够高效实施。
|
|
600
|
-
|
|
601
|
-
## 上游交接物
|
|
602
|
-
|
|
603
|
-
```yaml
|
|
604
|
-
必需输入:
|
|
605
|
-
PRD/Epic文档:
|
|
606
|
-
- docs/prd.md # PM生成的PRD文档
|
|
607
|
-
- 或 docs/prd/{epic-name}.md # 切分后的Epic文档
|
|
608
|
-
|
|
609
|
-
架构增量设计:
|
|
610
|
-
- docs/architecture-increment.md # Architect生成的增量设计
|
|
611
|
-
|
|
612
|
-
需求分析报告:
|
|
613
|
-
- docs/rag/_analysis-report.md # Analyst生成的需求分析报告
|
|
614
|
-
|
|
615
|
-
可选输入:
|
|
616
|
-
业务知识库:
|
|
617
|
-
- docs/rag/business/rules-*.md # 业务规则文件
|
|
618
|
-
- docs/rag/_requirement-parsing.yaml # 需求解析结果
|
|
619
|
-
|
|
620
|
-
技术知识库:
|
|
621
|
-
- docs/rag/technical/architecture.md # 现有技术架构
|
|
622
|
-
- docs/rag/technical/tech-stack.md # 技术栈详情
|
|
623
|
-
- docs/rag/technical/module-structure.md # 模块结构
|
|
624
|
-
- docs/rag/technical/data-model.md # 数据模型
|
|
625
|
-
- docs/rag/technical/coding-standards/ # 编码规范目录
|
|
626
|
-
- docs/rag/technical/middleware/ # 中间件规范目录
|
|
627
|
-
- docs/rag/technical/sql-standards/ # SQL规范目录
|
|
628
|
-
|
|
629
|
-
约束条件:
|
|
630
|
-
- docs/rag/constraints/security.md # 安全要求
|
|
631
|
-
- docs/rag/constraints/performance.md # 性能要求
|
|
632
|
-
|
|
633
|
-
上一个故事:
|
|
634
|
-
- docs/project/stories/{epic}.{story-1}.*.md # 上一个完成的故事
|
|
635
|
-
```
|
|
636
|
-
|
|
637
|
-
## Workflow Overview
|
|
638
|
-
|
|
639
|
-
```
|
|
640
|
-
PRD/Epic + 知识库 + 架构增量设计 → 识别Story → 知识融合 → 生成详细Story → 检查清单验证
|
|
641
|
-
```
|
|
642
|
-
|
|
643
|
-
---
|
|
644
|
-
|
|
645
|
-
## Phase 0: 加载核心配置与知识上下文
|
|
646
|
-
|
|
647
|
-
### 0.1 加载核心配置
|
|
648
|
-
|
|
649
|
-
```yaml
|
|
650
|
-
执行步骤:
|
|
651
|
-
步骤1_加载配置:
|
|
652
|
-
动作: 读取 .xiaoma-core/core-config.yaml
|
|
653
|
-
提取:
|
|
654
|
-
- devStoryLocation # 故事文件存放位置
|
|
655
|
-
- prd.* # PRD配置
|
|
656
|
-
- architecture.* # 架构文档配置
|
|
657
|
-
缺失处理: |
|
|
658
|
-
如果配置文件不存在,提示:
|
|
659
|
-
"core-config.yaml 未找到。请先配置项目。"
|
|
660
|
-
```
|
|
661
|
-
|
|
662
|
-
### 0.2 验证上游交接物
|
|
663
|
-
|
|
664
|
-
```yaml
|
|
665
|
-
执行步骤:
|
|
666
|
-
步骤1_检查PRD:
|
|
667
|
-
动作: 检查 docs/prd.md 或切分后的 Epic 文件
|
|
668
|
-
缺失处理: 提示执行 PM 智能体 *create-prd-from-rag
|
|
669
|
-
|
|
670
|
-
步骤2_检查架构增量设计:
|
|
671
|
-
动作: 检查 docs/architecture-increment.md
|
|
672
|
-
缺失处理: |
|
|
673
|
-
如果不存在:
|
|
674
|
-
- 提示执行 Architect 智能体 *create-incremental-architecture
|
|
675
|
-
- 或询问是否使用传统架构文档继续
|
|
676
|
-
|
|
677
|
-
步骤3_检查需求分析报告:
|
|
678
|
-
动作: 检查 docs/rag/_analysis-report.md
|
|
679
|
-
缺失处理: |
|
|
680
|
-
如果不存在:
|
|
681
|
-
- 提示执行 Analyst 智能体完成需求分析
|
|
682
|
-
- 或询问是否仅使用 PRD 继续(功能受限)
|
|
683
|
-
|
|
684
|
-
步骤4_扫描知识库:
|
|
685
|
-
动作: 扫描 docs/rag/ 目录,识别可用的知识文件
|
|
686
|
-
输出:
|
|
687
|
-
available_knowledge:
|
|
688
|
-
business_rules: [文件列表]
|
|
689
|
-
technical_specs: [文件列表]
|
|
690
|
-
constraints: [文件列表]
|
|
691
|
-
```
|
|
692
|
-
|
|
693
|
-
### 0.3 知识上下文整合
|
|
694
|
-
|
|
695
|
-
```yaml
|
|
696
|
-
知识整合:
|
|
697
|
-
业务上下文:
|
|
698
|
-
来源:
|
|
699
|
-
- docs/rag/_analysis-report.md#功能分析
|
|
700
|
-
- docs/rag/_analysis-report.md#业务规则汇总
|
|
701
|
-
- docs/rag/business/rules-*.md
|
|
702
|
-
提取内容:
|
|
703
|
-
- 功能清单与优先级
|
|
704
|
-
- 业务规则与约束
|
|
705
|
-
- 用户角色与权限
|
|
706
|
-
- 数据实体与关系
|
|
707
|
-
|
|
708
|
-
技术上下文:
|
|
709
|
-
来源:
|
|
710
|
-
- docs/architecture-increment.md
|
|
711
|
-
- docs/rag/technical/coding-standards/
|
|
712
|
-
- docs/rag/technical/module-structure.md
|
|
713
|
-
- docs/rag/technical/middleware/
|
|
714
|
-
提取内容:
|
|
715
|
-
- 模块设计与包结构
|
|
716
|
-
- 数据模型设计与DDL
|
|
717
|
-
- 接口设计与API规范
|
|
718
|
-
- 中间件使用方式与代码示例
|
|
719
|
-
- 编码规范要点
|
|
720
|
-
|
|
721
|
-
约束上下文:
|
|
722
|
-
来源:
|
|
723
|
-
- docs/rag/constraints/security.md
|
|
724
|
-
- docs/rag/constraints/performance.md
|
|
725
|
-
- docs/rag/_analysis-report.md#技术分析
|
|
726
|
-
提取内容:
|
|
727
|
-
- 安全要求
|
|
728
|
-
- 性能要求
|
|
729
|
-
- 兼容性约束
|
|
730
|
-
```
|
|
731
|
-
|
|
732
|
-
---
|
|
733
|
-
|
|
734
|
-
## Phase 1: 识别下一个 Story
|
|
735
|
-
|
|
736
|
-
### 1.1 定位 Epic 和 Story
|
|
737
|
-
|
|
738
|
-
```yaml
|
|
739
|
-
执行步骤:
|
|
740
|
-
步骤1_定位Epic:
|
|
741
|
-
动作: 根据 PRD 配置定位当前 Epic
|
|
742
|
-
来源:
|
|
743
|
-
- docs/prd.md 中的 Epic 列表
|
|
744
|
-
- 或 docs/prd/{epic-name}.md 切分文件
|
|
745
|
-
|
|
746
|
-
步骤2_确定Story编号:
|
|
747
|
-
动作: 扫描 devStoryLocation 目录
|
|
748
|
-
逻辑:
|
|
749
|
-
- 如果无故事文件: 下一个是 1.1
|
|
750
|
-
- 如果有故事文件: 找到最高编号,确定下一个
|
|
751
|
-
- 检查最高编号故事状态,非Done则警告
|
|
752
|
-
|
|
753
|
-
步骤3_提取Story需求:
|
|
754
|
-
动作: 从 Epic/PRD 中提取当前 Story 的定义
|
|
755
|
-
提取内容:
|
|
756
|
-
- Story 标题
|
|
757
|
-
- 用户故事描述
|
|
758
|
-
- 验收标准 (AC)
|
|
759
|
-
- 关联的功能点 (FR)
|
|
760
|
-
```
|
|
761
|
-
|
|
762
|
-
### 1.2 关联知识映射
|
|
763
|
-
|
|
764
|
-
```yaml
|
|
765
|
-
知识映射:
|
|
766
|
-
目的: 将 Story 需求映射到知识库中的具体内容
|
|
767
|
-
|
|
768
|
-
映射维度:
|
|
769
|
-
业务规则映射:
|
|
770
|
-
- Story AC → 相关业务规则 (docs/rag/business/rules-*.md)
|
|
771
|
-
- 功能点 → 分析报告中的功能分析
|
|
772
|
-
|
|
773
|
-
技术设计映射:
|
|
774
|
-
- Story → 架构增量设计中的相关章节
|
|
775
|
-
- 数据需求 → 数据模型增量设计
|
|
776
|
-
- API需求 → 接口增量设计
|
|
777
|
-
- 中间件需求 → 中间件增量设计
|
|
778
|
-
|
|
779
|
-
约束映射:
|
|
780
|
-
- 安全相关AC → security.md
|
|
781
|
-
- 性能相关AC → performance.md
|
|
782
|
-
```
|
|
783
|
-
|
|
784
|
-
---
|
|
785
|
-
|
|
786
|
-
## Phase 2: 知识融合与 Story 内容生成
|
|
787
|
-
|
|
788
|
-
### 2.1 用户故事描述生成
|
|
789
|
-
|
|
790
|
-
```yaml
|
|
791
|
-
用户故事生成:
|
|
792
|
-
来源:
|
|
793
|
-
- PRD/Epic 中的 Story 定义
|
|
794
|
-
- docs/rag/_analysis-report.md#用户分析
|
|
795
|
-
|
|
796
|
-
格式:
|
|
797
|
-
作为: {用户角色,来自用户分析}
|
|
798
|
-
我希望: {功能描述,来自功能分析}
|
|
799
|
-
以便: {业务价值,来自需求背景}
|
|
800
|
-
|
|
801
|
-
验证:
|
|
802
|
-
- 用户角色在分析报告中有定义
|
|
803
|
-
- 功能在功能清单中有对应
|
|
804
|
-
- 价值与业务目标对齐
|
|
805
|
-
```
|
|
806
|
-
|
|
807
|
-
### 2.2 验收标准增强
|
|
808
|
-
|
|
809
|
-
```yaml
|
|
810
|
-
验收标准增强:
|
|
811
|
-
基础AC:
|
|
812
|
-
来源: PRD/Epic 中定义的验收标准
|
|
813
|
-
|
|
814
|
-
业务规则增强:
|
|
815
|
-
来源: docs/rag/business/rules-*.md
|
|
816
|
-
动作: |
|
|
817
|
-
对每个AC,检查是否有相关业务规则:
|
|
818
|
-
- 如有,将业务规则细节融入AC
|
|
819
|
-
- 标注来源: (来源: business/rules-{name}.md)
|
|
820
|
-
|
|
821
|
-
技术约束增强:
|
|
822
|
-
来源: docs/rag/constraints/
|
|
823
|
-
动作: |
|
|
824
|
-
检查AC是否涉及安全/性能要求:
|
|
825
|
-
- 如有,添加技术约束说明
|
|
826
|
-
- 标注来源: (来源: constraints/{name}.md)
|
|
827
|
-
|
|
828
|
-
示例:
|
|
829
|
-
原始AC: "用户可以创建订单"
|
|
830
|
-
增强后: |
|
|
831
|
-
用户可以创建订单
|
|
832
|
-
- 订单状态初始为"待支付" (来源: business/rules-order.md)
|
|
833
|
-
- 订单号格式: ORD{yyyyMMdd}{6位序号} (来源: business/rules-order.md)
|
|
834
|
-
- 创建接口响应时间 < 500ms (来源: constraints/performance.md)
|
|
835
|
-
```
|
|
836
|
-
|
|
837
|
-
### 2.3 任务/子任务生成
|
|
838
|
-
|
|
839
|
-
```yaml
|
|
840
|
-
任务生成:
|
|
841
|
-
来源整合:
|
|
842
|
-
架构设计:
|
|
843
|
-
- docs/architecture-increment.md#模块增量设计
|
|
844
|
-
- docs/architecture-increment.md#数据模型增量设计
|
|
845
|
-
- docs/architecture-increment.md#接口增量设计
|
|
846
|
-
- docs/architecture-increment.md#中间件增量设计
|
|
847
|
-
|
|
848
|
-
编码规范:
|
|
849
|
-
- docs/rag/technical/coding-standards/
|
|
850
|
-
- docs/rag/technical/module-structure.md
|
|
851
|
-
|
|
852
|
-
任务生成规则:
|
|
853
|
-
数据层任务:
|
|
854
|
-
条件: Story涉及数据模型变更
|
|
855
|
-
来源: architecture-increment.md#数据模型增量设计
|
|
856
|
-
任务模板: |
|
|
857
|
-
- [ ] 创建/修改数据模型 (AC: {相关AC})
|
|
858
|
-
- [ ] 创建实体类 {EntityName} [参考: architecture-increment.md#entity-detail]
|
|
859
|
-
- [ ] 执行DDL脚本 [参考: architecture-increment.md#ddl-script]
|
|
860
|
-
- [ ] 创建Mapper/Repository [遵循: coding-standards/]
|
|
861
|
-
|
|
862
|
-
接口层任务:
|
|
863
|
-
条件: Story涉及API开发
|
|
864
|
-
来源: architecture-increment.md#接口增量设计
|
|
865
|
-
任务模板: |
|
|
866
|
-
- [ ] 实现API接口 (AC: {相关AC})
|
|
867
|
-
- [ ] 创建Controller [参考: architecture-increment.md#api-detail]
|
|
868
|
-
- [ ] 实现请求参数校验 [遵循: coding-standards/]
|
|
869
|
-
- [ ] 实现响应格式 [参考: architecture-increment.md#response-design]
|
|
870
|
-
|
|
871
|
-
业务层任务:
|
|
872
|
-
条件: Story涉及业务逻辑
|
|
873
|
-
来源: architecture-increment.md#模块增量设计
|
|
874
|
-
任务模板: |
|
|
875
|
-
- [ ] 实现业务逻辑 (AC: {相关AC})
|
|
876
|
-
- [ ] 创建Service类 [参考: architecture-increment.md#class-design]
|
|
877
|
-
- [ ] 实现业务规则 [参考: business/rules-{name}.md]
|
|
878
|
-
- [ ] 添加事务管理 [遵循: coding-standards/]
|
|
879
|
-
|
|
880
|
-
中间件任务:
|
|
881
|
-
条件: Story涉及缓存/消息/定时任务
|
|
882
|
-
来源: architecture-increment.md#中间件增量设计
|
|
883
|
-
任务模板: |
|
|
884
|
-
- [ ] 实现中间件功能 (AC: {相关AC})
|
|
885
|
-
- [ ] Redis缓存实现 [参考: architecture-increment.md#redis-design, middleware/redis.md]
|
|
886
|
-
- [ ] 消息队列实现 [参考: architecture-increment.md#mq-design, middleware/mq.md]
|
|
887
|
-
|
|
888
|
-
测试任务:
|
|
889
|
-
来源: docs/rag/technical/coding-standards/ (测试部分)
|
|
890
|
-
任务模板: |
|
|
891
|
-
- [ ] 编写测试用例 (AC: ALL)
|
|
892
|
-
- [ ] 单元测试 [遵循: coding-standards/testing]
|
|
893
|
-
- [ ] 集成测试(如需要)
|
|
894
|
-
- [ ] 验收标准验证
|
|
895
|
-
```
|
|
896
|
-
|
|
897
|
-
### 2.4 开发者说明生成
|
|
898
|
-
|
|
899
|
-
```yaml
|
|
900
|
-
开发者说明生成:
|
|
901
|
-
结构:
|
|
902
|
-
上一个Story洞察:
|
|
903
|
-
来源: 上一个Story的Dev Agent Record
|
|
904
|
-
内容: 关键经验、技术决策、注意事项
|
|
905
|
-
|
|
906
|
-
架构设计参考:
|
|
907
|
-
来源: docs/architecture-increment.md
|
|
908
|
-
内容: |
|
|
909
|
-
### 架构设计参考
|
|
910
|
-
**模块设计**: [参考: architecture-increment.md#module-design]
|
|
911
|
-
- 包结构: {package_structure}
|
|
912
|
-
- 核心类: {class_list}
|
|
913
|
-
|
|
914
|
-
**数据模型**: [参考: architecture-increment.md#data-model-design]
|
|
915
|
-
- 表名: {table_name}
|
|
916
|
-
- 核心字段: {fields}
|
|
917
|
-
|
|
918
|
-
**接口设计**: [参考: architecture-increment.md#api-design]
|
|
919
|
-
- 路径: {api_path}
|
|
920
|
-
- 方法: {http_method}
|
|
921
|
-
|
|
922
|
-
业务规则:
|
|
923
|
-
来源: docs/rag/business/rules-*.md
|
|
924
|
-
内容: |
|
|
925
|
-
### 业务规则
|
|
926
|
-
[参考: business/rules-{name}.md]
|
|
927
|
-
- 规则1: {rule_description}
|
|
928
|
-
- 规则2: {rule_description}
|
|
929
|
-
|
|
930
|
-
编码规范要点:
|
|
931
|
-
来源: docs/rag/technical/coding-standards/
|
|
932
|
-
内容: |
|
|
933
|
-
### 编码规范要点
|
|
934
|
-
[参考: coding-standards/]
|
|
935
|
-
- 命名规范: {naming_rules}
|
|
936
|
-
- 分层规范: {layer_rules}
|
|
937
|
-
- 异常处理: {exception_rules}
|
|
938
|
-
|
|
939
|
-
中间件使用:
|
|
940
|
-
条件: Story涉及中间件
|
|
941
|
-
来源: docs/rag/technical/middleware/
|
|
942
|
-
内容: |
|
|
943
|
-
### 中间件使用
|
|
944
|
-
**Redis**: [参考: middleware/redis.md]
|
|
945
|
-
- Key命名: {key_pattern}
|
|
946
|
-
- 代码示例: {code_example}
|
|
947
|
-
|
|
948
|
-
**MQ**: [参考: middleware/mq.md]
|
|
949
|
-
- Topic: {topic_name}
|
|
950
|
-
- 代码示例: {code_example}
|
|
951
|
-
|
|
952
|
-
约束条件:
|
|
953
|
-
来源: docs/rag/constraints/
|
|
954
|
-
内容: |
|
|
955
|
-
### 约束条件
|
|
956
|
-
**安全要求**: [参考: constraints/security.md]
|
|
957
|
-
- {security_requirements}
|
|
958
|
-
|
|
959
|
-
**性能要求**: [参考: constraints/performance.md]
|
|
960
|
-
- {performance_requirements}
|
|
961
|
-
|
|
962
|
-
文件位置:
|
|
963
|
-
来源: docs/rag/technical/module-structure.md
|
|
964
|
-
内容: |
|
|
965
|
-
### 文件位置
|
|
966
|
-
[参考: module-structure.md]
|
|
967
|
-
- Controller: {path}
|
|
968
|
-
- Service: {path}
|
|
969
|
-
- Mapper: {path}
|
|
970
|
-
- Entity: {path}
|
|
971
|
-
```
|
|
972
|
-
|
|
973
|
-
### 2.5 测试说明生成
|
|
974
|
-
|
|
975
|
-
```yaml
|
|
976
|
-
测试说明生成:
|
|
977
|
-
来源:
|
|
978
|
-
- docs/rag/technical/coding-standards/ (测试部分)
|
|
979
|
-
- docs/architecture-increment.md#测试策略 (如有)
|
|
980
|
-
|
|
981
|
-
内容:
|
|
982
|
-
测试框架:
|
|
983
|
-
来源: coding-standards/
|
|
984
|
-
内容: {test_framework}
|
|
985
|
-
|
|
986
|
-
测试文件位置:
|
|
987
|
-
来源: module-structure.md
|
|
988
|
-
内容: {test_file_location}
|
|
989
|
-
|
|
990
|
-
测试场景:
|
|
991
|
-
来源: AC + 业务规则
|
|
992
|
-
内容: |
|
|
993
|
-
- 正常流程测试: {scenarios}
|
|
994
|
-
- 异常流程测试: {error_scenarios}
|
|
995
|
-
- 边界条件测试: {edge_cases}
|
|
996
|
-
|
|
997
|
-
验收测试:
|
|
998
|
-
来源: Story AC
|
|
999
|
-
内容: 每个AC对应的测试方法
|
|
1000
|
-
```
|
|
1001
|
-
|
|
1002
|
-
### 2.6 知识引用索引
|
|
1003
|
-
|
|
1004
|
-
```yaml
|
|
1005
|
-
知识引用索引:
|
|
1006
|
-
目的: 记录Story中引用的所有知识文件,便于追溯
|
|
1007
|
-
|
|
1008
|
-
格式:
|
|
1009
|
-
## Knowledge References
|
|
1010
|
-
|
|
1011
|
-
| 知识文件 | 引用章节 | 应用位置 |
|
|
1012
|
-
|----------|----------|----------|
|
|
1013
|
-
| docs/architecture-increment.md | 模块设计 | 任务列表、Dev Notes |
|
|
1014
|
-
| docs/rag/business/rules-order.md | 订单规则 | AC增强、业务逻辑任务 |
|
|
1015
|
-
| docs/rag/technical/coding-standards/ | 命名规范 | Dev Notes |
|
|
1016
|
-
| docs/rag/technical/middleware/redis.md | 缓存示例 | 中间件任务 |
|
|
1017
|
-
| docs/rag/constraints/performance.md | 响应时间要求 | AC约束 |
|
|
1018
|
-
```
|
|
1019
|
-
|
|
1020
|
-
---
|
|
1021
|
-
|
|
1022
|
-
## Phase 3: Story 文件生成与验证
|
|
1023
|
-
|
|
1024
|
-
### 3.1 生成 Story 文件
|
|
1025
|
-
|
|
1026
|
-
```yaml
|
|
1027
|
-
输出文件:
|
|
1028
|
-
路径: {devStoryLocation}/{epicNum}.{storyNum}.{story_title_short}.md
|
|
1029
|
-
状态: Draft
|
|
1030
|
-
|
|
1031
|
-
内容结构:
|
|
1032
|
-
- 状态
|
|
1033
|
-
- 用户故事
|
|
1034
|
-
- 验收标准(增强版)
|
|
1035
|
-
- 任务/子任务(带知识引用)
|
|
1036
|
-
- 开发者说明(知识融合版)
|
|
1037
|
-
- 测试说明
|
|
1038
|
-
- Knowledge References(新增)
|
|
1039
|
-
- 变更日志
|
|
1040
|
-
- 开发者代理记录
|
|
1041
|
-
- QA结果
|
|
1042
|
-
```
|
|
1043
|
-
|
|
1044
|
-
### 3.2 执行检查清单
|
|
1045
|
-
|
|
1046
|
-
```yaml
|
|
1047
|
-
检查清单:
|
|
1048
|
-
执行: .xiaoma-core/checklists/story-draft-checklist.md
|
|
1049
|
-
|
|
1050
|
-
额外检查项:
|
|
1051
|
-
知识引用完整性:
|
|
1052
|
-
- [ ] 架构增量设计已引用
|
|
1053
|
-
- [ ] 相关业务规则已引用
|
|
1054
|
-
- [ ] 编码规范已引用
|
|
1055
|
-
- [ ] 约束条件已引用
|
|
1056
|
-
|
|
1057
|
-
知识一致性:
|
|
1058
|
-
- [ ] AC与业务规则一致
|
|
1059
|
-
- [ ] 任务与架构设计一致
|
|
1060
|
-
- [ ] 技术选型与技术栈一致
|
|
1061
|
-
```
|
|
1062
|
-
|
|
1063
|
-
### 3.3 完成报告
|
|
1064
|
-
|
|
1065
|
-
```yaml
|
|
1066
|
-
完成报告:
|
|
1067
|
-
格式: |
|
|
1068
|
-
✅ 用户故事创建完成!
|
|
1069
|
-
|
|
1070
|
-
📄 故事文件: {story_path}
|
|
1071
|
-
📊 状态: Draft
|
|
1072
|
-
🔢 Story编号: {epicNum}.{storyNum}
|
|
1073
|
-
|
|
1074
|
-
📚 知识融合摘要:
|
|
1075
|
-
- 架构设计: {architecture_sections_used}
|
|
1076
|
-
- 业务规则: {business_rules_used}
|
|
1077
|
-
- 技术规范: {technical_specs_used}
|
|
1078
|
-
- 约束条件: {constraints_used}
|
|
1079
|
-
|
|
1080
|
-
📋 任务概要:
|
|
1081
|
-
- 数据层任务: {data_task_count}
|
|
1082
|
-
- 接口层任务: {api_task_count}
|
|
1083
|
-
- 业务层任务: {business_task_count}
|
|
1084
|
-
- 测试任务: {test_task_count}
|
|
1085
|
-
|
|
1086
|
-
✅ 检查清单: {checklist_result}
|
|
1087
|
-
|
|
1088
|
-
🔄 下一步建议:
|
|
1089
|
-
- 审核故事: 请PO/用户审核后批准
|
|
1090
|
-
- 验证故事: 可执行 *validate-story 进行深度验证
|
|
1091
|
-
- 开始开发: 批准后执行 Dev智能体 *develop-story-with-rag
|
|
1092
|
-
```
|
|
1093
|
-
|
|
1094
|
-
---
|
|
1095
|
-
|
|
1096
|
-
## 阻塞条件
|
|
1097
|
-
|
|
1098
|
-
```yaml
|
|
1099
|
-
阻塞条件:
|
|
1100
|
-
必须停止:
|
|
1101
|
-
- PRD/Epic 文件不存在
|
|
1102
|
-
- 架构增量设计与PRD严重不一致
|
|
1103
|
-
- 关键业务规则缺失
|
|
1104
|
-
|
|
1105
|
-
警告继续:
|
|
1106
|
-
- 部分知识文件缺失(记录后继续)
|
|
1107
|
-
- 上一个Story未完成(用户确认后继续)
|
|
1108
|
-
```
|
|
1109
|
-
|
|
1110
|
-
---
|
|
1111
|
-
|
|
1112
|
-
## 使用说明
|
|
1113
|
-
|
|
1114
|
-
### 激活命令
|
|
1115
|
-
|
|
1116
|
-
```
|
|
1117
|
-
*draft-with-rag [epic_num] [story_num]
|
|
1118
|
-
```
|
|
1119
|
-
|
|
1120
|
-
### 执行参数
|
|
1121
|
-
|
|
1122
|
-
```yaml
|
|
1123
|
-
参数:
|
|
1124
|
-
epic_num: Epic编号 (可选,默认自动识别)
|
|
1125
|
-
story_num: Story编号 (可选,默认自动识别下一个)
|
|
1126
|
-
rag_path: RAG知识目录路径 (默认: docs/rag/)
|
|
1127
|
-
interactive: 交互模式 (默认: true)
|
|
1128
|
-
```
|
|
1129
|
-
|
|
1130
|
-
### 与原有命令的区别
|
|
1131
|
-
|
|
1132
|
-
| 命令 | 知识来源 | 适用场景 |
|
|
1133
|
-
|------|----------|----------|
|
|
1134
|
-
| `*draft` | 仅PRD + 架构文档 | 传统项目 |
|
|
1135
|
-
| `*draft-with-rag` | PRD + 知识库 + 架构增量设计 | 有知识库的项目 |
|
|
1136
|
-
|
|
1137
|
-
---
|
|
1138
|
-
|
|
1139
|
-
## 任务完成标志
|
|
1140
|
-
|
|
1141
|
-
```yaml
|
|
1142
|
-
完成条件:
|
|
1143
|
-
必要输出:
|
|
1144
|
-
- Story文件已创建
|
|
1145
|
-
- Knowledge References已记录
|
|
1146
|
-
- 检查清单已执行
|
|
1147
|
-
|
|
1148
|
-
Story就绪标志:
|
|
1149
|
-
- 所有AC都有知识来源支撑
|
|
1150
|
-
- 所有任务都有技术参考
|
|
1151
|
-
- Dev Notes包含足够上下文
|
|
1152
|
-
- 知识引用索引完整
|
|
1153
|
-
```
|
|
1154
|
-
==================== END: .xiaoma-core/tasks/create-story-with-rag.md ====================
|
|
1155
|
-
|
|
1156
|
-
==================== START: .xiaoma-core/tasks/execute-checklist.md ====================
|
|
1157
|
-
<!-- Powered by XIAOMA™ Core -->
|
|
1158
|
-
|
|
1159
|
-
# Checklist Validation Task
|
|
1160
|
-
|
|
1161
|
-
This task provides instructions for validating documentation against checklists. The agent MUST follow these instructions to ensure thorough and systematic validation of documents.
|
|
1162
|
-
|
|
1163
|
-
## Available Checklists
|
|
1164
|
-
|
|
1165
|
-
If the user asks or does not specify a specific checklist, list the checklists available to the agent persona. If the task is being run not with a specific agent, tell the user to check the .xiaoma-core/checklists folder to select the appropriate one to run.
|
|
1166
|
-
|
|
1167
|
-
## Instructions
|
|
1168
|
-
|
|
1169
|
-
1. **Initial Assessment**
|
|
1170
|
-
- If user or the task being run provides a checklist name:
|
|
1171
|
-
- Try fuzzy matching (e.g. "architecture checklist" -> "architect-checklist")
|
|
1172
|
-
- If multiple matches found, ask user to clarify
|
|
1173
|
-
- Load the appropriate checklist from .xiaoma-core/checklists/
|
|
1174
|
-
- If no checklist specified:
|
|
1175
|
-
- Ask the user which checklist they want to use
|
|
1176
|
-
- Present the available options from the files in the checklists folder
|
|
1177
|
-
- Confirm if they want to work through the checklist:
|
|
1178
|
-
- Section by section (interactive mode - very time consuming)
|
|
1179
|
-
- All at once (YOLO mode - recommended for checklists, there will be a summary of sections at the end to discuss)
|
|
1180
|
-
|
|
1181
|
-
2. **Document and Artifact Gathering**
|
|
1182
|
-
- Each checklist will specify its required documents/artifacts at the beginning
|
|
1183
|
-
- Follow the checklist's specific instructions for what to gather, generally a file can be resolved in the docs folder, if not or unsure, halt and ask or confirm with the user.
|
|
1184
|
-
|
|
1185
|
-
3. **Checklist Processing**
|
|
1186
|
-
|
|
1187
|
-
If in interactive mode:
|
|
1188
|
-
- Work through each section of the checklist one at a time
|
|
1189
|
-
- For each section:
|
|
1190
|
-
- Review all items in the section following instructions for that section embedded in the checklist
|
|
1191
|
-
- Check each item against the relevant documentation or artifacts as appropriate
|
|
1192
|
-
- Present summary of findings for that section, highlighting warnings, errors and non applicable items (rationale for non-applicability).
|
|
1193
|
-
- Get user confirmation before proceeding to next section or if any thing major do we need to halt and take corrective action
|
|
1194
|
-
|
|
1195
|
-
If in YOLO mode:
|
|
1196
|
-
- Process all sections at once
|
|
1197
|
-
- Create a comprehensive report of all findings
|
|
1198
|
-
- Present the complete analysis to the user
|
|
1199
|
-
|
|
1200
|
-
4. **Validation Approach**
|
|
1201
|
-
|
|
1202
|
-
For each checklist item:
|
|
1203
|
-
- Read and understand the requirement
|
|
1204
|
-
- Look for evidence in the documentation that satisfies the requirement
|
|
1205
|
-
- Consider both explicit mentions and implicit coverage
|
|
1206
|
-
- Aside from this, follow all checklist llm instructions
|
|
1207
|
-
- Mark items as:
|
|
1208
|
-
- ✅ PASS: Requirement clearly met
|
|
1209
|
-
- ❌ FAIL: Requirement not met or insufficient coverage
|
|
1210
|
-
- ⚠️ PARTIAL: Some aspects covered but needs improvement
|
|
1211
|
-
- N/A: Not applicable to this case
|
|
1212
|
-
|
|
1213
|
-
5. **Section Analysis**
|
|
1214
|
-
|
|
1215
|
-
For each section:
|
|
1216
|
-
- think step by step to calculate pass rate
|
|
1217
|
-
- Identify common themes in failed items
|
|
1218
|
-
- Provide specific recommendations for improvement
|
|
1219
|
-
- In interactive mode, discuss findings with user
|
|
1220
|
-
- Document any user decisions or explanations
|
|
1221
|
-
|
|
1222
|
-
6. **Final Report**
|
|
1223
|
-
|
|
1224
|
-
Prepare a summary that includes:
|
|
1225
|
-
- Overall checklist completion status
|
|
1226
|
-
- Pass rates by section
|
|
1227
|
-
- List of failed items with context
|
|
1228
|
-
- Specific recommendations for improvement
|
|
1229
|
-
- Any sections or items marked as N/A with justification
|
|
1230
|
-
|
|
1231
|
-
## Checklist Execution Methodology
|
|
1232
|
-
|
|
1233
|
-
Each checklist now contains embedded LLM prompts and instructions that will:
|
|
1234
|
-
|
|
1235
|
-
1. **Guide thorough thinking** - Prompts ensure deep analysis of each section
|
|
1236
|
-
2. **Request specific artifacts** - Clear instructions on what documents/access is needed
|
|
1237
|
-
3. **Provide contextual guidance** - Section-specific prompts for better validation
|
|
1238
|
-
4. **Generate comprehensive reports** - Final summary with detailed findings
|
|
1239
|
-
|
|
1240
|
-
The LLM will:
|
|
1241
|
-
|
|
1242
|
-
- Execute the complete checklist validation
|
|
1243
|
-
- Present a final report with pass/fail rates and key findings
|
|
1244
|
-
- Offer to provide detailed analysis of any section, especially those with warnings or failures
|
|
1245
|
-
==================== END: .xiaoma-core/tasks/execute-checklist.md ====================
|
|
1246
|
-
|
|
1247
|
-
==================== START: .xiaoma-core/templates/story-tmpl.yaml ====================
|
|
1248
|
-
template:
|
|
1249
|
-
id: story-template-v2
|
|
1250
|
-
name: 用户故事文档
|
|
1251
|
-
version: 2.0
|
|
1252
|
-
output:
|
|
1253
|
-
format: markdown
|
|
1254
|
-
filename: docs/stories/{{epic_num}}.{{story_num}}.{{story_title_short}}.md
|
|
1255
|
-
title: "story {{epic_num}}.{{story_num}}: {{story_title_short}}"
|
|
1256
|
-
|
|
1257
|
-
workflow:
|
|
1258
|
-
mode: interactive
|
|
1259
|
-
elicitation: advanced-elicitation
|
|
1260
|
-
|
|
1261
|
-
agent_config:
|
|
1262
|
-
editable_sections:
|
|
1263
|
-
- Status
|
|
1264
|
-
- Story
|
|
1265
|
-
- Acceptance Criteria
|
|
1266
|
-
- Tasks / Subtasks
|
|
1267
|
-
- Dev Notes
|
|
1268
|
-
- Testing
|
|
1269
|
-
- Change Log
|
|
1270
|
-
|
|
1271
|
-
sections:
|
|
1272
|
-
- id: status
|
|
1273
|
-
title: 状态
|
|
1274
|
-
type: choice
|
|
1275
|
-
choices: [Draft, Approved, InProgress, Review, Done]
|
|
1276
|
-
instruction: 选择此用户故事的当前状态
|
|
1277
|
-
owner: scrum-master
|
|
1278
|
-
editors: [scrum-master, po-agent, dev-agent]
|
|
1279
|
-
|
|
1280
|
-
- id: story
|
|
1281
|
-
title: 用户故事
|
|
1282
|
-
type: template-text
|
|
1283
|
-
template: |
|
|
1284
|
-
**作为** {{role}},
|
|
1285
|
-
**我希望** {{action}},
|
|
1286
|
-
**以便** {{benefit}}
|
|
1287
|
-
instruction: 使用包含角色、行动和收益的标准格式来定义用户故事
|
|
1288
|
-
elicit: true
|
|
1289
|
-
owner: scrum-master
|
|
1290
|
-
editors: [scrum-master]
|
|
1291
|
-
|
|
1292
|
-
- id: acceptance-criteria
|
|
1293
|
-
title: 验收标准
|
|
1294
|
-
type: numbered-list
|
|
1295
|
-
instruction: 从 Epic 文件中复制验收标准的编号列表
|
|
1296
|
-
elicit: true
|
|
1297
|
-
owner: scrum-master
|
|
1298
|
-
editors: [scrum-master]
|
|
1299
|
-
|
|
1300
|
-
- id: tasks-subtasks
|
|
1301
|
-
title: 任务 / 子任务
|
|
1302
|
-
type: bullet-list
|
|
1303
|
-
instruction: |
|
|
1304
|
-
将用户故事分解为实施所需的具体任务和子任务。
|
|
1305
|
-
在相关处引用适用的验收标准编号。
|
|
1306
|
-
template: |
|
|
1307
|
-
- [ ] 任务 1 (AC: # 如果适用)
|
|
1308
|
-
- [ ] 子任务 1.1...
|
|
1309
|
-
- [ ] 任务 2 (AC: # 如果适用)
|
|
1310
|
-
- [ ] 子任务 2.1...
|
|
1311
|
-
- [ ] 任务 3 (AC: # 如果适用)
|
|
1312
|
-
- [ ] 子任务 3.1...
|
|
1313
|
-
elicit: true
|
|
1314
|
-
owner: scrum-master
|
|
1315
|
-
editors: [scrum-master, dev-agent]
|
|
1316
|
-
|
|
1317
|
-
- id: dev-notes
|
|
1318
|
-
title: 开发者说明
|
|
1319
|
-
instruction: |
|
|
1320
|
-
填充相关信息,且仅限从 docs 文件夹中的实际工件中提取的、与此用户故事相关的内容:
|
|
1321
|
-
- 不要凭空捏造信息
|
|
1322
|
-
- 如果已知,请添加与此用户故事相关的源码树信息
|
|
1323
|
-
- 如果上一个用户故事中有与此故事相关的重要说明,请包含在此处
|
|
1324
|
-
- 在此部分提供足够的信息,以确保开发者代理 (dev agent) 永远不需要阅读架构文档,这些说明以及任务和子任务必须为开发者代理提供完整的上下文,使其能够以最少的开销理解并完成用户故事,满足所有 AC 并完成所有任务+子任务
|
|
1325
|
-
elicit: true
|
|
1326
|
-
owner: scrum-master
|
|
1327
|
-
editors: [scrum-master]
|
|
1328
|
-
sections:
|
|
1329
|
-
- id: testing-standards
|
|
1330
|
-
title: 测试
|
|
1331
|
-
instruction: |
|
|
1332
|
-
列出开发者需要遵守的、源自架构文档的相关测试标准:
|
|
1333
|
-
- 测试文件位置
|
|
1334
|
-
- 测试标准
|
|
1335
|
-
- 要使用的测试框架和模式
|
|
1336
|
-
- 针对此用户故事的任何特定测试要求
|
|
1337
|
-
elicit: true
|
|
1338
|
-
owner: scrum-master
|
|
1339
|
-
editors: [scrum-master]
|
|
1340
|
-
|
|
1341
|
-
- id: change-log
|
|
1342
|
-
title: 变更日志
|
|
1343
|
-
type: table
|
|
1344
|
-
columns: [日期, 版本, 描述, 作者]
|
|
1345
|
-
instruction: 跟踪此用户故事文档的变更
|
|
1346
|
-
owner: scrum-master
|
|
1347
|
-
editors: [scrum-master, dev-agent, qa-agent]
|
|
1348
|
-
|
|
1349
|
-
- id: dev-agent-record
|
|
1350
|
-
title: 开发者代理记录
|
|
1351
|
-
instruction: 此部分由开发代理在实施过程中填充
|
|
1352
|
-
owner: dev-agent
|
|
1353
|
-
editors: [dev-agent]
|
|
1354
|
-
sections:
|
|
1355
|
-
- id: agent-model
|
|
1356
|
-
title: 使用的代理模型
|
|
1357
|
-
template: "{{agent_model_name_version}}"
|
|
1358
|
-
instruction: 记录用于开发的特定 AI 代理模型和版本
|
|
1359
|
-
owner: dev-agent
|
|
1360
|
-
editors: [dev-agent]
|
|
1361
|
-
|
|
1362
|
-
- id: debug-log-references
|
|
1363
|
-
title: 调试日志参考
|
|
1364
|
-
instruction: 引用开发过程中生成的任何调试日志或跟踪信息
|
|
1365
|
-
owner: dev-agent
|
|
1366
|
-
editors: [dev-agent]
|
|
1367
|
-
|
|
1368
|
-
- id: completion-notes
|
|
1369
|
-
title: 完成说明列表
|
|
1370
|
-
instruction: 关于任务完成情况和遇到的任何问题的说明
|
|
1371
|
-
owner: dev-agent
|
|
1372
|
-
editors: [dev-agent]
|
|
1373
|
-
|
|
1374
|
-
- id: file-list
|
|
1375
|
-
title: 文件列表
|
|
1376
|
-
instruction: 列出在用户故事实施过程中创建、修改或影响的所有文件
|
|
1377
|
-
owner: dev-agent
|
|
1378
|
-
editors: [dev-agent]
|
|
1379
|
-
|
|
1380
|
-
- id: qa-results
|
|
1381
|
-
title: QA 结果
|
|
1382
|
-
instruction: QA 代理对已完成的用户故事实施进行 QA 审查的结果
|
|
1383
|
-
owner: qa-agent
|
|
1384
|
-
editors: [qa-agent]
|
|
1385
|
-
==================== END: .xiaoma-core/templates/story-tmpl.yaml ====================
|
|
1386
|
-
|
|
1387
|
-
==================== START: .xiaoma-core/templates/story-with-rag-tmpl.yaml ====================
|
|
1388
|
-
template:
|
|
1389
|
-
id: story-with-rag-template-v1
|
|
1390
|
-
name: 基于知识库的用户故事文档
|
|
1391
|
-
version: 1.0
|
|
1392
|
-
description: 融合知识库业务规则、技术规范和架构增量设计的用户故事模板
|
|
1393
|
-
output:
|
|
1394
|
-
format: markdown
|
|
1395
|
-
filename: docs/stories/{{epic_num}}.{{story_num}}.{{story_title_short}}.md
|
|
1396
|
-
title: "Story {{epic_num}}.{{story_num}}: {{story_title_short}}"
|
|
1397
|
-
|
|
1398
|
-
workflow:
|
|
1399
|
-
mode: interactive
|
|
1400
|
-
elicitation: advanced-elicitation
|
|
1401
|
-
upstream:
|
|
1402
|
-
agents:
|
|
1403
|
-
- analyst # 提供需求分析报告和知识库
|
|
1404
|
-
- pm # 提供PRD文档
|
|
1405
|
-
- architect # 提供架构增量设计
|
|
1406
|
-
required_files:
|
|
1407
|
-
- docs/prd.md
|
|
1408
|
-
- docs/architecture-increment.md
|
|
1409
|
-
optional_files:
|
|
1410
|
-
- docs/rag/_analysis-report.md
|
|
1411
|
-
- docs/rag/business/*
|
|
1412
|
-
- docs/rag/technical/*
|
|
1413
|
-
- docs/rag/constraints/*
|
|
1414
|
-
|
|
1415
|
-
agent_config:
|
|
1416
|
-
editable_sections:
|
|
1417
|
-
- Status
|
|
1418
|
-
- Story
|
|
1419
|
-
- Acceptance Criteria
|
|
1420
|
-
- Tasks / Subtasks
|
|
1421
|
-
- Dev Notes
|
|
1422
|
-
- Testing
|
|
1423
|
-
- Knowledge References
|
|
1424
|
-
- Change Log
|
|
1425
|
-
|
|
1426
|
-
sections:
|
|
1427
|
-
- id: status
|
|
1428
|
-
title: 状态
|
|
1429
|
-
type: choice
|
|
1430
|
-
choices: [Draft, Approved, InProgress, Review, Done]
|
|
1431
|
-
instruction: 选择此用户故事的当前状态
|
|
1432
|
-
owner: scrum-master
|
|
1433
|
-
editors: [scrum-master, po-agent, dev-agent]
|
|
1434
|
-
|
|
1435
|
-
- id: story
|
|
1436
|
-
title: 用户故事
|
|
1437
|
-
type: template-text
|
|
1438
|
-
template: |
|
|
1439
|
-
**作为** {{role}},
|
|
1440
|
-
**我希望** {{action}},
|
|
1441
|
-
**以便** {{benefit}}
|
|
1442
|
-
instruction: |
|
|
1443
|
-
使用标准格式定义用户故事。
|
|
1444
|
-
- 角色来源: docs/rag/_analysis-report.md#用户分析
|
|
1445
|
-
- 功能来源: PRD/Epic 中的 Story 定义
|
|
1446
|
-
- 价值来源: 需求分析报告中的业务目标
|
|
1447
|
-
elicit: true
|
|
1448
|
-
owner: scrum-master
|
|
1449
|
-
editors: [scrum-master]
|
|
1450
|
-
|
|
1451
|
-
- id: acceptance-criteria
|
|
1452
|
-
title: 验收标准
|
|
1453
|
-
type: numbered-list
|
|
1454
|
-
instruction: |
|
|
1455
|
-
从 Epic 文件中复制验收标准,并融合知识库内容增强:
|
|
1456
|
-
|
|
1457
|
-
**增强规则**:
|
|
1458
|
-
1. 检查每个AC是否有对应的业务规则 (docs/rag/business/rules-*.md)
|
|
1459
|
-
- 如有,将业务规则细节融入AC
|
|
1460
|
-
- 标注来源: (来源: business/rules-{name}.md)
|
|
1461
|
-
|
|
1462
|
-
2. 检查每个AC是否涉及约束条件 (docs/rag/constraints/)
|
|
1463
|
-
- 如有安全要求,添加安全约束
|
|
1464
|
-
- 如有性能要求,添加性能指标
|
|
1465
|
-
- 标注来源: (来源: constraints/{name}.md)
|
|
1466
|
-
|
|
1467
|
-
**示例**:
|
|
1468
|
-
1. 用户可以创建订单
|
|
1469
|
-
- 订单状态初始为"待支付" (来源: business/rules-order.md)
|
|
1470
|
-
- 订单号格式: ORD{yyyyMMdd}{6位序号} (来源: business/rules-order.md)
|
|
1471
|
-
- 接口响应时间 < 500ms (来源: constraints/performance.md)
|
|
1472
|
-
elicit: true
|
|
1473
|
-
owner: scrum-master
|
|
1474
|
-
editors: [scrum-master]
|
|
1475
|
-
|
|
1476
|
-
- id: tasks-subtasks
|
|
1477
|
-
title: 任务 / 子任务
|
|
1478
|
-
type: bullet-list
|
|
1479
|
-
instruction: |
|
|
1480
|
-
基于架构增量设计 (docs/architecture-increment.md) 生成详细任务。
|
|
1481
|
-
|
|
1482
|
-
**任务生成规则**:
|
|
1483
|
-
|
|
1484
|
-
1. **数据层任务** (如Story涉及数据模型):
|
|
1485
|
-
来源: architecture-increment.md#数据模型增量设计
|
|
1486
|
-
```
|
|
1487
|
-
- [ ] 创建/修改数据模型 (AC: {相关AC})
|
|
1488
|
-
- [ ] 创建实体类 [参考: architecture-increment.md#entity-detail]
|
|
1489
|
-
- [ ] 执行DDL脚本 [参考: architecture-increment.md#ddl-script]
|
|
1490
|
-
- [ ] 创建Mapper/Repository [遵循: coding-standards/]
|
|
1491
|
-
```
|
|
1492
|
-
|
|
1493
|
-
2. **接口层任务** (如Story涉及API):
|
|
1494
|
-
来源: architecture-increment.md#接口增量设计
|
|
1495
|
-
```
|
|
1496
|
-
- [ ] 实现API接口 (AC: {相关AC})
|
|
1497
|
-
- [ ] 创建Controller [参考: architecture-increment.md#api-detail]
|
|
1498
|
-
- [ ] 实现参数校验 [遵循: coding-standards/]
|
|
1499
|
-
- [ ] 实现响应格式 [参考: architecture-increment.md#response-design]
|
|
1500
|
-
```
|
|
1501
|
-
|
|
1502
|
-
3. **业务层任务** (如Story涉及业务逻辑):
|
|
1503
|
-
来源: architecture-increment.md#模块增量设计
|
|
1504
|
-
```
|
|
1505
|
-
- [ ] 实现业务逻辑 (AC: {相关AC})
|
|
1506
|
-
- [ ] 创建Service类 [参考: architecture-increment.md#class-design]
|
|
1507
|
-
- [ ] 实现业务规则 [参考: business/rules-{name}.md]
|
|
1508
|
-
```
|
|
1509
|
-
|
|
1510
|
-
4. **中间件任务** (如Story涉及缓存/消息):
|
|
1511
|
-
来源: architecture-increment.md#中间件增量设计
|
|
1512
|
-
```
|
|
1513
|
-
- [ ] 实现缓存逻辑 (AC: {相关AC})
|
|
1514
|
-
- [ ] Redis实现 [参考: architecture-increment.md#redis-design]
|
|
1515
|
-
- [ ] 代码示例 [参考: middleware/redis.md]
|
|
1516
|
-
```
|
|
1517
|
-
|
|
1518
|
-
5. **测试任务**:
|
|
1519
|
-
```
|
|
1520
|
-
- [ ] 编写测试用例 (AC: ALL)
|
|
1521
|
-
- [ ] 单元测试 [遵循: coding-standards/testing]
|
|
1522
|
-
- [ ] 集成测试(如需要)
|
|
1523
|
-
```
|
|
1524
|
-
template: |
|
|
1525
|
-
- [ ] 任务 1 (AC: #) [参考: {knowledge_ref}]
|
|
1526
|
-
- [ ] 子任务 1.1 [遵循: {standard_ref}]
|
|
1527
|
-
- [ ] 任务 2 (AC: #) [参考: {knowledge_ref}]
|
|
1528
|
-
- [ ] 子任务 2.1 [遵循: {standard_ref}]
|
|
1529
|
-
elicit: true
|
|
1530
|
-
owner: scrum-master
|
|
1531
|
-
editors: [scrum-master, dev-agent]
|
|
1532
|
-
|
|
1533
|
-
- id: dev-notes
|
|
1534
|
-
title: 开发者说明
|
|
1535
|
-
instruction: |
|
|
1536
|
-
整合知识库内容,为开发者提供完整的技术上下文。
|
|
1537
|
-
|
|
1538
|
-
**来源整合**:
|
|
1539
|
-
- 架构设计: docs/architecture-increment.md
|
|
1540
|
-
- 编码规范: docs/rag/technical/coding-standards/
|
|
1541
|
-
- 模块结构: docs/rag/technical/module-structure.md
|
|
1542
|
-
- 中间件规范: docs/rag/technical/middleware/
|
|
1543
|
-
- 业务规则: docs/rag/business/rules-*.md
|
|
1544
|
-
- 约束条件: docs/rag/constraints/
|
|
1545
|
-
|
|
1546
|
-
**填充规则**:
|
|
1547
|
-
- 每个技术细节必须标注来源
|
|
1548
|
-
- 提供足够上下文使开发者无需阅读原始文档
|
|
1549
|
-
- 包含相关代码示例引用
|
|
1550
|
-
elicit: true
|
|
1551
|
-
owner: scrum-master
|
|
1552
|
-
editors: [scrum-master]
|
|
1553
|
-
sections:
|
|
1554
|
-
- id: previous-story-insights
|
|
1555
|
-
title: 上一个Story洞察
|
|
1556
|
-
instruction: |
|
|
1557
|
-
从上一个Story的Dev Agent Record中提取关键信息:
|
|
1558
|
-
- 技术决策和实现方式
|
|
1559
|
-
- 遇到的问题和解决方案
|
|
1560
|
-
- 对当前Story的建议
|
|
1561
|
-
owner: scrum-master
|
|
1562
|
-
editors: [scrum-master]
|
|
1563
|
-
|
|
1564
|
-
- id: architecture-reference
|
|
1565
|
-
title: 架构设计参考
|
|
1566
|
-
instruction: |
|
|
1567
|
-
从 docs/architecture-increment.md 提取与当前Story相关的设计:
|
|
1568
|
-
|
|
1569
|
-
**模块设计** [参考: architecture-increment.md#module-design]
|
|
1570
|
-
- 包结构: {提取的包结构}
|
|
1571
|
-
- 核心类: {提取的类列表}
|
|
1572
|
-
|
|
1573
|
-
**数据模型** [参考: architecture-increment.md#data-model-design]
|
|
1574
|
-
- 表名: {table_name}
|
|
1575
|
-
- 核心字段: {fields}
|
|
1576
|
-
- DDL参考: {ddl_section_ref}
|
|
1577
|
-
|
|
1578
|
-
**接口设计** [参考: architecture-increment.md#api-design]
|
|
1579
|
-
- 路径: {api_path}
|
|
1580
|
-
- 方法: {http_method}
|
|
1581
|
-
- 请求/响应参考: {api_detail_ref}
|
|
1582
|
-
|
|
1583
|
-
**中间件设计** [参考: architecture-increment.md#middleware-design]
|
|
1584
|
-
- Redis设计: {redis_ref}
|
|
1585
|
-
- MQ设计: {mq_ref}
|
|
1586
|
-
owner: scrum-master
|
|
1587
|
-
editors: [scrum-master]
|
|
1588
|
-
|
|
1589
|
-
- id: business-rules
|
|
1590
|
-
title: 业务规则
|
|
1591
|
-
instruction: |
|
|
1592
|
-
从 docs/rag/business/rules-*.md 提取与当前Story相关的业务规则:
|
|
1593
|
-
|
|
1594
|
-
[参考: business/rules-{name}.md]
|
|
1595
|
-
- 规则1: {rule_description}
|
|
1596
|
-
- 规则2: {rule_description}
|
|
1597
|
-
|
|
1598
|
-
确保每条规则都标注来源文件。
|
|
1599
|
-
owner: scrum-master
|
|
1600
|
-
editors: [scrum-master]
|
|
1601
|
-
|
|
1602
|
-
- id: coding-standards
|
|
1603
|
-
title: 编码规范要点
|
|
1604
|
-
instruction: |
|
|
1605
|
-
从 docs/rag/technical/coding-standards/ 提取关键规范:
|
|
1606
|
-
|
|
1607
|
-
[参考: coding-standards/]
|
|
1608
|
-
- 命名规范: {naming_rules}
|
|
1609
|
-
- 分层规范: {layer_rules}
|
|
1610
|
-
- 异常处理: {exception_rules}
|
|
1611
|
-
- 日志规范: {logging_rules}
|
|
1612
|
-
owner: scrum-master
|
|
1613
|
-
editors: [scrum-master]
|
|
1614
|
-
|
|
1615
|
-
- id: middleware-usage
|
|
1616
|
-
title: 中间件使用
|
|
1617
|
-
condition: Story涉及中间件
|
|
1618
|
-
instruction: |
|
|
1619
|
-
从 docs/rag/technical/middleware/ 提取使用规范和代码示例:
|
|
1620
|
-
|
|
1621
|
-
**Redis** [参考: middleware/redis.md]
|
|
1622
|
-
- Key命名: {key_pattern}
|
|
1623
|
-
- 过期策略: {expiration}
|
|
1624
|
-
- 代码示例参考: middleware/redis.md#{section}
|
|
1625
|
-
|
|
1626
|
-
**MQ** [参考: middleware/mq.md]
|
|
1627
|
-
- Topic: {topic_name}
|
|
1628
|
-
- 消息格式: {message_format}
|
|
1629
|
-
- 代码示例参考: middleware/mq.md#{section}
|
|
1630
|
-
owner: scrum-master
|
|
1631
|
-
editors: [scrum-master]
|
|
1632
|
-
|
|
1633
|
-
- id: constraints
|
|
1634
|
-
title: 约束条件
|
|
1635
|
-
instruction: |
|
|
1636
|
-
从 docs/rag/constraints/ 提取相关约束:
|
|
1637
|
-
|
|
1638
|
-
**安全要求** [参考: constraints/security.md]
|
|
1639
|
-
- {security_requirements}
|
|
1640
|
-
|
|
1641
|
-
**性能要求** [参考: constraints/performance.md]
|
|
1642
|
-
- {performance_requirements}
|
|
1643
|
-
owner: scrum-master
|
|
1644
|
-
editors: [scrum-master]
|
|
1645
|
-
|
|
1646
|
-
- id: file-locations
|
|
1647
|
-
title: 文件位置
|
|
1648
|
-
instruction: |
|
|
1649
|
-
从 docs/rag/technical/module-structure.md 提取文件位置规范:
|
|
1650
|
-
|
|
1651
|
-
[参考: module-structure.md]
|
|
1652
|
-
- Controller: {path}
|
|
1653
|
-
- Service: {path}
|
|
1654
|
-
- Mapper/Repository: {path}
|
|
1655
|
-
- Entity: {path}
|
|
1656
|
-
- Test: {path}
|
|
1657
|
-
owner: scrum-master
|
|
1658
|
-
editors: [scrum-master]
|
|
1659
|
-
|
|
1660
|
-
- id: testing-standards
|
|
1661
|
-
title: 测试说明
|
|
1662
|
-
instruction: |
|
|
1663
|
-
从 docs/rag/technical/coding-standards/ 提取测试规范:
|
|
1664
|
-
|
|
1665
|
-
[参考: coding-standards/testing]
|
|
1666
|
-
- 测试框架: {test_framework}
|
|
1667
|
-
- 测试文件位置: {test_file_location}
|
|
1668
|
-
- 测试场景:
|
|
1669
|
-
- 正常流程: {normal_scenarios}
|
|
1670
|
-
- 异常流程: {error_scenarios}
|
|
1671
|
-
- 边界条件: {edge_cases}
|
|
1672
|
-
elicit: true
|
|
1673
|
-
owner: scrum-master
|
|
1674
|
-
editors: [scrum-master]
|
|
1675
|
-
|
|
1676
|
-
- id: knowledge-references
|
|
1677
|
-
title: 知识引用索引
|
|
1678
|
-
instruction: |
|
|
1679
|
-
记录Story中引用的所有知识文件,便于追溯和验证。
|
|
1680
|
-
|
|
1681
|
-
| 知识文件 | 引用章节 | 应用位置 |
|
|
1682
|
-
|----------|----------|----------|
|
|
1683
|
-
| docs/architecture-increment.md | 模块设计 | 任务列表、Dev Notes |
|
|
1684
|
-
| docs/rag/business/rules-*.md | 业务规则 | AC增强、业务逻辑任务 |
|
|
1685
|
-
| docs/rag/technical/coding-standards/ | 编码规范 | Dev Notes |
|
|
1686
|
-
| docs/rag/technical/middleware/*.md | 中间件示例 | 中间件任务 |
|
|
1687
|
-
| docs/rag/constraints/*.md | 约束条件 | AC约束 |
|
|
1688
|
-
type: table
|
|
1689
|
-
columns: [知识文件, 引用章节, 应用位置]
|
|
1690
|
-
owner: scrum-master
|
|
1691
|
-
editors: [scrum-master, dev-agent]
|
|
1692
|
-
|
|
1693
|
-
- id: change-log
|
|
1694
|
-
title: 变更日志
|
|
1695
|
-
type: table
|
|
1696
|
-
columns: [日期, 版本, 描述, 作者]
|
|
1697
|
-
instruction: 跟踪此用户故事文档的变更
|
|
1698
|
-
owner: scrum-master
|
|
1699
|
-
editors: [scrum-master, dev-agent, qa-agent]
|
|
1700
|
-
|
|
1701
|
-
- id: dev-agent-record
|
|
1702
|
-
title: 开发者代理记录
|
|
1703
|
-
instruction: 此部分由开发代理在实施过程中填充
|
|
1704
|
-
owner: dev-agent
|
|
1705
|
-
editors: [dev-agent]
|
|
1706
|
-
sections:
|
|
1707
|
-
- id: agent-model
|
|
1708
|
-
title: 使用的代理模型
|
|
1709
|
-
template: "{{agent_model_name_version}}"
|
|
1710
|
-
instruction: 记录用于开发的特定 AI 代理模型和版本
|
|
1711
|
-
owner: dev-agent
|
|
1712
|
-
editors: [dev-agent]
|
|
1713
|
-
|
|
1714
|
-
- id: debug-log-references
|
|
1715
|
-
title: 调试日志参考
|
|
1716
|
-
instruction: 引用开发过程中生成的任何调试日志或跟踪信息
|
|
1717
|
-
owner: dev-agent
|
|
1718
|
-
editors: [dev-agent]
|
|
1719
|
-
|
|
1720
|
-
- id: completion-notes
|
|
1721
|
-
title: 完成说明列表
|
|
1722
|
-
instruction: 关于任务完成情况和遇到的任何问题的说明
|
|
1723
|
-
owner: dev-agent
|
|
1724
|
-
editors: [dev-agent]
|
|
1725
|
-
|
|
1726
|
-
- id: file-list
|
|
1727
|
-
title: 文件列表
|
|
1728
|
-
instruction: 列出在用户故事实施过程中创建、修改或影响的所有文件
|
|
1729
|
-
owner: dev-agent
|
|
1730
|
-
editors: [dev-agent]
|
|
1731
|
-
|
|
1732
|
-
- id: knowledge-usage-record
|
|
1733
|
-
title: 知识使用记录
|
|
1734
|
-
instruction: |
|
|
1735
|
-
记录实际开发中使用的知识文件和参考内容:
|
|
1736
|
-
| 知识文件 | 使用内容 | 应用代码位置 |
|
|
1737
|
-
|----------|----------|--------------|
|
|
1738
|
-
type: table
|
|
1739
|
-
columns: [知识文件, 使用内容, 应用代码位置]
|
|
1740
|
-
owner: dev-agent
|
|
1741
|
-
editors: [dev-agent]
|
|
1742
|
-
|
|
1743
|
-
- id: qa-results
|
|
1744
|
-
title: QA 结果
|
|
1745
|
-
instruction: QA 代理对已完成的用户故事实施进行 QA 审查的结果
|
|
1746
|
-
owner: qa-agent
|
|
1747
|
-
editors: [qa-agent]
|
|
1748
|
-
==================== END: .xiaoma-core/templates/story-with-rag-tmpl.yaml ====================
|
|
1749
|
-
|
|
1750
|
-
==================== START: .xiaoma-core/templates/enhanced-story-with-database-tmpl.yaml ====================
|
|
1751
|
-
template:
|
|
1752
|
-
id: enhanced-story-with-database-template-v1
|
|
1753
|
-
name: 增强用户故事文档 (包含数据库和API设计)
|
|
1754
|
-
version: 1.0
|
|
1755
|
-
output:
|
|
1756
|
-
format: markdown
|
|
1757
|
-
filename: docs/stories/{{epic_num}}.{{story_num}}.{{story_title_short}}.md
|
|
1758
|
-
title: "story {{epic_num}}.{{story_num}}: {{story_title_short}}"
|
|
1759
|
-
|
|
1760
|
-
workflow:
|
|
1761
|
-
mode: interactive
|
|
1762
|
-
elicitation: advanced-elicitation
|
|
1763
|
-
|
|
1764
|
-
agent_config:
|
|
1765
|
-
editable_sections:
|
|
1766
|
-
- Status
|
|
1767
|
-
- Story
|
|
1768
|
-
- Acceptance Criteria
|
|
1769
|
-
- Database Design
|
|
1770
|
-
- API Specifications
|
|
1771
|
-
- Tasks / Subtasks
|
|
1772
|
-
- Dev Notes
|
|
1773
|
-
- Testing
|
|
1774
|
-
- Change Log
|
|
1775
|
-
|
|
1776
|
-
sections:
|
|
1777
|
-
- id: status
|
|
1778
|
-
title: 状态
|
|
1779
|
-
type: choice
|
|
1780
|
-
choices: [Draft, Approved, InProgress, Review, Done]
|
|
1781
|
-
instruction: 选择此用户故事的当前状态
|
|
1782
|
-
owner: scrum-master
|
|
1783
|
-
editors: [scrum-master, po-agent, dev-agent]
|
|
1784
|
-
|
|
1785
|
-
- id: story
|
|
1786
|
-
title: 用户故事
|
|
1787
|
-
type: template-text
|
|
1788
|
-
template: |
|
|
1789
|
-
**作为** {{role}},
|
|
1790
|
-
**我希望** {{action}},
|
|
1791
|
-
**以便** {{benefit}}
|
|
1792
|
-
instruction: 使用包含角色、行动和收益的标准格式来定义用户故事
|
|
1793
|
-
elicit: true
|
|
1794
|
-
owner: scrum-master
|
|
1795
|
-
editors: [scrum-master]
|
|
1796
|
-
|
|
1797
|
-
- id: acceptance-criteria
|
|
1798
|
-
title: 验收标准
|
|
1799
|
-
type: numbered-list
|
|
1800
|
-
instruction: 从 Epic 文件中复制验收标准的编号列表
|
|
1801
|
-
elicit: true
|
|
1802
|
-
owner: scrum-master
|
|
1803
|
-
editors: [scrum-master]
|
|
1804
|
-
|
|
1805
|
-
- id: database-design
|
|
1806
|
-
title: 数据库设计相关
|
|
1807
|
-
instruction: |
|
|
1808
|
-
基于database-architect生成的数据库设计,明确此用户故事涉及的数据库相关内容。
|
|
1809
|
-
从docs/database/database-design.md中提取相关信息。
|
|
1810
|
-
elicit: true
|
|
1811
|
-
owner: scrum-master
|
|
1812
|
-
editors: [scrum-master]
|
|
1813
|
-
sections:
|
|
1814
|
-
- id: related-entities
|
|
1815
|
-
title: 相关实体
|
|
1816
|
-
instruction: |
|
|
1817
|
-
列出此用户故事涉及的所有数据库实体(表):
|
|
1818
|
-
- 实体名称
|
|
1819
|
-
- 表名
|
|
1820
|
-
- 主要用途
|
|
1821
|
-
- 关键字段
|
|
1822
|
-
template: |
|
|
1823
|
-
### 涉及的数据库实体
|
|
1824
|
-
|
|
1825
|
-
| 实体名称 | 表名 | 主要用途 | 关键字段 |
|
|
1826
|
-
|---------|------|----------|----------|
|
|
1827
|
-
| {{entity_name}} | {{table_name}} | {{purpose}} | {{key_fields}} |
|
|
1828
|
-
elicit: true
|
|
1829
|
-
owner: scrum-master
|
|
1830
|
-
editors: [scrum-master]
|
|
1831
|
-
|
|
1832
|
-
- id: data-operations
|
|
1833
|
-
title: 数据操作
|
|
1834
|
-
instruction: |
|
|
1835
|
-
明确此用户故事需要进行的数据操作:
|
|
1836
|
-
- 查询操作 (SELECT)
|
|
1837
|
-
- 插入操作 (INSERT)
|
|
1838
|
-
- 更新操作 (UPDATE)
|
|
1839
|
-
- 删除操作 (DELETE)
|
|
1840
|
-
template: |
|
|
1841
|
-
### 数据操作清单
|
|
1842
|
-
|
|
1843
|
-
**查询操作**:
|
|
1844
|
-
- [ ] {{query_description}} (表: {{table_name}})
|
|
1845
|
-
|
|
1846
|
-
**插入操作**:
|
|
1847
|
-
- [ ] {{insert_description}} (表: {{table_name}})
|
|
1848
|
-
|
|
1849
|
-
**更新操作**:
|
|
1850
|
-
- [ ] {{update_description}} (表: {{table_name}})
|
|
1851
|
-
|
|
1852
|
-
**删除操作**:
|
|
1853
|
-
- [ ] {{delete_description}} (表: {{table_name}})
|
|
1854
|
-
elicit: true
|
|
1855
|
-
owner: scrum-master
|
|
1856
|
-
editors: [scrum-master]
|
|
1857
|
-
|
|
1858
|
-
- id: business-rules
|
|
1859
|
-
title: 业务规则约束
|
|
1860
|
-
instruction: |
|
|
1861
|
-
列出此用户故事涉及的数据业务规则和约束:
|
|
1862
|
-
- 数据验证规则
|
|
1863
|
-
- 外键约束
|
|
1864
|
-
- 唯一性约束
|
|
1865
|
-
- 业务逻辑约束
|
|
1866
|
-
elicit: true
|
|
1867
|
-
owner: scrum-master
|
|
1868
|
-
editors: [scrum-master]
|
|
1869
|
-
|
|
1870
|
-
- id: api-specifications
|
|
1871
|
-
title: API接口规范
|
|
1872
|
-
instruction: |
|
|
1873
|
-
基于database-architect创建的API设计,详细定义此用户故事涉及的API接口。
|
|
1874
|
-
每个接口必须包含完整的接口名称、入参、出参、传参示例和响应示例。
|
|
1875
|
-
elicit: true
|
|
1876
|
-
owner: scrum-master
|
|
1877
|
-
editors: [scrum-master]
|
|
1878
|
-
sections:
|
|
1879
|
-
- id: api-endpoints
|
|
1880
|
-
title: API端点列表
|
|
1881
|
-
instruction: |
|
|
1882
|
-
列出此用户故事需要实现或调用的所有API端点
|
|
1883
|
-
template: |
|
|
1884
|
-
### API端点清单
|
|
1885
|
-
|
|
1886
|
-
| 序号 | 接口名称 | HTTP方法 | 路径 | 说明 | 状态 |
|
|
1887
|
-
|------|----------|----------|------|------|------|
|
|
1888
|
-
| 1 | {{api_name}} | {{http_method}} | {{api_path}} | {{description}} | {{status}} |
|
|
1889
|
-
elicit: true
|
|
1890
|
-
owner: scrum-master
|
|
1891
|
-
editors: [scrum-master]
|
|
1892
|
-
|
|
1893
|
-
- id: api-details
|
|
1894
|
-
title: API详细设计
|
|
1895
|
-
instruction: |
|
|
1896
|
-
为每个API端点提供详细的接口设计,包括:
|
|
1897
|
-
- 接口名称和描述
|
|
1898
|
-
- 请求参数详细说明
|
|
1899
|
-
- 响应数据结构
|
|
1900
|
-
- 请求示例
|
|
1901
|
-
- 响应示例
|
|
1902
|
-
- 错误码定义
|
|
1903
|
-
template: |
|
|
1904
|
-
### API详细设计
|
|
1905
|
-
|
|
1906
|
-
#### {{api_name}}
|
|
1907
|
-
|
|
1908
|
-
**接口描述**: {{api_description}}
|
|
1909
|
-
**HTTP方法**: {{http_method}}
|
|
1910
|
-
**请求路径**: {{api_path}}
|
|
1911
|
-
|
|
1912
|
-
**请求参数**:
|
|
1913
|
-
```json
|
|
1914
|
-
{
|
|
1915
|
-
"param1": "string // 参数说明",
|
|
1916
|
-
"param2": "integer // 参数说明",
|
|
1917
|
-
"param3": {
|
|
1918
|
-
"nested_param": "string // 嵌套参数说明"
|
|
1919
|
-
}
|
|
1920
|
-
}
|
|
1921
|
-
```
|
|
1922
|
-
|
|
1923
|
-
**响应数据结构**:
|
|
1924
|
-
```json
|
|
1925
|
-
{
|
|
1926
|
-
"code": "integer // 状态码",
|
|
1927
|
-
"message": "string // 响应消息",
|
|
1928
|
-
"data": {
|
|
1929
|
-
"field1": "string // 字段说明",
|
|
1930
|
-
"field2": "integer // 字段说明"
|
|
1931
|
-
}
|
|
1932
|
-
}
|
|
1933
|
-
```
|
|
1934
|
-
|
|
1935
|
-
**请求示例**:
|
|
1936
|
-
```bash
|
|
1937
|
-
curl -X {{http_method}} "{{base_url}}{{api_path}}" \
|
|
1938
|
-
-H "Content-Type: application/json" \
|
|
1939
|
-
-H "Authorization: Bearer {{token}}" \
|
|
1940
|
-
-d '{
|
|
1941
|
-
"param1": "示例值",
|
|
1942
|
-
"param2": 123
|
|
1943
|
-
}'
|
|
1944
|
-
```
|
|
1945
|
-
|
|
1946
|
-
**成功响应示例**:
|
|
1947
|
-
```json
|
|
1948
|
-
{
|
|
1949
|
-
"code": 200,
|
|
1950
|
-
"message": "操作成功",
|
|
1951
|
-
"data": {
|
|
1952
|
-
"field1": "返回值示例",
|
|
1953
|
-
"field2": 456
|
|
1954
|
-
}
|
|
1955
|
-
}
|
|
1956
|
-
```
|
|
1957
|
-
|
|
1958
|
-
**错误响应示例**:
|
|
1959
|
-
```json
|
|
1960
|
-
{
|
|
1961
|
-
"code": 400,
|
|
1962
|
-
"message": "参数错误",
|
|
1963
|
-
"data": null
|
|
1964
|
-
}
|
|
1965
|
-
```
|
|
1966
|
-
|
|
1967
|
-
**错误码定义**:
|
|
1968
|
-
| 错误码 | 说明 | 处理建议 |
|
|
1969
|
-
|--------|------|----------|
|
|
1970
|
-
| 400 | 参数错误 | 检查请求参数格式 |
|
|
1971
|
-
| 401 | 未授权 | 检查token有效性 |
|
|
1972
|
-
| 404 | 资源不存在 | 检查资源ID |
|
|
1973
|
-
| 500 | 服务器错误 | 联系技术支持 |
|
|
1974
|
-
elicit: true
|
|
1975
|
-
owner: scrum-master
|
|
1976
|
-
editors: [scrum-master]
|
|
1977
|
-
|
|
1978
|
-
- id: data-mapping
|
|
1979
|
-
title: 数据映射关系
|
|
1980
|
-
instruction: |
|
|
1981
|
-
定义API参数与数据库字段的映射关系
|
|
1982
|
-
template: |
|
|
1983
|
-
### 数据映射关系
|
|
1984
|
-
|
|
1985
|
-
#### 请求参数 -> 数据库字段映射
|
|
1986
|
-
| API参数 | 数据库表 | 数据库字段 | 数据类型 | 说明 |
|
|
1987
|
-
|---------|----------|------------|----------|------|
|
|
1988
|
-
| {{api_param}} | {{table_name}} | {{db_field}} | {{data_type}} | {{description}} |
|
|
1989
|
-
|
|
1990
|
-
#### 数据库字段 -> 响应参数映射
|
|
1991
|
-
| 数据库表 | 数据库字段 | API响应字段 | 数据类型 | 说明 |
|
|
1992
|
-
|----------|------------|-------------|----------|------|
|
|
1993
|
-
| {{table_name}} | {{db_field}} | {{api_field}} | {{data_type}} | {{description}} |
|
|
1994
|
-
elicit: true
|
|
1995
|
-
owner: scrum-master
|
|
1996
|
-
editors: [scrum-master]
|
|
1997
|
-
|
|
1998
|
-
- id: tasks-subtasks
|
|
1999
|
-
title: 任务 / 子任务
|
|
2000
|
-
type: bullet-list
|
|
2001
|
-
instruction: |
|
|
2002
|
-
将用户故事分解为实施所需的具体任务和子任务。
|
|
2003
|
-
在相关处引用适用的验收标准编号。
|
|
2004
|
-
结合数据库设计和API规范,确保任务覆盖:
|
|
2005
|
-
- 数据库相关操作(Mapper、Service层)
|
|
2006
|
-
- API接口实现(Controller层)
|
|
2007
|
-
- 数据验证和业务逻辑
|
|
2008
|
-
- 单元测试和集成测试
|
|
2009
|
-
template: |
|
|
2010
|
-
### 后端开发任务
|
|
2011
|
-
- [ ] 数据库相关 (AC: # 如果适用)
|
|
2012
|
-
- [ ] 实现{{entity_name}}Mapper接口方法
|
|
2013
|
-
- [ ] 编写{{entity_name}}Service业务逻辑
|
|
2014
|
-
- [ ] 添加数据验证和业务规则
|
|
2015
|
-
- [ ] API接口实现 (AC: # 如果适用)
|
|
2016
|
-
- [ ] 实现{{api_name}}接口 ({{http_method}} {{api_path}})
|
|
2017
|
-
- [ ] 添加请求参数验证
|
|
2018
|
-
- [ ] 实现响应数据格式化
|
|
2019
|
-
- [ ] 添加异常处理和错误码
|
|
2020
|
-
- [ ] 测试相关 (AC: # 如果适用)
|
|
2021
|
-
- [ ] 编写Service层单元测试
|
|
2022
|
-
- [ ] 编写API接口集成测试
|
|
2023
|
-
- [ ] 数据库操作测试
|
|
2024
|
-
- [ ] 边界条件和异常测试
|
|
2025
|
-
|
|
2026
|
-
### 前端开发任务(如果需要)
|
|
2027
|
-
- [ ] 前端界面 (AC: # 如果适用)
|
|
2028
|
-
- [ ] 实现相关页面组件
|
|
2029
|
-
- [ ] 集成API调用
|
|
2030
|
-
- [ ] 添加表单验证
|
|
2031
|
-
- [ ] 用户交互和反馈
|
|
2032
|
-
elicit: true
|
|
2033
|
-
owner: scrum-master
|
|
2034
|
-
editors: [scrum-master, dev-agent]
|
|
2035
|
-
|
|
2036
|
-
- id: dev-notes
|
|
2037
|
-
title: 开发者说明
|
|
2038
|
-
instruction: |
|
|
2039
|
-
填充相关信息,且仅限从 docs 文件夹中的实际工件中提取的、与此用户故事相关的内容:
|
|
2040
|
-
- 数据库设计文档的相关部分
|
|
2041
|
-
- 生成的Entity、Mapper、Service代码位置
|
|
2042
|
-
- API接口设计的相关规范
|
|
2043
|
-
- 架构设计中的相关约束
|
|
2044
|
-
- 与前一个用户故事的关联信息
|
|
2045
|
-
在此部分提供足够的信息,以确保开发者代理永远不需要阅读完整的设计文档。
|
|
2046
|
-
elicit: true
|
|
2047
|
-
owner: scrum-master
|
|
2048
|
-
editors: [scrum-master]
|
|
2049
|
-
sections:
|
|
2050
|
-
- id: database-context
|
|
2051
|
-
title: 数据库上下文
|
|
2052
|
-
instruction: |
|
|
2053
|
-
提供数据库相关的开发上下文:
|
|
2054
|
-
- 相关实体类的位置和结构
|
|
2055
|
-
- Mapper接口需要实现的方法
|
|
2056
|
-
- Service层的业务逻辑要求
|
|
2057
|
-
- 数据验证规则
|
|
2058
|
-
elicit: true
|
|
2059
|
-
owner: scrum-master
|
|
2060
|
-
editors: [scrum-master]
|
|
2061
|
-
|
|
2062
|
-
- id: api-context
|
|
2063
|
-
title: API接口上下文
|
|
2064
|
-
instruction: |
|
|
2065
|
-
提供API接口相关的开发上下文:
|
|
2066
|
-
- Controller类的位置和结构
|
|
2067
|
-
- 接口路径和HTTP方法
|
|
2068
|
-
- 请求响应的数据格式
|
|
2069
|
-
- 错误处理要求
|
|
2070
|
-
elicit: true
|
|
2071
|
-
owner: scrum-master
|
|
2072
|
-
editors: [scrum-master]
|
|
2073
|
-
|
|
2074
|
-
- id: integration-context
|
|
2075
|
-
title: 集成上下文
|
|
2076
|
-
instruction: |
|
|
2077
|
-
提供系统集成相关的开发上下文:
|
|
2078
|
-
- 与其他模块的接口依赖
|
|
2079
|
-
- 外部系统调用要求
|
|
2080
|
-
- 缓存策略
|
|
2081
|
-
- 事务处理要求
|
|
2082
|
-
elicit: true
|
|
2083
|
-
owner: scrum-master
|
|
2084
|
-
editors: [scrum-master]
|
|
2085
|
-
|
|
2086
|
-
- id: testing-standards
|
|
2087
|
-
title: 测试
|
|
2088
|
-
instruction: |
|
|
2089
|
-
列出开发者需要遵守的、源自架构文档的相关测试标准:
|
|
2090
|
-
- 测试文件位置
|
|
2091
|
-
- 测试标准
|
|
2092
|
-
- 要使用的测试框架和模式
|
|
2093
|
-
- 针对此用户故事的特定测试要求
|
|
2094
|
-
- 数据库测试和API测试要求
|
|
2095
|
-
elicit: true
|
|
2096
|
-
owner: scrum-master
|
|
2097
|
-
editors: [scrum-master]
|
|
2098
|
-
|
|
2099
|
-
- id: change-log
|
|
2100
|
-
title: 变更日志
|
|
2101
|
-
type: table
|
|
2102
|
-
columns: [日期, 版本, 描述, 作者]
|
|
2103
|
-
instruction: 跟踪此用户故事文档的变更
|
|
2104
|
-
owner: scrum-master
|
|
2105
|
-
editors: [scrum-master, dev-agent, qa-agent]
|
|
2106
|
-
|
|
2107
|
-
- id: dev-agent-record
|
|
2108
|
-
title: 开发者代理记录
|
|
2109
|
-
instruction: 此部分由开发代理在实施过程中填充
|
|
2110
|
-
owner: dev-agent
|
|
2111
|
-
editors: [dev-agent]
|
|
2112
|
-
sections:
|
|
2113
|
-
- id: agent-model
|
|
2114
|
-
title: 使用的代理模型
|
|
2115
|
-
template: "{{agent_model_name_version}}"
|
|
2116
|
-
instruction: 记录用于开发的特定 AI 代理模型和版本
|
|
2117
|
-
owner: dev-agent
|
|
2118
|
-
editors: [dev-agent]
|
|
2119
|
-
|
|
2120
|
-
- id: database-implementation
|
|
2121
|
-
title: 数据库实现记录
|
|
2122
|
-
instruction: |
|
|
2123
|
-
记录数据库相关的实现细节:
|
|
2124
|
-
- 实现的Mapper方法
|
|
2125
|
-
- Service层业务逻辑
|
|
2126
|
-
- 数据验证实现
|
|
2127
|
-
- 数据库测试结果
|
|
2128
|
-
owner: dev-agent
|
|
2129
|
-
editors: [dev-agent]
|
|
2130
|
-
|
|
2131
|
-
- id: api-implementation
|
|
2132
|
-
title: API实现记录
|
|
2133
|
-
instruction: |
|
|
2134
|
-
记录API接口的实现细节:
|
|
2135
|
-
- 实现的Controller方法
|
|
2136
|
-
- 参数验证逻辑
|
|
2137
|
-
- 响应格式处理
|
|
2138
|
-
- 错误处理实现
|
|
2139
|
-
- API测试结果
|
|
2140
|
-
owner: dev-agent
|
|
2141
|
-
editors: [dev-agent]
|
|
2142
|
-
|
|
2143
|
-
- id: debug-log-references
|
|
2144
|
-
title: 调试日志参考
|
|
2145
|
-
instruction: 引用开发过程中生成的任何调试日志或跟踪信息
|
|
2146
|
-
owner: dev-agent
|
|
2147
|
-
editors: [dev-agent]
|
|
2148
|
-
|
|
2149
|
-
- id: completion-notes
|
|
2150
|
-
title: 完成说明列表
|
|
2151
|
-
instruction: 关于任务完成情况和遇到的任何问题的说明
|
|
2152
|
-
owner: dev-agent
|
|
2153
|
-
editors: [dev-agent]
|
|
2154
|
-
|
|
2155
|
-
- id: file-list
|
|
2156
|
-
title: 文件列表
|
|
2157
|
-
instruction: |
|
|
2158
|
-
列出在用户故事实施过程中创建、修改或影响的所有文件,
|
|
2159
|
-
特别注意数据库和API相关文件:
|
|
2160
|
-
- Entity类文件
|
|
2161
|
-
- Mapper接口和XML文件
|
|
2162
|
-
- Service接口和实现文件
|
|
2163
|
-
- Controller文件
|
|
2164
|
-
- 测试文件
|
|
2165
|
-
owner: dev-agent
|
|
2166
|
-
editors: [dev-agent]
|
|
2167
|
-
|
|
2168
|
-
- id: qa-results
|
|
2169
|
-
title: QA 结果
|
|
2170
|
-
instruction: |
|
|
2171
|
-
QA 代理对已完成的用户故事实施进行 QA 审查的结果,
|
|
2172
|
-
特别关注:
|
|
2173
|
-
- 数据库操作的正确性
|
|
2174
|
-
- API接口的功能性
|
|
2175
|
-
- 数据一致性验证
|
|
2176
|
-
- 性能测试结果
|
|
2177
|
-
owner: qa-agent
|
|
2178
|
-
editors: [qa-agent]
|
|
2179
|
-
==================== END: .xiaoma-core/templates/enhanced-story-with-database-tmpl.yaml ====================
|
|
2180
|
-
|
|
2181
|
-
==================== START: .xiaoma-core/templates/api-design-tmpl.yaml ====================
|
|
2182
|
-
name: API接口设计文档模板
|
|
2183
|
-
version: 1.0.0
|
|
2184
|
-
description: 基于数据库设计的RESTful API接口规范模板
|
|
2185
|
-
|
|
2186
|
-
sections:
|
|
2187
|
-
- id: overview
|
|
2188
|
-
title: API设计概述
|
|
2189
|
-
required: true
|
|
2190
|
-
template: |
|
|
2191
|
-
## API设计概述
|
|
2192
|
-
|
|
2193
|
-
### 项目信息
|
|
2194
|
-
- **项目名称**: {project_name}
|
|
2195
|
-
- **API版本**: {api_version}
|
|
2196
|
-
- **设计日期**: {design_date}
|
|
2197
|
-
- **设计人员**: Database Architect
|
|
2198
|
-
- **基础URL**: {base_url}
|
|
2199
|
-
|
|
2200
|
-
### 设计原则
|
|
2201
|
-
- **RESTful**: 遵循REST架构风格
|
|
2202
|
-
- **统一响应**: 统一的响应数据格式
|
|
2203
|
-
- **版本控制**: 支持API版本管理
|
|
2204
|
-
- **安全性**: 完整的认证和授权机制
|
|
2205
|
-
- **文档化**: 完整的接口文档和示例
|
|
2206
|
-
|
|
2207
|
-
- id: global_standards
|
|
2208
|
-
title: 全局规范
|
|
2209
|
-
required: true
|
|
2210
|
-
template: |
|
|
2211
|
-
## 全局规范
|
|
2212
|
-
|
|
2213
|
-
### HTTP状态码规范
|
|
2214
|
-
| 状态码 | 含义 | 使用场景 |
|
|
2215
|
-
|--------|------|----------|
|
|
2216
|
-
| 200 | OK | 请求成功 |
|
|
2217
|
-
| 201 | Created | 资源创建成功 |
|
|
2218
|
-
| 204 | No Content | 删除成功,无返回内容 |
|
|
2219
|
-
| 400 | Bad Request | 请求参数错误 |
|
|
2220
|
-
| 401 | Unauthorized | 未认证 |
|
|
2221
|
-
| 403 | Forbidden | 无权限 |
|
|
2222
|
-
| 404 | Not Found | 资源不存在 |
|
|
2223
|
-
| 409 | Conflict | 资源冲突 |
|
|
2224
|
-
| 422 | Unprocessable Entity | 参数验证失败 |
|
|
2225
|
-
| 500 | Internal Server Error | 服务器内部错误 |
|
|
2226
|
-
|
|
2227
|
-
### 统一响应格式
|
|
2228
|
-
```json
|
|
2229
|
-
{
|
|
2230
|
-
"code": "integer // HTTP状态码",
|
|
2231
|
-
"message": "string // 响应消息",
|
|
2232
|
-
"data": "object|array|null // 响应数据",
|
|
2233
|
-
"timestamp": "string // 时间戳",
|
|
2234
|
-
"path": "string // 请求路径"
|
|
2235
|
-
}
|
|
2236
|
-
```
|
|
2237
|
-
|
|
2238
|
-
### 分页响应格式
|
|
2239
|
-
```json
|
|
2240
|
-
{
|
|
2241
|
-
"code": 200,
|
|
2242
|
-
"message": "查询成功",
|
|
2243
|
-
"data": {
|
|
2244
|
-
"records": [], // 数据列表
|
|
2245
|
-
"total": 100, // 总记录数
|
|
2246
|
-
"size": 10, // 每页大小
|
|
2247
|
-
"current": 1, // 当前页码
|
|
2248
|
-
"pages": 10 // 总页数
|
|
2249
|
-
}
|
|
2250
|
-
}
|
|
2251
|
-
```
|
|
2252
|
-
|
|
2253
|
-
### 请求头规范
|
|
2254
|
-
| 请求头 | 必填 | 说明 |
|
|
2255
|
-
|--------|------|------|
|
|
2256
|
-
| Content-Type | 是 | application/json |
|
|
2257
|
-
| Authorization | 是 | Bearer {token} |
|
|
2258
|
-
| X-Request-ID | 否 | 请求追踪ID |
|
|
2259
|
-
| Accept-Language | 否 | 语言偏好 |
|
|
2260
|
-
|
|
2261
|
-
### 错误响应格式
|
|
2262
|
-
```json
|
|
2263
|
-
{
|
|
2264
|
-
"code": 400,
|
|
2265
|
-
"message": "参数验证失败",
|
|
2266
|
-
"data": {
|
|
2267
|
-
"errors": [
|
|
2268
|
-
{
|
|
2269
|
-
"field": "username",
|
|
2270
|
-
"message": "用户名不能为空"
|
|
2271
|
-
}
|
|
2272
|
-
]
|
|
2273
|
-
},
|
|
2274
|
-
"timestamp": "2024-01-01T12:00:00Z",
|
|
2275
|
-
"path": "/api/users"
|
|
2276
|
-
}
|
|
2277
|
-
```
|
|
2278
|
-
|
|
2279
|
-
- id: authentication
|
|
2280
|
-
title: 认证授权
|
|
2281
|
-
required: true
|
|
2282
|
-
template: |
|
|
2283
|
-
## 认证授权
|
|
2284
|
-
|
|
2285
|
-
### JWT Token规范
|
|
2286
|
-
```
|
|
2287
|
-
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...
|
|
2288
|
-
```
|
|
2289
|
-
|
|
2290
|
-
### Token结构
|
|
2291
|
-
```json
|
|
2292
|
-
{
|
|
2293
|
-
"header": {
|
|
2294
|
-
"alg": "HS256",
|
|
2295
|
-
"typ": "JWT"
|
|
2296
|
-
},
|
|
2297
|
-
"payload": {
|
|
2298
|
-
"sub": "user_id",
|
|
2299
|
-
"username": "johndoe",
|
|
2300
|
-
"roles": ["USER", "ADMIN"],
|
|
2301
|
-
"exp": 1640995200,
|
|
2302
|
-
"iat": 1640908800
|
|
2303
|
-
}
|
|
2304
|
-
}
|
|
2305
|
-
```
|
|
2306
|
-
|
|
2307
|
-
### 权限控制
|
|
2308
|
-
| 角色 | 权限描述 | 可访问资源 |
|
|
2309
|
-
|------|----------|------------|
|
|
2310
|
-
| ADMIN | 管理员权限 | 所有资源 |
|
|
2311
|
-
| USER | 普通用户权限 | 用户相关资源 |
|
|
2312
|
-
| GUEST | 访客权限 | 公开资源 |
|
|
2313
|
-
|
|
2314
|
-
- id: api_endpoints
|
|
2315
|
-
title: API端点设计
|
|
2316
|
-
required: true
|
|
2317
|
-
template: |
|
|
2318
|
-
## API端点设计
|
|
2319
|
-
|
|
2320
|
-
{for_each_entity}
|
|
2321
|
-
### {entity_name} API
|
|
2322
|
-
|
|
2323
|
-
#### 基础信息
|
|
2324
|
-
- **资源名称**: {entity_name}
|
|
2325
|
-
- **数据库表**: {table_name}
|
|
2326
|
-
- **基础路径**: /api/{entity_lowercase}
|
|
2327
|
-
|
|
2328
|
-
#### 端点列表
|
|
2329
|
-
| HTTP方法 | 路径 | 操作 | 说明 |
|
|
2330
|
-
|----------|------|------|------|
|
|
2331
|
-
| GET | /api/{entity_lowercase} | 查询列表 | 分页查询{entity_name}列表 |
|
|
2332
|
-
| GET | /api/{entity_lowercase}/{id} | 查询详情 | 根据ID查询{entity_name}详情 |
|
|
2333
|
-
| POST | /api/{entity_lowercase} | 创建 | 创建新的{entity_name} |
|
|
2334
|
-
| PUT | /api/{entity_lowercase}/{id} | 更新 | 更新{entity_name}信息 |
|
|
2335
|
-
| DELETE | /api/{entity_lowercase}/{id} | 删除 | 删除{entity_name} |
|
|
2336
|
-
|
|
2337
|
-
#### 1. 查询{entity_name}列表
|
|
2338
|
-
|
|
2339
|
-
**接口描述**: 分页查询{entity_name}列表,支持条件筛选
|
|
2340
|
-
**HTTP方法**: GET
|
|
2341
|
-
**请求路径**: /api/{entity_lowercase}
|
|
2342
|
-
**权限要求**: {required_permissions}
|
|
2343
|
-
|
|
2344
|
-
**请求参数**:
|
|
2345
|
-
```
|
|
2346
|
-
Query Parameters:
|
|
2347
|
-
- page: integer (可选, 默认1) // 页码
|
|
2348
|
-
- size: integer (可选, 默认10) // 每页大小
|
|
2349
|
-
- sort: string (可选) // 排序字段,格式:field,direction
|
|
2350
|
-
{query_parameters}
|
|
2351
|
-
```
|
|
2352
|
-
|
|
2353
|
-
**请求示例**:
|
|
2354
|
-
```bash
|
|
2355
|
-
curl -X GET "{base_url}/api/{entity_lowercase}?page=1&size=10&sort=createdAt,desc" \
|
|
2356
|
-
-H "Authorization: Bearer {token}" \
|
|
2357
|
-
-H "Content-Type: application/json"
|
|
2358
|
-
```
|
|
2359
|
-
|
|
2360
|
-
**成功响应** (200):
|
|
2361
|
-
```json
|
|
2362
|
-
{
|
|
2363
|
-
"code": 200,
|
|
2364
|
-
"message": "查询成功",
|
|
2365
|
-
"data": {
|
|
2366
|
-
"records": [
|
|
2367
|
-
{
|
|
2368
|
-
{response_fields}
|
|
2369
|
-
}
|
|
2370
|
-
],
|
|
2371
|
-
"total": 100,
|
|
2372
|
-
"size": 10,
|
|
2373
|
-
"current": 1,
|
|
2374
|
-
"pages": 10
|
|
2375
|
-
},
|
|
2376
|
-
"timestamp": "2024-01-01T12:00:00Z",
|
|
2377
|
-
"path": "/api/{entity_lowercase}"
|
|
2378
|
-
}
|
|
2379
|
-
```
|
|
2380
|
-
|
|
2381
|
-
#### 2. 查询{entity_name}详情
|
|
2382
|
-
|
|
2383
|
-
**接口描述**: 根据ID查询{entity_name}详细信息
|
|
2384
|
-
**HTTP方法**: GET
|
|
2385
|
-
**请求路径**: /api/{entity_lowercase}/{id}
|
|
2386
|
-
**权限要求**: {required_permissions}
|
|
2387
|
-
|
|
2388
|
-
**路径参数**:
|
|
2389
|
-
```
|
|
2390
|
-
- id: integer (必填) // {entity_name}的唯一标识
|
|
2391
|
-
```
|
|
2392
|
-
|
|
2393
|
-
**请求示例**:
|
|
2394
|
-
```bash
|
|
2395
|
-
curl -X GET "{base_url}/api/{entity_lowercase}/123" \
|
|
2396
|
-
-H "Authorization: Bearer {token}" \
|
|
2397
|
-
-H "Content-Type: application/json"
|
|
2398
|
-
```
|
|
2399
|
-
|
|
2400
|
-
**成功响应** (200):
|
|
2401
|
-
```json
|
|
2402
|
-
{
|
|
2403
|
-
"code": 200,
|
|
2404
|
-
"message": "查询成功",
|
|
2405
|
-
"data": {
|
|
2406
|
-
{detail_response_fields}
|
|
2407
|
-
},
|
|
2408
|
-
"timestamp": "2024-01-01T12:00:00Z",
|
|
2409
|
-
"path": "/api/{entity_lowercase}/123"
|
|
2410
|
-
}
|
|
2411
|
-
```
|
|
2412
|
-
|
|
2413
|
-
**错误响应** (404):
|
|
2414
|
-
```json
|
|
2415
|
-
{
|
|
2416
|
-
"code": 404,
|
|
2417
|
-
"message": "{entity_name}不存在",
|
|
2418
|
-
"data": null,
|
|
2419
|
-
"timestamp": "2024-01-01T12:00:00Z",
|
|
2420
|
-
"path": "/api/{entity_lowercase}/123"
|
|
2421
|
-
}
|
|
2422
|
-
```
|
|
2423
|
-
|
|
2424
|
-
#### 3. 创建{entity_name}
|
|
2425
|
-
|
|
2426
|
-
**接口描述**: 创建新的{entity_name}记录
|
|
2427
|
-
**HTTP方法**: POST
|
|
2428
|
-
**请求路径**: /api/{entity_lowercase}
|
|
2429
|
-
**权限要求**: {required_permissions}
|
|
2430
|
-
|
|
2431
|
-
**请求体**:
|
|
2432
|
-
```json
|
|
2433
|
-
{
|
|
2434
|
-
{create_request_fields}
|
|
2435
|
-
}
|
|
2436
|
-
```
|
|
2437
|
-
|
|
2438
|
-
**请求示例**:
|
|
2439
|
-
```bash
|
|
2440
|
-
curl -X POST "{base_url}/api/{entity_lowercase}" \
|
|
2441
|
-
-H "Authorization: Bearer {token}" \
|
|
2442
|
-
-H "Content-Type: application/json" \
|
|
2443
|
-
-d '{
|
|
2444
|
-
{create_request_example}
|
|
2445
|
-
}'
|
|
2446
|
-
```
|
|
2447
|
-
|
|
2448
|
-
**成功响应** (201):
|
|
2449
|
-
```json
|
|
2450
|
-
{
|
|
2451
|
-
"code": 201,
|
|
2452
|
-
"message": "创建成功",
|
|
2453
|
-
"data": {
|
|
2454
|
-
{create_response_fields}
|
|
2455
|
-
},
|
|
2456
|
-
"timestamp": "2024-01-01T12:00:00Z",
|
|
2457
|
-
"path": "/api/{entity_lowercase}"
|
|
2458
|
-
}
|
|
2459
|
-
```
|
|
2460
|
-
|
|
2461
|
-
**参数验证失败** (422):
|
|
2462
|
-
```json
|
|
2463
|
-
{
|
|
2464
|
-
"code": 422,
|
|
2465
|
-
"message": "参数验证失败",
|
|
2466
|
-
"data": {
|
|
2467
|
-
"errors": [
|
|
2468
|
-
{
|
|
2469
|
-
"field": "{field_name}",
|
|
2470
|
-
"message": "{validation_message}"
|
|
2471
|
-
}
|
|
2472
|
-
]
|
|
2473
|
-
},
|
|
2474
|
-
"timestamp": "2024-01-01T12:00:00Z",
|
|
2475
|
-
"path": "/api/{entity_lowercase}"
|
|
2476
|
-
}
|
|
2477
|
-
```
|
|
2478
|
-
|
|
2479
|
-
#### 4. 更新{entity_name}
|
|
2480
|
-
|
|
2481
|
-
**接口描述**: 更新{entity_name}信息
|
|
2482
|
-
**HTTP方法**: PUT
|
|
2483
|
-
**请求路径**: /api/{entity_lowercase}/{id}
|
|
2484
|
-
**权限要求**: {required_permissions}
|
|
2485
|
-
|
|
2486
|
-
**路径参数**:
|
|
2487
|
-
```
|
|
2488
|
-
- id: integer (必填) // {entity_name}的唯一标识
|
|
2489
|
-
```
|
|
2490
|
-
|
|
2491
|
-
**请求体**:
|
|
2492
|
-
```json
|
|
2493
|
-
{
|
|
2494
|
-
{update_request_fields}
|
|
2495
|
-
}
|
|
2496
|
-
```
|
|
2497
|
-
|
|
2498
|
-
**请求示例**:
|
|
2499
|
-
```bash
|
|
2500
|
-
curl -X PUT "{base_url}/api/{entity_lowercase}/123" \
|
|
2501
|
-
-H "Authorization: Bearer {token}" \
|
|
2502
|
-
-H "Content-Type: application/json" \
|
|
2503
|
-
-d '{
|
|
2504
|
-
{update_request_example}
|
|
2505
|
-
}'
|
|
2506
|
-
```
|
|
2507
|
-
|
|
2508
|
-
**成功响应** (200):
|
|
2509
|
-
```json
|
|
2510
|
-
{
|
|
2511
|
-
"code": 200,
|
|
2512
|
-
"message": "更新成功",
|
|
2513
|
-
"data": {
|
|
2514
|
-
{update_response_fields}
|
|
2515
|
-
},
|
|
2516
|
-
"timestamp": "2024-01-01T12:00:00Z",
|
|
2517
|
-
"path": "/api/{entity_lowercase}/123"
|
|
2518
|
-
}
|
|
2519
|
-
```
|
|
2520
|
-
|
|
2521
|
-
#### 5. 删除{entity_name}
|
|
2522
|
-
|
|
2523
|
-
**接口描述**: 删除{entity_name}记录(软删除)
|
|
2524
|
-
**HTTP方法**: DELETE
|
|
2525
|
-
**请求路径**: /api/{entity_lowercase}/{id}
|
|
2526
|
-
**权限要求**: {required_permissions}
|
|
2527
|
-
|
|
2528
|
-
**路径参数**:
|
|
2529
|
-
```
|
|
2530
|
-
- id: integer (必填) // {entity_name}的唯一标识
|
|
2531
|
-
```
|
|
2532
|
-
|
|
2533
|
-
**请求示例**:
|
|
2534
|
-
```bash
|
|
2535
|
-
curl -X DELETE "{base_url}/api/{entity_lowercase}/123" \
|
|
2536
|
-
-H "Authorization: Bearer {token}" \
|
|
2537
|
-
-H "Content-Type: application/json"
|
|
2538
|
-
```
|
|
2539
|
-
|
|
2540
|
-
**成功响应** (204):
|
|
2541
|
-
```
|
|
2542
|
-
HTTP/1.1 204 No Content
|
|
2543
|
-
```
|
|
2544
|
-
|
|
2545
|
-
**错误响应** (404):
|
|
2546
|
-
```json
|
|
2547
|
-
{
|
|
2548
|
-
"code": 404,
|
|
2549
|
-
"message": "{entity_name}不存在",
|
|
2550
|
-
"data": null,
|
|
2551
|
-
"timestamp": "2024-01-01T12:00:00Z",
|
|
2552
|
-
"path": "/api/{entity_lowercase}/123"
|
|
2553
|
-
}
|
|
2554
|
-
```
|
|
2555
|
-
|
|
2556
|
-
#### 数据字段映射
|
|
2557
|
-
|
|
2558
|
-
**数据库字段 -> API响应字段映射**:
|
|
2559
|
-
| 数据库字段 | API字段 | 数据类型 | 说明 |
|
|
2560
|
-
|------------|---------|----------|------|
|
|
2561
|
-
{field_mappings}
|
|
2562
|
-
|
|
2563
|
-
**API请求字段 -> 数据库字段映射**:
|
|
2564
|
-
| API字段 | 数据库字段 | 数据类型 | 验证规则 |
|
|
2565
|
-
|---------|------------|----------|----------|
|
|
2566
|
-
{request_field_mappings}
|
|
2567
|
-
|
|
2568
|
-
#### 业务规则说明
|
|
2569
|
-
{business_rules}
|
|
2570
|
-
|
|
2571
|
-
{end_for_each}
|
|
2572
|
-
|
|
2573
|
-
- id: data_types
|
|
2574
|
-
title: 数据类型规范
|
|
2575
|
-
required: true
|
|
2576
|
-
template: |
|
|
2577
|
-
## 数据类型规范
|
|
2578
|
-
|
|
2579
|
-
### 基础数据类型
|
|
2580
|
-
| API类型 | JSON类型 | 数据库类型 | 说明 | 示例 |
|
|
2581
|
-
|---------|----------|------------|------|------|
|
|
2582
|
-
| integer | number | INT/BIGINT | 整数 | 123 |
|
|
2583
|
-
| decimal | number | DECIMAL | 小数 | 123.45 |
|
|
2584
|
-
| string | string | VARCHAR/TEXT | 字符串 | "hello" |
|
|
2585
|
-
| boolean | boolean | TINYINT | 布尔值 | true/false |
|
|
2586
|
-
| datetime | string | DATETIME | 日期时间 | "2024-01-01T12:00:00Z" |
|
|
2587
|
-
| date | string | DATE | 日期 | "2024-01-01" |
|
|
2588
|
-
| time | string | TIME | 时间 | "12:00:00" |
|
|
2589
|
-
| array | array | JSON | 数组 | [1,2,3] |
|
|
2590
|
-
| object | object | JSON | 对象 | {"key":"value"} |
|
|
2591
|
-
|
|
2592
|
-
### 特殊字段规范
|
|
2593
|
-
| 字段类型 | 字段名 | 数据类型 | 说明 |
|
|
2594
|
-
|----------|--------|----------|------|
|
|
2595
|
-
| 主键 | id | integer | 自增主键 |
|
|
2596
|
-
| 创建时间 | createdAt | datetime | 记录创建时间 |
|
|
2597
|
-
| 更新时间 | updatedAt | datetime | 记录更新时间 |
|
|
2598
|
-
| 删除时间 | deletedAt | datetime | 软删除时间 |
|
|
2599
|
-
| 版本号 | version | integer | 乐观锁版本 |
|
|
2600
|
-
|
|
2601
|
-
### 日期时间格式
|
|
2602
|
-
- **标准格式**: ISO 8601 (2024-01-01T12:00:00Z)
|
|
2603
|
-
- **时区**: UTC时间
|
|
2604
|
-
- **精度**: 秒级
|
|
2605
|
-
|
|
2606
|
-
- id: validation_rules
|
|
2607
|
-
title: 参数验证规则
|
|
2608
|
-
required: true
|
|
2609
|
-
template: |
|
|
2610
|
-
## 参数验证规则
|
|
2611
|
-
|
|
2612
|
-
### 通用验证规则
|
|
2613
|
-
| 规则类型 | 说明 | 示例 |
|
|
2614
|
-
|----------|------|------|
|
|
2615
|
-
| required | 必填字段 | @NotNull, @NotBlank |
|
|
2616
|
-
| length | 长度限制 | @Size(min=1, max=50) |
|
|
2617
|
-
| pattern | 格式验证 | @Pattern(regexp="^[a-zA-Z0-9]+$") |
|
|
2618
|
-
| range | 数值范围 | @Min(0), @Max(100) |
|
|
2619
|
-
| email | 邮箱格式 | @Email |
|
|
2620
|
-
| phone | 手机号格式 | @Pattern(regexp="^1[3-9]\\d{9}$") |
|
|
2621
|
-
|
|
2622
|
-
### 业务验证规则
|
|
2623
|
-
{business_validation_rules}
|
|
2624
|
-
|
|
2625
|
-
### 错误信息国际化
|
|
2626
|
-
```properties
|
|
2627
|
-
validation.required=字段不能为空
|
|
2628
|
-
validation.length=字段长度必须在{min}到{max}之间
|
|
2629
|
-
validation.pattern=字段格式不正确
|
|
2630
|
-
validation.email=邮箱格式不正确
|
|
2631
|
-
validation.phone=手机号格式不正确
|
|
2632
|
-
```
|
|
2633
|
-
|
|
2634
|
-
- id: error_codes
|
|
2635
|
-
title: 错误码定义
|
|
2636
|
-
required: true
|
|
2637
|
-
template: |
|
|
2638
|
-
## 错误码定义
|
|
2639
|
-
|
|
2640
|
-
### 系统级错误码 (1000-1999)
|
|
2641
|
-
| 错误码 | 错误信息 | 说明 | 处理建议 |
|
|
2642
|
-
|--------|----------|------|----------|
|
|
2643
|
-
| 1000 | 系统错误 | 未知系统错误 | 联系技术支持 |
|
|
2644
|
-
| 1001 | 参数错误 | 请求参数不正确 | 检查参数格式 |
|
|
2645
|
-
| 1002 | 认证失败 | 身份认证失败 | 重新登录 |
|
|
2646
|
-
| 1003 | 权限不足 | 无访问权限 | 联系管理员 |
|
|
2647
|
-
| 1004 | 资源不存在 | 请求的资源不存在 | 检查资源ID |
|
|
2648
|
-
| 1005 | 资源冲突 | 资源已存在或冲突 | 检查数据唯一性 |
|
|
2649
|
-
|
|
2650
|
-
### 业务级错误码 (2000+)
|
|
2651
|
-
{business_error_codes}
|
|
2652
|
-
|
|
2653
|
-
### 错误响应示例
|
|
2654
|
-
```json
|
|
2655
|
-
{
|
|
2656
|
-
"code": 1001,
|
|
2657
|
-
"message": "参数错误",
|
|
2658
|
-
"data": {
|
|
2659
|
-
"errorCode": "PARAM_INVALID",
|
|
2660
|
-
"errorDetails": "用户名格式不正确"
|
|
2661
|
-
},
|
|
2662
|
-
"timestamp": "2024-01-01T12:00:00Z",
|
|
2663
|
-
"path": "/api/users"
|
|
2664
|
-
}
|
|
2665
|
-
```
|
|
2666
|
-
|
|
2667
|
-
- id: performance
|
|
2668
|
-
title: 性能规范
|
|
2669
|
-
required: true
|
|
2670
|
-
template: |
|
|
2671
|
-
## 性能规范
|
|
2672
|
-
|
|
2673
|
-
### 响应时间要求
|
|
2674
|
-
| 接口类型 | 响应时间要求 | 说明 |
|
|
2675
|
-
|----------|--------------|------|
|
|
2676
|
-
| 查询接口 | < 200ms | 简单查询 |
|
|
2677
|
-
| 复杂查询 | < 1s | 包含关联查询 |
|
|
2678
|
-
| 创建接口 | < 500ms | 数据创建 |
|
|
2679
|
-
| 更新接口 | < 500ms | 数据更新 |
|
|
2680
|
-
| 删除接口 | < 300ms | 数据删除 |
|
|
2681
|
-
|
|
2682
|
-
### 分页限制
|
|
2683
|
-
- 默认页大小: 10
|
|
2684
|
-
- 最大页大小: 100
|
|
2685
|
-
- 支持的排序字段: {sortable_fields}
|
|
2686
|
-
|
|
2687
|
-
### 缓存策略
|
|
2688
|
-
| 数据类型 | 缓存时间 | 缓存键规则 |
|
|
2689
|
-
|----------|----------|------------|
|
|
2690
|
-
| 用户信息 | 30分钟 | user:{user_id} |
|
|
2691
|
-
| 配置信息 | 1小时 | config:{config_key} |
|
|
2692
|
-
| 静态数据 | 24小时 | static:{data_type} |
|
|
2693
|
-
|
|
2694
|
-
- id: security
|
|
2695
|
-
title: 安全规范
|
|
2696
|
-
required: true
|
|
2697
|
-
template: |
|
|
2698
|
-
## 安全规范
|
|
2699
|
-
|
|
2700
|
-
### 数据安全
|
|
2701
|
-
- **敏感数据加密**: 密码、身份证号等
|
|
2702
|
-
- **数据脱敏**: 日志中的敏感信息
|
|
2703
|
-
- **SQL注入防护**: 使用参数化查询
|
|
2704
|
-
- **XSS防护**: 输入数据过滤和转义
|
|
2705
|
-
|
|
2706
|
-
### 接口安全
|
|
2707
|
-
- **HTTPS传输**: 强制使用HTTPS
|
|
2708
|
-
- **请求签名**: 关键接口要求签名验证
|
|
2709
|
-
- **频率限制**: 防止恶意请求
|
|
2710
|
-
- **IP白名单**: 敏感接口IP限制
|
|
2711
|
-
|
|
2712
|
-
### 认证安全
|
|
2713
|
-
- **Token过期**: JWT token有效期控制
|
|
2714
|
-
- **刷新机制**: Token自动刷新
|
|
2715
|
-
- **会话管理**: 用户会话状态管理
|
|
2716
|
-
- **密码策略**: 密码复杂度要求
|
|
2717
|
-
|
|
2718
|
-
- id: testing
|
|
2719
|
-
title: 测试规范
|
|
2720
|
-
required: true
|
|
2721
|
-
template: |
|
|
2722
|
-
## 测试规范
|
|
2723
|
-
|
|
2724
|
-
### API测试用例
|
|
2725
|
-
|
|
2726
|
-
**测试用例模板**:
|
|
2727
|
-
```yaml
|
|
2728
|
-
test_case:
|
|
2729
|
-
name: "创建用户成功"
|
|
2730
|
-
method: POST
|
|
2731
|
-
url: "/api/users"
|
|
2732
|
-
headers:
|
|
2733
|
-
Authorization: "Bearer {valid_token}"
|
|
2734
|
-
Content-Type: "application/json"
|
|
2735
|
-
body:
|
|
2736
|
-
username: "testuser"
|
|
2737
|
-
email: "test@example.com"
|
|
2738
|
-
password: "Test123456!"
|
|
2739
|
-
expected:
|
|
2740
|
-
status: 201
|
|
2741
|
-
body:
|
|
2742
|
-
code: 201
|
|
2743
|
-
message: "创建成功"
|
|
2744
|
-
data:
|
|
2745
|
-
id: "{integer}"
|
|
2746
|
-
username: "testuser"
|
|
2747
|
-
email: "test@example.com"
|
|
2748
|
-
```
|
|
2749
|
-
|
|
2750
|
-
### 测试数据
|
|
2751
|
-
```yaml
|
|
2752
|
-
test_data:
|
|
2753
|
-
valid_user:
|
|
2754
|
-
username: "validuser"
|
|
2755
|
-
email: "valid@example.com"
|
|
2756
|
-
password: "Valid123456!"
|
|
2757
|
-
invalid_user:
|
|
2758
|
-
username: "" # 空用户名
|
|
2759
|
-
email: "invalid-email" # 无效邮箱
|
|
2760
|
-
password: "123" # 密码过短
|
|
2761
|
-
```
|
|
2762
|
-
|
|
2763
|
-
### 性能测试
|
|
2764
|
-
- **并发用户数**: 100
|
|
2765
|
-
- **测试时长**: 10分钟
|
|
2766
|
-
- **响应时间**: 95%请求 < 1s
|
|
2767
|
-
- **成功率**: > 99.9%
|
|
2768
|
-
|
|
2769
|
-
- id: documentation
|
|
2770
|
-
title: 文档规范
|
|
2771
|
-
required: true
|
|
2772
|
-
template: |
|
|
2773
|
-
## 文档规范
|
|
2774
|
-
|
|
2775
|
-
### Swagger/OpenAPI规范
|
|
2776
|
-
```yaml
|
|
2777
|
-
openapi: 3.0.0
|
|
2778
|
-
info:
|
|
2779
|
-
title: {project_name} API
|
|
2780
|
-
version: {api_version}
|
|
2781
|
-
description: {project_description}
|
|
2782
|
-
servers:
|
|
2783
|
-
- url: {base_url}
|
|
2784
|
-
description: 生产环境
|
|
2785
|
-
paths:
|
|
2786
|
-
/api/{entity_lowercase}:
|
|
2787
|
-
get:
|
|
2788
|
-
summary: 查询{entity_name}列表
|
|
2789
|
-
tags: [{entity_name}]
|
|
2790
|
-
parameters:
|
|
2791
|
-
- name: page
|
|
2792
|
-
in: query
|
|
2793
|
-
schema:
|
|
2794
|
-
type: integer
|
|
2795
|
-
default: 1
|
|
2796
|
-
responses:
|
|
2797
|
-
'200':
|
|
2798
|
-
description: 查询成功
|
|
2799
|
-
content:
|
|
2800
|
-
application/json:
|
|
2801
|
-
schema:
|
|
2802
|
-
$ref: '#/components/schemas/PageResult'
|
|
2803
|
-
```
|
|
2804
|
-
|
|
2805
|
-
### 接口文档要求
|
|
2806
|
-
- **完整性**: 包含所有接口信息
|
|
2807
|
-
- **准确性**: 与实际实现保持一致
|
|
2808
|
-
- **实时性**: 及时更新文档内容
|
|
2809
|
-
- **可读性**: 清晰的描述和示例
|
|
2810
|
-
|
|
2811
|
-
### 示例代码
|
|
2812
|
-
```javascript
|
|
2813
|
-
// JavaScript调用示例
|
|
2814
|
-
const response = await fetch('/api/users', {
|
|
2815
|
-
method: 'POST',
|
|
2816
|
-
headers: {
|
|
2817
|
-
'Content-Type': 'application/json',
|
|
2818
|
-
'Authorization': 'Bearer ' + token
|
|
2819
|
-
},
|
|
2820
|
-
body: JSON.stringify({
|
|
2821
|
-
username: 'johndoe',
|
|
2822
|
-
email: 'john@example.com'
|
|
2823
|
-
})
|
|
2824
|
-
});
|
|
2825
|
-
const result = await response.json();
|
|
2826
|
-
```
|
|
2827
|
-
|
|
2828
|
-
- id: versioning
|
|
2829
|
-
title: 版本管理
|
|
2830
|
-
required: true
|
|
2831
|
-
template: |
|
|
2832
|
-
## 版本管理
|
|
2833
|
-
|
|
2834
|
-
### 版本号规范
|
|
2835
|
-
- **格式**: v{major}.{minor}.{patch}
|
|
2836
|
-
- **示例**: v1.0.0, v1.1.0, v2.0.0
|
|
2837
|
-
|
|
2838
|
-
### 版本策略
|
|
2839
|
-
| 版本类型 | 变更说明 | 兼容性 |
|
|
2840
|
-
|----------|----------|--------|
|
|
2841
|
-
| Major | 重大功能变更,API不兼容 | 不兼容 |
|
|
2842
|
-
| Minor | 新增功能,向后兼容 | 向后兼容 |
|
|
2843
|
-
| Patch | Bug修复,向后兼容 | 向后兼容 |
|
|
2844
|
-
|
|
2845
|
-
### 版本控制方式
|
|
2846
|
-
1. **URL路径版本**: /api/v1/users
|
|
2847
|
-
2. **请求头版本**: API-Version: v1
|
|
2848
|
-
3. **参数版本**: /api/users?version=v1
|
|
2849
|
-
|
|
2850
|
-
### 版本生命周期
|
|
2851
|
-
- **开发版本**: v1.0.0-dev
|
|
2852
|
-
- **测试版本**: v1.0.0-beta
|
|
2853
|
-
- **发布版本**: v1.0.0
|
|
2854
|
-
- **废弃版本**: 提前3个月通知
|
|
2855
|
-
|
|
2856
|
-
- id: changelog
|
|
2857
|
-
title: 变更记录
|
|
2858
|
-
required: true
|
|
2859
|
-
template: |
|
|
2860
|
-
## 变更记录
|
|
2861
|
-
|
|
2862
|
-
### v1.0.0 (2024-01-01)
|
|
2863
|
-
**新增功能**:
|
|
2864
|
-
- 初始API设计
|
|
2865
|
-
- 用户管理接口
|
|
2866
|
-
- 认证授权机制
|
|
2867
|
-
|
|
2868
|
-
**修复问题**:
|
|
2869
|
-
- 无
|
|
2870
|
-
|
|
2871
|
-
**破坏性变更**:
|
|
2872
|
-
- 无
|
|
2873
|
-
|
|
2874
|
-
### 变更记录模板
|
|
2875
|
-
```markdown
|
|
2876
|
-
### v{version} ({date})
|
|
2877
|
-
**新增功能**:
|
|
2878
|
-
- 功能描述
|
|
2879
|
-
|
|
2880
|
-
**修复问题**:
|
|
2881
|
-
- 问题描述
|
|
2882
|
-
|
|
2883
|
-
**破坏性变更**:
|
|
2884
|
-
- 变更描述
|
|
2885
|
-
```
|
|
2886
|
-
==================== END: .xiaoma-core/templates/api-design-tmpl.yaml ====================
|
|
2887
|
-
|
|
2888
|
-
==================== START: .xiaoma-core/checklists/story-draft-checklist.md ====================
|
|
2889
|
-
<!-- Powered by XiaoMa™ Core -->
|
|
2890
|
-
|
|
2891
|
-
# Story Draft Checklist
|
|
2892
|
-
|
|
2893
|
-
The Scrum Master should use this checklist to validate that each story contains sufficient context for a developer agent to implement it successfully, while assuming the dev agent has reasonable capabilities to figure things out.
|
|
2894
|
-
|
|
2895
|
-
[[LLM: INITIALIZATION INSTRUCTIONS - STORY DRAFT VALIDATION
|
|
2896
|
-
|
|
2897
|
-
Before proceeding with this checklist, ensure you have access to:
|
|
2898
|
-
|
|
2899
|
-
1. The story document being validated (usually in docs/stories/ or provided directly)
|
|
2900
|
-
2. The parent epic context
|
|
2901
|
-
3. Any referenced architecture or design documents
|
|
2902
|
-
4. Previous related stories if this builds on prior work
|
|
2903
|
-
|
|
2904
|
-
IMPORTANT: This checklist validates individual stories BEFORE implementation begins.
|
|
2905
|
-
|
|
2906
|
-
VALIDATION PRINCIPLES:
|
|
2907
|
-
|
|
2908
|
-
1. Clarity - A developer should understand WHAT to build
|
|
2909
|
-
2. Context - WHY this is being built and how it fits
|
|
2910
|
-
3. Guidance - Key technical decisions and patterns to follow
|
|
2911
|
-
4. Testability - How to verify the implementation works
|
|
2912
|
-
5. Self-Contained - Most info needed is in the story itself
|
|
2913
|
-
|
|
2914
|
-
REMEMBER: We assume competent developer agents who can:
|
|
2915
|
-
|
|
2916
|
-
- Research documentation and codebases
|
|
2917
|
-
- Make reasonable technical decisions
|
|
2918
|
-
- Follow established patterns
|
|
2919
|
-
- Ask for clarification when truly stuck
|
|
2920
|
-
|
|
2921
|
-
We're checking for SUFFICIENT guidance, not exhaustive detail.]]
|
|
2922
|
-
|
|
2923
|
-
## 1. GOAL & CONTEXT CLARITY
|
|
2924
|
-
|
|
2925
|
-
[[LLM: Without clear goals, developers build the wrong thing. Verify:
|
|
2926
|
-
|
|
2927
|
-
1. The story states WHAT functionality to implement
|
|
2928
|
-
2. The business value or user benefit is clear
|
|
2929
|
-
3. How this fits into the larger epic/product is explained
|
|
2930
|
-
4. Dependencies are explicit ("requires Story X to be complete")
|
|
2931
|
-
5. Success looks like something specific, not vague]]
|
|
2932
|
-
|
|
2933
|
-
- [ ] Story goal/purpose is clearly stated
|
|
2934
|
-
- [ ] Relationship to epic goals is evident
|
|
2935
|
-
- [ ] How the story fits into overall system flow is explained
|
|
2936
|
-
- [ ] Dependencies on previous stories are identified (if applicable)
|
|
2937
|
-
- [ ] Business context and value are clear
|
|
2938
|
-
|
|
2939
|
-
## 2. TECHNICAL IMPLEMENTATION GUIDANCE
|
|
2940
|
-
|
|
2941
|
-
[[LLM: Developers need enough technical context to start coding. Check:
|
|
2942
|
-
|
|
2943
|
-
1. Key files/components to create or modify are mentioned
|
|
2944
|
-
2. Technology choices are specified where non-obvious
|
|
2945
|
-
3. Integration points with existing code are identified
|
|
2946
|
-
4. Data models or API contracts are defined or referenced
|
|
2947
|
-
5. Non-standard patterns or exceptions are called out
|
|
2948
|
-
|
|
2949
|
-
Note: We don't need every file listed - just the important ones.]]
|
|
2950
|
-
|
|
2951
|
-
- [ ] Key files to create/modify are identified (not necessarily exhaustive)
|
|
2952
|
-
- [ ] Technologies specifically needed for this story are mentioned
|
|
2953
|
-
- [ ] Critical APIs or interfaces are sufficiently described
|
|
2954
|
-
- [ ] Necessary data models or structures are referenced
|
|
2955
|
-
- [ ] Required environment variables are listed (if applicable)
|
|
2956
|
-
- [ ] Any exceptions to standard coding patterns are noted
|
|
2957
|
-
|
|
2958
|
-
## 3. REFERENCE EFFECTIVENESS
|
|
2959
|
-
|
|
2960
|
-
[[LLM: References should help, not create a treasure hunt. Ensure:
|
|
2961
|
-
|
|
2962
|
-
1. References point to specific sections, not whole documents
|
|
2963
|
-
2. The relevance of each reference is explained
|
|
2964
|
-
3. Critical information is summarized in the story
|
|
2965
|
-
4. References are accessible (not broken links)
|
|
2966
|
-
5. Previous story context is summarized if needed]]
|
|
2967
|
-
|
|
2968
|
-
- [ ] References to external documents point to specific relevant sections
|
|
2969
|
-
- [ ] Critical information from previous stories is summarized (not just referenced)
|
|
2970
|
-
- [ ] Context is provided for why references are relevant
|
|
2971
|
-
- [ ] References use consistent format (e.g., `docs/filename.md#section`)
|
|
2972
|
-
|
|
2973
|
-
## 4. SELF-CONTAINMENT ASSESSMENT
|
|
2974
|
-
|
|
2975
|
-
[[LLM: Stories should be mostly self-contained to avoid context switching. Verify:
|
|
2976
|
-
|
|
2977
|
-
1. Core requirements are in the story, not just in references
|
|
2978
|
-
2. Domain terms are explained or obvious from context
|
|
2979
|
-
3. Assumptions are stated explicitly
|
|
2980
|
-
4. Edge cases are mentioned (even if deferred)
|
|
2981
|
-
5. The story could be understood without reading 10 other documents]]
|
|
2982
|
-
|
|
2983
|
-
- [ ] Core information needed is included (not overly reliant on external docs)
|
|
2984
|
-
- [ ] Implicit assumptions are made explicit
|
|
2985
|
-
- [ ] Domain-specific terms or concepts are explained
|
|
2986
|
-
- [ ] Edge cases or error scenarios are addressed
|
|
2987
|
-
|
|
2988
|
-
## 5. TESTING GUIDANCE
|
|
2989
|
-
|
|
2990
|
-
[[LLM: Testing ensures the implementation actually works. Check:
|
|
2991
|
-
|
|
2992
|
-
1. Test approach is specified (unit, integration, e2e)
|
|
2993
|
-
2. Key test scenarios are listed
|
|
2994
|
-
3. Success criteria are measurable
|
|
2995
|
-
4. Special test considerations are noted
|
|
2996
|
-
5. Acceptance criteria in the story are testable]]
|
|
2997
|
-
|
|
2998
|
-
- [ ] Required testing approach is outlined
|
|
2999
|
-
- [ ] Key test scenarios are identified
|
|
3000
|
-
- [ ] Success criteria are defined
|
|
3001
|
-
- [ ] Special testing considerations are noted (if applicable)
|
|
3002
|
-
|
|
3003
|
-
## VALIDATION RESULT
|
|
3004
|
-
|
|
3005
|
-
[[LLM: FINAL STORY VALIDATION REPORT
|
|
3006
|
-
|
|
3007
|
-
Generate a concise validation report:
|
|
3008
|
-
|
|
3009
|
-
1. Quick Summary
|
|
3010
|
-
- Story readiness: READY / NEEDS REVISION / BLOCKED
|
|
3011
|
-
- Clarity score (1-10)
|
|
3012
|
-
- Major gaps identified
|
|
3013
|
-
|
|
3014
|
-
2. Fill in the validation table with:
|
|
3015
|
-
- PASS: Requirements clearly met
|
|
3016
|
-
- PARTIAL: Some gaps but workable
|
|
3017
|
-
- FAIL: Critical information missing
|
|
3018
|
-
|
|
3019
|
-
3. Specific Issues (if any)
|
|
3020
|
-
- List concrete problems to fix
|
|
3021
|
-
- Suggest specific improvements
|
|
3022
|
-
- Identify any blocking dependencies
|
|
3023
|
-
|
|
3024
|
-
4. Developer Perspective
|
|
3025
|
-
- Could YOU implement this story as written?
|
|
3026
|
-
- What questions would you have?
|
|
3027
|
-
- What might cause delays or rework?
|
|
3028
|
-
|
|
3029
|
-
Be pragmatic - perfect documentation doesn't exist, but it must be enough to provide the extreme context a dev agent needs to get the work down and not create a mess.]]
|
|
3030
|
-
|
|
3031
|
-
| Category | Status | Issues |
|
|
3032
|
-
| ------------------------------------ | ------ | ------ |
|
|
3033
|
-
| 1. Goal & Context Clarity | _TBD_ | |
|
|
3034
|
-
| 2. Technical Implementation Guidance | _TBD_ | |
|
|
3035
|
-
| 3. Reference Effectiveness | _TBD_ | |
|
|
3036
|
-
| 4. Self-Containment Assessment | _TBD_ | |
|
|
3037
|
-
| 5. Testing Guidance | _TBD_ | |
|
|
3038
|
-
|
|
3039
|
-
**Final Assessment:**
|
|
3040
|
-
|
|
3041
|
-
- READY: The story provides sufficient context for implementation
|
|
3042
|
-
- NEEDS REVISION: The story requires updates (see issues)
|
|
3043
|
-
- BLOCKED: External information required (specify what information)
|
|
3044
|
-
==================== END: .xiaoma-core/checklists/story-draft-checklist.md ====================
|