@zeyue0329/xiaoma-cli 1.13.0 → 1.15.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/package.json +24 -14
- package/src/core-skills/module-help.csv +13 -0
- package/src/{core → core-skills}/module.yaml +8 -0
- package/src/{core/skills/xiaoma-advanced-elicitation/workflow.md → core-skills/xiaoma-advanced-elicitation/SKILL.md} +10 -3
- package/src/core-skills/xiaoma-advanced-elicitation/methods.csv +70 -0
- package/src/{core/skills → core-skills}/xiaoma-brainstorming/steps/step-03-technique-execution.md +6 -4
- package/src/{core/skills → core-skills}/xiaoma-brainstorming/workflow.md +1 -1
- package/src/core-skills/xiaoma-customize/SKILL.md +111 -0
- package/src/core-skills/xiaoma-customize/scripts/list_customizable_skills.js +172 -0
- package/src/{core/skills → core-skills}/xiaoma-distillator/resources/distillate-format-reference.md +1 -1
- package/src/{core/skills → core-skills}/xiaoma-distillator/scripts/analyze_sources.py +2 -2
- package/src/{core/skills/xiaoma-editorial-review-prose/workflow.md → core-skills/xiaoma-editorial-review-prose/SKILL.md} +5 -0
- package/src/{core/skills/xiaoma-editorial-review-structure/workflow.md → core-skills/xiaoma-editorial-review-structure/SKILL.md} +5 -0
- package/src/core-skills/xiaoma-help/SKILL.md +75 -0
- package/src/{core/skills/xiaoma-index-docs/workflow.md → core-skills/xiaoma-index-docs/SKILL.md} +5 -0
- package/src/core-skills/xiaoma-party-mode/SKILL.md +128 -0
- package/src/{core/skills/xiaoma-review-adversarial-general/workflow.md → core-skills/xiaoma-review-adversarial-general/SKILL.md} +5 -0
- package/src/{core/skills/xiaoma-review-edge-case-hunter/workflow.md → core-skills/xiaoma-review-edge-case-hunter/SKILL.md} +5 -0
- package/src/{core/skills/xiaoma-shard-doc/workflow.md → core-skills/xiaoma-shard-doc/SKILL.md} +5 -0
- package/src/core-skills/xiaoma-spec/SKILL.md +129 -0
- package/src/core-skills/xiaoma-spec/assets/headless-schemas.md +33 -0
- package/src/core-skills/xiaoma-spec/assets/spec-template.md +49 -0
- package/src/core-skills/xiaoma-spec/customize.toml +53 -0
- package/src/scripts/resolve_config.js +163 -0
- package/src/scripts/resolve_customization.js +188 -0
- package/src/scripts/toml.js +338 -0
- package/src/xmc-skills/1-analysis/research/xiaoma-domain-research/SKILL.md +96 -0
- package/src/xmc-skills/1-analysis/research/xiaoma-domain-research/customize.toml +41 -0
- package/src/{xmc/workflows → xmc-skills}/1-analysis/research/xiaoma-domain-research/domain-steps/step-06-research-synthesis.md +6 -0
- package/src/xmc-skills/1-analysis/research/xiaoma-market-research/SKILL.md +96 -0
- package/src/xmc-skills/1-analysis/research/xiaoma-market-research/customize.toml +41 -0
- package/src/{xmc/workflows → xmc-skills}/1-analysis/research/xiaoma-market-research/steps/step-06-research-completion.md +6 -0
- package/src/xmc-skills/1-analysis/research/xiaoma-technical-research/SKILL.md +96 -0
- package/src/xmc-skills/1-analysis/research/xiaoma-technical-research/customize.toml +41 -0
- package/src/{xmc/workflows → xmc-skills}/1-analysis/research/xiaoma-technical-research/technical-steps/step-06-research-synthesis.md +6 -0
- package/src/xmc-skills/1-analysis/xiaoma-agent-analyst/SKILL.md +76 -0
- package/src/xmc-skills/1-analysis/xiaoma-agent-analyst/customize.toml +90 -0
- package/src/xmc-skills/1-analysis/xiaoma-agent-tech-writer/SKILL.md +76 -0
- package/src/xmc-skills/1-analysis/xiaoma-agent-tech-writer/customize.toml +81 -0
- package/src/xmc-skills/1-analysis/xiaoma-agent-tech-writer/explain-concept.md +20 -0
- package/src/xmc-skills/1-analysis/xiaoma-agent-tech-writer/mermaid-gen.md +20 -0
- package/src/xmc-skills/1-analysis/xiaoma-agent-tech-writer/validate-doc.md +19 -0
- package/src/xmc-skills/1-analysis/xiaoma-agent-tech-writer/write-document.md +20 -0
- package/src/{xmc/workflows/1-analysis/auto-requirements-pipeline → xmc-skills/1-analysis/xiaoma-auto-requirements-pipeline}/checklist.md +5 -2
- package/src/{xmc/workflows/1-analysis/auto-requirements-pipeline → xmc-skills/1-analysis/xiaoma-auto-requirements-pipeline}/steps/step-01-init-and-validate.md +18 -1
- package/src/{xmc/workflows/1-analysis/auto-requirements-pipeline → xmc-skills/1-analysis/xiaoma-auto-requirements-pipeline}/steps/step-02-requirements-analysis.md +3 -1
- package/src/{xmc/workflows/1-analysis/auto-requirements-pipeline → xmc-skills/1-analysis/xiaoma-auto-requirements-pipeline}/steps/step-03-architecture-analysis.md +5 -3
- package/src/{xmc/workflows/1-analysis/auto-requirements-pipeline → xmc-skills/1-analysis/xiaoma-auto-requirements-pipeline}/steps/step-04-create-prd.md +12 -14
- package/src/{xmc/workflows/1-analysis/auto-requirements-pipeline → xmc-skills/1-analysis/xiaoma-auto-requirements-pipeline}/steps/step-05-validate-prd.md +20 -15
- package/src/{xmc/workflows/1-analysis/auto-requirements-pipeline → xmc-skills/1-analysis/xiaoma-auto-requirements-pipeline}/steps/step-06-create-epics.md +9 -5
- package/src/{xmc/workflows/1-analysis/auto-requirements-pipeline → xmc-skills/1-analysis/xiaoma-auto-requirements-pipeline}/steps/step-07-create-architecture.md +10 -7
- package/src/xmc-skills/1-analysis/xiaoma-auto-requirements-pipeline/steps/step-08-finalize.md +184 -0
- package/src/xmc-skills/1-analysis/xiaoma-auto-requirements-pipeline/workflow.md +140 -0
- package/src/xmc-skills/1-analysis/xiaoma-auto-requirements-pipeline/xiaoma-skill-manifest.yaml +24 -0
- package/src/xmc-skills/1-analysis/xiaoma-document-project/SKILL.md +62 -0
- package/src/xmc-skills/1-analysis/xiaoma-document-project/customize.toml +41 -0
- package/src/{xmc/workflows → xmc-skills/1-analysis}/xiaoma-document-project/workflows/deep-dive-instructions.md +1 -0
- package/src/{xmc/workflows → xmc-skills/1-analysis}/xiaoma-document-project/workflows/full-scan-instructions.md +1 -0
- package/src/xmc-skills/1-analysis/xiaoma-prfaq/SKILL.md +135 -0
- package/src/xmc-skills/1-analysis/xiaoma-prfaq/agents/artifact-analyzer.md +60 -0
- package/src/xmc-skills/1-analysis/xiaoma-prfaq/agents/web-researcher.md +49 -0
- package/src/xmc-skills/1-analysis/xiaoma-prfaq/assets/prfaq-template.md +62 -0
- package/src/xmc-skills/1-analysis/xiaoma-prfaq/customize.toml +41 -0
- package/src/xmc-skills/1-analysis/xiaoma-prfaq/references/customer-faq.md +55 -0
- package/src/xmc-skills/1-analysis/xiaoma-prfaq/references/internal-faq.md +51 -0
- package/src/xmc-skills/1-analysis/xiaoma-prfaq/references/press-release.md +60 -0
- package/src/xmc-skills/1-analysis/xiaoma-prfaq/references/verdict.md +83 -0
- package/src/xmc-skills/1-analysis/xiaoma-prfaq/xiaoma-manifest.json +16 -0
- package/src/xmc-skills/1-analysis/xiaoma-product-brief/SKILL.md +91 -0
- package/src/xmc-skills/1-analysis/xiaoma-product-brief/assets/brief-template.md +41 -0
- package/src/xmc-skills/1-analysis/xiaoma-product-brief/customize.toml +99 -0
- package/src/xmc-skills/2-plan-workflows/xiaoma-agent-pm/SKILL.md +76 -0
- package/src/xmc-skills/2-plan-workflows/xiaoma-agent-pm/customize.toml +75 -0
- package/src/xmc-skills/2-plan-workflows/xiaoma-agent-ux-designer/SKILL.md +76 -0
- package/src/xmc-skills/2-plan-workflows/xiaoma-agent-ux-designer/customize.toml +60 -0
- package/src/xmc-skills/2-plan-workflows/xiaoma-create-prd/SKILL.md +30 -0
- package/src/xmc-skills/2-plan-workflows/xiaoma-create-prd/customize.toml +41 -0
- package/src/xmc-skills/2-plan-workflows/xiaoma-edit-prd/SKILL.md +30 -0
- package/src/xmc-skills/2-plan-workflows/xiaoma-edit-prd/customize.toml +42 -0
- package/src/xmc-skills/2-plan-workflows/xiaoma-prd/SKILL.md +92 -0
- package/src/xmc-skills/2-plan-workflows/xiaoma-prd/assets/headless-schemas.md +76 -0
- package/src/xmc-skills/2-plan-workflows/xiaoma-prd/assets/prd-template.md +165 -0
- package/src/xmc-skills/2-plan-workflows/xiaoma-prd/assets/prd-validation-checklist.md +217 -0
- package/src/xmc-skills/2-plan-workflows/xiaoma-prd/assets/validation-report-template.html +325 -0
- package/src/xmc-skills/2-plan-workflows/xiaoma-prd/customize.toml +147 -0
- package/src/xmc-skills/2-plan-workflows/xiaoma-prd/references/headless.md +39 -0
- package/src/xmc-skills/2-plan-workflows/xiaoma-prd/references/validate.md +97 -0
- package/src/xmc-skills/2-plan-workflows/xiaoma-ux/SKILL.md +90 -0
- package/src/xmc-skills/2-plan-workflows/xiaoma-ux/assets/color-themes.md +9 -0
- package/src/xmc-skills/2-plan-workflows/xiaoma-ux/assets/design-directions.md +9 -0
- package/src/xmc-skills/2-plan-workflows/xiaoma-ux/assets/design-example-editorial.md +158 -0
- package/src/xmc-skills/2-plan-workflows/xiaoma-ux/assets/design-example-mobile.md +93 -0
- package/src/xmc-skills/2-plan-workflows/xiaoma-ux/assets/design-example-shadcn.md +109 -0
- package/src/xmc-skills/2-plan-workflows/xiaoma-ux/assets/excalidraw-wireframe.md +19 -0
- package/src/xmc-skills/2-plan-workflows/xiaoma-ux/assets/experience-example-mobile.md +112 -0
- package/src/xmc-skills/2-plan-workflows/xiaoma-ux/assets/experience-example-shadcn.md +133 -0
- package/src/xmc-skills/2-plan-workflows/xiaoma-ux/assets/headless-schemas.md +84 -0
- package/src/xmc-skills/2-plan-workflows/xiaoma-ux/assets/key-screens.md +29 -0
- package/src/xmc-skills/2-plan-workflows/xiaoma-ux/assets/validation-report-template.html +319 -0
- package/src/xmc-skills/2-plan-workflows/xiaoma-ux/customize.toml +100 -0
- package/src/xmc-skills/2-plan-workflows/xiaoma-ux/references/creative-tools.md +19 -0
- package/src/xmc-skills/2-plan-workflows/xiaoma-ux/references/design-md-spec.md +50 -0
- package/src/xmc-skills/2-plan-workflows/xiaoma-ux/references/headless.md +37 -0
- package/src/xmc-skills/2-plan-workflows/xiaoma-ux/references/validate.md +115 -0
- package/src/xmc-skills/2-plan-workflows/xiaoma-validate-prd/SKILL.md +30 -0
- package/src/xmc-skills/2-plan-workflows/xiaoma-validate-prd/customize.toml +31 -0
- package/src/xmc-skills/3-solutioning/xiaoma-agent-architect/SKILL.md +76 -0
- package/src/xmc-skills/3-solutioning/xiaoma-agent-architect/customize.toml +65 -0
- package/src/xmc-skills/3-solutioning/xiaoma-check-implementation-readiness/SKILL.md +91 -0
- package/src/xmc-skills/3-solutioning/xiaoma-check-implementation-readiness/customize.toml +41 -0
- package/src/{xmc/workflows → xmc-skills}/3-solutioning/xiaoma-check-implementation-readiness/steps/step-01-document-discovery.md +1 -1
- package/src/{xmc/workflows → xmc-skills}/3-solutioning/xiaoma-check-implementation-readiness/steps/step-02-prd-analysis.md +1 -1
- package/src/{xmc/workflows → xmc-skills}/3-solutioning/xiaoma-check-implementation-readiness/steps/step-03-epic-coverage-validation.md +1 -1
- package/src/{xmc/workflows → xmc-skills}/3-solutioning/xiaoma-check-implementation-readiness/steps/step-06-final-assessment.md +6 -0
- package/src/xmc-skills/3-solutioning/xiaoma-create-architecture/SKILL.md +74 -0
- package/src/xmc-skills/3-solutioning/xiaoma-create-architecture/customize.toml +41 -0
- package/src/xmc-skills/3-solutioning/xiaoma-create-architecture/references/headless.md +37 -0
- package/src/{xmc/workflows → xmc-skills}/3-solutioning/xiaoma-create-architecture/steps/step-07-validation.md +23 -21
- package/src/{xmc/workflows → xmc-skills}/3-solutioning/xiaoma-create-architecture/steps/step-08-complete.md +6 -0
- package/src/xmc-skills/3-solutioning/xiaoma-create-epics-and-stories/SKILL.md +93 -0
- package/src/xmc-skills/3-solutioning/xiaoma-create-epics-and-stories/customize.toml +41 -0
- package/src/xmc-skills/3-solutioning/xiaoma-create-epics-and-stories/references/headless.md +35 -0
- package/src/{xmc/workflows → xmc-skills}/3-solutioning/xiaoma-create-epics-and-stories/steps/step-02-design-epics.md +34 -4
- package/src/{xmc/workflows → xmc-skills}/3-solutioning/xiaoma-create-epics-and-stories/steps/step-04-final-validation.md +12 -0
- package/src/xmc-skills/3-solutioning/xiaoma-generate-project-context/SKILL.md +81 -0
- package/src/xmc-skills/3-solutioning/xiaoma-generate-project-context/customize.toml +41 -0
- package/src/{xmc/workflows → xmc-skills/3-solutioning}/xiaoma-generate-project-context/steps/step-03-complete.md +6 -0
- package/src/xmc-skills/4-implementation/xiaoma-agent-dev/SKILL.md +76 -0
- package/src/xmc-skills/4-implementation/xiaoma-agent-dev/customize.toml +131 -0
- package/src/xmc-skills/4-implementation/xiaoma-auto-story-pipeline/checklist.md +29 -0
- package/src/{xmc/workflows/4-implementation/auto-story-pipeline → xmc-skills/4-implementation/xiaoma-auto-story-pipeline}/steps/step-01-init-and-validate.md +16 -8
- package/src/xmc-skills/4-implementation/xiaoma-auto-story-pipeline/steps/step-02-create-story.md +111 -0
- package/src/{xmc/workflows/4-implementation/auto-story-pipeline → xmc-skills/4-implementation/xiaoma-auto-story-pipeline}/steps/step-03-validate-story.md +4 -2
- package/src/{xmc/workflows/4-implementation/auto-story-pipeline → xmc-skills/4-implementation/xiaoma-auto-story-pipeline}/steps/step-04-develop-story.md +10 -6
- package/src/xmc-skills/4-implementation/xiaoma-auto-story-pipeline/steps/step-05-code-review.md +99 -0
- package/src/{xmc/workflows/4-implementation/auto-story-pipeline → xmc-skills/4-implementation/xiaoma-auto-story-pipeline}/steps/step-06-test-story.md +25 -12
- package/src/{xmc/workflows/4-implementation/auto-story-pipeline → xmc-skills/4-implementation/xiaoma-auto-story-pipeline}/steps/step-07-fix-and-retest.md +28 -13
- package/src/xmc-skills/4-implementation/xiaoma-auto-story-pipeline/steps/step-08-complete-story.md +174 -0
- package/src/xmc-skills/4-implementation/xiaoma-auto-story-pipeline/steps/step-09-finalize.md +145 -0
- package/src/xmc-skills/4-implementation/xiaoma-auto-story-pipeline/workflow.md +127 -0
- package/src/xmc-skills/4-implementation/xiaoma-auto-story-pipeline/xiaoma-skill-manifest.yaml +27 -0
- package/src/{xmc/workflows/4-implementation/auto-story-pipeline-batch → xmc-skills/4-implementation/xiaoma-auto-story-pipeline-batch}/SKILL.md +2 -2
- package/src/xmc-skills/4-implementation/xiaoma-auto-story-pipeline-batch/checklist.md +45 -0
- package/src/{xmc/workflows/4-implementation/auto-story-pipeline-batch → xmc-skills/4-implementation/xiaoma-auto-story-pipeline-batch}/workflow.md +152 -9
- package/src/{xmc/workflows/4-implementation/auto-story-pipeline-batch → xmc-skills/4-implementation/xiaoma-auto-story-pipeline-batch}/xiaoma-skill-manifest.yaml +2 -2
- package/src/xmc-skills/4-implementation/xiaoma-checkpoint-preview/SKILL.md +68 -0
- package/src/xmc-skills/4-implementation/xiaoma-checkpoint-preview/customize.toml +41 -0
- package/src/xmc-skills/4-implementation/xiaoma-checkpoint-preview/generate-trail.md +38 -0
- package/src/xmc-skills/4-implementation/xiaoma-checkpoint-preview/step-01-orientation.md +105 -0
- package/src/xmc-skills/4-implementation/xiaoma-checkpoint-preview/step-02-walkthrough.md +89 -0
- package/src/xmc-skills/4-implementation/xiaoma-checkpoint-preview/step-03-detail-pass.md +106 -0
- package/src/xmc-skills/4-implementation/xiaoma-checkpoint-preview/step-04-testing.md +74 -0
- package/src/xmc-skills/4-implementation/xiaoma-checkpoint-preview/step-05-wrapup.md +30 -0
- package/src/xmc-skills/4-implementation/xiaoma-code-review/SKILL.md +90 -0
- package/src/xmc-skills/4-implementation/xiaoma-code-review/customize.toml +41 -0
- package/src/xmc-skills/4-implementation/xiaoma-code-review/steps/step-01-gather-context.md +85 -0
- package/src/xmc-skills/4-implementation/xiaoma-code-review/steps/step-02-review.md +35 -0
- package/src/{xmc/workflows → xmc-skills}/4-implementation/xiaoma-code-review/steps/step-03-triage.md +7 -8
- package/src/xmc-skills/4-implementation/xiaoma-code-review/steps/step-04-present.md +132 -0
- package/src/{xmc/workflows/4-implementation/xiaoma-correct-course/workflow.md → xmc-skills/4-implementation/xiaoma-correct-course/SKILL.md} +65 -31
- package/src/{xmc/workflows → xmc-skills}/4-implementation/xiaoma-correct-course/checklist.md +2 -2
- package/src/xmc-skills/4-implementation/xiaoma-correct-course/customize.toml +41 -0
- package/src/{xmc/workflows/4-implementation/xiaoma-create-story/workflow.md → xmc-skills/4-implementation/xiaoma-create-story/SKILL.md} +60 -11
- package/src/xmc-skills/4-implementation/xiaoma-create-story/customize.toml +41 -0
- package/src/xmc-skills/4-implementation/xiaoma-create-story/references/headless.md +32 -0
- package/src/{xmc/workflows/4-implementation/xiaoma-dev-story/workflow.md → xmc-skills/4-implementation/xiaoma-dev-story/SKILL.md} +70 -20
- package/src/xmc-skills/4-implementation/xiaoma-dev-story/customize.toml +41 -0
- package/src/xmc-skills/4-implementation/xiaoma-investigate/SKILL.md +196 -0
- package/src/xmc-skills/4-implementation/xiaoma-investigate/customize.toml +62 -0
- package/src/xmc-skills/4-implementation/xiaoma-investigate/references/case-file-template.md +127 -0
- package/src/{xmc/workflows/xiaoma-qa-generate-e2e-tests/workflow.md → xmc-skills/4-implementation/xiaoma-qa-generate-e2e-tests/SKILL.md} +51 -23
- package/src/{xmc/workflows → xmc-skills/4-implementation}/xiaoma-qa-generate-e2e-tests/checklist.md +1 -5
- package/src/xmc-skills/4-implementation/xiaoma-qa-generate-e2e-tests/customize.toml +41 -0
- package/src/xmc-skills/4-implementation/xiaoma-quick-dev/SKILL.md +111 -0
- package/src/xmc-skills/4-implementation/xiaoma-quick-dev/compile-epic-context.md +62 -0
- package/src/xmc-skills/4-implementation/xiaoma-quick-dev/customize.toml +41 -0
- package/src/xmc-skills/4-implementation/xiaoma-quick-dev/spec-template.md +88 -0
- package/src/xmc-skills/4-implementation/xiaoma-quick-dev/step-01-clarify-and-route.md +100 -0
- package/src/xmc-skills/4-implementation/xiaoma-quick-dev/step-02-plan.md +47 -0
- package/src/xmc-skills/4-implementation/xiaoma-quick-dev/step-03-implement.md +41 -0
- package/src/xmc-skills/4-implementation/xiaoma-quick-dev/step-04-review.md +50 -0
- package/src/xmc-skills/4-implementation/xiaoma-quick-dev/step-05-present.md +78 -0
- package/src/xmc-skills/4-implementation/xiaoma-quick-dev/step-oneshot.md +71 -0
- package/src/xmc-skills/4-implementation/xiaoma-quick-dev/sync-sprint-status.md +19 -0
- package/src/{xmc/workflows/4-implementation/xiaoma-retrospective/workflow.md → xmc-skills/4-implementation/xiaoma-retrospective/SKILL.md} +185 -152
- package/src/xmc-skills/4-implementation/xiaoma-retrospective/customize.toml +41 -0
- package/src/{xmc/workflows/4-implementation/xiaoma-sprint-planning/workflow.md → xmc-skills/4-implementation/xiaoma-sprint-planning/SKILL.md} +59 -15
- package/src/xmc-skills/4-implementation/xiaoma-sprint-planning/customize.toml +41 -0
- package/src/xmc-skills/4-implementation/xiaoma-sprint-planning/references/headless.md +28 -0
- package/src/{xmc/workflows → xmc-skills}/4-implementation/xiaoma-sprint-planning/sprint-status-template.yaml +3 -3
- package/src/{xmc/workflows/4-implementation/xiaoma-sprint-status/workflow.md → xmc-skills/4-implementation/xiaoma-sprint-status/SKILL.md} +57 -20
- package/src/xmc-skills/4-implementation/xiaoma-sprint-status/customize.toml +41 -0
- package/src/{xmc/workflows/5-full-pipeline/auto-full-pipeline → xmc-skills/5-full-pipeline/xiaoma-auto-full-pipeline}/checklist.md +6 -0
- package/src/{xmc/workflows/5-full-pipeline/auto-full-pipeline → xmc-skills/5-full-pipeline/xiaoma-auto-full-pipeline}/steps/step-01-init-and-validate.md +28 -4
- package/src/{xmc/workflows/5-full-pipeline/auto-full-pipeline → xmc-skills/5-full-pipeline/xiaoma-auto-full-pipeline}/steps/step-02-run-requirements-pipeline.md +2 -1
- package/src/{xmc/workflows/5-full-pipeline/auto-full-pipeline → xmc-skills/5-full-pipeline/xiaoma-auto-full-pipeline}/steps/step-03-bridge-sprint-planning.md +63 -9
- package/src/{xmc/workflows/5-full-pipeline/auto-full-pipeline → xmc-skills/5-full-pipeline/xiaoma-auto-full-pipeline}/steps/step-04-run-story-pipeline.md +2 -1
- package/src/{xmc/workflows/5-full-pipeline/auto-full-pipeline → xmc-skills/5-full-pipeline/xiaoma-auto-full-pipeline}/steps/step-05-finalize.md +30 -3
- package/src/{xmc/workflows/5-full-pipeline/auto-full-pipeline → xmc-skills/5-full-pipeline/xiaoma-auto-full-pipeline}/workflow.md +7 -8
- package/src/{xmc/workflows/5-full-pipeline/auto-prd-to-stories → xmc-skills/5-full-pipeline/xiaoma-auto-prd-to-stories}/checklist.md +4 -0
- package/src/{xmc/workflows/5-full-pipeline/auto-prd-to-stories → xmc-skills/5-full-pipeline/xiaoma-auto-prd-to-stories}/steps/step-01-init-and-validate.md +8 -7
- package/src/{xmc/workflows/5-full-pipeline/auto-prd-to-stories → xmc-skills/5-full-pipeline/xiaoma-auto-prd-to-stories}/steps/step-02-create-epics.md +3 -2
- package/src/{xmc/workflows/5-full-pipeline/auto-prd-to-stories → xmc-skills/5-full-pipeline/xiaoma-auto-prd-to-stories}/steps/step-03-bridge-sprint-planning.md +68 -14
- package/src/{xmc/workflows/5-full-pipeline/auto-prd-to-stories → xmc-skills/5-full-pipeline/xiaoma-auto-prd-to-stories}/steps/step-04-batch-create-stories.md +9 -7
- package/src/{xmc/workflows/5-full-pipeline/auto-prd-to-stories → xmc-skills/5-full-pipeline/xiaoma-auto-prd-to-stories}/steps/step-05-finalize.md +48 -8
- package/src/{xmc/workflows/5-full-pipeline/auto-prd-to-stories → xmc-skills/5-full-pipeline/xiaoma-auto-prd-to-stories}/workflow.md +7 -8
- package/src/xmc-skills/module-help.csv +32 -0
- package/src/xmc-skills/module.yaml +95 -0
- package/src/xpm-skills/module-help.csv +3 -0
- package/src/xpm-skills/module.yaml +36 -0
- package/src/xpm-skills/xiaoma-agent-patent-advisor/SKILL.md +75 -0
- package/src/xpm-skills/xiaoma-agent-patent-advisor/customize.toml +46 -0
- package/src/xpm-skills/xiaoma-patent-mining/SKILL.md +6 -0
- package/src/xpm-skills/xiaoma-patent-mining/steps/step-01-project-analysis.md +65 -0
- package/src/xpm-skills/xiaoma-patent-mining/steps/step-02-patent-mining.md +87 -0
- package/src/xpm-skills/xiaoma-patent-mining/steps/step-03-disclosure-writing.md +110 -0
- package/src/xpm-skills/xiaoma-patent-mining/steps/step-04-ai-taste-removal.md +85 -0
- package/src/xpm-skills/xiaoma-patent-mining/steps/step-05-docx-generation.md +111 -0
- package/src/xpm-skills/xiaoma-patent-mining/workflow.md +94 -0
- package/tools/format-workflow-md.js +263 -0
- package/tools/{cli → installer}/README.md +2 -2
- package/tools/installer/cli-utils.js +57 -0
- package/tools/installer/commands/install.js +146 -0
- package/tools/{cli → installer}/commands/status.js +15 -7
- package/tools/{cli → installer}/commands/uninstall.js +7 -7
- package/tools/installer/core/config.js +73 -0
- package/tools/installer/core/existing-install.js +121 -0
- package/tools/installer/core/install-paths.js +132 -0
- package/tools/installer/core/installer.js +1624 -0
- package/tools/installer/core/legacy-warnings.js +156 -0
- package/tools/installer/core/manifest-generator.js +859 -0
- package/tools/installer/core/manifest.js +434 -0
- package/tools/{cli/lib → installer}/file-ops.js +1 -1
- package/tools/installer/fs-native.js +116 -0
- package/tools/installer/ide/_config-driven.js +972 -0
- package/tools/{cli/installers/lib → installer}/ide/manager.js +82 -62
- package/tools/installer/ide/platform-codes.js +80 -0
- package/tools/installer/ide/platform-codes.yaml +322 -0
- package/tools/installer/ide/shared/installed-skills.js +50 -0
- package/tools/{cli/installers/lib → installer}/ide/shared/path-utils.js +0 -145
- package/tools/{cli/installers/lib → installer}/ide/shared/skill-manifest.js +3 -36
- package/tools/installer/list-options.js +210 -0
- package/tools/{cli/installers/lib → installer}/message-loader.js +3 -3
- package/tools/installer/modules/channel-plan.js +203 -0
- package/tools/installer/modules/channel-resolver.js +241 -0
- package/tools/installer/modules/custom-module-manager.js +912 -0
- package/tools/installer/modules/external-manager.js +533 -0
- package/tools/installer/modules/module-help-schema.js +13 -0
- package/tools/{cli/installers/lib/core/config-collector.js → installer/modules/official-modules.js} +1052 -110
- package/tools/installer/modules/plugin-resolver.js +398 -0
- package/tools/installer/modules/version-resolver.js +336 -0
- package/tools/installer/project-root.js +230 -0
- package/tools/{cli/lib → installer}/prompts.js +143 -100
- package/tools/installer/set-overrides.js +367 -0
- package/tools/installer/ui.js +2078 -0
- package/tools/{cli → installer}/xiaoma-cli.js +9 -10
- package/tools/{cli/lib → installer}/yaml-format.js +1 -1
- package/tools/migrate-custom-module-paths.js +124 -0
- package/tools/schema/step.js +855 -0
- package/tools/skill-validator.md +323 -0
- package/tools/validate-file-refs.js +566 -0
- package/tools/validate-frontmatter-prose-routing.js +334 -0
- package/tools/validate-skills.js +702 -0
- package/tools/validate-step-schemas.js +401 -0
- package/tools/validate-svg-changes.sh +1 -1
- package/tools/validate-trigger-column-vs-emits.js +375 -0
- package/tools/validate-warnings-samples.js +261 -0
- package/tools/xiaoma/rebrand.mjs +0 -0
- package/tools/xiaoma-npx-wrapper.js +2 -2
- package/.playwright-cli/console-2026-05-13T06-36-26-793Z.log +0 -2
- package/.playwright-cli/page-2026-05-13T06-36-27-725Z.yml +0 -1
- package/CLAUDE.md +0 -111
- package/README.md +0 -128
- package/XiaoMa-CLI-2026H2-/350/277/255/344/273/243/350/247/204/345/210/222.pptx +0 -0
- package/demo/xiaoma-bug-circle-resolve/SKILL.md +0 -6
- package/demo/xiaoma-bug-circle-resolve/workflow.md +0 -254
- package/demo/xiaoma-bug-resolve/SKILL.md +0 -6
- package/demo/xiaoma-bug-resolve/workflow.md +0 -269
- package/demo/xiaoma-prd-saas-zh/README.md +0 -57
- package/demo/xiaoma-prd-saas-zh/domain-research.md +0 -128
- package/demo/xiaoma-prd-saas-zh/epics.md +0 -303
- package/demo/xiaoma-prd-saas-zh/market-research-2026-q1.md +0 -183
- package/demo/xiaoma-prd-saas-zh/prd-bad-examples.md +0 -268
- package/demo/xiaoma-prd-saas-zh/prd.md +0 -409
- package/demo/xiaoma-prd-saas-zh/product-brief.md +0 -97
- package/demo/xiaoma-prd-saas-zh/validation-report.md +0 -279
- package/docs/roadshow/01-/351/241/271/347/233/256/346/246/202/350/247/210/344/270/216/346/236/266/346/236/204.md +0 -189
- package/docs/roadshow/02-/346/231/272/350/203/275/344/275/223/347/263/273/347/273/237/350/257/246/350/247/243.md +0 -464
- package/docs/roadshow/03-/346/231/272/350/203/275/344/275/223/344/272/244/344/272/222/346/265/201/347/250/213/345/233/276.md +0 -334
- package/docs/roadshow/04-/345/267/245/344/275/234/346/265/201/346/211/247/350/241/214/350/257/246/350/247/243.md +0 -1038
- package/docs/roadshow/05-/346/212/200/346/234/257/345/256/236/347/216/260/344/270/216/345/210/233/346/226/260/344/272/256/347/202/271.md +0 -205
- package/docs/roadshow/06-/350/267/257/346/274/224/346/200/273/347/273/223/344/270/216/346/274/224/347/244/272/345/273/272/350/256/256.md +0 -167
- package/media/doc1_fig1.png +0 -0
- package/media/doc1_fig2.png +0 -0
- package/media/doc1_fig3.png +0 -0
- package/media/doc1_fig4.png +0 -0
- package/media/doc2_fig1.png +0 -0
- package/media/doc2_fig2.png +0 -0
- package/media/doc2_fig3.png +0 -0
- package/media/doc2_fig4.png +0 -0
- package/media/doc3_fig1.png +0 -0
- package/media/doc3_fig2.png +0 -0
- package/media/doc3_fig3.png +0 -0
- package/media/doc3_fig4.png +0 -0
- package/media/doc4_fig1.png +0 -0
- package/media/doc4_fig2.png +0 -0
- package/media/doc4_fig3.png +0 -0
- package/media/doc5_fig1.png +0 -0
- package/media/doc5_fig2.png +0 -0
- package/media/doc5_fig3.png +0 -0
- package/patent-disclosure-optimized/SKILL.md +0 -416
- package/src/core/module-help.csv +0 -11
- package/src/core/skills/xiaoma-advanced-elicitation/SKILL.md +0 -6
- package/src/core/skills/xiaoma-advanced-elicitation/methods.csv +0 -51
- package/src/core/skills/xiaoma-editorial-review-prose/SKILL.md +0 -6
- package/src/core/skills/xiaoma-editorial-review-structure/SKILL.md +0 -6
- package/src/core/skills/xiaoma-help/SKILL.md +0 -6
- package/src/core/skills/xiaoma-help/workflow.md +0 -88
- package/src/core/skills/xiaoma-help/xiaoma-skill-manifest.yaml +0 -1
- package/src/core/skills/xiaoma-index-docs/SKILL.md +0 -6
- package/src/core/skills/xiaoma-index-docs/xiaoma-skill-manifest.yaml +0 -1
- package/src/core/skills/xiaoma-party-mode/SKILL.md +0 -6
- package/src/core/skills/xiaoma-party-mode/steps/step-01-agent-loading.md +0 -138
- package/src/core/skills/xiaoma-party-mode/steps/step-02-discussion-orchestration.md +0 -187
- package/src/core/skills/xiaoma-party-mode/steps/step-03-graceful-exit.md +0 -167
- package/src/core/skills/xiaoma-party-mode/workflow.md +0 -190
- package/src/core/skills/xiaoma-party-mode/xiaoma-skill-manifest.yaml +0 -1
- package/src/core/skills/xiaoma-review-adversarial-general/SKILL.md +0 -6
- package/src/core/skills/xiaoma-review-adversarial-general/xiaoma-skill-manifest.yaml +0 -1
- package/src/core/skills/xiaoma-review-edge-case-hunter/SKILL.md +0 -6
- package/src/core/skills/xiaoma-review-edge-case-hunter/xiaoma-skill-manifest.yaml +0 -1
- package/src/core/skills/xiaoma-shard-doc/SKILL.md +0 -6
- package/src/core/skills/xiaoma-shard-doc/xiaoma-skill-manifest.yaml +0 -1
- package/src/core/tasks/xiaoma-create-prd/SKILL.md +0 -6
- package/src/core/tasks/xiaoma-create-prd/data/prd-purpose.md +0 -354
- package/src/core/tasks/xiaoma-create-prd/data/upstream-input-contract.md +0 -168
- package/src/core/tasks/xiaoma-create-prd/steps-c/step-01-init.md +0 -178
- package/src/core/tasks/xiaoma-create-prd/steps-c/step-01b-continue.md +0 -161
- package/src/core/tasks/xiaoma-create-prd/steps-c/step-02-discovery.md +0 -208
- package/src/core/tasks/xiaoma-create-prd/steps-c/step-02b-vision.md +0 -142
- package/src/core/tasks/xiaoma-create-prd/steps-c/step-02c-executive-summary.md +0 -158
- package/src/core/tasks/xiaoma-create-prd/steps-c/step-03-success.md +0 -214
- package/src/core/tasks/xiaoma-create-prd/steps-c/step-04-journeys.md +0 -201
- package/src/core/tasks/xiaoma-create-prd/steps-c/step-05-domain.md +0 -194
- package/src/core/tasks/xiaoma-create-prd/steps-c/step-06-innovation.md +0 -211
- package/src/core/tasks/xiaoma-create-prd/steps-c/step-07-project-type.md +0 -222
- package/src/core/tasks/xiaoma-create-prd/steps-c/step-08-scoping.md +0 -216
- package/src/core/tasks/xiaoma-create-prd/steps-c/step-09-functional.md +0 -219
- package/src/core/tasks/xiaoma-create-prd/steps-c/step-10-nonfunctional.md +0 -230
- package/src/core/tasks/xiaoma-create-prd/steps-c/step-11-polish.md +0 -221
- package/src/core/tasks/xiaoma-create-prd/steps-c/step-12-complete.md +0 -115
- package/src/core/tasks/xiaoma-create-prd/templates/prd-skeleton-reference.md +0 -428
- package/src/core/tasks/xiaoma-create-prd/templates/prd-template.md +0 -108
- package/src/core/tasks/xiaoma-create-prd/workflow.md +0 -62
- package/src/core/tasks/xiaoma-create-prd/xiaoma-skill-manifest.yaml +0 -1
- package/src/utility/agent-components/activation-rules.txt +0 -6
- package/src/utility/agent-components/activation-steps.txt +0 -14
- package/src/utility/agent-components/agent-command-header.md +0 -1
- package/src/utility/agent-components/agent.customize.template.yaml +0 -41
- package/src/utility/agent-components/handler-action.txt +0 -4
- package/src/utility/agent-components/handler-data.txt +0 -5
- package/src/utility/agent-components/handler-exec.txt +0 -6
- package/src/utility/agent-components/handler-multi.txt +0 -13
- package/src/utility/agent-components/handler-tmpl.txt +0 -5
- package/src/utility/agent-components/menu-handlers.txt +0 -6
- package/src/xmc/agents/analyst.agent.yaml +0 -47
- package/src/xmc/agents/architect.agent.yaml +0 -29
- package/src/xmc/agents/dev.agent.yaml +0 -38
- package/src/xmc/agents/pm.agent.yaml +0 -44
- package/src/xmc/agents/qa.agent.yaml +0 -58
- package/src/xmc/agents/quick-flow-solo-dev.agent.yaml +0 -36
- package/src/xmc/agents/sm.agent.yaml +0 -53
- package/src/xmc/agents/tech-writer/tech-writer-sidecar/documentation-standards.md +0 -224
- package/src/xmc/agents/tech-writer/tech-writer.agent.yaml +0 -46
- package/src/xmc/agents/tech-writer/xiaoma-skill-manifest.yaml +0 -3
- package/src/xmc/agents/ux-designer.agent.yaml +0 -27
- package/src/xmc/agents/xiaoma-skill-manifest.yaml +0 -39
- package/src/xmc/data/project-context-template.md +0 -26
- package/src/xmc/module-help.csv +0 -32
- package/src/xmc/module.yaml +0 -50
- package/src/xmc/teams/default-party.csv +0 -20
- package/src/xmc/teams/team-fullstack.yaml +0 -12
- package/src/xmc/workflows/1-analysis/auto-requirements-pipeline/steps/step-08-finalize.md +0 -124
- package/src/xmc/workflows/1-analysis/auto-requirements-pipeline/workflow.md +0 -107
- package/src/xmc/workflows/1-analysis/auto-requirements-pipeline/xiaoma-skill-manifest.yaml +0 -3
- package/src/xmc/workflows/1-analysis/research/market-steps/step-01-init.md +0 -182
- package/src/xmc/workflows/1-analysis/research/market-steps/step-02-customer-behavior.md +0 -237
- package/src/xmc/workflows/1-analysis/research/market-steps/step-03-customer-pain-points.md +0 -249
- package/src/xmc/workflows/1-analysis/research/market-steps/step-04-customer-decisions.md +0 -259
- package/src/xmc/workflows/1-analysis/research/market-steps/step-05-competitive-analysis.md +0 -177
- package/src/xmc/workflows/1-analysis/research/market-steps/step-06-research-completion.md +0 -476
- package/src/xmc/workflows/1-analysis/research/xiaoma-domain-research/SKILL.md +0 -6
- package/src/xmc/workflows/1-analysis/research/xiaoma-domain-research/workflow.md +0 -49
- package/src/xmc/workflows/1-analysis/research/xiaoma-domain-research/xiaoma-skill-manifest.yaml +0 -1
- package/src/xmc/workflows/1-analysis/research/xiaoma-market-research/SKILL.md +0 -6
- package/src/xmc/workflows/1-analysis/research/xiaoma-market-research/workflow.md +0 -49
- package/src/xmc/workflows/1-analysis/research/xiaoma-market-research/xiaoma-skill-manifest.yaml +0 -1
- package/src/xmc/workflows/1-analysis/research/xiaoma-technical-research/SKILL.md +0 -6
- package/src/xmc/workflows/1-analysis/research/xiaoma-technical-research/research.template.md +0 -29
- package/src/xmc/workflows/1-analysis/research/xiaoma-technical-research/workflow.md +0 -50
- package/src/xmc/workflows/1-analysis/research/xiaoma-technical-research/xiaoma-skill-manifest.yaml +0 -1
- package/src/xmc/workflows/1-analysis/xiaoma-create-product-brief/SKILL.md +0 -6
- package/src/xmc/workflows/1-analysis/xiaoma-create-product-brief/product-brief.template.md +0 -10
- package/src/xmc/workflows/1-analysis/xiaoma-create-product-brief/steps/step-01-init.md +0 -170
- package/src/xmc/workflows/1-analysis/xiaoma-create-product-brief/steps/step-01b-continue.md +0 -158
- package/src/xmc/workflows/1-analysis/xiaoma-create-product-brief/steps/step-02-vision.md +0 -193
- package/src/xmc/workflows/1-analysis/xiaoma-create-product-brief/steps/step-03-users.md +0 -196
- package/src/xmc/workflows/1-analysis/xiaoma-create-product-brief/steps/step-04-metrics.md +0 -199
- package/src/xmc/workflows/1-analysis/xiaoma-create-product-brief/steps/step-05-scope.md +0 -213
- package/src/xmc/workflows/1-analysis/xiaoma-create-product-brief/steps/step-06-complete.md +0 -159
- package/src/xmc/workflows/1-analysis/xiaoma-create-product-brief/workflow.md +0 -55
- package/src/xmc/workflows/1-analysis/xiaoma-create-product-brief/xiaoma-skill-manifest.yaml +0 -1
- package/src/xmc/workflows/1-analysis/xiaoma-product-brief-preview/xiaoma-skill-manifest.yaml +0 -1
- package/src/xmc/workflows/2-plan-workflows/create-prd/data/domain-complexity.csv +0 -15
- package/src/xmc/workflows/2-plan-workflows/create-prd/data/prd-purpose.md +0 -197
- package/src/xmc/workflows/2-plan-workflows/create-prd/data/project-types.csv +0 -11
- package/src/xmc/workflows/2-plan-workflows/create-prd/steps-v/step-v-01-discovery.md +0 -224
- package/src/xmc/workflows/2-plan-workflows/create-prd/steps-v/step-v-02-format-detection.md +0 -191
- package/src/xmc/workflows/2-plan-workflows/create-prd/steps-v/step-v-02b-parity-check.md +0 -209
- package/src/xmc/workflows/2-plan-workflows/create-prd/steps-v/step-v-03-density-validation.md +0 -174
- package/src/xmc/workflows/2-plan-workflows/create-prd/steps-v/step-v-04-brief-coverage-validation.md +0 -214
- package/src/xmc/workflows/2-plan-workflows/create-prd/steps-v/step-v-05-measurability-validation.md +0 -228
- package/src/xmc/workflows/2-plan-workflows/create-prd/steps-v/step-v-06-traceability-validation.md +0 -217
- package/src/xmc/workflows/2-plan-workflows/create-prd/steps-v/step-v-07-implementation-leakage-validation.md +0 -205
- package/src/xmc/workflows/2-plan-workflows/create-prd/steps-v/step-v-08-domain-compliance-validation.md +0 -243
- package/src/xmc/workflows/2-plan-workflows/create-prd/steps-v/step-v-09-project-type-validation.md +0 -263
- package/src/xmc/workflows/2-plan-workflows/create-prd/steps-v/step-v-10-smart-validation.md +0 -209
- package/src/xmc/workflows/2-plan-workflows/create-prd/steps-v/step-v-11-holistic-quality-validation.md +0 -264
- package/src/xmc/workflows/2-plan-workflows/create-prd/steps-v/step-v-12-completeness-validation.md +0 -242
- package/src/xmc/workflows/2-plan-workflows/create-prd/steps-v/step-v-13-report-complete.md +0 -232
- package/src/xmc/workflows/2-plan-workflows/create-prd/workflow-validate-prd.md +0 -65
- package/src/xmc/workflows/2-plan-workflows/xiaoma-create-ux-design/SKILL.md +0 -6
- package/src/xmc/workflows/2-plan-workflows/xiaoma-create-ux-design/steps/step-01-init.md +0 -135
- package/src/xmc/workflows/2-plan-workflows/xiaoma-create-ux-design/steps/step-01b-continue.md +0 -127
- package/src/xmc/workflows/2-plan-workflows/xiaoma-create-ux-design/steps/step-02-discovery.md +0 -190
- package/src/xmc/workflows/2-plan-workflows/xiaoma-create-ux-design/steps/step-03-core-experience.md +0 -217
- package/src/xmc/workflows/2-plan-workflows/xiaoma-create-ux-design/steps/step-04-emotional-response.md +0 -220
- package/src/xmc/workflows/2-plan-workflows/xiaoma-create-ux-design/steps/step-05-inspiration.md +0 -235
- package/src/xmc/workflows/2-plan-workflows/xiaoma-create-ux-design/steps/step-06-design-system.md +0 -253
- package/src/xmc/workflows/2-plan-workflows/xiaoma-create-ux-design/steps/step-07-defining-experience.md +0 -255
- package/src/xmc/workflows/2-plan-workflows/xiaoma-create-ux-design/steps/step-08-visual-foundation.md +0 -225
- package/src/xmc/workflows/2-plan-workflows/xiaoma-create-ux-design/steps/step-09-design-directions.md +0 -225
- package/src/xmc/workflows/2-plan-workflows/xiaoma-create-ux-design/steps/step-10-user-journeys.md +0 -242
- package/src/xmc/workflows/2-plan-workflows/xiaoma-create-ux-design/steps/step-11-component-strategy.md +0 -249
- package/src/xmc/workflows/2-plan-workflows/xiaoma-create-ux-design/steps/step-12-ux-patterns.md +0 -238
- package/src/xmc/workflows/2-plan-workflows/xiaoma-create-ux-design/steps/step-13-responsive-accessibility.md +0 -265
- package/src/xmc/workflows/2-plan-workflows/xiaoma-create-ux-design/steps/step-14-complete.md +0 -171
- package/src/xmc/workflows/2-plan-workflows/xiaoma-create-ux-design/ux-design-template.md +0 -13
- package/src/xmc/workflows/2-plan-workflows/xiaoma-create-ux-design/workflow.md +0 -36
- package/src/xmc/workflows/2-plan-workflows/xiaoma-create-ux-design/xiaoma-skill-manifest.yaml +0 -1
- package/src/xmc/workflows/2-plan-workflows/xiaoma-edit-prd/SKILL.md +0 -6
- package/src/xmc/workflows/2-plan-workflows/xiaoma-edit-prd/steps-e/step-e-01-discovery.md +0 -242
- package/src/xmc/workflows/2-plan-workflows/xiaoma-edit-prd/steps-e/step-e-01b-legacy-conversion.md +0 -204
- package/src/xmc/workflows/2-plan-workflows/xiaoma-edit-prd/steps-e/step-e-02-review.md +0 -245
- package/src/xmc/workflows/2-plan-workflows/xiaoma-edit-prd/steps-e/step-e-03-edit.md +0 -250
- package/src/xmc/workflows/2-plan-workflows/xiaoma-edit-prd/steps-e/step-e-04-complete.md +0 -165
- package/src/xmc/workflows/2-plan-workflows/xiaoma-edit-prd/workflow.md +0 -63
- package/src/xmc/workflows/2-plan-workflows/xiaoma-edit-prd/xiaoma-skill-manifest.yaml +0 -1
- package/src/xmc/workflows/2-plan-workflows/xiaoma-validate-prd/SKILL.md +0 -6
- package/src/xmc/workflows/2-plan-workflows/xiaoma-validate-prd/data/domain-complexity.csv +0 -15
- package/src/xmc/workflows/2-plan-workflows/xiaoma-validate-prd/data/prd-purpose.md +0 -197
- package/src/xmc/workflows/2-plan-workflows/xiaoma-validate-prd/data/prd-quality-rubric.csv +0 -14
- package/src/xmc/workflows/2-plan-workflows/xiaoma-validate-prd/data/project-types.csv +0 -11
- package/src/xmc/workflows/2-plan-workflows/xiaoma-validate-prd/steps-v/step-v-01-discovery.md +0 -221
- package/src/xmc/workflows/2-plan-workflows/xiaoma-validate-prd/steps-v/step-v-02-format-detection.md +0 -188
- package/src/xmc/workflows/2-plan-workflows/xiaoma-validate-prd/steps-v/step-v-02b-parity-check.md +0 -206
- package/src/xmc/workflows/2-plan-workflows/xiaoma-validate-prd/steps-v/step-v-03-density-validation.md +0 -171
- package/src/xmc/workflows/2-plan-workflows/xiaoma-validate-prd/steps-v/step-v-04-brief-coverage-validation.md +0 -211
- package/src/xmc/workflows/2-plan-workflows/xiaoma-validate-prd/steps-v/step-v-05-measurability-validation.md +0 -225
- package/src/xmc/workflows/2-plan-workflows/xiaoma-validate-prd/steps-v/step-v-06-traceability-validation.md +0 -214
- package/src/xmc/workflows/2-plan-workflows/xiaoma-validate-prd/steps-v/step-v-07-implementation-leakage-validation.md +0 -202
- package/src/xmc/workflows/2-plan-workflows/xiaoma-validate-prd/steps-v/step-v-08-domain-compliance-validation.md +0 -240
- package/src/xmc/workflows/2-plan-workflows/xiaoma-validate-prd/steps-v/step-v-09-project-type-validation.md +0 -260
- package/src/xmc/workflows/2-plan-workflows/xiaoma-validate-prd/steps-v/step-v-10-smart-validation.md +0 -206
- package/src/xmc/workflows/2-plan-workflows/xiaoma-validate-prd/steps-v/step-v-11-holistic-quality-validation.md +0 -261
- package/src/xmc/workflows/2-plan-workflows/xiaoma-validate-prd/steps-v/step-v-12-completeness-validation.md +0 -239
- package/src/xmc/workflows/2-plan-workflows/xiaoma-validate-prd/steps-v/step-v-13-report-complete.md +0 -229
- package/src/xmc/workflows/2-plan-workflows/xiaoma-validate-prd/workflow.md +0 -62
- package/src/xmc/workflows/2-plan-workflows/xiaoma-validate-prd/xiaoma-skill-manifest.yaml +0 -1
- package/src/xmc/workflows/3-solutioning/xiaoma-check-implementation-readiness/SKILL.md +0 -6
- package/src/xmc/workflows/3-solutioning/xiaoma-check-implementation-readiness/workflow.md +0 -49
- package/src/xmc/workflows/3-solutioning/xiaoma-check-implementation-readiness/xiaoma-skill-manifest.yaml +0 -1
- package/src/xmc/workflows/3-solutioning/xiaoma-create-architecture/SKILL.md +0 -6
- package/src/xmc/workflows/3-solutioning/xiaoma-create-architecture/workflow.md +0 -38
- package/src/xmc/workflows/3-solutioning/xiaoma-create-architecture/xiaoma-skill-manifest.yaml +0 -1
- package/src/xmc/workflows/3-solutioning/xiaoma-create-epics-and-stories/SKILL.md +0 -6
- package/src/xmc/workflows/3-solutioning/xiaoma-create-epics-and-stories/workflow.md +0 -53
- package/src/xmc/workflows/3-solutioning/xiaoma-create-epics-and-stories/xiaoma-skill-manifest.yaml +0 -1
- package/src/xmc/workflows/4-implementation/auto-story-pipeline/checklist.md +0 -22
- package/src/xmc/workflows/4-implementation/auto-story-pipeline/steps/step-02-create-story.md +0 -102
- package/src/xmc/workflows/4-implementation/auto-story-pipeline/steps/step-05-code-review.md +0 -95
- package/src/xmc/workflows/4-implementation/auto-story-pipeline/steps/step-08-complete-story.md +0 -114
- package/src/xmc/workflows/4-implementation/auto-story-pipeline/steps/step-09-finalize.md +0 -69
- package/src/xmc/workflows/4-implementation/auto-story-pipeline/workflow.md +0 -89
- package/src/xmc/workflows/4-implementation/auto-story-pipeline/xiaoma-skill-manifest.yaml +0 -3
- package/src/xmc/workflows/4-implementation/xiaoma-code-review/SKILL.md +0 -6
- package/src/xmc/workflows/4-implementation/xiaoma-code-review/checklist.md +0 -23
- package/src/xmc/workflows/4-implementation/xiaoma-code-review/steps/step-01-gather-context.md +0 -61
- package/src/xmc/workflows/4-implementation/xiaoma-code-review/steps/step-02-review.md +0 -41
- package/src/xmc/workflows/4-implementation/xiaoma-code-review/steps/step-04-present.md +0 -38
- package/src/xmc/workflows/4-implementation/xiaoma-code-review/workflow.md +0 -54
- package/src/xmc/workflows/4-implementation/xiaoma-code-review/xiaoma-skill-manifest.yaml +0 -1
- package/src/xmc/workflows/4-implementation/xiaoma-correct-course/SKILL.md +0 -6
- package/src/xmc/workflows/4-implementation/xiaoma-correct-course/xiaoma-skill-manifest.yaml +0 -1
- package/src/xmc/workflows/4-implementation/xiaoma-create-story/SKILL.md +0 -6
- package/src/xmc/workflows/4-implementation/xiaoma-create-story/discover-inputs.md +0 -88
- package/src/xmc/workflows/4-implementation/xiaoma-create-story/xiaoma-skill-manifest.yaml +0 -1
- package/src/xmc/workflows/4-implementation/xiaoma-dev-story/SKILL.md +0 -6
- package/src/xmc/workflows/4-implementation/xiaoma-dev-story/xiaoma-skill-manifest.yaml +0 -1
- package/src/xmc/workflows/4-implementation/xiaoma-retrospective/SKILL.md +0 -6
- package/src/xmc/workflows/4-implementation/xiaoma-retrospective/xiaoma-skill-manifest.yaml +0 -1
- package/src/xmc/workflows/4-implementation/xiaoma-sprint-planning/SKILL.md +0 -6
- package/src/xmc/workflows/4-implementation/xiaoma-sprint-planning/xiaoma-skill-manifest.yaml +0 -1
- package/src/xmc/workflows/4-implementation/xiaoma-sprint-status/SKILL.md +0 -6
- package/src/xmc/workflows/4-implementation/xiaoma-sprint-status/xiaoma-skill-manifest.yaml +0 -1
- package/src/xmc/workflows/xiaoma-document-project/SKILL.md +0 -6
- package/src/xmc/workflows/xiaoma-document-project/workflow.md +0 -27
- package/src/xmc/workflows/xiaoma-document-project/xiaoma-skill-manifest.yaml +0 -1
- package/src/xmc/workflows/xiaoma-generate-project-context/SKILL.md +0 -6
- package/src/xmc/workflows/xiaoma-generate-project-context/workflow.md +0 -43
- package/src/xmc/workflows/xiaoma-generate-project-context/xiaoma-skill-manifest.yaml +0 -1
- package/src/xmc/workflows/xiaoma-qa-generate-e2e-tests/SKILL.md +0 -6
- package/src/xmc/workflows/xiaoma-qa-generate-e2e-tests/xiaoma-skill-manifest.yaml +0 -1
- package/src/xmc/workflows/xiaoma-quick-flow/xiaoma-quick-dev/SKILL.md +0 -6
- package/src/xmc/workflows/xiaoma-quick-flow/xiaoma-quick-dev/steps/step-01-mode-detection.md +0 -169
- package/src/xmc/workflows/xiaoma-quick-flow/xiaoma-quick-dev/steps/step-02-context-gathering.md +0 -114
- package/src/xmc/workflows/xiaoma-quick-flow/xiaoma-quick-dev/steps/step-03-execute.md +0 -107
- package/src/xmc/workflows/xiaoma-quick-flow/xiaoma-quick-dev/steps/step-04-self-check.md +0 -107
- package/src/xmc/workflows/xiaoma-quick-flow/xiaoma-quick-dev/steps/step-05-adversarial-review.md +0 -94
- package/src/xmc/workflows/xiaoma-quick-flow/xiaoma-quick-dev/steps/step-06-resolve-findings.md +0 -144
- package/src/xmc/workflows/xiaoma-quick-flow/xiaoma-quick-dev/workflow.md +0 -38
- package/src/xmc/workflows/xiaoma-quick-flow/xiaoma-quick-dev/xiaoma-skill-manifest.yaml +0 -1
- package/src/xmc/workflows/xiaoma-quick-flow/xiaoma-quick-dev-new-preview/xiaoma-skill-manifest.yaml +0 -1
- package/src/xmc/workflows/xiaoma-quick-flow/xiaoma-quick-spec/xiaoma-skill-manifest.yaml +0 -1
- package/tools/cli/commands/install.js +0 -87
- package/tools/cli/external-official-modules.yaml +0 -4
- package/tools/cli/installers/lib/core/custom-module-cache.js +0 -260
- package/tools/cli/installers/lib/core/dependency-resolver.js +0 -743
- package/tools/cli/installers/lib/core/detector.js +0 -223
- package/tools/cli/installers/lib/core/ide-config-manager.js +0 -157
- package/tools/cli/installers/lib/core/installer.js +0 -3212
- package/tools/cli/installers/lib/core/manifest-generator.js +0 -1374
- package/tools/cli/installers/lib/core/manifest.js +0 -1040
- package/tools/cli/installers/lib/custom/handler.js +0 -358
- package/tools/cli/installers/lib/ide/_base-ide.js +0 -673
- package/tools/cli/installers/lib/ide/_config-driven.js +0 -1058
- package/tools/cli/installers/lib/ide/platform-codes.js +0 -100
- package/tools/cli/installers/lib/ide/platform-codes.yaml +0 -321
- package/tools/cli/installers/lib/ide/shared/agent-command-generator.js +0 -181
- package/tools/cli/installers/lib/ide/shared/module-injections.js +0 -136
- package/tools/cli/installers/lib/ide/shared/task-tool-command-generator.js +0 -368
- package/tools/cli/installers/lib/ide/shared/workflow-command-generator.js +0 -179
- package/tools/cli/installers/lib/ide/shared/xiaoma-artifacts.js +0 -181
- package/tools/cli/installers/lib/ide/templates/agent-command-template.md +0 -14
- package/tools/cli/installers/lib/ide/templates/combined/antigravity.md +0 -8
- package/tools/cli/installers/lib/ide/templates/combined/default-agent.md +0 -15
- package/tools/cli/installers/lib/ide/templates/combined/default-task.md +0 -10
- package/tools/cli/installers/lib/ide/templates/combined/default-tool.md +0 -10
- package/tools/cli/installers/lib/ide/templates/combined/default-workflow.md +0 -6
- package/tools/cli/installers/lib/ide/templates/combined/gemini-agent.toml +0 -14
- package/tools/cli/installers/lib/ide/templates/combined/gemini-task.toml +0 -11
- package/tools/cli/installers/lib/ide/templates/combined/gemini-tool.toml +0 -11
- package/tools/cli/installers/lib/ide/templates/combined/gemini-workflow-yaml.toml +0 -16
- package/tools/cli/installers/lib/ide/templates/combined/gemini-workflow.toml +0 -14
- package/tools/cli/installers/lib/ide/templates/combined/kiro-agent.md +0 -16
- package/tools/cli/installers/lib/ide/templates/combined/kiro-task.md +0 -9
- package/tools/cli/installers/lib/ide/templates/combined/kiro-tool.md +0 -9
- package/tools/cli/installers/lib/ide/templates/combined/kiro-workflow.md +0 -7
- package/tools/cli/installers/lib/ide/templates/combined/opencode-agent.md +0 -15
- package/tools/cli/installers/lib/ide/templates/combined/opencode-task.md +0 -13
- package/tools/cli/installers/lib/ide/templates/combined/opencode-tool.md +0 -13
- package/tools/cli/installers/lib/ide/templates/combined/opencode-workflow-yaml.md +0 -16
- package/tools/cli/installers/lib/ide/templates/combined/opencode-workflow.md +0 -16
- package/tools/cli/installers/lib/ide/templates/combined/rovodev.md +0 -9
- package/tools/cli/installers/lib/ide/templates/combined/trae.md +0 -9
- package/tools/cli/installers/lib/ide/templates/combined/windsurf-workflow.md +0 -10
- package/tools/cli/installers/lib/ide/templates/split/.gitkeep +0 -0
- package/tools/cli/installers/lib/modules/external-manager.js +0 -136
- package/tools/cli/installers/lib/modules/manager.js +0 -1382
- package/tools/cli/lib/activation-builder.js +0 -165
- package/tools/cli/lib/agent/compiler.js +0 -516
- package/tools/cli/lib/agent/installer.js +0 -680
- package/tools/cli/lib/agent/template-engine.js +0 -152
- package/tools/cli/lib/agent-analyzer.js +0 -97
- package/tools/cli/lib/agent-party-generator.js +0 -194
- package/tools/cli/lib/cli-utils.js +0 -182
- package/tools/cli/lib/config.js +0 -213
- package/tools/cli/lib/platform-codes.js +0 -116
- package/tools/cli/lib/project-root.js +0 -77
- package/tools/cli/lib/ui.js +0 -1960
- package/tools/cli/lib/xml-handler.js +0 -177
- package/tools/cli/lib/xml-to-markdown.js +0 -82
- package/tools/cli/lib/yaml-xml-builder.js +0 -570
- package/tools/platform-codes.yaml +0 -157
- package/tools/schema/agent.js +0 -489
- 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/347/232/204/345/244/232/351/200/232/351/201/223/344/276/235/350/265/226_20260318.md +0 -483
- 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.md +0 -592
- 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.md +0 -624
- 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.md +0 -628
- 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.md +0 -652
- /package/src/{core/skills → core-skills}/xiaoma-brainstorming/SKILL.md +0 -0
- /package/src/{core/skills → core-skills}/xiaoma-brainstorming/brain-methods.csv +0 -0
- /package/src/{core/skills → core-skills}/xiaoma-brainstorming/steps/step-01-session-setup.md +0 -0
- /package/src/{core/skills → core-skills}/xiaoma-brainstorming/steps/step-01b-continue.md +0 -0
- /package/src/{core/skills → core-skills}/xiaoma-brainstorming/steps/step-02a-user-selected.md +0 -0
- /package/src/{core/skills → core-skills}/xiaoma-brainstorming/steps/step-02b-ai-recommended.md +0 -0
- /package/src/{core/skills → core-skills}/xiaoma-brainstorming/steps/step-02c-random-selection.md +0 -0
- /package/src/{core/skills → core-skills}/xiaoma-brainstorming/steps/step-02d-progressive-flow.md +0 -0
- /package/src/{core/skills → core-skills}/xiaoma-brainstorming/steps/step-04-idea-organization.md +0 -0
- /package/src/{core/skills → core-skills}/xiaoma-brainstorming/template.md +0 -0
- /package/src/{core/skills → core-skills}/xiaoma-distillator/SKILL.md +0 -0
- /package/src/{core/skills → core-skills}/xiaoma-distillator/agents/distillate-compressor.md +0 -0
- /package/src/{core/skills → core-skills}/xiaoma-distillator/agents/round-trip-reconstructor.md +0 -0
- /package/src/{core/skills → core-skills}/xiaoma-distillator/resources/compression-rules.md +0 -0
- /package/src/{core/skills → core-skills}/xiaoma-distillator/resources/splitting-strategy.md +0 -0
- /package/src/{core/skills → core-skills}/xiaoma-distillator/scripts/tests/test_analyze_sources.py +0 -0
- /package/src/{core/skills → core-skills}/xiaoma-distillator/xiaoma-skill-manifest.yaml +0 -0
- /package/src/{xmc/workflows → xmc-skills}/1-analysis/research/xiaoma-domain-research/domain-steps/step-01-init.md +0 -0
- /package/src/{xmc/workflows → xmc-skills}/1-analysis/research/xiaoma-domain-research/domain-steps/step-02-domain-analysis.md +0 -0
- /package/src/{xmc/workflows → xmc-skills}/1-analysis/research/xiaoma-domain-research/domain-steps/step-03-competitive-landscape.md +0 -0
- /package/src/{xmc/workflows → xmc-skills}/1-analysis/research/xiaoma-domain-research/domain-steps/step-04-regulatory-focus.md +0 -0
- /package/src/{xmc/workflows → xmc-skills}/1-analysis/research/xiaoma-domain-research/domain-steps/step-05-technical-trends.md +0 -0
- /package/src/{xmc/workflows/1-analysis/research → xmc-skills/1-analysis/research/xiaoma-domain-research}/research.template.md +0 -0
- /package/src/{xmc/workflows/1-analysis/research/xiaoma-domain-research → xmc-skills/1-analysis/research/xiaoma-market-research}/research.template.md +0 -0
- /package/src/{xmc/workflows → xmc-skills}/1-analysis/research/xiaoma-market-research/steps/step-01-init.md +0 -0
- /package/src/{xmc/workflows → xmc-skills}/1-analysis/research/xiaoma-market-research/steps/step-02-customer-behavior.md +0 -0
- /package/src/{xmc/workflows → xmc-skills}/1-analysis/research/xiaoma-market-research/steps/step-03-customer-pain-points.md +0 -0
- /package/src/{xmc/workflows → xmc-skills}/1-analysis/research/xiaoma-market-research/steps/step-04-customer-decisions.md +0 -0
- /package/src/{xmc/workflows → xmc-skills}/1-analysis/research/xiaoma-market-research/steps/step-05-competitive-analysis.md +0 -0
- /package/src/{xmc/workflows/1-analysis/research/xiaoma-market-research → xmc-skills/1-analysis/research/xiaoma-technical-research}/research.template.md +0 -0
- /package/src/{xmc/workflows → xmc-skills}/1-analysis/research/xiaoma-technical-research/technical-steps/step-01-init.md +0 -0
- /package/src/{xmc/workflows → xmc-skills}/1-analysis/research/xiaoma-technical-research/technical-steps/step-02-technical-overview.md +0 -0
- /package/src/{xmc/workflows → xmc-skills}/1-analysis/research/xiaoma-technical-research/technical-steps/step-03-integration-patterns.md +0 -0
- /package/src/{xmc/workflows → xmc-skills}/1-analysis/research/xiaoma-technical-research/technical-steps/step-04-architectural-patterns.md +0 -0
- /package/src/{xmc/workflows → xmc-skills}/1-analysis/research/xiaoma-technical-research/technical-steps/step-05-implementation-research.md +0 -0
- /package/src/{xmc/workflows/1-analysis/auto-requirements-pipeline → xmc-skills/1-analysis/xiaoma-auto-requirements-pipeline}/SKILL.md +0 -0
- /package/src/{xmc/workflows → xmc-skills/1-analysis}/xiaoma-document-project/checklist.md +0 -0
- /package/src/{xmc/workflows → xmc-skills/1-analysis}/xiaoma-document-project/documentation-requirements.csv +0 -0
- /package/src/{xmc/workflows → xmc-skills/1-analysis}/xiaoma-document-project/instructions.md +0 -0
- /package/src/{xmc/workflows → xmc-skills/1-analysis}/xiaoma-document-project/templates/deep-dive-template.md +0 -0
- /package/src/{xmc/workflows → xmc-skills/1-analysis}/xiaoma-document-project/templates/index-template.md +0 -0
- /package/src/{xmc/workflows → xmc-skills/1-analysis}/xiaoma-document-project/templates/project-overview-template.md +0 -0
- /package/src/{xmc/workflows → xmc-skills/1-analysis}/xiaoma-document-project/templates/project-scan-report-schema.json +0 -0
- /package/src/{xmc/workflows → xmc-skills/1-analysis}/xiaoma-document-project/templates/source-tree-template.md +0 -0
- /package/src/{xmc/workflows → xmc-skills/1-analysis}/xiaoma-document-project/workflows/deep-dive-workflow.md +0 -0
- /package/src/{xmc/workflows → xmc-skills/1-analysis}/xiaoma-document-project/workflows/full-scan-workflow.md +0 -0
- /package/src/{xmc/workflows → xmc-skills}/1-analysis/xiaoma-product-brief-preview/SKILL.md +0 -0
- /package/src/{xmc/workflows → xmc-skills}/1-analysis/xiaoma-product-brief-preview/agents/artifact-analyzer.md +0 -0
- /package/src/{xmc/workflows → xmc-skills}/1-analysis/xiaoma-product-brief-preview/agents/opportunity-reviewer.md +0 -0
- /package/src/{xmc/workflows → xmc-skills}/1-analysis/xiaoma-product-brief-preview/agents/skeptic-reviewer.md +0 -0
- /package/src/{xmc/workflows → xmc-skills}/1-analysis/xiaoma-product-brief-preview/agents/web-researcher.md +0 -0
- /package/src/{xmc/workflows → xmc-skills}/1-analysis/xiaoma-product-brief-preview/prompts/contextual-discovery.md +0 -0
- /package/src/{xmc/workflows → xmc-skills}/1-analysis/xiaoma-product-brief-preview/prompts/draft-and-review.md +0 -0
- /package/src/{xmc/workflows → xmc-skills}/1-analysis/xiaoma-product-brief-preview/prompts/finalize.md +0 -0
- /package/src/{xmc/workflows → xmc-skills}/1-analysis/xiaoma-product-brief-preview/prompts/guided-elicitation.md +0 -0
- /package/src/{xmc/workflows → xmc-skills}/1-analysis/xiaoma-product-brief-preview/resources/brief-template.md +0 -0
- /package/src/{xmc/workflows → xmc-skills}/1-analysis/xiaoma-product-brief-preview/xiaoma-manifest.json +0 -0
- /package/src/{core/skills/xiaoma-advanced-elicitation → xmc-skills/1-analysis/xiaoma-product-brief-preview}/xiaoma-skill-manifest.yaml +0 -0
- /package/src/{core/tasks/xiaoma-create-prd/data → xmc-skills/2-plan-workflows/xiaoma-prd/assets}/domain-complexity.csv +0 -0
- /package/src/{core/tasks/xiaoma-create-prd/data → xmc-skills/2-plan-workflows/xiaoma-prd/assets}/project-types.csv +0 -0
- /package/src/{xmc/workflows → xmc-skills}/3-solutioning/xiaoma-check-implementation-readiness/steps/step-04-ux-alignment.md +0 -0
- /package/src/{xmc/workflows → xmc-skills}/3-solutioning/xiaoma-check-implementation-readiness/steps/step-05-epic-quality-review.md +0 -0
- /package/src/{xmc/workflows → xmc-skills}/3-solutioning/xiaoma-check-implementation-readiness/templates/readiness-report-template.md +0 -0
- /package/src/{xmc/workflows → xmc-skills}/3-solutioning/xiaoma-create-architecture/architecture-decision-template.md +0 -0
- /package/src/{xmc/workflows → xmc-skills}/3-solutioning/xiaoma-create-architecture/data/domain-complexity.csv +0 -0
- /package/src/{xmc/workflows → xmc-skills}/3-solutioning/xiaoma-create-architecture/data/project-types.csv +0 -0
- /package/src/{xmc/workflows → xmc-skills}/3-solutioning/xiaoma-create-architecture/steps/step-01-init.md +0 -0
- /package/src/{xmc/workflows → xmc-skills}/3-solutioning/xiaoma-create-architecture/steps/step-01b-continue.md +0 -0
- /package/src/{xmc/workflows → xmc-skills}/3-solutioning/xiaoma-create-architecture/steps/step-02-context.md +0 -0
- /package/src/{xmc/workflows → xmc-skills}/3-solutioning/xiaoma-create-architecture/steps/step-03-starter.md +0 -0
- /package/src/{xmc/workflows → xmc-skills}/3-solutioning/xiaoma-create-architecture/steps/step-04-decisions.md +0 -0
- /package/src/{xmc/workflows → xmc-skills}/3-solutioning/xiaoma-create-architecture/steps/step-05-patterns.md +0 -0
- /package/src/{xmc/workflows → xmc-skills}/3-solutioning/xiaoma-create-architecture/steps/step-06-structure.md +0 -0
- /package/src/{xmc/workflows → xmc-skills}/3-solutioning/xiaoma-create-epics-and-stories/steps/step-01-validate-prerequisites.md +0 -0
- /package/src/{xmc/workflows → xmc-skills}/3-solutioning/xiaoma-create-epics-and-stories/steps/step-03-create-stories.md +0 -0
- /package/src/{xmc/workflows → xmc-skills}/3-solutioning/xiaoma-create-epics-and-stories/templates/epics-template.md +0 -0
- /package/src/{xmc/workflows → xmc-skills/3-solutioning}/xiaoma-generate-project-context/project-context-template.md +0 -0
- /package/src/{xmc/workflows → xmc-skills/3-solutioning}/xiaoma-generate-project-context/steps/step-01-discover.md +0 -0
- /package/src/{xmc/workflows → xmc-skills/3-solutioning}/xiaoma-generate-project-context/steps/step-02-generate.md +0 -0
- /package/src/{xmc/workflows/4-implementation/auto-story-pipeline → xmc-skills/4-implementation/xiaoma-auto-story-pipeline}/SKILL.md +0 -0
- /package/src/{xmc/workflows → xmc-skills}/4-implementation/xiaoma-create-story/checklist.md +0 -0
- /package/src/{xmc/workflows/4-implementation/xiaoma-code-review → xmc-skills/4-implementation/xiaoma-create-story}/discover-inputs.md +0 -0
- /package/src/{xmc/workflows → xmc-skills}/4-implementation/xiaoma-create-story/template.md +0 -0
- /package/src/{xmc/workflows → xmc-skills}/4-implementation/xiaoma-dev-story/checklist.md +0 -0
- /package/src/{xmc/workflows/xiaoma-quick-flow → xmc-skills/4-implementation}/xiaoma-quick-dev-new-preview/SKILL.md +0 -0
- /package/src/{xmc/workflows/xiaoma-quick-flow → xmc-skills/4-implementation}/xiaoma-quick-dev-new-preview/steps/step-01-clarify-and-route.md +0 -0
- /package/src/{xmc/workflows/xiaoma-quick-flow → xmc-skills/4-implementation}/xiaoma-quick-dev-new-preview/steps/step-02-plan.md +0 -0
- /package/src/{xmc/workflows/xiaoma-quick-flow → xmc-skills/4-implementation}/xiaoma-quick-dev-new-preview/steps/step-03-implement.md +0 -0
- /package/src/{xmc/workflows/xiaoma-quick-flow → xmc-skills/4-implementation}/xiaoma-quick-dev-new-preview/steps/step-04-review.md +0 -0
- /package/src/{xmc/workflows/xiaoma-quick-flow → xmc-skills/4-implementation}/xiaoma-quick-dev-new-preview/steps/step-05-present.md +0 -0
- /package/src/{xmc/workflows/xiaoma-quick-flow → xmc-skills/4-implementation}/xiaoma-quick-dev-new-preview/tech-spec-template.md +0 -0
- /package/src/{xmc/workflows/xiaoma-quick-flow → xmc-skills/4-implementation}/xiaoma-quick-dev-new-preview/workflow.md +0 -0
- /package/src/{core/skills/xiaoma-brainstorming → xmc-skills/4-implementation/xiaoma-quick-dev-new-preview}/xiaoma-skill-manifest.yaml +0 -0
- /package/src/{xmc/workflows/xiaoma-quick-flow → xmc-skills/4-implementation}/xiaoma-quick-spec/SKILL.md +0 -0
- /package/src/{xmc/workflows/xiaoma-quick-flow → xmc-skills/4-implementation}/xiaoma-quick-spec/steps/step-01-understand.md +0 -0
- /package/src/{xmc/workflows/xiaoma-quick-flow → xmc-skills/4-implementation}/xiaoma-quick-spec/steps/step-02-investigate.md +0 -0
- /package/src/{xmc/workflows/xiaoma-quick-flow → xmc-skills/4-implementation}/xiaoma-quick-spec/steps/step-03-generate.md +0 -0
- /package/src/{xmc/workflows/xiaoma-quick-flow → xmc-skills/4-implementation}/xiaoma-quick-spec/steps/step-04-review.md +0 -0
- /package/src/{xmc/workflows/xiaoma-quick-flow → xmc-skills/4-implementation}/xiaoma-quick-spec/tech-spec-template.md +0 -0
- /package/src/{xmc/workflows/xiaoma-quick-flow → xmc-skills/4-implementation}/xiaoma-quick-spec/workflow.md +0 -0
- /package/src/{core/skills/xiaoma-editorial-review-prose → xmc-skills/4-implementation/xiaoma-quick-spec}/xiaoma-skill-manifest.yaml +0 -0
- /package/src/{xmc/workflows → xmc-skills}/4-implementation/xiaoma-sprint-planning/checklist.md +0 -0
- /package/src/{xmc/workflows/5-full-pipeline/auto-full-pipeline → xmc-skills/5-full-pipeline/xiaoma-auto-full-pipeline}/SKILL.md +0 -0
- /package/src/{xmc/workflows/5-full-pipeline/auto-full-pipeline → xmc-skills/5-full-pipeline/xiaoma-auto-full-pipeline}/xiaoma-skill-manifest.yaml +0 -0
- /package/src/{xmc/workflows/5-full-pipeline/auto-prd-to-stories → xmc-skills/5-full-pipeline/xiaoma-auto-prd-to-stories}/SKILL.md +0 -0
- /package/src/{xmc/workflows/5-full-pipeline/auto-prd-to-stories → xmc-skills/5-full-pipeline/xiaoma-auto-prd-to-stories}/xiaoma-skill-manifest.yaml +0 -0
- /package/{patent-disclosure-optimized → src/xpm-skills/xiaoma-patent-mining}/references/disclosure-template.md +0 -0
- /package/{patent-disclosure-optimized → src/xpm-skills/xiaoma-patent-mining}/references/docx-format-spec.md +0 -0
- /package/{patent-disclosure-optimized → src/xpm-skills/xiaoma-patent-mining}/references/mining-principles.md +0 -0
- /package/{patent-disclosure-optimized → src/xpm-skills/xiaoma-patent-mining}/scripts/md2docx.js +0 -0
- /package/src/{core/skills/xiaoma-editorial-review-structure → xpm-skills/xiaoma-patent-mining}/xiaoma-skill-manifest.yaml +0 -0
- /package/tools/{cli/installers → installer}/install-messages.yaml +0 -0
|
@@ -0,0 +1,375 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Trigger-Column ↔ Emits Bidirectional Validator (AS-series — run #43)
|
|
3
|
+
*
|
|
4
|
+
* Cross-checks the "Trigger examples" column in each pipeline's
|
|
5
|
+
* "Warning Prefix-Tag Convention" table against the actual
|
|
6
|
+
* `Append to {run_warnings}: \`[step-NN] ...\`` literals in that
|
|
7
|
+
* pipeline's `steps/step-NN.md` files.
|
|
8
|
+
*
|
|
9
|
+
* Why this exists:
|
|
10
|
+
* - The convention table lists representative trigger examples per
|
|
11
|
+
* `[step-NN]` row. Over time, new emit branches get added to step
|
|
12
|
+
* files without back-porting an example into the column, and stale
|
|
13
|
+
* examples linger in the column after the underlying emit is removed
|
|
14
|
+
* or reworded.
|
|
15
|
+
* - This validator catches both directions:
|
|
16
|
+
* FORWARD : column fragment without any matching emit literal
|
|
17
|
+
* REVERSE : emit literal without any matching column fragment
|
|
18
|
+
*
|
|
19
|
+
* Matching rule (fuzzy keyword set, per AR2/AQ1 framing):
|
|
20
|
+
* - Tokenize the column fragment and the emit literal:
|
|
21
|
+
* lowercase, strip backticks/curly-braces/punctuation,
|
|
22
|
+
* split on whitespace.
|
|
23
|
+
* - Drop stop-words, pure numbers, single-character tokens.
|
|
24
|
+
* - Count overlap = |column_tokens ∩ emit_tokens|.
|
|
25
|
+
* - Match if overlap >= 2 (two distinct content tokens shared) OR
|
|
26
|
+
* if the column fragment (lowercased, whitespace-collapsed) appears
|
|
27
|
+
* as a substring of the lowercased+collapsed emit (handles very
|
|
28
|
+
* short fragments where the two-token threshold cannot be met).
|
|
29
|
+
*
|
|
30
|
+
* Scope (pipelines with a convention table):
|
|
31
|
+
* - src/xmc-skills/1-analysis/xiaoma-auto-requirements-pipeline/
|
|
32
|
+
* - src/xmc-skills/4-implementation/xiaoma-auto-story-pipeline/
|
|
33
|
+
*
|
|
34
|
+
* Output (per pipeline):
|
|
35
|
+
* [pipeline-name]
|
|
36
|
+
* Forward (column → emits): N/M fragments matched
|
|
37
|
+
* MISS: <column_fragment_text>
|
|
38
|
+
* Reverse (emits → column): N/M emits matched
|
|
39
|
+
* MISS: step-NN.md:LINE <emit_literal>
|
|
40
|
+
*
|
|
41
|
+
* Exit codes:
|
|
42
|
+
* 0 both directions fully matched across all pipelines
|
|
43
|
+
* 1 any miss in either direction
|
|
44
|
+
*/
|
|
45
|
+
|
|
46
|
+
const fs = require('node:fs');
|
|
47
|
+
const path = require('node:path');
|
|
48
|
+
|
|
49
|
+
const PROJECT_ROOT = path.resolve(__dirname, '..');
|
|
50
|
+
|
|
51
|
+
// Pipelines to validate. Each entry: workflow.md path + steps dir.
|
|
52
|
+
const PIPELINES = [
|
|
53
|
+
{
|
|
54
|
+
name: 'auto-requirements-pipeline',
|
|
55
|
+
workflowMd: 'src/xmc-skills/1-analysis/xiaoma-auto-requirements-pipeline/workflow.md',
|
|
56
|
+
stepsDir: 'src/xmc-skills/1-analysis/xiaoma-auto-requirements-pipeline/steps',
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
name: 'auto-story-pipeline',
|
|
60
|
+
workflowMd: 'src/xmc-skills/4-implementation/xiaoma-auto-story-pipeline/workflow.md',
|
|
61
|
+
stepsDir: 'src/xmc-skills/4-implementation/xiaoma-auto-story-pipeline/steps',
|
|
62
|
+
},
|
|
63
|
+
];
|
|
64
|
+
|
|
65
|
+
// Emit-literal regex. Permits inline qualifiers between `{run_warnings}` and
|
|
66
|
+
// the `:` that introduces the literal (e.g., step-09 writes `Append to
|
|
67
|
+
// \`{run_warnings}\` with canonical prefix tag: \`[step-09] ...\``). Mirrors
|
|
68
|
+
// validate-warnings-samples.js PRODUCER_RE shape but with `[^:`]*` slack
|
|
69
|
+
// between `\`` and `:` to tolerate the qualifier.
|
|
70
|
+
const PRODUCER_RE = /[Aa]ppend to `\{run_warnings\}`[^:`]*:\s*`(\[step-\d{2}\][^`]+)`/g;
|
|
71
|
+
|
|
72
|
+
// Stop-words removed from token sets before overlap counting.
|
|
73
|
+
const STOP_WORDS = new Set([
|
|
74
|
+
'a',
|
|
75
|
+
'an',
|
|
76
|
+
'the',
|
|
77
|
+
'of',
|
|
78
|
+
'for',
|
|
79
|
+
'to',
|
|
80
|
+
'in',
|
|
81
|
+
'on',
|
|
82
|
+
'by',
|
|
83
|
+
'at',
|
|
84
|
+
'from',
|
|
85
|
+
'with',
|
|
86
|
+
'and',
|
|
87
|
+
'or',
|
|
88
|
+
'is',
|
|
89
|
+
'was',
|
|
90
|
+
'may',
|
|
91
|
+
'can',
|
|
92
|
+
'must',
|
|
93
|
+
'will',
|
|
94
|
+
'be',
|
|
95
|
+
'been',
|
|
96
|
+
'vs',
|
|
97
|
+
'etc',
|
|
98
|
+
'eg',
|
|
99
|
+
'ie',
|
|
100
|
+
'not',
|
|
101
|
+
'no',
|
|
102
|
+
'used',
|
|
103
|
+
]);
|
|
104
|
+
|
|
105
|
+
function readFile(relPath) {
|
|
106
|
+
return fs.readFileSync(path.join(PROJECT_ROOT, relPath), 'utf8');
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
function readLines(relPath) {
|
|
110
|
+
return readFile(relPath).split('\n');
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
// Normalize text for token extraction:
|
|
114
|
+
// - lowercase
|
|
115
|
+
// - strip backtick characters (but KEEP contents — column fragments
|
|
116
|
+
// routinely wrap file/var names like `pipeline-status.json` in backticks
|
|
117
|
+
// while the emit literal writes them bare, so dropping code-span text
|
|
118
|
+
// would systematically suppress overlap on identifiers)
|
|
119
|
+
// - drop curly-brace placeholders entirely (e.g., {var})
|
|
120
|
+
// - drop [step-NN] tags so the tag identity never inflates overlap
|
|
121
|
+
// - replace non-alphanumeric (except space) with space
|
|
122
|
+
// - collapse whitespace, drop stop-words, single chars, pure numbers
|
|
123
|
+
function tokenize(text) {
|
|
124
|
+
let s = String(text).toLowerCase();
|
|
125
|
+
// Strip {var} placeholders BEFORE backticks so `{var}` doesn't leave `{var}`
|
|
126
|
+
// behind after backticks are removed.
|
|
127
|
+
s = s.replaceAll(/`\{[^}]*\}`/g, ' ');
|
|
128
|
+
s = s.replaceAll(/\{[^}]*\}/g, ' ');
|
|
129
|
+
// Remove backtick characters but keep enclosed text.
|
|
130
|
+
s = s.replaceAll('`', ' ');
|
|
131
|
+
// Strip [step-NN] tags so step-tag identity never inflates overlap.
|
|
132
|
+
s = s.replaceAll(/\[step-\d+\]/g, ' ');
|
|
133
|
+
// Replace anything not alphanumeric with space.
|
|
134
|
+
s = s.replaceAll(/[^\da-z]+/g, ' ');
|
|
135
|
+
const raw = s.split(/\s+/).filter(Boolean);
|
|
136
|
+
const tokens = new Set();
|
|
137
|
+
for (const t of raw) {
|
|
138
|
+
if (STOP_WORDS.has(t)) continue;
|
|
139
|
+
if (t.length < 2) continue;
|
|
140
|
+
if (/^\d+$/.test(t)) continue;
|
|
141
|
+
tokens.add(t);
|
|
142
|
+
}
|
|
143
|
+
return tokens;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
// Normalize text for substring fallback:
|
|
147
|
+
// - lowercase, strip backticks/curlies/brackets,
|
|
148
|
+
// - collapse whitespace.
|
|
149
|
+
function normalizeForSubstring(text) {
|
|
150
|
+
let s = String(text).toLowerCase();
|
|
151
|
+
s = s.replaceAll('`', '');
|
|
152
|
+
s = s.replaceAll(/\{[^}]*\}/g, ' ');
|
|
153
|
+
s = s.replaceAll(/\[step-\d+\]/g, ' ');
|
|
154
|
+
s = s.replaceAll(/\s+/g, ' ');
|
|
155
|
+
return s.trim();
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
function intersectionSize(setA, setB) {
|
|
159
|
+
let n = 0;
|
|
160
|
+
for (const x of setA) if (setB.has(x)) n++;
|
|
161
|
+
return n;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
function tokensMatch(fragment, emit) {
|
|
165
|
+
const fragTokens = tokenize(fragment);
|
|
166
|
+
const emitTokens = tokenize(emit);
|
|
167
|
+
if (intersectionSize(fragTokens, emitTokens) >= 2) return true;
|
|
168
|
+
const fragNorm = normalizeForSubstring(fragment);
|
|
169
|
+
const emitNorm = normalizeForSubstring(emit);
|
|
170
|
+
if (fragNorm.length > 0 && emitNorm.includes(fragNorm)) return true;
|
|
171
|
+
return false;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
// Parse the convention table from the workflow.md.
|
|
175
|
+
// Returns: Map<stepTag, { fragments: string[], rowLine: number }>
|
|
176
|
+
// `fragments` is the `;`-separated list extracted from the Trigger column,
|
|
177
|
+
// with each fragment trimmed of whitespace. An empty/none cell yields [].
|
|
178
|
+
function parseTriggerTable(workflowMdRelPath) {
|
|
179
|
+
const lines = readLines(workflowMdRelPath);
|
|
180
|
+
// Find the header row that contains a "Trigger" column.
|
|
181
|
+
let headerIdx = -1;
|
|
182
|
+
let headerCells = [];
|
|
183
|
+
for (let i = 0; i < lines.length; i++) {
|
|
184
|
+
const line = lines[i];
|
|
185
|
+
if (!line.includes('|')) continue;
|
|
186
|
+
// Must look like a markdown table header (next line is a separator).
|
|
187
|
+
const next = lines[i + 1] || '';
|
|
188
|
+
if (!/^\s*\|?\s*:?-{2,}/.test(next)) continue;
|
|
189
|
+
const cells = splitTableRow(line);
|
|
190
|
+
const hasTrigger = cells.some((c) => /^trigger(s| examples)?$/i.test(c.trim()));
|
|
191
|
+
const hasPrefix = cells.some((c) => /prefix/i.test(c) || /tag/i.test(c));
|
|
192
|
+
if (hasTrigger && hasPrefix) {
|
|
193
|
+
headerIdx = i;
|
|
194
|
+
headerCells = cells.map((c) => c.trim());
|
|
195
|
+
break;
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
if (headerIdx === -1) return null;
|
|
199
|
+
|
|
200
|
+
// Column indices: prefix-tag column and trigger column.
|
|
201
|
+
const prefixCol = headerCells.findIndex((c) => /prefix|tag/i.test(c));
|
|
202
|
+
const triggerCol = headerCells.findIndex((c) => /^trigger(s| examples)?$/i.test(c));
|
|
203
|
+
if (prefixCol === -1 || triggerCol === -1) return null;
|
|
204
|
+
|
|
205
|
+
const result = new Map();
|
|
206
|
+
// Skip separator row.
|
|
207
|
+
for (let i = headerIdx + 2; i < lines.length; i++) {
|
|
208
|
+
const line = lines[i];
|
|
209
|
+
if (!line.includes('|')) break;
|
|
210
|
+
if (/^\s*$/.test(line)) break;
|
|
211
|
+
const cells = splitTableRow(line);
|
|
212
|
+
if (cells.length < Math.max(prefixCol, triggerCol) + 1) continue;
|
|
213
|
+
const prefixCell = cells[prefixCol].trim();
|
|
214
|
+
const triggerCell = cells[triggerCol].trim();
|
|
215
|
+
// Prefix cell looks like `` `[step-NN]` ``.
|
|
216
|
+
const tagMatch = prefixCell.match(/\[step-\d{2}\]/);
|
|
217
|
+
if (!tagMatch) continue;
|
|
218
|
+
const stepTag = tagMatch[0];
|
|
219
|
+
const fragments = splitTriggerFragments(triggerCell);
|
|
220
|
+
result.set(stepTag, { fragments, rowLine: i + 1 });
|
|
221
|
+
}
|
|
222
|
+
return result;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
function splitTableRow(line) {
|
|
226
|
+
// Strip leading/trailing pipes, split on `|`. Allows escaped `\|` to pass
|
|
227
|
+
// through as a literal pipe.
|
|
228
|
+
let s = line.trim();
|
|
229
|
+
if (s.startsWith('|')) s = s.slice(1);
|
|
230
|
+
if (s.endsWith('|')) s = s.slice(0, -1);
|
|
231
|
+
// Split on `|` not preceded by a backslash.
|
|
232
|
+
const cells = [];
|
|
233
|
+
let buf = '';
|
|
234
|
+
for (let i = 0; i < s.length; i++) {
|
|
235
|
+
const ch = s[i];
|
|
236
|
+
if (ch === '\\' && s[i + 1] === '|') {
|
|
237
|
+
buf += '|';
|
|
238
|
+
i++;
|
|
239
|
+
continue;
|
|
240
|
+
}
|
|
241
|
+
if (ch === '|') {
|
|
242
|
+
cells.push(buf);
|
|
243
|
+
buf = '';
|
|
244
|
+
continue;
|
|
245
|
+
}
|
|
246
|
+
buf += ch;
|
|
247
|
+
}
|
|
248
|
+
cells.push(buf);
|
|
249
|
+
return cells;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
function splitTriggerFragments(cellText) {
|
|
253
|
+
const t = cellText.trim();
|
|
254
|
+
if (t === '' || t === '(none)' || t === '—') return [];
|
|
255
|
+
// Split on `;` and trim each.
|
|
256
|
+
return t
|
|
257
|
+
.split(';')
|
|
258
|
+
.map((s) => s.trim())
|
|
259
|
+
.filter((s) => s.length > 0);
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
// Collect emit literals per step tag.
|
|
263
|
+
// Returns: Map<stepTag, Array<{ literal, file, lineNumber }>>
|
|
264
|
+
function collectEmits(stepsDirRelPath) {
|
|
265
|
+
const dirAbs = path.join(PROJECT_ROOT, stepsDirRelPath);
|
|
266
|
+
const files = fs
|
|
267
|
+
.readdirSync(dirAbs)
|
|
268
|
+
.filter((f) => f.endsWith('.md') && !f.endsWith('.bak'))
|
|
269
|
+
.sort();
|
|
270
|
+
const map = new Map();
|
|
271
|
+
for (const f of files) {
|
|
272
|
+
const relPath = path.join(stepsDirRelPath, f);
|
|
273
|
+
const lines = readLines(relPath);
|
|
274
|
+
for (const [idx, line] of lines.entries()) {
|
|
275
|
+
const re = new RegExp(PRODUCER_RE.source, 'g');
|
|
276
|
+
let m;
|
|
277
|
+
while ((m = re.exec(line)) !== null) {
|
|
278
|
+
const literal = m[1].trim();
|
|
279
|
+
const tagMatch = literal.match(/^\[step-\d{2}\]/);
|
|
280
|
+
if (!tagMatch) continue;
|
|
281
|
+
const tag = tagMatch[0];
|
|
282
|
+
if (!map.has(tag)) map.set(tag, []);
|
|
283
|
+
map.get(tag).push({
|
|
284
|
+
literal,
|
|
285
|
+
file: f,
|
|
286
|
+
lineNumber: idx + 1,
|
|
287
|
+
});
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
return map;
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
function validatePipeline(pipeline) {
|
|
295
|
+
const table = parseTriggerTable(pipeline.workflowMd);
|
|
296
|
+
if (!table) {
|
|
297
|
+
return {
|
|
298
|
+
name: pipeline.name,
|
|
299
|
+
skipped: true,
|
|
300
|
+
reason: 'No "Trigger" convention table found in workflow.md',
|
|
301
|
+
};
|
|
302
|
+
}
|
|
303
|
+
const emits = collectEmits(pipeline.stepsDir);
|
|
304
|
+
|
|
305
|
+
const forward = []; // per-fragment matches
|
|
306
|
+
const reverse = []; // per-emit matches
|
|
307
|
+
|
|
308
|
+
// Iterate over step tags present in either source so that "column lists
|
|
309
|
+
// a step tag with no emits" and "emits exist for a tag the column omits"
|
|
310
|
+
// are both surfaced.
|
|
311
|
+
const allTags = new Set([...table.keys(), ...emits.keys()]);
|
|
312
|
+
for (const tag of [...allTags].sort()) {
|
|
313
|
+
const fragments = (table.get(tag) || { fragments: [] }).fragments;
|
|
314
|
+
const tagEmits = emits.get(tag) || [];
|
|
315
|
+
|
|
316
|
+
// FORWARD: each column fragment should match at least one emit literal.
|
|
317
|
+
for (const frag of fragments) {
|
|
318
|
+
const matched = tagEmits.some((e) => tokensMatch(frag, e.literal));
|
|
319
|
+
forward.push({ tag, fragment: frag, matched });
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
// REVERSE: each emit literal should match at least one column fragment.
|
|
323
|
+
for (const e of tagEmits) {
|
|
324
|
+
const matched = fragments.some((frag) => tokensMatch(frag, e.literal));
|
|
325
|
+
reverse.push({ tag, emit: e, matched });
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
return { name: pipeline.name, table, emits, forward, reverse };
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
function main() {
|
|
333
|
+
let anyMiss = false;
|
|
334
|
+
console.log('');
|
|
335
|
+
console.log(`Validating trigger column ↔ emits (bidirectional) in: ${PROJECT_ROOT}`);
|
|
336
|
+
console.log('');
|
|
337
|
+
|
|
338
|
+
for (const pipeline of PIPELINES) {
|
|
339
|
+
const result = validatePipeline(pipeline);
|
|
340
|
+
console.log(`[${result.name}]`);
|
|
341
|
+
if (result.skipped) {
|
|
342
|
+
console.log(` Skipped: ${result.reason}`);
|
|
343
|
+
console.log('');
|
|
344
|
+
continue;
|
|
345
|
+
}
|
|
346
|
+
const fwdTotal = result.forward.length;
|
|
347
|
+
const fwdMatched = result.forward.filter((f) => f.matched).length;
|
|
348
|
+
const revTotal = result.reverse.length;
|
|
349
|
+
const revMatched = result.reverse.filter((r) => r.matched).length;
|
|
350
|
+
|
|
351
|
+
console.log(` Forward (column → emits): ${fwdMatched}/${fwdTotal} fragments matched`);
|
|
352
|
+
for (const f of result.forward) {
|
|
353
|
+
if (!f.matched) {
|
|
354
|
+
anyMiss = true;
|
|
355
|
+
console.log(` MISS: ${f.tag} ${f.fragment}`);
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
console.log(` Reverse (emits → column): ${revMatched}/${revTotal} emits matched`);
|
|
359
|
+
for (const r of result.reverse) {
|
|
360
|
+
if (!r.matched) {
|
|
361
|
+
anyMiss = true;
|
|
362
|
+
console.log(` MISS: ${r.emit.file}:${r.emit.lineNumber} ${r.emit.literal}`);
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
console.log('');
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
if (anyMiss) {
|
|
369
|
+
console.log('FAIL: bidirectional trigger↔emit audit reported one or more misses.');
|
|
370
|
+
process.exit(1);
|
|
371
|
+
}
|
|
372
|
+
console.log('All trigger fragments and emit literals are bidirectionally covered.');
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
main();
|
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Warnings Sample Validator (M-series — closes proposal (j) in pipeline-optimization-report.md;
|
|
3
|
+
* extended in N-series — closes the JSON-array sample footnote from
|
|
4
|
+
* run #11 §5.-8.)
|
|
5
|
+
*
|
|
6
|
+
* Scans producer-side `Append to {run_warnings}: [step-NN] ...` literals across the
|
|
7
|
+
* auto-story-pipeline and auto-requirements-pipeline step files, then verifies that
|
|
8
|
+
* the sample STORY_RESULT / pipeline-status warnings documented in
|
|
9
|
+
* src/xmc-skills/4-implementation/xiaoma-auto-story-pipeline-batch/workflow.md
|
|
10
|
+
* (the K1 "Concrete examples" YAML block introduced in run #9)
|
|
11
|
+
* src/xmc-skills/1-analysis/xiaoma-auto-requirements-pipeline/steps/step-08-finalize.md
|
|
12
|
+
* (the L6 "Example concrete value" JSON-array block introduced in run #10,
|
|
13
|
+
* first covered by the validator in run #12)
|
|
14
|
+
* still correspond to actual producer literals after variable substitution.
|
|
15
|
+
*
|
|
16
|
+
* Why this exists:
|
|
17
|
+
* - K-series introduced concrete sample STORY_RESULT outputs to make the
|
|
18
|
+
* prefix-tagged warnings contract testable. The samples are doc fixtures —
|
|
19
|
+
* when the producer-side literals drift (e.g., wording change in step-NN.md),
|
|
20
|
+
* the samples silently fall behind. This script catches that drift.
|
|
21
|
+
* - N-series (run #12) extends sample detection from YAML-list-only to also cover
|
|
22
|
+
* JSON-array form (`"[step-NN] ...",` lines inside ```json blocks). Both K1
|
|
23
|
+
* (YAML) and L6 (JSON) samples are now gated by the same producer index.
|
|
24
|
+
*
|
|
25
|
+
* Algorithm:
|
|
26
|
+
* 1. Scan all step files for ``Append to `{run_warnings}`: `[step-NN] ...` `` lines.
|
|
27
|
+
* Extract the prefix-tagged template (with `{variable}` placeholders).
|
|
28
|
+
* 2. Compile each template into a regex by replacing `{var}` with `.+?`.
|
|
29
|
+
* 3. Scan known sample locations for warning strings of the form `[step-NN] ...`
|
|
30
|
+
* in either YAML-list form (`- "[step-NN] ..."`) or JSON-array form
|
|
31
|
+
* (`"[step-NN] ...",`). A sample matching both forms only counts once
|
|
32
|
+
* (YAML form wins; JSON form is a fallback for non-list-prefixed lines).
|
|
33
|
+
* 4. For each sample, find the template with matching `[step-NN]` prefix whose
|
|
34
|
+
* regex matches the sample after variable substitution. If none matches,
|
|
35
|
+
* report a drift.
|
|
36
|
+
*
|
|
37
|
+
* Usage:
|
|
38
|
+
* node tools/validate-warnings-samples.js # warn-only (exit 0)
|
|
39
|
+
* node tools/validate-warnings-samples.js --strict # fail (exit 1) on any drift
|
|
40
|
+
* node tools/validate-warnings-samples.js --verbose # print every check
|
|
41
|
+
*/
|
|
42
|
+
|
|
43
|
+
const fs = require('node:fs');
|
|
44
|
+
const path = require('node:path');
|
|
45
|
+
|
|
46
|
+
const PROJECT_ROOT = path.resolve(__dirname, '..');
|
|
47
|
+
const VERBOSE = process.argv.includes('--verbose');
|
|
48
|
+
const STRICT = process.argv.includes('--strict');
|
|
49
|
+
|
|
50
|
+
// Step file directories that emit `{run_warnings}` appends.
|
|
51
|
+
const PRODUCER_DIRS = [
|
|
52
|
+
'src/xmc-skills/1-analysis/xiaoma-auto-requirements-pipeline/steps',
|
|
53
|
+
'src/xmc-skills/4-implementation/xiaoma-auto-story-pipeline/steps',
|
|
54
|
+
];
|
|
55
|
+
|
|
56
|
+
// Doc files that contain sample STORY_RESULT / pipeline-status JSON warnings to validate.
|
|
57
|
+
const SAMPLE_FILES = [
|
|
58
|
+
'src/xmc-skills/4-implementation/xiaoma-auto-story-pipeline-batch/workflow.md',
|
|
59
|
+
'src/xmc-skills/1-analysis/xiaoma-auto-requirements-pipeline/steps/step-08-finalize.md',
|
|
60
|
+
];
|
|
61
|
+
|
|
62
|
+
// Matches a producer append line like:
|
|
63
|
+
// - Append to `{run_warnings}`: `[step-05] Unresolved code-review findings for ...`
|
|
64
|
+
// Case-insensitive on the verb because some inline prose uses lowercase "append to ...".
|
|
65
|
+
//
|
|
66
|
+
// AT3 (run #44) — closes deferred AS4: relax to tolerate an inline qualifier between
|
|
67
|
+
// `{run_warnings}` and the `:` introducing the literal (e.g., step-09-finalize.md writes
|
|
68
|
+
// `Append to \`{run_warnings}\` with canonical prefix tag: \`[step-09] ...\``). The slack
|
|
69
|
+
// `[^:`]*` is identical to the sibling validator
|
|
70
|
+
// `tools/validate-trigger-column-vs-emits.js` PRODUCER_RE (run #43 AS1), so both
|
|
71
|
+
// validators now parse producer literals with the same lexicon.
|
|
72
|
+
const PRODUCER_RE = /[Aa]ppend to `\{run_warnings\}`[^:`]*:\s*`(\[step-\d{2}\][^`]+)`/g;
|
|
73
|
+
|
|
74
|
+
// Matches a sample warning string of the form `[step-NN] ...` inside YAML list items
|
|
75
|
+
// like ` - "[step-05] CRITICAL finding for 1.3 unresolvable inline — routed to step-07 ..."`.
|
|
76
|
+
// We only match lines that begin a YAML list item ("- ") to keep the scan precise and
|
|
77
|
+
// avoid false positives from prose mentions like `e.g., [step-05] CRITICAL ...`.
|
|
78
|
+
const SAMPLE_RE = /^\s*-\s+["'](\[step-\d{2}\][^"']+)["']/;
|
|
79
|
+
|
|
80
|
+
// N-series: matches a sample warning string of the form `[step-NN] ...` inside JSON-array
|
|
81
|
+
// elements like ` "[step-01] No src/ directory ...",` or the trailing entry without a
|
|
82
|
+
// comma ` "[step-08] Implementation-readiness GAPS: ..."`. The line must start with
|
|
83
|
+
// optional whitespace + a double-quote + `[step-NN]` (so prose like `"warnings":` or
|
|
84
|
+
// `"warnings": "{run_warnings}"` is correctly ignored — those lines either don't open with
|
|
85
|
+
// a quote-then-[step-NN] or carry a JSON key prefix).
|
|
86
|
+
//
|
|
87
|
+
// We anchor on `^\s*"` + capture up to the closing quote, then require either a trailing
|
|
88
|
+
// comma+EOL or just EOL (no other characters). This rejects inline JSON values where the
|
|
89
|
+
// string is embedded in a larger structure (e.g., `{"warnings": "[step-NN] ..."}` on a
|
|
90
|
+
// single line), which would be ambiguous as a sample anyway.
|
|
91
|
+
const JSON_SAMPLE_RE = /^\s*"(\[step-\d{2}\][^"]+)"\s*,?\s*$/;
|
|
92
|
+
|
|
93
|
+
function listMdFiles(dirRelative) {
|
|
94
|
+
const dirAbs = path.join(PROJECT_ROOT, dirRelative);
|
|
95
|
+
if (!fs.existsSync(dirAbs)) return [];
|
|
96
|
+
return fs
|
|
97
|
+
.readdirSync(dirAbs)
|
|
98
|
+
.filter((f) => f.endsWith('.md'))
|
|
99
|
+
.map((f) => path.join(dirRelative, f));
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
function readFileLines(relPath) {
|
|
103
|
+
const abs = path.join(PROJECT_ROOT, relPath);
|
|
104
|
+
return fs.readFileSync(abs, 'utf8').split('\n');
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
function escapeRegex(text) {
|
|
108
|
+
return text.replaceAll(/[\\^$.*+?()[\]{}|]/g, String.raw`\$&`);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
// Convert a producer template (with `{var}` placeholders) into a regex source
|
|
112
|
+
// that matches concrete values in samples. `{anything}` becomes `.+?` (non-greedy).
|
|
113
|
+
function templateToRegexSource(template) {
|
|
114
|
+
// Split on {variable} placeholders, escape literal text between them, join with .+?
|
|
115
|
+
const parts = template.split(/\{[a-zA-Z_][a-zA-Z0-9_]*\}/);
|
|
116
|
+
return parts.map(escapeRegex).join('.+?');
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
function collectProducers() {
|
|
120
|
+
// prefix tag -> array of { template, regex, file, lineNumber }
|
|
121
|
+
const producers = new Map();
|
|
122
|
+
const allFiles = PRODUCER_DIRS.flatMap(listMdFiles);
|
|
123
|
+
|
|
124
|
+
for (const relPath of allFiles) {
|
|
125
|
+
const lines = readFileLines(relPath);
|
|
126
|
+
for (const [idx, line] of lines.entries()) {
|
|
127
|
+
let m;
|
|
128
|
+
// Use a fresh global regex per line to avoid lastIndex state leak across files.
|
|
129
|
+
const re = new RegExp(PRODUCER_RE.source, 'g');
|
|
130
|
+
while ((m = re.exec(line)) !== null) {
|
|
131
|
+
const template = m[1].trim();
|
|
132
|
+
const prefixMatch = template.match(/^\[step-\d{2}\]/);
|
|
133
|
+
if (!prefixMatch) continue;
|
|
134
|
+
const prefix = prefixMatch[0];
|
|
135
|
+
const regex = new RegExp('^' + templateToRegexSource(template) + '$');
|
|
136
|
+
if (!producers.has(prefix)) producers.set(prefix, []);
|
|
137
|
+
producers.get(prefix).push({
|
|
138
|
+
template,
|
|
139
|
+
regex,
|
|
140
|
+
file: relPath,
|
|
141
|
+
lineNumber: idx + 1,
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
return producers;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
function collectSamples() {
|
|
150
|
+
// [{ sample, file, lineNumber, form }] where form is "yaml" or "json"
|
|
151
|
+
const samples = [];
|
|
152
|
+
for (const relPath of SAMPLE_FILES) {
|
|
153
|
+
const lines = readFileLines(relPath);
|
|
154
|
+
for (const [idx, line] of lines.entries()) {
|
|
155
|
+
// Try YAML-list form first (M-series — original M1 scope).
|
|
156
|
+
const yamlMatch = line.match(SAMPLE_RE);
|
|
157
|
+
if (yamlMatch) {
|
|
158
|
+
samples.push({
|
|
159
|
+
sample: yamlMatch[1].trim(),
|
|
160
|
+
file: relPath,
|
|
161
|
+
lineNumber: idx + 1,
|
|
162
|
+
form: 'yaml',
|
|
163
|
+
});
|
|
164
|
+
continue;
|
|
165
|
+
}
|
|
166
|
+
// Fall back to JSON-array form (N-series — run #12 extension).
|
|
167
|
+
// A line cannot match both — JSON form requires the line to start with a quote,
|
|
168
|
+
// YAML form requires a leading `- `; they are mutually exclusive.
|
|
169
|
+
const jsonMatch = line.match(JSON_SAMPLE_RE);
|
|
170
|
+
if (jsonMatch) {
|
|
171
|
+
samples.push({
|
|
172
|
+
sample: jsonMatch[1].trim(),
|
|
173
|
+
file: relPath,
|
|
174
|
+
lineNumber: idx + 1,
|
|
175
|
+
form: 'json',
|
|
176
|
+
});
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
return samples;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
function validate() {
|
|
184
|
+
const producers = collectProducers();
|
|
185
|
+
const samples = collectSamples();
|
|
186
|
+
|
|
187
|
+
const drifts = [];
|
|
188
|
+
let okCount = 0;
|
|
189
|
+
const formCounts = { yaml: 0, json: 0 };
|
|
190
|
+
|
|
191
|
+
for (const { sample, file, lineNumber, form } of samples) {
|
|
192
|
+
formCounts[form] = (formCounts[form] || 0) + 1;
|
|
193
|
+
const prefixMatch = sample.match(/^\[step-\d{2}\]/);
|
|
194
|
+
if (!prefixMatch) {
|
|
195
|
+
drifts.push({
|
|
196
|
+
kind: 'malformed-prefix',
|
|
197
|
+
sample,
|
|
198
|
+
file,
|
|
199
|
+
lineNumber,
|
|
200
|
+
detail: 'Sample warning does not start with a [step-NN] prefix tag.',
|
|
201
|
+
});
|
|
202
|
+
continue;
|
|
203
|
+
}
|
|
204
|
+
const prefix = prefixMatch[0];
|
|
205
|
+
const candidates = producers.get(prefix) || [];
|
|
206
|
+
|
|
207
|
+
if (candidates.length === 0) {
|
|
208
|
+
drifts.push({
|
|
209
|
+
kind: 'no-producer',
|
|
210
|
+
sample,
|
|
211
|
+
file,
|
|
212
|
+
lineNumber,
|
|
213
|
+
detail: `No producer site found for prefix ${prefix}. Either the prefix is wrong in the sample or the producer was removed.`,
|
|
214
|
+
});
|
|
215
|
+
continue;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
const matched = candidates.find((c) => c.regex.test(sample));
|
|
219
|
+
if (matched) {
|
|
220
|
+
okCount++;
|
|
221
|
+
if (VERBOSE) {
|
|
222
|
+
console.log(`OK ${file}:${lineNumber} (${form}) matches ${matched.file}:${matched.lineNumber}`);
|
|
223
|
+
}
|
|
224
|
+
} else {
|
|
225
|
+
drifts.push({
|
|
226
|
+
kind: 'template-drift',
|
|
227
|
+
sample,
|
|
228
|
+
file,
|
|
229
|
+
lineNumber,
|
|
230
|
+
detail: `Sample does not match any of the ${candidates.length} producer template(s) for ${prefix}. Producer literals:\n${candidates.map((c) => ` - ${c.file}:${c.lineNumber}: ${c.template}`).join('\n')}`,
|
|
231
|
+
});
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
console.log('');
|
|
236
|
+
console.log(`Validating run_warnings sample fidelity in: ${PROJECT_ROOT}`);
|
|
237
|
+
console.log(`Mode: ${STRICT ? 'STRICT (exit 1 on drift)' : 'WARN (exit 0)'}`);
|
|
238
|
+
console.log('');
|
|
239
|
+
console.log(
|
|
240
|
+
`Producer templates indexed: ${[...producers.values()].reduce((n, arr) => n + arr.length, 0)} across ${producers.size} prefix tag(s)`,
|
|
241
|
+
);
|
|
242
|
+
console.log(`Sample warnings checked: ${samples.length} (yaml: ${formCounts.yaml || 0}, json: ${formCounts.json || 0})`);
|
|
243
|
+
console.log(`Matched: ${okCount}`);
|
|
244
|
+
console.log(`Drifts found: ${drifts.length}`);
|
|
245
|
+
console.log('');
|
|
246
|
+
|
|
247
|
+
if (drifts.length > 0) {
|
|
248
|
+
console.log('Drift details:');
|
|
249
|
+
for (const d of drifts) {
|
|
250
|
+
console.log(` [${d.kind}] ${d.file}:${d.lineNumber}`);
|
|
251
|
+
console.log(` Sample : ${d.sample}`);
|
|
252
|
+
console.log(` Reason : ${d.detail}`);
|
|
253
|
+
console.log('');
|
|
254
|
+
}
|
|
255
|
+
if (STRICT) process.exit(1);
|
|
256
|
+
} else {
|
|
257
|
+
console.log('All sample warnings trace back to a producer literal.');
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
validate();
|
|
Binary file
|
|
@@ -15,7 +15,7 @@ const isNpxExecution = __dirname.includes('_npx') || __dirname.includes('.npm');
|
|
|
15
15
|
if (isNpxExecution) {
|
|
16
16
|
// Running via npx - spawn child process to preserve user's working directory
|
|
17
17
|
const args = process.argv.slice(2);
|
|
18
|
-
const xiaomaCliPath = path.join(__dirname, '
|
|
18
|
+
const xiaomaCliPath = path.join(__dirname, 'installer', 'xiaoma-cli.js');
|
|
19
19
|
|
|
20
20
|
if (!fs.existsSync(xiaomaCliPath)) {
|
|
21
21
|
console.error('Error: Could not find xiaoma-cli.js at', xiaomaCliPath);
|
|
@@ -34,5 +34,5 @@ if (isNpxExecution) {
|
|
|
34
34
|
}
|
|
35
35
|
} else {
|
|
36
36
|
// Local execution - use require
|
|
37
|
-
require('./
|
|
37
|
+
require('./installer/xiaoma-cli.js');
|
|
38
38
|
}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
[ 1116ms] [LOG] %c %s color: yellow; background-color: black; [instance: default] appid: 20006317, userInfo:{"user_unique_id":"7639261564058707976","web_id":"7639261564058707976"} @ https://lf3-data.volccdn.com/obj/data-static/log-sdk/collect/5.0/collect-rangers-v5.2.11.js:0
|
|
2
|
-
[ 1116ms] [LOG] %c %s color: yellow; background-color: black; [instance: default] appid: 20006317, sdk is ready, version is 5.2.11_tob, you can report now !!! @ https://lf3-data.volccdn.com/obj/data-static/log-sdk/collect/5.0/collect-rangers-v5.2.11.js:0
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
- img [ref=e7] [cursor=pointer]
|