@zeyue0329/xiaoma-cli 1.11.0 → 1.13.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 (81) hide show
  1. package/.playwright-cli/console-2026-05-13T06-36-26-793Z.log +2 -0
  2. package/.playwright-cli/page-2026-05-13T06-36-27-725Z.yml +1 -0
  3. package/CLAUDE.md +25 -7
  4. package/XiaoMa-CLI-2026H2-/350/277/255/344/273/243/350/247/204/345/210/222.pptx +0 -0
  5. package/demo/xiaoma-bug-circle-resolve/SKILL.md +6 -0
  6. package/demo/xiaoma-bug-circle-resolve/workflow.md +254 -0
  7. package/demo/xiaoma-bug-resolve/SKILL.md +6 -0
  8. package/demo/xiaoma-bug-resolve/workflow.md +269 -0
  9. package/demo/xiaoma-prd-saas-zh/README.md +57 -0
  10. package/demo/xiaoma-prd-saas-zh/domain-research.md +128 -0
  11. package/demo/xiaoma-prd-saas-zh/epics.md +303 -0
  12. package/demo/xiaoma-prd-saas-zh/market-research-2026-q1.md +183 -0
  13. package/demo/xiaoma-prd-saas-zh/prd-bad-examples.md +268 -0
  14. package/demo/xiaoma-prd-saas-zh/prd.md +409 -0
  15. package/demo/xiaoma-prd-saas-zh/product-brief.md +97 -0
  16. package/demo/xiaoma-prd-saas-zh/validation-report.md +279 -0
  17. 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 +189 -0
  18. 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 +464 -0
  19. 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 +334 -0
  20. 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 +1038 -0
  21. 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 +205 -0
  22. 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 +167 -0
  23. package/media/doc1_fig1.png +0 -0
  24. package/media/doc1_fig2.png +0 -0
  25. package/media/doc1_fig3.png +0 -0
  26. package/media/doc1_fig4.png +0 -0
  27. package/media/doc2_fig1.png +0 -0
  28. package/media/doc2_fig2.png +0 -0
  29. package/media/doc2_fig3.png +0 -0
  30. package/media/doc2_fig4.png +0 -0
  31. package/media/doc3_fig1.png +0 -0
  32. package/media/doc3_fig2.png +0 -0
  33. package/media/doc3_fig3.png +0 -0
  34. package/media/doc3_fig4.png +0 -0
  35. package/media/doc4_fig1.png +0 -0
  36. package/media/doc4_fig2.png +0 -0
  37. package/media/doc4_fig3.png +0 -0
  38. package/media/doc5_fig1.png +0 -0
  39. package/media/doc5_fig2.png +0 -0
  40. package/media/doc5_fig3.png +0 -0
  41. package/package.json +1 -1
  42. package/patent-disclosure-optimized/SKILL.md +416 -0
  43. package/patent-disclosure-optimized/references/disclosure-template.md +84 -0
  44. package/patent-disclosure-optimized/references/docx-format-spec.md +183 -0
  45. package/patent-disclosure-optimized/references/mining-principles.md +168 -0
  46. package/patent-disclosure-optimized/scripts/md2docx.js +777 -0
  47. package/src/core/tasks/xiaoma-create-prd/data/prd-purpose.md +157 -0
  48. package/src/core/tasks/xiaoma-create-prd/data/upstream-input-contract.md +168 -0
  49. package/src/core/tasks/xiaoma-create-prd/templates/prd-skeleton-reference.md +428 -0
  50. package/src/core/tasks/xiaoma-create-prd/templates/prd-template.md +101 -3
  51. package/src/xmc/agents/sm.agent.yaml +9 -1
  52. package/src/xmc/workflows/2-plan-workflows/xiaoma-validate-prd/data/prd-quality-rubric.csv +14 -0
  53. package/src/xmc/workflows/4-implementation/auto-story-pipeline/SKILL.md +1 -1
  54. package/src/xmc/workflows/4-implementation/auto-story-pipeline/steps/step-01-init-and-validate.md +10 -13
  55. package/src/xmc/workflows/4-implementation/auto-story-pipeline/steps/step-02-create-story.md +0 -1
  56. package/src/xmc/workflows/4-implementation/auto-story-pipeline/steps/step-08-complete-story.md +3 -4
  57. package/src/xmc/workflows/4-implementation/auto-story-pipeline/steps/step-09-finalize.md +69 -0
  58. package/src/xmc/workflows/4-implementation/auto-story-pipeline/workflow.md +9 -14
  59. package/src/xmc/workflows/4-implementation/auto-story-pipeline/xiaoma-skill-manifest.yaml +1 -1
  60. package/src/xmc/workflows/4-implementation/auto-story-pipeline-batch/SKILL.md +6 -0
  61. package/src/xmc/workflows/4-implementation/auto-story-pipeline-batch/workflow.md +333 -0
  62. package/src/xmc/workflows/4-implementation/auto-story-pipeline-batch/xiaoma-skill-manifest.yaml +3 -0
  63. package/src/xmc/workflows/5-full-pipeline/auto-full-pipeline/steps/step-01-init-and-validate.md +2 -2
  64. package/src/xmc/workflows/5-full-pipeline/auto-full-pipeline/steps/step-04-run-story-pipeline.md +30 -41
  65. package/src/xmc/workflows/5-full-pipeline/auto-full-pipeline/steps/step-05-finalize.md +2 -2
  66. package/src/xmc/workflows/5-full-pipeline/auto-full-pipeline/workflow.md +7 -9
  67. package/src/xmc/workflows/5-full-pipeline/auto-prd-to-stories/SKILL.md +6 -0
  68. package/src/xmc/workflows/5-full-pipeline/auto-prd-to-stories/checklist.md +43 -0
  69. package/src/xmc/workflows/5-full-pipeline/auto-prd-to-stories/steps/step-01-init-and-validate.md +155 -0
  70. package/src/xmc/workflows/5-full-pipeline/auto-prd-to-stories/steps/step-02-create-epics.md +156 -0
  71. package/src/xmc/workflows/5-full-pipeline/auto-prd-to-stories/steps/step-03-bridge-sprint-planning.md +143 -0
  72. package/src/xmc/workflows/5-full-pipeline/auto-prd-to-stories/steps/step-04-batch-create-stories.md +309 -0
  73. package/src/xmc/workflows/5-full-pipeline/auto-prd-to-stories/steps/step-05-finalize.md +311 -0
  74. package/src/xmc/workflows/5-full-pipeline/auto-prd-to-stories/workflow.md +105 -0
  75. package/src/xmc/workflows/5-full-pipeline/auto-prd-to-stories/xiaoma-skill-manifest.yaml +3 -0
  76. 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 +483 -0
  77. 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 +592 -0
  78. 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 +624 -0
  79. 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 +628 -0
  80. 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 +652 -0
  81. package/src/xmc/workflows/4-implementation/auto-story-pipeline/steps/step-09-cycle-check.md +0 -147
