@zeyue0329/xiaoma-cli 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (123) hide show
  1. package/.releaserc.json +18 -0
  2. package/.vscode/settings.json +44 -0
  3. package/CONTRIBUTING.md +209 -0
  4. package/LICENSE +21 -0
  5. package/QUICK-START.md +173 -0
  6. package/README.md +532 -0
  7. package/common/tasks/create-doc.md +101 -0
  8. package/common/tasks/execute-checklist.md +93 -0
  9. package/common/utils/bmad-doc-template.md +325 -0
  10. package/common/utils/workflow-management.md +69 -0
  11. package/dist/agents/analyst.txt +2882 -0
  12. package/dist/agents/architect.txt +3543 -0
  13. package/dist/agents/dev.txt +428 -0
  14. package/dist/agents/pm.txt +2229 -0
  15. package/dist/agents/po.txt +1364 -0
  16. package/dist/agents/qa.txt +386 -0
  17. package/dist/agents/sm.txt +668 -0
  18. package/dist/agents/ux-expert.txt +701 -0
  19. package/dist/agents/xiaoma-master.txt +8756 -0
  20. package/dist/agents/xiaoma-orchestrator.txt +1490 -0
  21. package/dist/teams/team-all.txt +11062 -0
  22. package/dist/teams/team-fullstack.txt +10392 -0
  23. package/dist/teams/team-ide-minimal.txt +3507 -0
  24. package/dist/teams/team-no-ui.txt +8951 -0
  25. package/docs/GUIDING-PRINCIPLES.md +91 -0
  26. package/docs/core-architecture.md +219 -0
  27. package/docs/expansion-packs.md +280 -0
  28. package/docs/versioning-and-releases.md +77 -0
  29. package/docs/versions.md +48 -0
  30. package/expansion-packs/README.md +3 -0
  31. package/package.json +80 -0
  32. package/tools/bmad-npx-wrapper.js +39 -0
  33. package/tools/builders/web-builder.js +681 -0
  34. package/tools/bump-all-versions.js +106 -0
  35. package/tools/bump-expansion-version.js +83 -0
  36. package/tools/cli.js +152 -0
  37. package/tools/flattener/main.js +570 -0
  38. package/tools/installer/README.md +8 -0
  39. package/tools/installer/bin/xiaoma.js +326 -0
  40. package/tools/installer/config/ide-agent-config.yaml +58 -0
  41. package/tools/installer/config/install.config.yaml +113 -0
  42. package/tools/installer/lib/config-loader.js +253 -0
  43. package/tools/installer/lib/file-manager.js +411 -0
  44. package/tools/installer/lib/ide-base-setup.js +227 -0
  45. package/tools/installer/lib/ide-setup.js +1302 -0
  46. package/tools/installer/lib/installer.js +1772 -0
  47. package/tools/installer/lib/memory-profiler.js +224 -0
  48. package/tools/installer/lib/module-manager.js +110 -0
  49. package/tools/installer/lib/resource-locator.js +310 -0
  50. package/tools/installer/package-lock.json +906 -0
  51. package/tools/installer/package.json +43 -0
  52. package/tools/lib/dependency-resolver.js +179 -0
  53. package/tools/lib/yaml-utils.js +29 -0
  54. package/tools/md-assets/web-agent-startup-instructions.md +39 -0
  55. package/tools/semantic-release-sync-installer.js +30 -0
  56. package/tools/sync-installer-version.js +34 -0
  57. package/tools/update-expansion-version.js +54 -0
  58. package/tools/upgraders/v3-to-v4-upgrader.js +763 -0
  59. package/tools/version-bump.js +79 -0
  60. package/tools/xiaoma-npx-wrapper.js +39 -0
  61. package/tools/yaml-format.js +240 -0
  62. package/xiaoma-core/agent-teams/team-all.yaml +14 -0
  63. package/xiaoma-core/agent-teams/team-fullstack.yaml +18 -0
  64. package/xiaoma-core/agent-teams/team-ide-minimal.yaml +10 -0
  65. package/xiaoma-core/agent-teams/team-no-ui.yaml +13 -0
  66. package/xiaoma-core/agents/analyst.md +81 -0
  67. package/xiaoma-core/agents/architect.md +84 -0
  68. package/xiaoma-core/agents/dev.md +76 -0
  69. package/xiaoma-core/agents/pm.md +81 -0
  70. package/xiaoma-core/agents/po.md +76 -0
  71. package/xiaoma-core/agents/qa.md +69 -0
  72. package/xiaoma-core/agents/sm.md +62 -0
  73. package/xiaoma-core/agents/ux-expert.md +66 -0
  74. package/xiaoma-core/agents/xiaoma-master.md +108 -0
  75. package/xiaoma-core/agents/xiaoma-orchestrator.md +150 -0
  76. package/xiaoma-core/bmad-core/user-guide.md +0 -0
  77. package/xiaoma-core/checklists/architect-checklist.md +443 -0
  78. package/xiaoma-core/checklists/change-checklist.md +182 -0
  79. package/xiaoma-core/checklists/pm-checklist.md +375 -0
  80. package/xiaoma-core/checklists/po-master-checklist.md +441 -0
  81. package/xiaoma-core/checklists/story-dod-checklist.md +101 -0
  82. package/xiaoma-core/checklists/story-draft-checklist.md +156 -0
  83. package/xiaoma-core/core-config.yaml +20 -0
  84. package/xiaoma-core/data/brainstorming-techniques.md +36 -0
  85. package/xiaoma-core/data/elicitation-methods.md +134 -0
  86. package/xiaoma-core/data/technical-preferences.md +3 -0
  87. package/xiaoma-core/data/xiaoma-kb.md +803 -0
  88. package/xiaoma-core/enhanced-ide-development-workflow.md +43 -0
  89. package/xiaoma-core/tasks/advanced-elicitation.md +117 -0
  90. package/xiaoma-core/tasks/brownfield-create-epic.md +160 -0
  91. package/xiaoma-core/tasks/brownfield-create-story.md +147 -0
  92. package/xiaoma-core/tasks/correct-course.md +70 -0
  93. package/xiaoma-core/tasks/create-brownfield-story.md +304 -0
  94. package/xiaoma-core/tasks/create-deep-research-prompt.md +289 -0
  95. package/xiaoma-core/tasks/create-next-story.md +112 -0
  96. package/xiaoma-core/tasks/document-project.md +341 -0
  97. package/xiaoma-core/tasks/facilitate-brainstorming-session.md +136 -0
  98. package/xiaoma-core/tasks/generate-ai-frontend-prompt.md +51 -0
  99. package/xiaoma-core/tasks/index-docs.md +179 -0
  100. package/xiaoma-core/tasks/kb-mode-interaction.md +75 -0
  101. package/xiaoma-core/tasks/review-story.md +145 -0
  102. package/xiaoma-core/tasks/shard-doc.md +187 -0
  103. package/xiaoma-core/tasks/validate-next-story.md +134 -0
  104. package/xiaoma-core/templates/architecture-tmpl.yaml +650 -0
  105. package/xiaoma-core/templates/brainstorming-output-tmpl.yaml +156 -0
  106. package/xiaoma-core/templates/brownfield-architecture-tmpl.yaml +476 -0
  107. package/xiaoma-core/templates/brownfield-prd-tmpl.yaml +280 -0
  108. package/xiaoma-core/templates/competitor-analysis-tmpl.yaml +293 -0
  109. package/xiaoma-core/templates/front-end-architecture-tmpl.yaml +206 -0
  110. package/xiaoma-core/templates/front-end-spec-tmpl.yaml +349 -0
  111. package/xiaoma-core/templates/fullstack-architecture-tmpl.yaml +805 -0
  112. package/xiaoma-core/templates/market-research-tmpl.yaml +252 -0
  113. package/xiaoma-core/templates/prd-tmpl.yaml +202 -0
  114. package/xiaoma-core/templates/project-brief-tmpl.yaml +221 -0
  115. package/xiaoma-core/templates/story-tmpl.yaml +137 -0
  116. package/xiaoma-core/user-guide.md +251 -0
  117. package/xiaoma-core/workflows/brownfield-fullstack.yaml +297 -0
  118. package/xiaoma-core/workflows/brownfield-service.yaml +187 -0
  119. package/xiaoma-core/workflows/brownfield-ui.yaml +197 -0
  120. package/xiaoma-core/workflows/greenfield-fullstack.yaml +240 -0
  121. package/xiaoma-core/workflows/greenfield-service.yaml +206 -0
  122. package/xiaoma-core/workflows/greenfield-ui.yaml +235 -0
  123. package/xiaoma-core/working-in-the-brownfield.md +364 -0
