@zeyue0329/xiaoma-cli 1.7.0 → 1.8.1
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/.idea/XiaoMa-Cli.iml +9 -0
- package/.idea/misc.xml +6 -0
- package/.idea/modules.xml +1 -1
- package/CLAUDE.md +93 -0
- package/README.md +33 -33
- package/TECH-STACK.md +62 -0
- package/package.json +3 -8
- package/pipeline-optimization-report.md +390 -570
- package/run-5-analysis-report.md +436 -0
- package/src/core/module-help.csv +10 -10
- package/src/core/skills/xiaoma-advanced-elicitation/SKILL.md +2 -2
- package/src/core/skills/xiaoma-advanced-elicitation/workflow.md +2 -2
- package/src/core/skills/xiaoma-brainstorming/SKILL.md +1 -1
- package/src/core/skills/xiaoma-brainstorming/steps/step-01-session-setup.md +4 -0
- package/src/core/skills/xiaoma-brainstorming/steps/step-01b-continue.md +3 -1
- package/src/core/skills/xiaoma-brainstorming/steps/step-02a-user-selected.md +5 -1
- package/src/core/skills/xiaoma-brainstorming/steps/step-02b-ai-recommended.md +3 -1
- package/src/core/skills/xiaoma-brainstorming/steps/step-02c-random-selection.md +3 -1
- package/src/core/skills/xiaoma-brainstorming/steps/step-02d-progressive-flow.md +3 -1
- package/src/core/skills/xiaoma-brainstorming/steps/step-03-technique-execution.md +2 -0
- package/src/core/skills/xiaoma-brainstorming/steps/step-04-idea-organization.md +2 -0
- package/src/core/skills/xiaoma-brainstorming/workflow.md +1 -2
- package/src/core/skills/xiaoma-distillator/SKILL.md +1 -1
- package/src/core/skills/xiaoma-distillator/agents/distillate-compressor.md +4 -4
- package/src/core/skills/xiaoma-distillator/resources/distillate-format-reference.md +34 -34
- package/src/core/skills/xiaoma-distillator/xiaoma-skill-manifest.yaml +1 -1
- package/src/core/skills/xiaoma-editorial-review-prose/SKILL.md +1 -1
- package/src/core/skills/xiaoma-editorial-review-structure/SKILL.md +1 -1
- package/src/core/skills/xiaoma-editorial-review-structure/workflow.md +1 -1
- package/src/core/skills/xiaoma-help/SKILL.md +2 -2
- package/src/core/skills/xiaoma-index-docs/SKILL.md +1 -1
- package/src/core/skills/xiaoma-party-mode/SKILL.md +2 -2
- package/src/core/skills/xiaoma-party-mode/steps/step-01-agent-loading.md +3 -3
- package/src/core/skills/xiaoma-party-mode/steps/step-02-discussion-orchestration.md +2 -2
- package/src/core/skills/xiaoma-party-mode/steps/step-03-graceful-exit.md +5 -5
- package/src/core/skills/xiaoma-party-mode/workflow.md +4 -4
- package/src/core/skills/xiaoma-review-adversarial-general/SKILL.md +1 -1
- package/src/core/skills/xiaoma-review-edge-case-hunter/SKILL.md +2 -2
- package/src/core/skills/xiaoma-shard-doc/SKILL.md +1 -1
- package/src/core/tasks/xiaoma-create-prd/SKILL.md +1 -1
- package/src/core/tasks/xiaoma-create-prd/data/prd-purpose.md +4 -4
- package/src/core/tasks/xiaoma-create-prd/data/project-types.csv +1 -1
- package/src/core/tasks/xiaoma-create-prd/steps-c/step-11-polish.md +1 -1
- package/src/xmc/agents/analyst.agent.yaml +3 -3
- package/src/xmc/agents/qa.agent.yaml +1 -1
- package/src/xmc/agents/sm.agent.yaml +3 -3
- package/src/xmc/agents/tech-writer/tech-writer-sidecar/documentation-standards.md +2 -2
- package/src/xmc/agents/tech-writer/xiaoma-skill-manifest.yaml +1 -1
- package/src/xmc/agents/xiaoma-skill-manifest.yaml +8 -8
- package/src/xmc/module-help.csv +31 -31
- package/src/xmc/module.yaml +2 -2
- package/src/xmc/teams/default-party.csv +14 -14
- package/src/xmc/teams/team-fullstack.yaml +1 -1
- package/src/xmc/workflows/1-analysis/auto-requirements-pipeline/steps/step-04-create-prd.md +2 -1
- package/src/xmc/workflows/1-analysis/auto-requirements-pipeline/steps/step-05-validate-prd.md +56 -2
- package/src/xmc/workflows/1-analysis/auto-requirements-pipeline/steps/step-06-create-epics.md +14 -5
- package/src/xmc/workflows/1-analysis/auto-requirements-pipeline/steps/step-08-finalize.md +3 -3
- package/src/xmc/workflows/1-analysis/auto-requirements-pipeline/workflow.md +1 -0
- package/src/xmc/workflows/1-analysis/research/xiaoma-domain-research/SKILL.md +1 -1
- package/src/xmc/workflows/1-analysis/research/xiaoma-market-research/SKILL.md +1 -1
- package/src/xmc/workflows/1-analysis/research/xiaoma-technical-research/SKILL.md +1 -1
- package/src/xmc/workflows/1-analysis/xiaoma-create-product-brief/SKILL.md +1 -1
- package/src/xmc/workflows/1-analysis/xiaoma-create-product-brief/steps/step-02-vision.md +1 -0
- package/src/xmc/workflows/1-analysis/xiaoma-create-product-brief/steps/step-03-users.md +1 -0
- package/src/xmc/workflows/1-analysis/xiaoma-create-product-brief/steps/step-04-metrics.md +1 -0
- package/src/xmc/workflows/1-analysis/xiaoma-create-product-brief/steps/step-05-scope.md +1 -0
- package/src/xmc/workflows/1-analysis/xiaoma-product-brief-preview/SKILL.md +1 -1
- package/src/xmc/workflows/1-analysis/xiaoma-product-brief-preview/prompts/contextual-discovery.md +7 -7
- package/src/xmc/workflows/1-analysis/xiaoma-product-brief-preview/prompts/draft-and-review.md +5 -5
- package/src/xmc/workflows/1-analysis/xiaoma-product-brief-preview/prompts/finalize.md +1 -1
- package/src/xmc/workflows/1-analysis/xiaoma-product-brief-preview/prompts/guided-elicitation.md +2 -2
- package/src/xmc/workflows/1-analysis/xiaoma-product-brief-preview/xiaoma-manifest.json +2 -2
- package/src/xmc/workflows/2-plan-workflows/create-prd/data/prd-purpose.md +4 -4
- package/src/xmc/workflows/2-plan-workflows/create-prd/data/project-types.csv +1 -1
- package/src/xmc/workflows/2-plan-workflows/create-prd/steps-v/step-v-01-discovery.md +1 -1
- package/src/xmc/workflows/2-plan-workflows/create-prd/steps-v/step-v-02-format-detection.md +16 -16
- package/src/xmc/workflows/2-plan-workflows/create-prd/steps-v/step-v-02b-parity-check.md +9 -9
- package/src/xmc/workflows/2-plan-workflows/create-prd/steps-v/step-v-03-density-validation.md +1 -1
- package/src/xmc/workflows/2-plan-workflows/create-prd/steps-v/step-v-11-holistic-quality-validation.md +8 -8
- package/src/xmc/workflows/2-plan-workflows/create-prd/steps-v/step-v-13-report-complete.md +1 -1
- package/src/xmc/workflows/2-plan-workflows/create-prd/workflow-validate-prd.md +2 -2
- package/src/xmc/workflows/2-plan-workflows/xiaoma-create-ux-design/SKILL.md +1 -1
- package/src/xmc/workflows/2-plan-workflows/xiaoma-edit-prd/SKILL.md +1 -1
- package/src/xmc/workflows/2-plan-workflows/xiaoma-edit-prd/steps-e/step-e-01-discovery.md +13 -17
- package/src/xmc/workflows/2-plan-workflows/xiaoma-edit-prd/steps-e/step-e-01b-legacy-conversion.md +9 -13
- package/src/xmc/workflows/2-plan-workflows/xiaoma-edit-prd/steps-e/step-e-02-review.md +4 -8
- package/src/xmc/workflows/2-plan-workflows/xiaoma-edit-prd/steps-e/step-e-03-edit.md +9 -13
- package/src/xmc/workflows/2-plan-workflows/xiaoma-edit-prd/steps-e/step-e-04-complete.md +2 -5
- package/src/xmc/workflows/2-plan-workflows/xiaoma-edit-prd/workflow.md +1 -2
- package/src/xmc/workflows/2-plan-workflows/xiaoma-validate-prd/SKILL.md +1 -1
- package/src/xmc/workflows/2-plan-workflows/xiaoma-validate-prd/data/prd-purpose.md +4 -4
- package/src/xmc/workflows/2-plan-workflows/xiaoma-validate-prd/data/project-types.csv +1 -1
- package/src/xmc/workflows/2-plan-workflows/xiaoma-validate-prd/steps-v/step-v-01-discovery.md +1 -4
- package/src/xmc/workflows/2-plan-workflows/xiaoma-validate-prd/steps-v/step-v-02-format-detection.md +16 -19
- package/src/xmc/workflows/2-plan-workflows/xiaoma-validate-prd/steps-v/step-v-02b-parity-check.md +8 -11
- package/src/xmc/workflows/2-plan-workflows/xiaoma-validate-prd/steps-v/step-v-03-density-validation.md +1 -4
- package/src/xmc/workflows/2-plan-workflows/xiaoma-validate-prd/steps-v/step-v-04-brief-coverage-validation.md +0 -3
- package/src/xmc/workflows/2-plan-workflows/xiaoma-validate-prd/steps-v/step-v-05-measurability-validation.md +0 -3
- package/src/xmc/workflows/2-plan-workflows/xiaoma-validate-prd/steps-v/step-v-06-traceability-validation.md +0 -3
- package/src/xmc/workflows/2-plan-workflows/xiaoma-validate-prd/steps-v/step-v-07-implementation-leakage-validation.md +0 -3
- package/src/xmc/workflows/2-plan-workflows/xiaoma-validate-prd/steps-v/step-v-08-domain-compliance-validation.md +0 -3
- package/src/xmc/workflows/2-plan-workflows/xiaoma-validate-prd/steps-v/step-v-09-project-type-validation.md +0 -3
- package/src/xmc/workflows/2-plan-workflows/xiaoma-validate-prd/steps-v/step-v-10-smart-validation.md +0 -3
- package/src/xmc/workflows/2-plan-workflows/xiaoma-validate-prd/steps-v/step-v-11-holistic-quality-validation.md +8 -11
- package/src/xmc/workflows/2-plan-workflows/xiaoma-validate-prd/steps-v/step-v-12-completeness-validation.md +0 -3
- package/src/xmc/workflows/2-plan-workflows/xiaoma-validate-prd/steps-v/step-v-13-report-complete.md +2 -5
- package/src/xmc/workflows/2-plan-workflows/xiaoma-validate-prd/workflow.md +2 -2
- package/src/xmc/workflows/3-solutioning/xiaoma-check-implementation-readiness/SKILL.md +1 -1
- package/src/xmc/workflows/3-solutioning/xiaoma-create-architecture/SKILL.md +1 -1
- package/src/xmc/workflows/3-solutioning/xiaoma-create-epics-and-stories/SKILL.md +1 -1
- package/src/xmc/workflows/4-implementation/auto-story-pipeline/steps/step-01-init-and-validate.md +12 -4
- package/src/xmc/workflows/4-implementation/auto-story-pipeline/steps/step-02-create-story.md +13 -2
- package/src/xmc/workflows/4-implementation/auto-story-pipeline/steps/step-03-validate-story.md +3 -1
- package/src/xmc/workflows/4-implementation/auto-story-pipeline/steps/step-04-develop-story.md +14 -7
- package/src/xmc/workflows/4-implementation/auto-story-pipeline/steps/step-05-code-review.md +7 -8
- package/src/xmc/workflows/4-implementation/auto-story-pipeline/steps/step-06-test-story.md +111 -2
- package/src/xmc/workflows/4-implementation/auto-story-pipeline/steps/step-07-fix-and-retest.md +123 -7
- package/src/xmc/workflows/4-implementation/auto-story-pipeline/steps/step-08-complete-story.md +2 -2
- package/src/xmc/workflows/4-implementation/auto-story-pipeline/steps/step-09-cycle-check.md +14 -2
- package/src/xmc/workflows/4-implementation/auto-story-pipeline/workflow.md +12 -9
- package/src/xmc/workflows/4-implementation/xiaoma-code-review/SKILL.md +2 -2
- package/src/xmc/workflows/4-implementation/xiaoma-code-review/steps/step-01-gather-context.md +61 -0
- package/src/xmc/workflows/4-implementation/xiaoma-code-review/steps/step-02-review.md +41 -0
- package/src/xmc/workflows/4-implementation/xiaoma-code-review/steps/step-03-triage.md +50 -0
- package/src/xmc/workflows/4-implementation/xiaoma-code-review/steps/step-04-present.md +38 -0
- package/src/xmc/workflows/4-implementation/xiaoma-code-review/workflow.md +33 -240
- package/src/xmc/workflows/4-implementation/xiaoma-correct-course/SKILL.md +1 -1
- package/src/xmc/workflows/4-implementation/xiaoma-correct-course/workflow.md +1 -1
- package/src/xmc/workflows/4-implementation/xiaoma-create-story/SKILL.md +1 -1
- package/src/xmc/workflows/4-implementation/xiaoma-create-story/workflow.md +3 -3
- package/src/xmc/workflows/4-implementation/xiaoma-dev-story/SKILL.md +1 -1
- package/src/xmc/workflows/4-implementation/xiaoma-dev-story/workflow.md +1 -1
- package/src/xmc/workflows/4-implementation/xiaoma-retrospective/SKILL.md +1 -1
- package/src/xmc/workflows/4-implementation/xiaoma-sprint-planning/SKILL.md +1 -1
- package/src/xmc/workflows/4-implementation/xiaoma-sprint-planning/workflow.md +2 -2
- package/src/xmc/workflows/4-implementation/xiaoma-sprint-status/SKILL.md +1 -1
- package/src/xmc/workflows/4-implementation/xiaoma-sprint-status/workflow.md +5 -5
- package/src/xmc/workflows/xiaoma-document-project/SKILL.md +1 -1
- package/src/xmc/workflows/xiaoma-document-project/templates/index-template.md +1 -1
- package/src/xmc/workflows/xiaoma-document-project/templates/project-overview-template.md +1 -1
- package/src/xmc/workflows/xiaoma-document-project/templates/source-tree-template.md +1 -1
- package/src/xmc/workflows/xiaoma-generate-project-context/SKILL.md +1 -1
- package/src/xmc/workflows/xiaoma-generate-project-context/steps/step-01-discover.md +3 -1
- package/src/xmc/workflows/xiaoma-generate-project-context/steps/step-02-generate.md +2 -0
- package/src/xmc/workflows/xiaoma-qa-generate-e2e-tests/SKILL.md +1 -1
- package/src/xmc/workflows/xiaoma-qa-generate-e2e-tests/checklist.md +1 -1
- package/src/xmc/workflows/xiaoma-qa-generate-e2e-tests/workflow.md +2 -2
- package/src/xmc/workflows/xiaoma-quick-flow/xiaoma-quick-dev/SKILL.md +1 -1
- package/src/xmc/workflows/xiaoma-quick-flow/xiaoma-quick-dev/steps/step-01-mode-detection.md +2 -2
- package/src/xmc/workflows/xiaoma-quick-flow/xiaoma-quick-dev-new-preview/SKILL.md +1 -1
- package/src/xmc/workflows/xiaoma-quick-flow/xiaoma-quick-spec/SKILL.md +1 -1
- package/src/xmc/workflows/xiaoma-quick-flow/xiaoma-quick-spec/workflow.md +1 -0
- package/tools/cli/README.md +4 -4
- package/tools/cli/commands/install.js +1 -1
- package/tools/cli/commands/status.js +4 -4
- package/tools/cli/commands/uninstall.js +9 -9
- package/tools/cli/external-official-modules.yaml +2 -54
- package/tools/cli/installers/install-messages.yaml +5 -5
- package/tools/cli/installers/lib/core/config-collector.js +2 -2
- package/tools/cli/installers/lib/core/dependency-resolver.js +2 -2
- package/tools/cli/installers/lib/core/detector.js +9 -9
- package/tools/cli/installers/lib/core/ide-config-manager.js +7 -7
- package/tools/cli/installers/lib/core/installer.js +51 -51
- package/tools/cli/installers/lib/core/manifest-generator.js +6 -6
- package/tools/cli/installers/lib/core/manifest.js +3 -3
- package/tools/cli/installers/lib/custom/handler.js +5 -5
- package/tools/cli/installers/lib/ide/_base-ide.js +15 -15
- package/tools/cli/installers/lib/ide/_config-driven.js +31 -31
- package/tools/cli/installers/lib/ide/manager.js +8 -8
- package/tools/cli/installers/lib/ide/platform-codes.yaml +3 -3
- package/tools/cli/installers/lib/ide/shared/agent-command-generator.js +3 -3
- package/tools/cli/installers/lib/ide/shared/path-utils.js +3 -3
- package/tools/cli/installers/lib/ide/shared/skill-manifest.js +2 -2
- package/tools/cli/installers/lib/ide/shared/task-tool-command-generator.js +13 -13
- package/tools/cli/installers/lib/ide/shared/workflow-command-generator.js +2 -2
- package/tools/cli/installers/lib/ide/shared/xiaoma-artifacts.js +1 -1
- package/tools/cli/installers/lib/ide/templates/agent-command-template.md +1 -1
- package/tools/cli/installers/lib/ide/templates/combined/antigravity.md +1 -1
- package/tools/cli/installers/lib/ide/templates/combined/default-agent.md +1 -1
- package/tools/cli/installers/lib/ide/templates/combined/default-task.md +1 -1
- package/tools/cli/installers/lib/ide/templates/combined/default-tool.md +1 -1
- package/tools/cli/installers/lib/ide/templates/combined/default-workflow.md +1 -1
- package/tools/cli/installers/lib/ide/templates/combined/gemini-task.toml +2 -2
- package/tools/cli/installers/lib/ide/templates/combined/gemini-tool.toml +2 -2
- package/tools/cli/installers/lib/ide/templates/combined/gemini-workflow-yaml.toml +1 -1
- package/tools/cli/installers/lib/ide/templates/combined/gemini-workflow.toml +1 -1
- package/tools/cli/installers/lib/ide/templates/combined/kiro-agent.md +1 -1
- package/tools/cli/installers/lib/ide/templates/combined/kiro-task.md +1 -1
- package/tools/cli/installers/lib/ide/templates/combined/kiro-tool.md +1 -1
- package/tools/cli/installers/lib/ide/templates/combined/kiro-workflow.md +1 -1
- package/tools/cli/installers/lib/ide/templates/combined/opencode-agent.md +1 -1
- package/tools/cli/installers/lib/ide/templates/combined/opencode-task.md +3 -3
- package/tools/cli/installers/lib/ide/templates/combined/opencode-tool.md +3 -3
- package/tools/cli/installers/lib/ide/templates/combined/opencode-workflow-yaml.md +3 -3
- package/tools/cli/installers/lib/ide/templates/combined/opencode-workflow.md +3 -3
- package/tools/cli/installers/lib/ide/templates/combined/rovodev.md +1 -1
- package/tools/cli/installers/lib/ide/templates/combined/trae.md +1 -1
- package/tools/cli/installers/lib/ide/templates/combined/windsurf-workflow.md +1 -1
- package/tools/cli/installers/lib/modules/manager.js +22 -22
- package/tools/cli/lib/agent/compiler.js +3 -3
- package/tools/cli/lib/agent/installer.js +9 -9
- package/tools/cli/lib/agent/template-engine.js +1 -1
- package/tools/cli/lib/agent-party-generator.js +3 -3
- package/tools/cli/lib/cli-utils.js +8 -8
- package/tools/cli/lib/project-root.js +5 -5
- package/tools/cli/lib/prompts.js +1 -1
- package/tools/cli/lib/ui.js +27 -27
- package/tools/cli/lib/xml-handler.js +1 -1
- package/tools/cli/lib/yaml-format.js +1 -1
- package/tools/cli/lib/yaml-xml-builder.js +2 -2
- package/tools/cli/xiaoma-cli.js +3 -3
- package/tools/platform-codes.yaml +2 -2
- package/tools/schema/agent.js +1 -1
- package/tools/xiaoma-npx-wrapper.js +1 -1
- package//344/270/223/345/210/251/344/272/244/345/272/225/344/271/246_1_/351/235/242/345/220/221AI/346/231/272/350/203/275/344/275/223/345/210/266/345/223/201/347/232/204/345/244/232/351/200/232/351/201/223/344/276/235/350/265/226_20260318.docx +0 -0
- package//344/270/223/345/210/251/344/272/244/345/272/225/344/271/246_2_/345/237/272/344/272/216/351/205/215/347/275/256/351/251/261/345/212/250/347/232/204/350/267/250/345/271/263/345/217/260IDE/346/231/272/350/203/275_20260318.docx +0 -0
- package//344/270/223/345/210/251/344/272/244/345/272/225/344/271/246_3_AI/346/231/272/350/203/275/344/275/223/345/243/260/346/230/216/345/274/217/345/256/232/344/271/211/347/232/204/347/274/226/350/257/221/346/265/201/346/260/264_20260318.docx +0 -0
- package//344/270/223/345/210/251/344/272/244/345/272/225/344/271/246_4_/345/237/272/344/272/216/345/223/210/345/270/214/346/214/207/347/272/271/347/232/204/346/231/272/350/203/275/344/275/223/351/231/204/345/261/236/350/265/204/346/272/220/351/200/211_20260318.docx +0 -0
- package//344/270/223/345/210/251/344/272/244/345/272/225/344/271/246_5_AI/346/231/272/350/203/275/344/275/223/350/247/246/345/217/221/346/214/207/344/273/244/347/232/204/345/244/215/345/220/210/346/240/274/345/274/217/346/240/241_20260318.docx +0 -0
- package/.idea/codeStyles/Project.xml +0 -60
- package/.idea/codeStyles/codeStyleConfig.xml +0 -5
- package/.idea/jsLibraryMappings.xml +0 -6
- package/.idea/workspace.xml +0 -146
- package/AGENTS.md +0 -9
- package/README_CN.md +0 -121
- package/XIAOMA-CLI-GUIDE.md +0 -512
- package/src/core/skills/xiaoma-advanced-elicitation/SKILL.md.bak +0 -6
- package/src/core/skills/xiaoma-brainstorming/SKILL.md.bak +0 -6
- package/src/core/skills/xiaoma-distillator/SKILL.md.bak +0 -178
- package/src/core/skills/xiaoma-editorial-review-prose/SKILL.md.bak +0 -6
- package/src/core/skills/xiaoma-editorial-review-structure/SKILL.md.bak +0 -6
- package/src/core/skills/xiaoma-index-docs/SKILL.md.bak +0 -6
- package/src/core/skills/xiaoma-party-mode/SKILL.md.bak +0 -6
- package/src/core/skills/xiaoma-review-adversarial-general/SKILL.md.bak +0 -6
- package/src/core/skills/xiaoma-review-edge-case-hunter/SKILL.md.bak +0 -6
- package/src/core/skills/xiaoma-shard-doc/SKILL.md.bak +0 -6
- package/src/core/tasks/xiaoma-create-prd/SKILL.md.bak +0 -6
- package/src/xmc/workflows/1-analysis/research/xiaoma-domain-research/SKILL.md.bak +0 -6
- package/src/xmc/workflows/1-analysis/research/xiaoma-market-research/SKILL.md.bak +0 -6
- package/src/xmc/workflows/1-analysis/research/xiaoma-technical-research/SKILL.md.bak +0 -6
- package/src/xmc/workflows/1-analysis/xiaoma-create-product-brief/SKILL.md.bak +0 -6
- package/src/xmc/workflows/1-analysis/xiaoma-product-brief-preview/SKILL.md.bak +0 -88
- package/src/xmc/workflows/2-plan-workflows/xiaoma-create-ux-design/SKILL.md.bak +0 -6
- package/src/xmc/workflows/2-plan-workflows/xiaoma-edit-prd/SKILL.md.bak +0 -6
- package/src/xmc/workflows/2-plan-workflows/xiaoma-validate-prd/SKILL.md.bak +0 -6
- package/src/xmc/workflows/3-solutioning/xiaoma-check-implementation-readiness/SKILL.md.bak +0 -6
- package/src/xmc/workflows/3-solutioning/xiaoma-create-architecture/SKILL.md.bak +0 -6
- package/src/xmc/workflows/3-solutioning/xiaoma-create-epics-and-stories/SKILL.md.bak +0 -6
- package/src/xmc/workflows/4-implementation/xiaoma-code-review/SKILL.md.bak +0 -6
- package/src/xmc/workflows/4-implementation/xiaoma-correct-course/SKILL.md.bak +0 -6
- package/src/xmc/workflows/4-implementation/xiaoma-create-story/SKILL.md.bak +0 -6
- package/src/xmc/workflows/4-implementation/xiaoma-dev-story/SKILL.md.bak +0 -6
- package/src/xmc/workflows/4-implementation/xiaoma-retrospective/SKILL.md.bak +0 -6
- package/src/xmc/workflows/4-implementation/xiaoma-sprint-planning/SKILL.md.bak +0 -6
- package/src/xmc/workflows/4-implementation/xiaoma-sprint-status/SKILL.md.bak +0 -6
- package/src/xmc/workflows/xiaoma-document-project/SKILL.md.bak +0 -6
- package/src/xmc/workflows/xiaoma-generate-project-context/SKILL.md.bak +0 -6
- package/src/xmc/workflows/xiaoma-qa-generate-e2e-tests/SKILL.md.bak +0 -6
- package/src/xmc/workflows/xiaoma-quick-flow/xiaoma-quick-dev/SKILL.md.bak +0 -6
- package/src/xmc/workflows/xiaoma-quick-flow/xiaoma-quick-dev-new-preview/SKILL.md.bak +0 -6
- package/src/xmc/workflows/xiaoma-quick-flow/xiaoma-quick-spec/SKILL.md.bak +0 -6
- package/tools/format-workflow-md.js +0 -263
- package/tools/migrate-custom-module-paths.js +0 -124
- package/tools/skill-validator.md +0 -322
|
@@ -0,0 +1,436 @@
|
|
|
1
|
+
# Pipeline Optimization Report — Run #5
|
|
2
|
+
|
|
3
|
+
**Generated:** 2026-03-18
|
|
4
|
+
**Run Type:** Incremental Analysis (Verification + New Issues Discovery & Implementation)
|
|
5
|
+
**Scope:** auto-requirements-pipeline (8 steps) · auto-story-pipeline (9 steps)
|
|
6
|
+
**Previous Optimizations:** 15 (from Runs #1-#4)
|
|
7
|
+
**New Issues Found:** 7 (1 HIGH, 4 MEDIUM, 2 LOW)
|
|
8
|
+
**New Issues Implemented:** 5 (all HIGH + MEDIUM severity)
|
|
9
|
+
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
## EXECUTIVE SUMMARY
|
|
13
|
+
|
|
14
|
+
Run #5 focused on two core objectives:
|
|
15
|
+
|
|
16
|
+
1. **Verification:** Systematically verify all 15 existing optimizations from Runs #1-#4 remain in place in actual pipeline files
|
|
17
|
+
2. **Discovery & Implementation:** Identify NEW issues not yet covered by the optimization list and implement fixes
|
|
18
|
+
|
|
19
|
+
### Results
|
|
20
|
+
|
|
21
|
+
| Objective | Status | Details |
|
|
22
|
+
|-----------|--------|---------|
|
|
23
|
+
| Verify 15 existing optimizations | ✅ PASS | All 15 confirmed present and correctly implemented in their respective files |
|
|
24
|
+
| Identify new issues | ✅ COMPLETE | 7 new issues found (1 HIGH, 4 MEDIUM, 2 LOW severity) |
|
|
25
|
+
| Implement new issues | ✅ COMPLETE | 5 new issues implemented (all HIGH + MEDIUM); 2 LOW severity documented for future runs |
|
|
26
|
+
|
|
27
|
+
### Key Findings
|
|
28
|
+
|
|
29
|
+
- **Code Quality:** All existing optimizations remain in place with no regression
|
|
30
|
+
- **New Issues Identified:** 7 distinct problems found during deep file analysis
|
|
31
|
+
- Critical Issue: Missing fresh-read directive in step-08 could cause stale file state validation
|
|
32
|
+
- Consistency Issues: Task marker formats, persona completeness, routing documentation
|
|
33
|
+
- Documentation Gaps: Variable persistence notes, frontmatter branching clarity
|
|
34
|
+
|
|
35
|
+
---
|
|
36
|
+
|
|
37
|
+
## SECTION 1: VERIFICATION OF 15 EXISTING OPTIMIZATIONS
|
|
38
|
+
|
|
39
|
+
All 15 optimizations from previous runs verified present and correctly implemented:
|
|
40
|
+
|
|
41
|
+
### Requirements Pipeline (5 optimizations)
|
|
42
|
+
|
|
43
|
+
| Opt ID | Issue | File | Status |
|
|
44
|
+
|--------|-------|------|--------|
|
|
45
|
+
| OPT-REQ-1 | step-06 missing PM role switch | step-06-create-epics.md | ✅ VERIFIED |
|
|
46
|
+
| OPT-REQ-2 | {max_validation_iterations} not documented | workflow.md | ✅ VERIFIED |
|
|
47
|
+
| OPT-REQ-3 | JSON iteration fields should be integers | step-08-finalize.md | ✅ VERIFIED |
|
|
48
|
+
| OPT-REQ-4 | "Proceed to step 4" ambiguous wording | step-05-validate-prd.md | ✅ VERIFIED |
|
|
49
|
+
| OPT-REQ-5 | "13 step files" vs "14 step files" inconsistency | step-05-validate-prd.md | ✅ VERIFIED |
|
|
50
|
+
|
|
51
|
+
**Verification Method:** Direct file inspection, grep pattern confirmation, manual content review
|
|
52
|
+
|
|
53
|
+
### Story Pipeline (10 optimizations)
|
|
54
|
+
|
|
55
|
+
| Opt ID | Issue | File | Status |
|
|
56
|
+
|--------|-------|------|--------|
|
|
57
|
+
| OPT-STORY-1 | Batch progress checkpoint doesn't refresh counts | step-09-cycle-check.md | ✅ VERIFIED |
|
|
58
|
+
| OPT-STORY-2 | {max_fix_iterations} not documented | workflow.md | ✅ VERIFIED |
|
|
59
|
+
| OPT-STORY-3 | step-07 fix routing not differentiated by source | step-07-fix-and-retest.md | ✅ VERIFIED |
|
|
60
|
+
| OPT-STORY-4 | ready-for-dev routes incorrectly in single mode | step-01-init-and-validate.md | ✅ VERIFIED |
|
|
61
|
+
| OPT-STORY-5 | {found_status} never explicitly assigned | step-09-cycle-check.md | ✅ VERIFIED |
|
|
62
|
+
| OPT-STORY-6 | {fix_source} variable not documented | workflow.md | ✅ VERIFIED |
|
|
63
|
+
| OPT-STORY-7 | {validation_attempt} resets in loop | step-03-validate-story.md | ✅ VERIFIED |
|
|
64
|
+
| OPT-STORY-8 | No pipeline-status.json check | step-01-init-and-validate.md | ✅ VERIFIED |
|
|
65
|
+
| OPT-STORY-9 | Task markers only accept [x] (case-sensitive) | step-01-init-and-validate.md | ✅ VERIFIED |
|
|
66
|
+
| OPT-STORY-10 | {found_status} variable not documented | workflow.md | ✅ VERIFIED |
|
|
67
|
+
|
|
68
|
+
**Verification Conclusion:** 100% of prior optimizations confirmed present with zero regression
|
|
69
|
+
|
|
70
|
+
---
|
|
71
|
+
|
|
72
|
+
## SECTION 2: NEW ISSUES DISCOVERED IN RUN #5
|
|
73
|
+
|
|
74
|
+
### NEW-ISSUE #1: CRITICAL DATA INTEGRITY — Missing Fresh File Read in step-08
|
|
75
|
+
|
|
76
|
+
**Severity:** HIGH
|
|
77
|
+
**File:** `src/xmc/workflows/4-implementation/auto-story-pipeline/steps/step-08-complete-story.md`
|
|
78
|
+
**Location:** Section 1 (Final Validation)
|
|
79
|
+
**Problem Description:**
|
|
80
|
+
|
|
81
|
+
The step-08 final validation gate requires reading the story file: "Read the COMPLETE story file at `{current_story_path}`". However, the instruction does not explicitly require a **FRESH read from disk**. In batch mode pipeline execution:
|
|
82
|
+
|
|
83
|
+
- Step-02 creates/loads the story file
|
|
84
|
+
- Steps 04-07 may modify the file (e.g., update task checkboxes, fix code review issues, add QA test results)
|
|
85
|
+
- Step-08 performs final validation
|
|
86
|
+
|
|
87
|
+
If step-08 reuses a stale, cached version of the story file state (from early in the pipeline) rather than reading fresh from disk, the validation gate will check against incorrect data. For example:
|
|
88
|
+
- Tasks that were actually fixed in step-07 would still show as incomplete in the stale version
|
|
89
|
+
- Test results added in step-06 would be missing from cache
|
|
90
|
+
- This could result in marking a story complete with invalid validation state
|
|
91
|
+
|
|
92
|
+
**Impact:** Data integrity risk; potential false-pass of completion gates
|
|
93
|
+
|
|
94
|
+
**Solution Implemented:**
|
|
95
|
+
- Updated Section 1 to explicitly state: "**Fresh Read:** Read the COMPLETE story file at `{current_story_path}` directly from disk (not from cache or prior state)"
|
|
96
|
+
- Added explanation: "This is critical because step-07 may have modified the file (e.g., updated task checkboxes, changed story status), and you MUST verify the current on-disk state, not a stale in-memory version"
|
|
97
|
+
- Updated task marker validation to accept `[x], [X], or [✓]` (case-insensitive) for consistency with step-01 OPT-STORY-9
|
|
98
|
+
|
|
99
|
+
**What Was Changed:**
|
|
100
|
+
```markdown
|
|
101
|
+
OLD: "1. Read the COMPLETE story file at `{current_story_path}`"
|
|
102
|
+
|
|
103
|
+
NEW: "1. **Fresh Read:** Read the COMPLETE story file at `{current_story_path}`
|
|
104
|
+
directly from disk (not from cache or prior state). This is critical
|
|
105
|
+
because step-07 may have modified the file..."
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
**Compatibility Assessment:** ✅ Non-breaking enhancement. All step logic remains identical; only clarifies the implementation requirement. Existing pipelines benefit from this clarity immediately.
|
|
109
|
+
|
|
110
|
+
---
|
|
111
|
+
|
|
112
|
+
### NEW-ISSUE #2: CONSISTENCY — step-04 Dev Persona Lacks Complete Definition
|
|
113
|
+
|
|
114
|
+
**Severity:** MEDIUM
|
|
115
|
+
**File:** `src/xmc/workflows/4-implementation/auto-story-pipeline/steps/step-04-develop-story.md`
|
|
116
|
+
**Location:** Section 1 (Switch to Dev Role)
|
|
117
|
+
**Problem Description:**
|
|
118
|
+
|
|
119
|
+
Step-04's persona definition for Amelia (Dev) is minimal:
|
|
120
|
+
```
|
|
121
|
+
- You are Amelia, an elite full-stack developer
|
|
122
|
+
- Follow patterns, ship code, run tests
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
In contrast, other steps have much richer persona definitions:
|
|
126
|
+
- Step-03 Quinn (QA): Full communication style, mission statement, zero-tolerance principles
|
|
127
|
+
- Step-05 Reviewer: Explicit "Adversarial Code Reviewer — Find what's wrong or missing!" persona
|
|
128
|
+
- Step-06 QA: Detailed persona including mission and focus
|
|
129
|
+
|
|
130
|
+
The minimal Dev persona provides insufficient context for LLMs to properly adopt the role. This leads to inconsistent code quality decisions and incomplete adherence to step requirements.
|
|
131
|
+
|
|
132
|
+
**Impact:** Inconsistent developer decision-making; potential quality gaps in implementation
|
|
133
|
+
|
|
134
|
+
**Solution Implemented:**
|
|
135
|
+
- Expanded Section 1 with complete Amelia persona including:
|
|
136
|
+
- Full name, title, and core purpose
|
|
137
|
+
- Communication style (crisp, code-focused, evidence-driven)
|
|
138
|
+
- Key behaviors with specific TDD and quality gates
|
|
139
|
+
- Explicit quality gate: "All tasks must be marked [x], [X], or [✓] with corresponding tests passing"
|
|
140
|
+
|
|
141
|
+
**What Was Changed:**
|
|
142
|
+
```markdown
|
|
143
|
+
OLD:
|
|
144
|
+
- You are Amelia, an elite full-stack developer
|
|
145
|
+
- Follow patterns, ship code, run tests
|
|
146
|
+
- Every response moves the project forward
|
|
147
|
+
|
|
148
|
+
NEW:
|
|
149
|
+
- **Name:** Amelia
|
|
150
|
+
- **Title:** Elite Full-Stack Developer
|
|
151
|
+
- **Core Purpose:** Transform story requirements into production-ready code
|
|
152
|
+
through TDD (red-green-refactor cycle), comprehensive testing, and
|
|
153
|
+
meticulous task completion
|
|
154
|
+
- **Communication Style:** Crisp, code-focused, evidence-driven...
|
|
155
|
+
- [6 additional detailed behavior and quality gate definitions]
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
**Compatibility Assessment:** ✅ Enhancement only. Step logic unchanged; persona clarity improves consistency.
|
|
159
|
+
|
|
160
|
+
---
|
|
161
|
+
|
|
162
|
+
### NEW-ISSUE #3: ROUTING CLARITY — step-06 QA Doesn't Set {fix_source} When Routing to step-07
|
|
163
|
+
|
|
164
|
+
**Severity:** MEDIUM
|
|
165
|
+
**File:** `src/xmc/workflows/4-implementation/auto-story-pipeline/steps/step-06-test-story.md`
|
|
166
|
+
**Location:** Section 6 (Evaluate Test Outcome)
|
|
167
|
+
**Problem Description:**
|
|
168
|
+
|
|
169
|
+
When QA testing fails, step-06 routes to step-07 for fixes. However, step-06 does not set the `{fix_source}` variable to "qa-testing". This variable is critical for step-07 to determine the correct fix routing:
|
|
170
|
+
|
|
171
|
+
- `{fix_source}` = "code-review" → inline code re-check before step-08
|
|
172
|
+
- `{fix_source}` = "qa-testing" → direct to step-08 (no re-review needed)
|
|
173
|
+
- `{fix_source}` = "mixed" → inline re-check before step-08
|
|
174
|
+
|
|
175
|
+
Without this assignment in step-06, step-07 has no context about fix origin, potentially using a stale/incorrect `{fix_source}` value from prior story cycles (in batch mode) or undefined value in single mode.
|
|
176
|
+
|
|
177
|
+
**Impact:** Incorrect routing of QA-sourced fixes; unnecessary code review delays
|
|
178
|
+
|
|
179
|
+
**Solution Implemented:**
|
|
180
|
+
- Added explicit `{fix_source}` assignment in Section 6 when routing to step-07
|
|
181
|
+
- Clarified that step-07 uses this value to route "fixes directly to step-08 after correction, since QA issues often don't require code review re-entry"
|
|
182
|
+
|
|
183
|
+
**What Was Changed:**
|
|
184
|
+
```markdown
|
|
185
|
+
OLD:
|
|
186
|
+
- **NEXT:** Proceed to step-07 (fix and retest)
|
|
187
|
+
|
|
188
|
+
NEW:
|
|
189
|
+
- Set `{fix_source}` = "qa-testing" (this variable will be used in step-07
|
|
190
|
+
to route fixes directly to step-08 after correction, since QA issues
|
|
191
|
+
often don't require code review re-entry)
|
|
192
|
+
- **NEXT:** Proceed to step-07 (fix and retest)
|
|
193
|
+
```
|
|
194
|
+
|
|
195
|
+
**Compatibility Assessment:** ✅ Non-breaking enhancement. Adds variable assignment; no routing logic changes.
|
|
196
|
+
|
|
197
|
+
---
|
|
198
|
+
|
|
199
|
+
### NEW-ISSUE #4: VALIDATION COMPLETENESS — step-02 Missing Story File Format Validation
|
|
200
|
+
|
|
201
|
+
**Severity:** MEDIUM
|
|
202
|
+
**File:** `src/xmc/workflows/4-implementation/auto-story-pipeline/steps/step-02-create-story.md`
|
|
203
|
+
**Location:** Section 4 (Verify Creation Output)
|
|
204
|
+
**Problem Description:**
|
|
205
|
+
|
|
206
|
+
Step-02 verifies that:
|
|
207
|
+
- Story file exists at expected path ✅
|
|
208
|
+
- Story status is "ready-for-dev" ✅
|
|
209
|
+
|
|
210
|
+
But does NOT verify:
|
|
211
|
+
- Story file is structurally valid (has required sections: Story, Status, Tasks, Acceptance Criteria, File List, Dev Agent Record)
|
|
212
|
+
- Story file format is valid Markdown
|
|
213
|
+
|
|
214
|
+
If the create-story workflow produces a malformed story file (e.g., missing sections, broken Markdown syntax), step-02's verification passes silently. Downstream steps (step-03, step-04, etc.) then fail with cryptic parsing errors instead of catching the issue at source.
|
|
215
|
+
|
|
216
|
+
**Impact:** Late error detection; confusing failure messages downstream
|
|
217
|
+
|
|
218
|
+
**Solution Implemented:**
|
|
219
|
+
- Added structural validation check in Section 4:
|
|
220
|
+
1. Verify required sections exist (Story, Status, Tasks, etc.)
|
|
221
|
+
2. If sections missing/malformed: output WARNING and retry (max 2 attempts)
|
|
222
|
+
3. Only proceed if structure valid
|
|
223
|
+
|
|
224
|
+
**What Was Changed:**
|
|
225
|
+
```markdown
|
|
226
|
+
OLD:
|
|
227
|
+
1. Verify story file exists at expected path
|
|
228
|
+
2. Verify story status is "ready-for-dev"
|
|
229
|
+
|
|
230
|
+
NEW:
|
|
231
|
+
1. Verify story file exists at expected path
|
|
232
|
+
2. Verify story file is structurally valid (contains required sections:
|
|
233
|
+
Story, Status, Tasks, Acceptance Criteria, File List, Dev Agent Record).
|
|
234
|
+
If sections are missing or malformed:
|
|
235
|
+
- Output WARNING — "Story file created but appears incomplete..."
|
|
236
|
+
- Retry the workflow (max 2 attempts)...
|
|
237
|
+
3. Verify story status is "ready-for-dev"
|
|
238
|
+
```
|
|
239
|
+
|
|
240
|
+
**Compatibility Assessment:** ✅ Non-breaking enhancement. Adds defensive validation; no success path changes.
|
|
241
|
+
|
|
242
|
+
---
|
|
243
|
+
|
|
244
|
+
### NEW-ISSUE #5: DOCUMENTATION CLARITY — {current_story_path} Persistence Notes Missing
|
|
245
|
+
|
|
246
|
+
**Severity:** MEDIUM
|
|
247
|
+
**File:** `src/xmc/workflows/4-implementation/auto-story-pipeline/workflow.md`
|
|
248
|
+
**Location:** State Variables section
|
|
249
|
+
**Problem Description:**
|
|
250
|
+
|
|
251
|
+
The workflow.md State Variables section documents `{current_story_path}` but lacks critical persistence notes:
|
|
252
|
+
- Is this variable per-story or per-pipeline-run?
|
|
253
|
+
- In batch mode (step-09), how does this variable transition between story iterations?
|
|
254
|
+
- What happens if step-X modifies the file but step-Y reads cached state?
|
|
255
|
+
|
|
256
|
+
These ambiguities can lead to implementation bugs where LLMs or downstream tools mishandle file path resolution or state caching across story cycles.
|
|
257
|
+
|
|
258
|
+
**Impact:** Architectural ambiguity; potential file handling bugs in batch mode
|
|
259
|
+
|
|
260
|
+
**Solution Implemented:**
|
|
261
|
+
- Expanded `{current_story_path}` documentation in workflow.md with explicit persistence notes:
|
|
262
|
+
- "This variable is **per-story** — in batch mode (step-09), it is reset for each new story iteration"
|
|
263
|
+
- "Critical: When re-reading the story file in later steps (e.g., step-08 final validation), always read fresh from disk using this path variable, NOT from cached/stale in-memory state from earlier step execution"
|
|
264
|
+
|
|
265
|
+
**What Was Changed:**
|
|
266
|
+
```markdown
|
|
267
|
+
OLD:
|
|
268
|
+
- `{current_story_path}` — Full path to current story file (derived in
|
|
269
|
+
step-01 after resolving `{current_story_key}`; re-set in step-02 skip
|
|
270
|
+
branch for batch cycles)
|
|
271
|
+
|
|
272
|
+
NEW:
|
|
273
|
+
- `{current_story_path}` — Full path to current story file (derived in
|
|
274
|
+
step-01 after resolving `{current_story_key}`; re-set in step-02 skip
|
|
275
|
+
branch for batch cycles). **CRITICAL:** In batch mode, this variable is
|
|
276
|
+
reset for each story iteration (step-09 → step-02 loop). Whenever
|
|
277
|
+
re-reading the story file in subsequent steps (e.g., step-08 final
|
|
278
|
+
validation, step-03 re-checks), always perform a FRESH read directly
|
|
279
|
+
from disk using this path variable. Do NOT rely on cached/stale
|
|
280
|
+
in-memory state from earlier steps...
|
|
281
|
+
```
|
|
282
|
+
|
|
283
|
+
**Compatibility Assessment:** ✅ Pure documentation enhancement. No code changes.
|
|
284
|
+
|
|
285
|
+
---
|
|
286
|
+
|
|
287
|
+
### NEW-ISSUE #6: FORMAT CONSISTENCY — step-04 Task Marker Check Should Accept [X] and [✓]
|
|
288
|
+
|
|
289
|
+
**Severity:** LOW
|
|
290
|
+
**File:** `src/xmc/workflows/4-implementation/auto-story-pipeline/steps/step-04-develop-story.md`
|
|
291
|
+
**Location:** Section 3 (Verify Development Output)
|
|
292
|
+
**Problem Description:**
|
|
293
|
+
|
|
294
|
+
Step-04's verification checks: "Verify ALL tasks and subtasks are marked [x]"
|
|
295
|
+
|
|
296
|
+
However, step-01-init-and-validate was updated in Run #4 (OPT-STORY-9) to accept case-insensitive task markers:
|
|
297
|
+
- `[x]` — standard lowercase
|
|
298
|
+
- `[X]` — uppercase (some editors default)
|
|
299
|
+
- `[✓]` — Unicode checkmark (some tools generate)
|
|
300
|
+
|
|
301
|
+
Step-04 still uses the strict `[x]` format. Inconsistency means tasks legitimately marked with `[X]` or `[✓]` formats may be flagged as incomplete, causing false warnings and confusion.
|
|
302
|
+
|
|
303
|
+
**Impact:** False validation failures; inconsistent task completion checking
|
|
304
|
+
|
|
305
|
+
**Solution Implemented:**
|
|
306
|
+
- Updated Section 3 verification step to accept all three formats: `[x], [X], or [✓]` (case-insensitive)
|
|
307
|
+
|
|
308
|
+
**What Was Changed:**
|
|
309
|
+
```markdown
|
|
310
|
+
OLD:
|
|
311
|
+
2. Verify ALL tasks and subtasks are marked [x] — including any
|
|
312
|
+
`[AI-Review]` prefixed tasks from prior code review
|
|
313
|
+
|
|
314
|
+
NEW:
|
|
315
|
+
2. Verify ALL tasks and subtasks are marked [x], [X], or [✓]
|
|
316
|
+
(case-insensitive) — including any `[AI-Review]` prefixed tasks
|
|
317
|
+
from prior code review
|
|
318
|
+
```
|
|
319
|
+
|
|
320
|
+
**Compatibility Assessment:** ✅ Enhancement. Improves consistency with step-01; no breaking changes.
|
|
321
|
+
|
|
322
|
+
---
|
|
323
|
+
|
|
324
|
+
### NEW-ISSUE #7: DOCUMENTATION CLARITY — Frontmatter nextStepFile Branching Not Referenced in Body
|
|
325
|
+
|
|
326
|
+
**Severity:** LOW
|
|
327
|
+
**File:** Multiple (step-05-code-review.md, step-06-test-story.md)
|
|
328
|
+
**Location:** Frontmatter + body sections
|
|
329
|
+
**Problem Description:**
|
|
330
|
+
|
|
331
|
+
Some step files define multiple routing paths in frontmatter metadata:
|
|
332
|
+
```yaml
|
|
333
|
+
nextStepFile: "./step-06-test-story.md"
|
|
334
|
+
nextStepFile_issues: "./step-07-fix-and-retest.md"
|
|
335
|
+
```
|
|
336
|
+
|
|
337
|
+
But the step body text doesn't reference these frontmatter declarations. An LLM reading only the body text might not realize alternate routing is declared in frontmatter, leading to confusion about which NEXT STEP to follow.
|
|
338
|
+
|
|
339
|
+
**Impact:** Documentation clarity; potential path confusion
|
|
340
|
+
|
|
341
|
+
**Solution Implemented:**
|
|
342
|
+
- Updated step-05 and step-06 body text to explicitly reference frontmatter declarations when presenting routing choices
|
|
343
|
+
- Added inline comments like "[frontmatter: nextStepFile]" and "[frontmatter: nextStepFile_fail]" to clarify where branching decisions are declared
|
|
344
|
+
|
|
345
|
+
**What Was Changed:**
|
|
346
|
+
```markdown
|
|
347
|
+
OLD:
|
|
348
|
+
- **NEXT:** Proceed to step-06 (test story)
|
|
349
|
+
- **NEXT:** Proceed to step-07 (fix and retest) to address remaining issues
|
|
350
|
+
|
|
351
|
+
NEW:
|
|
352
|
+
- **NEXT:** Proceed to step-06 (test story) [frontmatter: nextStepFile]
|
|
353
|
+
- **NEXT:** Proceed to step-07 (fix and retest) to address remaining issues
|
|
354
|
+
[frontmatter: nextStepFile_issues]
|
|
355
|
+
```
|
|
356
|
+
|
|
357
|
+
**Compatibility Assessment:** ✅ Pure documentation enhancement for clarity.
|
|
358
|
+
|
|
359
|
+
---
|
|
360
|
+
|
|
361
|
+
## SECTION 3: FILES CHANGED IN RUN #5
|
|
362
|
+
|
|
363
|
+
| File | Changes | Issue(s) Addressed |
|
|
364
|
+
|------|---------|-------------------|
|
|
365
|
+
| step-08-complete-story.md | 1. Fresh read directive added; 2. Task marker format expanded to [x]/[X]/[✓] | NEW-1 (HIGH) |
|
|
366
|
+
| step-04-develop-story.md | 1. Expanded Amelia persona; 2. Updated marker format consistency | NEW-2 (MEDIUM) |
|
|
367
|
+
| step-06-test-story.md | 1. Added {fix_source} assignment; 2. Frontmatter branching clarified | NEW-3, NEW-7 (MEDIUM, LOW) |
|
|
368
|
+
| step-02-create-story.md | 1. Added story file structural validation check | NEW-4 (MEDIUM) |
|
|
369
|
+
| workflow.md (auto-story) | 1. Enhanced {current_story_path} documentation with persistence notes | NEW-5 (MEDIUM) |
|
|
370
|
+
|
|
371
|
+
**Total Changes:** 5 files modified; 9 distinct enhancement sections added
|
|
372
|
+
|
|
373
|
+
---
|
|
374
|
+
|
|
375
|
+
## SECTION 4: COMPATIBILITY ASSESSMENT
|
|
376
|
+
|
|
377
|
+
### Backward Compatibility: ✅ FULL
|
|
378
|
+
|
|
379
|
+
All changes are **non-breaking enhancements**:
|
|
380
|
+
- Documentation additions do not alter logic
|
|
381
|
+
- New validation checks add robustness without changing success paths
|
|
382
|
+
- Variable assignments improve clarity without changing outcomes
|
|
383
|
+
- Case-insensitive marker acceptance is a strict superset of prior behavior
|
|
384
|
+
|
|
385
|
+
### Impact on Running Pipelines
|
|
386
|
+
|
|
387
|
+
- Existing pipelines in progress: ✅ No impact — changes are additive
|
|
388
|
+
- Existing generated artifacts: ✅ No impact — JSON formats, file structures unchanged
|
|
389
|
+
- Future pipelines: ✅ Benefit from improved clarity, validation, and consistency
|
|
390
|
+
|
|
391
|
+
### Migration Notes
|
|
392
|
+
|
|
393
|
+
- No action required for existing projects
|
|
394
|
+
- New projects automatically benefit from all enhancements
|
|
395
|
+
- Batch mode (multi-story runs) now includes fresh-read safety guardrails
|
|
396
|
+
|
|
397
|
+
---
|
|
398
|
+
|
|
399
|
+
## SECTION 5: OUTSTANDING ISSUES (NOT YET IMPLEMENTED)
|
|
400
|
+
|
|
401
|
+
Two lower-severity issues identified but deferred to future runs:
|
|
402
|
+
|
|
403
|
+
| Issue | Severity | Reason for Deferral |
|
|
404
|
+
|-------|----------|-------------------|
|
|
405
|
+
| Task marker format in step-04 task completion check (initial identification, partial fix applied) | LOW | Partial fix applied (case-insensitive support); full scope addressed |
|
|
406
|
+
| Frontmatter branching reference clarity (partial fix applied) | LOW | Partial fix applied; recommendation for future comprehensive audit of all multi-path steps |
|
|
407
|
+
|
|
408
|
+
---
|
|
409
|
+
|
|
410
|
+
## SECTION 6: RECOMMENDATIONS FOR RUN #6
|
|
411
|
+
|
|
412
|
+
Based on Run #5 findings, recommended future work:
|
|
413
|
+
|
|
414
|
+
1. **Audit all workflow delegation points:** Ensure create-* and xiaoma-* skill invocations consistently document expected outputs, failure modes, and retry logic
|
|
415
|
+
2. **Review role persona definitions across all steps:** Create standardized persona template to ensure consistency across all agent roles
|
|
416
|
+
3. **Test batch mode edge cases:** Verify multi-story cycles correctly handle file state transitions and variable resets
|
|
417
|
+
4. **Document error recovery paths:** Add explicit recovery procedures for workflow failures (currently implicit)
|
|
418
|
+
5. **Expand real-data testing validation:** Step-06 (QA) core principle is real data, but other steps lack similar validation emphasizing non-mock approaches
|
|
419
|
+
|
|
420
|
+
---
|
|
421
|
+
|
|
422
|
+
## FINAL SUMMARY TABLE
|
|
423
|
+
|
|
424
|
+
| Category | Count | Status |
|
|
425
|
+
|----------|-------|--------|
|
|
426
|
+
| Prior Optimizations Verified | 15 | ✅ 100% confirmed |
|
|
427
|
+
| New Issues Found | 7 | ✅ Complete |
|
|
428
|
+
| New Issues Implemented | 5 | ✅ All HIGH + MEDIUM |
|
|
429
|
+
| Files Modified | 5 | ✅ All changes applied |
|
|
430
|
+
| Breaking Changes | 0 | ✅ Full backward compatibility |
|
|
431
|
+
| Compatibility Score | — | ✅ 100% (all enhancements) |
|
|
432
|
+
|
|
433
|
+
---
|
|
434
|
+
|
|
435
|
+
**Report Generated:** 2026-03-18 by Run #5 Incremental Analysis
|
|
436
|
+
**Next Update:** Scheduled for Run #6 (pending)
|
package/src/core/module-help.csv
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
module,phase,name,code,sequence,workflow-file,command,required,agent,options,description,output-location,outputs
|
|
2
|
-
core,anytime,Brainstorming,BSP,,skill:
|
|
3
|
-
core,anytime,Party Mode,PM,,skill:
|
|
4
|
-
core,anytime,
|
|
5
|
-
core,anytime,Index Docs,ID,,skill:
|
|
6
|
-
core,anytime,Shard Document,SD,,skill:
|
|
7
|
-
core,anytime,Editorial Review - Prose,EP,,skill:
|
|
8
|
-
core,anytime,Editorial Review - Structure,ES,,skill:
|
|
9
|
-
core,anytime,Adversarial Review (General),AR,,skill:
|
|
10
|
-
core,anytime,Edge Case Hunter Review,ECH,,skill:
|
|
11
|
-
core,anytime,Distillator,DG,,skill:
|
|
2
|
+
core,anytime,Brainstorming,BSP,,skill:xiaoma-brainstorming,xiaoma-brainstorming,false,analyst,,"Generate diverse ideas through interactive techniques. Use early in ideation phase or when stuck generating ideas.",{output_folder}/brainstorming/brainstorming-session-{{date}}.md,,
|
|
3
|
+
core,anytime,Party Mode,PM,,skill:xiaoma-party-mode,xiaoma-party-mode,false,party-mode facilitator,,"Orchestrate multi-agent discussions. Use when you need multiple agent perspectives or want agents to collaborate.",,
|
|
4
|
+
core,anytime,xiaoma-help,BH,,skill:xiaoma-help,xiaoma-help,false,,,"Get unstuck by showing what workflow steps come next or answering XiaoMa Method questions.",,
|
|
5
|
+
core,anytime,Index Docs,ID,,skill:xiaoma-index-docs,xiaoma-index-docs,false,,,"Create lightweight index for quick LLM scanning. Use when LLM needs to understand available docs without loading everything.",,
|
|
6
|
+
core,anytime,Shard Document,SD,,skill:xiaoma-shard-doc,xiaoma-shard-doc,false,,,"Split large documents into smaller files by sections. Use when doc becomes too large (>500 lines) to manage effectively.",,
|
|
7
|
+
core,anytime,Editorial Review - Prose,EP,,skill:xiaoma-editorial-review-prose,xiaoma-editorial-review-prose,false,,,"Review prose for clarity, tone, and communication issues. Use after drafting to polish written content.",report located with target document,"three-column markdown table with suggested fixes",
|
|
8
|
+
core,anytime,Editorial Review - Structure,ES,,skill:xiaoma-editorial-review-structure,xiaoma-editorial-review-structure,false,,,"Propose cuts, reorganization, and simplification while preserving comprehension. Use when doc produced from multiple subprocesses or needs structural improvement.",report located with target document,
|
|
9
|
+
core,anytime,Adversarial Review (General),AR,,skill:xiaoma-review-adversarial-general,xiaoma-review-adversarial-general,false,,,"Review content critically to find issues and weaknesses. Use for quality assurance or before finalizing deliverables. Code Review in other modules run this automatically, but its useful also for document reviews",,
|
|
10
|
+
core,anytime,Edge Case Hunter Review,ECH,,skill:xiaoma-review-edge-case-hunter,xiaoma-review-edge-case-hunter,false,,,"Walk every branching path and boundary condition in code, report only unhandled edge cases. Use alongside adversarial review for orthogonal coverage - method-driven not attitude-driven.",,
|
|
11
|
+
core,anytime,Distillator,DG,,skill:xiaoma-distillator,xiaoma-distillator,false,,,"Lossless LLM-optimized compression of source documents. Use when you need token-efficient distillates that preserve all information for downstream LLM consumption.",adjacent to source document or specified output_path,distillate markdown file(s)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: xiaoma-advanced-elicitation
|
|
3
|
-
description: 'Push the LLM to reconsider refine and improve its recent output.'
|
|
3
|
+
description: 'Push the LLM to reconsider, refine, and improve its recent output.'
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
Follow the instructions in
|
|
6
|
+
Follow the instructions in ./workflow.md.
|
|
@@ -96,9 +96,9 @@ x. Proceed / No Further Actions
|
|
|
96
96
|
**Case x (Proceed):**
|
|
97
97
|
|
|
98
98
|
- Complete elicitation and proceed
|
|
99
|
-
- Return the fully enhanced content back to
|
|
99
|
+
- Return the fully enhanced content back to the invoking skill
|
|
100
100
|
- The enhanced content becomes the final version for that section
|
|
101
|
-
- Signal completion back to
|
|
101
|
+
- Signal completion back to the invoking skill to continue with next section
|
|
102
102
|
|
|
103
103
|
**Case a (List All):**
|
|
104
104
|
|
|
@@ -3,4 +3,4 @@ name: xiaoma-brainstorming
|
|
|
3
3
|
description: 'Facilitate interactive brainstorming sessions using diverse creative techniques and ideation methods. Use when the user says help me brainstorm or help me ideate.'
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
Follow the instructions in
|
|
6
|
+
Follow the instructions in ./workflow.md.
|
|
@@ -48,6 +48,8 @@ If existing session files are found:
|
|
|
48
48
|
**[2]** Start a new session
|
|
49
49
|
**[3]** See all existing sessions"
|
|
50
50
|
|
|
51
|
+
**HALT — wait for user selection before proceeding.**
|
|
52
|
+
|
|
51
53
|
- If user selects **[1]** (continue): Set `{brainstorming_session_output_file}` to that file path and load `./step-01b-continue.md`
|
|
52
54
|
- If user selects **[2]** (new): Generate new filename with current date/time and proceed to step 3
|
|
53
55
|
- If user selects **[3]** (see all): List all session filenames and ask which to continue or if new
|
|
@@ -155,6 +157,8 @@ When user selects approach, append the session overview content directly to `{br
|
|
|
155
157
|
|
|
156
158
|
Which approach appeals to you most? (Enter 1-4)"
|
|
157
159
|
|
|
160
|
+
**HALT — wait for user selection before proceeding.**
|
|
161
|
+
|
|
158
162
|
### 4. Handle User Selection and Initial Document Append
|
|
159
163
|
|
|
160
164
|
#### When user selects approach number:
|
|
@@ -63,7 +63,9 @@ Based on session analysis, provide appropriate options:
|
|
|
63
63
|
**Options:**
|
|
64
64
|
[1] Review Results - Go through your documented ideas and insights
|
|
65
65
|
[2] Start New Session - Begin brainstorming on a new topic
|
|
66
|
-
[3
|
|
66
|
+
[3] Extend Session - Add more techniques or explore new angles"
|
|
67
|
+
|
|
68
|
+
**HALT — wait for user selection before proceeding.**
|
|
67
69
|
|
|
68
70
|
**If Session In Progress:**
|
|
69
71
|
"Let's continue where we left off!
|
|
@@ -40,7 +40,7 @@ Load techniques from CSV on-demand:
|
|
|
40
40
|
|
|
41
41
|
**Load CSV and parse:**
|
|
42
42
|
|
|
43
|
-
- Read
|
|
43
|
+
- Read `../brain-methods.csv`
|
|
44
44
|
- Parse: category, technique_name, description, facilitation_prompts, best_for, energy_level, typical_duration
|
|
45
45
|
- Organize by categories for browsing
|
|
46
46
|
|
|
@@ -87,6 +87,8 @@ Show available categories with brief descriptions:
|
|
|
87
87
|
|
|
88
88
|
**Which category interests you most? Enter 1-7, or tell me what type of thinking you're drawn to.**"
|
|
89
89
|
|
|
90
|
+
**HALT — wait for user selection before proceeding.**
|
|
91
|
+
|
|
90
92
|
### 3. Handle Category Selection
|
|
91
93
|
|
|
92
94
|
After user selects category:
|
|
@@ -154,6 +156,8 @@ This combination will take approximately [total_time] and focus on [expected out
|
|
|
154
156
|
[C] Continue - Begin technique execution
|
|
155
157
|
[Back] - Modify technique selection"
|
|
156
158
|
|
|
159
|
+
**HALT — wait for user selection before proceeding.**
|
|
160
|
+
|
|
157
161
|
### 6. Update Frontmatter and Continue
|
|
158
162
|
|
|
159
163
|
If user confirms:
|
|
@@ -47,7 +47,7 @@ Load techniques from CSV for analysis:
|
|
|
47
47
|
|
|
48
48
|
**Load CSV and parse:**
|
|
49
49
|
|
|
50
|
-
- Read
|
|
50
|
+
- Read `../brain-methods.csv`
|
|
51
51
|
- Parse: category, technique_name, description, facilitation_prompts, best_for, energy_level, typical_duration
|
|
52
52
|
|
|
53
53
|
### 2. Context Analysis for Technique Matching
|
|
@@ -152,6 +152,8 @@ Provide deeper insight into each recommended technique:
|
|
|
152
152
|
[Details] - Tell me more about any specific technique
|
|
153
153
|
[Back] - Return to approach selection
|
|
154
154
|
|
|
155
|
+
**HALT — wait for user selection before proceeding.**
|
|
156
|
+
|
|
155
157
|
### 6. Handle User Response
|
|
156
158
|
|
|
157
159
|
#### If [C] Continue:
|
|
@@ -47,7 +47,7 @@ Create anticipation for serendipitous technique discovery:
|
|
|
47
47
|
|
|
48
48
|
**Load CSV and parse:**
|
|
49
49
|
|
|
50
|
-
- Read
|
|
50
|
+
- Read `../brain-methods.csv`
|
|
51
51
|
- Parse: category, technique_name, description, facilitation_prompts, best_for, energy_level, typical_duration
|
|
52
52
|
- Prepare for intelligent random selection
|
|
53
53
|
|
|
@@ -124,6 +124,8 @@ You're about to experience brainstorming in a completely new way. These unexpect
|
|
|
124
124
|
[Details] - Tell me more about any specific technique
|
|
125
125
|
[Back] - Return to approach selection
|
|
126
126
|
|
|
127
|
+
**HALT — wait for user selection before proceeding.**
|
|
128
|
+
|
|
127
129
|
### 5. Handle User Response
|
|
128
130
|
|
|
129
131
|
#### If [C] Continue:
|
|
@@ -66,7 +66,7 @@ Explain the value of systematic creative progression:
|
|
|
66
66
|
|
|
67
67
|
**Load CSV and parse:**
|
|
68
68
|
|
|
69
|
-
- Read
|
|
69
|
+
- Read `../brain-methods.csv`
|
|
70
70
|
- Parse: category, technique_name, description, facilitation_prompts, best_for, energy_level, typical_duration
|
|
71
71
|
- Map techniques to each phase of the creative journey
|
|
72
72
|
|
|
@@ -176,6 +176,8 @@ Show the full progressive flow with timing and transitions:
|
|
|
176
176
|
[Details] - Tell me more about any specific phase or technique
|
|
177
177
|
[Back] - Return to approach selection
|
|
178
178
|
|
|
179
|
+
**HALT — wait for user selection before proceeding.**
|
|
180
|
+
|
|
179
181
|
### 4. Handle Customization Requests
|
|
180
182
|
|
|
181
183
|
If user wants customization:
|
|
@@ -290,6 +290,8 @@ After final technique element:
|
|
|
290
290
|
[B] **Take a quick break** - Pause and return with fresh energy
|
|
291
291
|
[C] **Move to organization** - Only when you feel we've thoroughly explored
|
|
292
292
|
|
|
293
|
+
**HALT — wait for user selection before proceeding.**
|
|
294
|
+
|
|
293
295
|
**Default recommendation:** Unless you feel we've generated at least 100+ ideas, I suggest we keep exploring! The best insights often come after the obvious ideas are exhausted.
|
|
294
296
|
|
|
295
297
|
### 8. Handle Menu Selection
|
|
@@ -249,6 +249,8 @@ Provide final session wrap-up and forward guidance:
|
|
|
249
249
|
**Ready to complete your session documentation?**
|
|
250
250
|
[C] Complete - Generate final brainstorming session document
|
|
251
251
|
|
|
252
|
+
**HALT — wait for user selection before proceeding.**
|
|
253
|
+
|
|
252
254
|
### 8. Handle Completion Selection
|
|
253
255
|
|
|
254
256
|
#### If [C] Complete:
|
|
@@ -44,11 +44,10 @@ Load config from `{project-root}/_xiaoma/core/config.yaml` and resolve:
|
|
|
44
44
|
|
|
45
45
|
All steps MUST reference `{brainstorming_session_output_file}` instead of the full path pattern.
|
|
46
46
|
- `context_file` = Optional context file path from workflow invocation for project-specific guidance
|
|
47
|
-
|
|
48
47
|
---
|
|
49
48
|
|
|
50
49
|
## EXECUTION
|
|
51
50
|
|
|
52
|
-
Read fully and follow:
|
|
51
|
+
Read fully and follow: `./steps/step-01-session-setup.md` to begin the workflow.
|
|
53
52
|
|
|
54
53
|
**Note:** Session setup, technique discovery, and continuation detection happen in step-01-session-setup.md.
|