@@ -1,147 +0,0 @@
1
- ---
2
- name: "step-09-cycle-check"
3
- description: "Check if there are more stories to process. Loop back for batch mode or finalize the pipeline."
4
- nextStepFile_loop: "./step-02-create-story.md"
5
- nextStepFile: null
6
- ---
7
-
8
- # Step 9 of 9: Cycle Check
9
-
10
- **Goal:** Determine if the pipeline should process another story (batch mode) or finalize (single mode / all stories done).
11
-
12
- **Role:** Pipeline Orchestrator
13
-
14
- ---
15
-
16
- ## EXECUTION SEQUENCE
17
-
18
- ### 1. Check Pipeline Mode
19
-
20
- **IF `{pipeline_mode}` == "single":**
21
- - This was a single-story run — proceed directly to finalization (section 4)
22
-
23
- **IF `{pipeline_mode}` == "batch":**
24
- - Continue to section 2 to check for more stories
25
-
26
- ### 2. Find Next Processable Story
27
-
28
- 1. Load the FULL file: `{sprint_status}`
29
- 2. Read ALL lines from beginning to end — do not skip any content
30
- 3. Parse the `development_status` section completely
31
- 4. First, find the FIRST story (reading top to bottom) where:
32
- - Key matches pattern: number-number-name (e.g., "1-2-user-auth")
33
- - NOT an epic key (epic-X) or retrospective (epic-X-retrospective)
34
- - Status value equals "backlog"
35
- - If found: Set `{found_status}` = "backlog"
36
- 5. If no "backlog" story is found, search again for the FIRST story where:
37
- - Key matches the same pattern (not epic, not retrospective)
38
- - Status value equals "ready-for-dev"
39
- - *(Mirrors step-01's initial story selection: "backlog, or ready-for-dev if no backlog")*
40
- - If found: Set `{found_status}` = "ready-for-dev"
41
-
42
- ### 3. Evaluate Next Story
43
-
44
- **IF a backlog or ready-for-dev story is found:**
45
- - Set `{current_story_key}` = found story key
46
- - Set `{current_story_path}` = "" (will be set during creation/validation)
47
- - Set `{fix_iteration}` = 0
48
- - *(Note: `{found_status}` was already set in section 2 above — "backlog" or "ready-for-dev" — and is used in the progress checkpoint output below.)*
49
-
50
- **3.5. Batch Mode Progress Checkpoint**
51
-
52
- Before looping back to step-02 for the next story, refresh sprint status counts and output a progress summary:
53
-
54
- 1. Reload the FULL file: `{sprint_status}` (status counts are stale since step-01 initialization)
55
- 2. Recount all stories by current status:
56
- - Update `{backlog_count}` — Stories with status "backlog"
57
- - Update `{ready_count}` — Stories with status "ready-for-dev"
58
- - Update `{in_progress_count}` — Stories with status "in-progress"
59
- - Update `{review_count}` — Stories with status "review"
60
- - Update `{done_count}` — Stories with status "done"
61
- 3. Output progress summary:
62
-
63
- ```
64
- ═══════════════════════════════════════════════════
65
- Batch Progress Checkpoint
66
- ═══════════════════════════════════════════════════
67
- - Stories Completed So Far: {stories_completed}
68
- - Starting Next Story: {current_story_key} (status: {found_status})
69
- - Sprint Status (refreshed): Backlog {backlog_count} | Ready {ready_count} | In Progress {in_progress_count} | Review {review_count} | Done {done_count}
70
- - Pipeline Continuing...
71
- ═══════════════════════════════════════════════════
72
- ```
73
-
74
- - **NEXT:** Loop back to step-02 (create story) — step-02's section 1 skip logic will detect "ready-for-dev" stories, skip creation, and route them to step-03 (validate) before development begins
75
-
76
- **IF no backlog or ready-for-dev story is found:**
77
- - All processable stories have been completed — proceed to finalization (section 4)
78
-
79
- ### 4. Pipeline Finalization
80
-
81
- **4.1 Refresh Sprint Status Counters**
82
-
83
- Before generating the final report, reload current sprint status to get up-to-date counts (these values were set at pipeline start and may be stale after processing multiple stories in batch mode):
84
-
85
- 1. Load the FULL file: `{sprint_status}`
86
- 2. Read ALL lines from beginning to end — do not skip any content
87
- 3. Recount all stories by current status:
88
- - Update `{backlog_count}` — Stories with status "backlog"
89
- - Update `{ready_count}` — Stories with status "ready-for-dev"
90
- - Update `{in_progress_count}` — Stories with status "in-progress"
91
- - Update `{review_count}` — Stories with status "review"
92
- - Update `{done_count}` — Stories with status "done"
93
-
94
- **4.2 Generate Final Report**
95
-
96
- Output:
97
- ```
98
- Auto Story Pipeline — COMPLETE
99
-
100
- Pipeline Summary:
101
- - Mode: {pipeline_mode}
102
- - Stories Completed: {stories_completed}
103
- - Steps Executed: {steps_completed}
104
- - Pipeline Status: finalized
105
-
106
- Stories Processed:
107
- {for each completed story: key, title, fix iterations used}
108
-
109
- Sprint Status (current):
110
- - Backlog: {backlog_count} remaining
111
- - Ready for Dev: {ready_count}
112
- - In Progress: {in_progress_count}
113
- - In Review: {review_count}
114
- - Done: {done_count}
115
-
116
- The automated story development pipeline has finished.
117
- ```
118
-
119
- **IF `{backlog_count}` == 0 AND `{ready_count}` == 0 AND `{in_progress_count}` == 0 AND `{review_count}` == 0:**
120
- - Output: "All stories in the sprint are complete! Consider running epic-retrospective (ER) to review the work."
121
-
122
- **HALT** — Pipeline complete.
123
-
124
- ---
125
-
126
- ## NEXT STEP
127
-
128
- **If more stories to process (batch mode):**
129
- **NEXT:** Read fully and follow: `{project-root}/_xiaoma/xmc/workflows/4-implementation/auto-story-pipeline/steps/step-02-create-story.md`
130
-
131
- **If pipeline complete:**
132
- **HALT** — Output final report and end.
133
-
134
- ---
135
-
136
- ## SUCCESS METRICS
137
-
138
- - Correct determination of whether to continue or finalize
139
- - Next story correctly identified for batch mode
140
- - State variables properly reset for next cycle
141
- - Comprehensive final report generated
142
-
143
- ## FAILURE MODES
144
-
145
- - Continuing batch mode when no backlog or ready-for-dev stories remain
146
- - Not resetting state variables for next story cycle
147
- - Skipping final report generation