@@ -0,0 +1,20 @@
1
+ markdownExploder: true
2
+ prd:
3
+ prdFile: docs/prd.md
4
+ prdVersion: v4
5
+ prdSharded: true
6
+ prdShardedLocation: docs/prd
7
+ epicFilePattern: epic-{n}*.md
8
+ architecture:
9
+ architectureFile: docs/architecture.md
10
+ architectureVersion: v4
11
+ architectureSharded: true
12
+ architectureShardedLocation: docs/architecture
13
+ customTechnicalDocuments: null
14
+ devLoadAlwaysFiles:
15
+ - docs/architecture/coding-standards.md
16
+ - docs/architecture/tech-stack.md
17
+ - docs/architecture/source-tree.md
18
+ devDebugLog: .ai/debug-log.md
19
+ devStoryLocation: docs/stories
20
+ slashPrefix: XiaoMa
@@ -0,0 +1,36 @@
1
+ # Brainstorming Techniques Data
2
+
3
+ ## Creative Expansion
4
+
5
+ 1. **What If Scenarios**: Ask one provocative question, get their response, then ask another
6
+ 2. **Analogical Thinking**: Give one example analogy, ask them to find 2-3 more
7
+ 3. **Reversal/Inversion**: Pose the reverse question, let them work through it
8
+ 4. **First Principles Thinking**: Ask "What are the fundamentals?" and guide them to break it down
9
+
10
+ ## Structured Frameworks
11
+
12
+ 5. **SCAMPER Method**: Go through one letter at a time, wait for their ideas before moving to next
13
+ 6. **Six Thinking Hats**: Present one hat, ask for their thoughts, then move to next hat
14
+ 7. **Mind Mapping**: Start with central concept, ask them to suggest branches
15
+
16
+ ## Collaborative Techniques
17
+
18
+ 8. **"Yes, And..." Building**: They give idea, you "yes and" it, they "yes and" back - alternate
19
+ 9. **Brainwriting/Round Robin**: They suggest idea, you build on it, ask them to build on yours
20
+ 10. **Random Stimulation**: Give one random prompt/word, ask them to make connections
21
+
22
+ ## Deep Exploration
23
+
24
+ 11. **Five Whys**: Ask "why" and wait for their answer before asking next "why"
25
+ 12. **Morphological Analysis**: Ask them to list parameters first, then explore combinations together
26
+ 13. **Provocation Technique (PO)**: Give one provocative statement, ask them to extract useful ideas
27
+
28
+ ## Advanced Techniques
29
+
30
+ 14. **Forced Relationships**: Connect two unrelated concepts and ask them to find the bridge
31
+ 15. **Assumption Reversal**: Challenge their core assumptions and ask them to build from there
32
+ 16. **Role Playing**: Ask them to brainstorm from different stakeholder perspectives
33
+ 17. **Time Shifting**: "How would you solve this in 1995? 2030?"
34
+ 18. **Resource Constraints**: "What if you had only $10 and 1 hour?"
35
+ 19. **Metaphor Mapping**: Use extended metaphors to explore solutions
36
+ 20. **Question Storming**: Generate questions instead of answers first
@@ -0,0 +1,134 @@
1
+ # Elicitation Methods Data
2
+
3
+ ## Core Reflective Methods
4
+
5
+ **Expand or Contract for Audience**
6
+ - Ask whether to 'expand' (add detail, elaborate) or 'contract' (simplify, clarify)
7
+ - Identify specific target audience if relevant
8
+ - Tailor content complexity and depth accordingly
9
+
10
+ **Explain Reasoning (CoT Step-by-Step)**
11
+ - Walk through the step-by-step thinking process
12
+ - Reveal underlying assumptions and decision points
13
+ - Show how conclusions were reached from current role's perspective
14
+
15
+ **Critique and Refine**
16
+ - Review output for flaws, inconsistencies, or improvement areas
17
+ - Identify specific weaknesses from role's expertise
18
+ - Suggest refined version reflecting domain knowledge
19
+
20
+ ## Structural Analysis Methods
21
+
22
+ **Analyze Logical Flow and Dependencies**
23
+ - Examine content structure for logical progression
24
+ - Check internal consistency and coherence
25
+ - Identify and validate dependencies between elements
26
+ - Confirm effective ordering and sequencing
27
+
28
+ **Assess Alignment with Overall Goals**
29
+ - Evaluate content contribution to stated objectives
30
+ - Identify any misalignments or gaps
31
+ - Interpret alignment from specific role's perspective
32
+ - Suggest adjustments to better serve goals
33
+
34
+ ## Risk and Challenge Methods
35
+
36
+ **Identify Potential Risks and Unforeseen Issues**
37
+ - Brainstorm potential risks from role's expertise
38
+ - Identify overlooked edge cases or scenarios
39
+ - Anticipate unintended consequences
40
+ - Highlight implementation challenges
41
+
42
+ **Challenge from Critical Perspective**
43
+ - Adopt critical stance on current content
44
+ - Play devil's advocate from specified viewpoint
45
+ - Argue against proposal highlighting weaknesses
46
+ - Apply YAGNI principles when appropriate (scope trimming)
47
+
48
+ ## Creative Exploration Methods
49
+
50
+ **Tree of Thoughts Deep Dive**
51
+ - Break problem into discrete "thoughts" or intermediate steps
52
+ - Explore multiple reasoning paths simultaneously
53
+ - Use self-evaluation to classify each path as "sure", "likely", or "impossible"
54
+ - Apply search algorithms (BFS/DFS) to find optimal solution paths
55
+
56
+ **Hindsight is 20/20: The 'If Only...' Reflection**
57
+ - Imagine retrospective scenario based on current content
58
+ - Identify the one "if only we had known/done X..." insight
59
+ - Describe imagined consequences humorously or dramatically
60
+ - Extract actionable learnings for current context
61
+
62
+ ## Multi-Persona Collaboration Methods
63
+
64
+ **Agile Team Perspective Shift**
65
+ - Rotate through different Scrum team member viewpoints
66
+ - Product Owner: Focus on user value and business impact
67
+ - Scrum Master: Examine process flow and team dynamics
68
+ - Developer: Assess technical implementation and complexity
69
+ - QA: Identify testing scenarios and quality concerns
70
+
71
+ **Stakeholder Round Table**
72
+ - Convene virtual meeting with multiple personas
73
+ - Each persona contributes unique perspective on content
74
+ - Identify conflicts and synergies between viewpoints
75
+ - Synthesize insights into actionable recommendations
76
+
77
+ **Meta-Prompting Analysis**
78
+ - Step back to analyze the structure and logic of current approach
79
+ - Question the format and methodology being used
80
+ - Suggest alternative frameworks or mental models
81
+ - Optimize the elicitation process itself
82
+
83
+ ## Advanced 2025 Techniques
84
+
85
+ **Self-Consistency Validation**
86
+ - Generate multiple reasoning paths for same problem
87
+ - Compare consistency across different approaches
88
+ - Identify most reliable and robust solution
89
+ - Highlight areas where approaches diverge and why
90
+
91
+ **ReWOO (Reasoning Without Observation)**
92
+ - Separate parametric reasoning from tool-based actions
93
+ - Create reasoning plan without external dependencies
94
+ - Identify what can be solved through pure reasoning
95
+ - Optimize for efficiency and reduced token usage
96
+
97
+ **Persona-Pattern Hybrid**
98
+ - Combine specific role expertise with elicitation pattern
99
+ - Architect + Risk Analysis: Deep technical risk assessment
100
+ - UX Expert + User Journey: End-to-end experience critique
101
+ - PM + Stakeholder Analysis: Multi-perspective impact review
102
+
103
+ **Emergent Collaboration Discovery**
104
+ - Allow multiple perspectives to naturally emerge
105
+ - Identify unexpected insights from persona interactions
106
+ - Explore novel combinations of viewpoints
107
+ - Capture serendipitous discoveries from multi-agent thinking
108
+
109
+ ## Game-Based Elicitation Methods
110
+
111
+ **Red Team vs Blue Team**
112
+ - Red Team: Attack the proposal, find vulnerabilities
113
+ - Blue Team: Defend and strengthen the approach
114
+ - Competitive analysis reveals blind spots
115
+ - Results in more robust, battle-tested solutions
116
+
117
+ **Innovation Tournament**
118
+ - Pit multiple alternative approaches against each other
119
+ - Score each approach across different criteria
120
+ - Crowd-source evaluation from different personas
121
+ - Identify winning combination of features
122
+
123
+ **Escape Room Challenge**
124
+ - Present content as constraints to work within
125
+ - Find creative solutions within tight limitations
126
+ - Identify minimum viable approach
127
+ - Discover innovative workarounds and optimizations
128
+
129
+ ## Process Control
130
+
131
+ **Proceed / No Further Actions**
132
+ - Acknowledge choice to finalize current work
133
+ - Accept output as-is or move to next step
134
+ - Prepare to continue without additional elicitation
@@ -0,0 +1,3 @@
1
+ # User-Defined Preferred Patterns and Preferences
2
+
3
+ None Listed