speccrew 0.5.8 → 0.5.10

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.
@@ -62,7 +62,82 @@ Supported IDEs: `qoder`, `cursor`, `claude`, `codex`
62
62
 
63
63
  ---
64
64
 
65
- ## 2. Workflow Overview
65
+ ## 2. Your First 5 Minutes
66
+
67
+ After running `speccrew init`, follow these steps to get productive immediately:
68
+
69
+ ### Step 1: Choose Your IDE
70
+
71
+ | IDE | Init Command | Best For |
72
+ |-----|-------------|----------|
73
+ | **Qoder** (Recommended) | `speccrew init --ide qoder` | Full agent orchestration, parallel workers |
74
+ | **Cursor** | `speccrew init --ide cursor` | Composer-based workflows |
75
+ | **Claude Code** | `speccrew init --ide claude` | CLI-first development |
76
+ | **Codex** | `speccrew init --ide codex` | OpenAI ecosystem integration |
77
+
78
+ ### Step 2: Initialize Knowledge Base (Recommended)
79
+
80
+ For existing projects, initialize knowledge base first so agents understand your codebase:
81
+
82
+ ```
83
+ @speccrew-team-leader Initialize technical knowledge base
84
+ ```
85
+
86
+ Then:
87
+
88
+ ```
89
+ @speccrew-team-leader Initialize business knowledge base
90
+ ```
91
+
92
+ ### Step 3: Start Your First Task
93
+
94
+ ```
95
+ @speccrew-product-manager I have a new requirement: [describe your feature]
96
+ ```
97
+
98
+ > **Tip**: If unsure what to do, just say `@speccrew-team-leader Help me get started` — the Team Leader will auto-detect your project status and guide you.
99
+
100
+ ---
101
+
102
+ ## 3. Quick Decision Tree
103
+
104
+ Not sure what to do? Find your scenario below:
105
+
106
+ - **I have a new feature requirement**
107
+ → `@speccrew-product-manager I have a new requirement: [describe your feature]`
108
+
109
+ - **I want to scan existing project knowledge**
110
+ → `@speccrew-team-leader initialize technical knowledge base`
111
+ → Then: `@speccrew-team-leader initialize business knowledge base`
112
+
113
+ - **I want to continue previous work**
114
+ → `@speccrew-team-leader what is the current progress?`
115
+
116
+ - **I want to check system health**
117
+ → Run in terminal: `speccrew doctor`
118
+
119
+ - **I'm not sure what to do**
120
+ → `@speccrew-team-leader help me get started`
121
+ → Team Leader will auto-detect your project status and guide you
122
+
123
+ ---
124
+
125
+ ## 4. Agent Quick Reference
126
+
127
+ | Role | Agent | Responsibilities | Example Command |
128
+ |------|-------|-----------------|-----------------|
129
+ | Team Leader | `@speccrew-team-leader` | Project navigation, knowledge init, status check | "Help me get started" |
130
+ | Product Manager | `@speccrew-product-manager` | Requirements analysis, PRD generation | "I have a new requirement: ..." |
131
+ | Feature Designer | `@speccrew-feature-designer` | Feature analysis, spec design, API contracts | "Start feature design for iteration X" |
132
+ | System Designer | `@speccrew-system-designer` | Architecture design, platform-specific design | "Start system design for iteration X" |
133
+ | System Developer | `@speccrew-system-developer` | Development coordination, code generation | "Start development for iteration X" |
134
+ | Test Manager | `@speccrew-test-manager` | Test planning, case design, execution | "Start testing for iteration X" |
135
+
136
+ > **Note**: You don't need to remember all agents. Just talk to `@speccrew-team-leader` and it will route your request to the right agent.
137
+
138
+ ---
139
+
140
+ ## 5. Workflow Overview
66
141
 
67
142
  ### Complete Flowchart
68
143
 
@@ -89,11 +164,11 @@ flowchart LR
89
164
 
90
165
  ---
91
166
 
92
- ## 3. Step Zero: Knowledge Base Initialization
167
+ ## 6. Step Zero: Knowledge Base Initialization
93
168
 
94
169
  Before starting the formal engineering process, you need to initialize the project knowledge base.
95
170
 
96
- ### 3.1 Technical Knowledge Base Initialization
171
+ ### 6.1 Technical Knowledge Base Initialization
97
172
 
98
173
  **Conversation Example**:
99
174
  ```
@@ -115,7 +190,7 @@ speccrew-workspace/knowledges/techs/{platform-id}/
115
190
  └── INDEX.md # Index file
116
191
  ```
117
192
 
118
- ### 3.2 Business Knowledge Base Initialization
193
+ ### 6.2 Business Knowledge Base Initialization
119
194
 
120
195
  **Conversation Example**:
121
196
  ```
@@ -139,9 +214,9 @@ speccrew-workspace/knowledges/bizs/
139
214
 
140
215
  ---
141
216
 
142
- ## 4. Phase-by-Phase Conversation Guide
217
+ ## 7. Phase-by-Phase Conversation Guide
143
218
 
144
- ### 4.1 Phase 1: Requirements Analysis (Product Manager)
219
+ ### 7.1 Phase 1: Requirements Analysis (Product Manager)
145
220
 
146
221
  **How to Start**:
147
222
  ```
@@ -168,7 +243,7 @@ iterations/{number}-{type}-{name}/01.product-requirement/
168
243
 
169
244
  ---
170
245
 
171
- ### 4.2 Phase 2: Feature Design (Feature Designer)
246
+ ### 7.2 Phase 2: Feature Design (Feature Designer)
172
247
 
173
248
  **How to Start**:
174
249
  ```
@@ -195,7 +270,7 @@ iterations/{iter}/02.feature-design/
195
270
 
196
271
  ---
197
272
 
198
- ### 4.3 Phase 3: System Design (System Designer)
273
+ ### 7.3 Phase 3: System Design (System Designer)
199
274
 
200
275
  **How to Start**:
201
276
  ```
@@ -226,7 +301,7 @@ iterations/{iter}/03.system-design/
226
301
 
227
302
  ---
228
303
 
229
- ### 4.4 Phase 4: Development Implementation (System Developer)
304
+ ### 7.4 Phase 4: Development Implementation (System Developer)
230
305
 
231
306
  **How to Start**:
232
307
  ```
@@ -257,7 +332,7 @@ iterations/{iter}/04.development/
257
332
 
258
333
  ---
259
334
 
260
- ### 4.5 Phase 5: System Testing (Test Manager)
335
+ ### 7.5 Phase 5: System Testing (Test Manager)
261
336
 
262
337
  **How to Start**:
263
338
  ```
@@ -292,7 +367,7 @@ iterations/{iter}/05.system-test/
292
367
 
293
368
  ---
294
369
 
295
- ### 4.6 Phase 6: Archive
370
+ ### 7.6 Phase 6: Archive
296
371
 
297
372
  Iterations are automatically archived upon completion:
298
373
 
@@ -308,9 +383,9 @@ speccrew-workspace/iteration-archives/
308
383
 
309
384
  ---
310
385
 
311
- ## 5. Knowledge Base Overview
386
+ ## 8. Knowledge Base Overview
312
387
 
313
- ### 5.1 Business Knowledge Base (bizs)
388
+ ### 8.1 Business Knowledge Base (bizs)
314
389
 
315
390
  **Purpose**: Store project business function descriptions, module divisions, API characteristics
316
391
 
@@ -325,7 +400,7 @@ knowledges/bizs/
325
400
 
326
401
  **Usage Scenarios**: Product Manager, Feature Designer
327
402
 
328
- ### 5.2 Technical Knowledge Base (techs)
403
+ ### 8.2 Technical Knowledge Base (techs)
329
404
 
330
405
  **Purpose**: Store project technology stack, architecture conventions, development specifications, testing specifications
331
406
 
@@ -343,11 +418,11 @@ knowledges/techs/{platform-id}/
343
418
 
344
419
  ---
345
420
 
346
- ## 6. Workflow Progress Management
421
+ ## 9. Workflow Progress Management
347
422
 
348
423
  The SpecCrew virtual team follows a strict stage-gating mechanism where each phase must be confirmed by the user before proceeding to the next. It also supports resumable execution — when restarted after interruption, it automatically continues from where it left off.
349
424
 
350
- ### 6.1 Three-Layer Progress Files
425
+ ### 9.1 Three-Layer Progress Files
351
426
 
352
427
  The workflow automatically maintains three types of JSON progress files, located in the iteration directory:
353
428
 
@@ -357,7 +432,7 @@ The workflow automatically maintains three types of JSON progress files, located
357
432
  | `.checkpoints.json` | Under each phase directory | Records user checkpoint confirmation status |
358
433
  | `DISPATCH-PROGRESS.json` | Under each phase directory | Records item-by-item progress for parallel tasks (multi-platform/multi-module) |
359
434
 
360
- ### 6.2 Stage Status Flow
435
+ ### 9.2 Stage Status Flow
361
436
 
362
437
  Each phase follows this status flow:
363
438
 
@@ -370,7 +445,7 @@ pending → in_progress → completed → confirmed
370
445
  - **completed**: Agent execution completed, awaiting user confirmation
371
446
  - **confirmed**: User confirmed through final checkpoint, next phase can start
372
447
 
373
- ### 6.3 Resumable Execution
448
+ ### 9.3 Resumable Execution
374
449
 
375
450
  When restarting an Agent for a phase:
376
451
 
@@ -378,7 +453,7 @@ When restarting an Agent for a phase:
378
453
  2. **Checkpoint recovery**: Reads `.checkpoints.json`, skips passed checkpoints, continues from the last interruption point
379
454
  3. **Parallel task recovery**: Reads `DISPATCH-PROGRESS.json`, only re-executes tasks with `pending` or `failed` status, skips `completed` tasks
380
455
 
381
- ### 6.4 Viewing Current Progress
456
+ ### 9.4 Viewing Current Progress
382
457
 
383
458
  View the pipeline panorama status through the Team Leader Agent:
384
459
 
@@ -397,13 +472,13 @@ Pipeline Status: i001-user-management
397
472
  05 System Test: ⏳ Pending
398
473
  ```
399
474
 
400
- ### 6.5 Backward Compatibility
475
+ ### 9.5 Backward Compatibility
401
476
 
402
477
  The progress file mechanism is fully backward compatible — if progress files do not exist (e.g., in legacy projects or new iterations), all Agents will execute normally according to the original logic.
403
478
 
404
479
  ---
405
480
 
406
- ## 7. Frequently Asked Questions (FAQ)
481
+ ## 10. Frequently Asked Questions (FAQ)
407
482
 
408
483
  ### Q1: What if the Agent doesn't work as expected?
409
484
 
@@ -479,7 +554,7 @@ Re-initialization is required in the following situations:
479
554
 
480
555
  ---
481
556
 
482
- ## 8. Quick Reference
557
+ ## 11. Quick Reference
483
558
 
484
559
  ### Agent Start Quick Reference
485
560
 
@@ -62,7 +62,82 @@ speccrew init --ide qoder
62
62
 
63
63
  ---
64
64
 
65
- ## 2. 工作流程总览
65
+ ## 2. 安装后5分钟快速开始
66
+
67
+ 执行 `speccrew init` 后,按以下步骤快速进入工作状态:
68
+
69
+ ### 第1步:选择你的 IDE
70
+
71
+ | IDE | 初始化命令 | 适用场景 |
72
+ |-----|-----------|----------|
73
+ | **Qoder**(推荐) | `speccrew init --ide qoder` | 完整Agent编排、并行Worker |
74
+ | **Cursor** | `speccrew init --ide cursor` | 基于Composer的工作流 |
75
+ | **Claude Code** | `speccrew init --ide claude` | CLI优先开发 |
76
+ | **Codex** | `speccrew init --ide codex` | OpenAI生态集成 |
77
+
78
+ ### 第2步:初始化知识库(推荐)
79
+
80
+ 对于已有源码的项目,建议先初始化知识库,让Agent理解你的代码库:
81
+
82
+ ```
83
+ @speccrew-team-leader 初始化技术知识库
84
+ ```
85
+
86
+ 然后:
87
+
88
+ ```
89
+ @speccrew-team-leader 初始化业务知识库
90
+ ```
91
+
92
+ ### 第3步:开始你的第一个任务
93
+
94
+ ```
95
+ @speccrew-product-manager 我有一个新需求:[描述你的功能需求]
96
+ ```
97
+
98
+ > **提示**:如果不确定该做什么,直接说 `@speccrew-team-leader 帮我开始` — Team Leader 会自动检测项目状态并引导你。
99
+
100
+ ---
101
+
102
+ ## 3. 快速决策树
103
+
104
+ 不确定该做什么?找到你的场景:
105
+
106
+ - **我有新的功能需求**
107
+ → `@speccrew-product-manager 我有一个新需求:[描述你的功能需求]`
108
+
109
+ - **我想扫描现有项目的知识**
110
+ → `@speccrew-team-leader 初始化技术知识库`
111
+ → 然后:`@speccrew-team-leader 初始化业务知识库`
112
+
113
+ - **我想继续之前的工作**
114
+ → `@speccrew-team-leader 当前进度是什么?`
115
+
116
+ - **我想检查系统健康状态**
117
+ → 在终端运行:`speccrew doctor`
118
+
119
+ - **我不确定该做什么**
120
+ → `@speccrew-team-leader 帮我开始`
121
+ → Team Leader 会自动检测项目状态并引导你
122
+
123
+ ---
124
+
125
+ ## 4. Agent 快速参考
126
+
127
+ | 角色 | Agent | 职责 | 示例指令 |
128
+ |------|-------|------|----------|
129
+ | 团队负责人 | `@speccrew-team-leader` | 项目导航、知识库初始化、状态查看 | "帮我开始" |
130
+ | 产品经理 | `@speccrew-product-manager` | 需求分析、PRD 生成 | "我有一个新需求:..." |
131
+ | 功能设计师 | `@speccrew-feature-designer` | 功能分析、规格设计、API 契约 | "开始迭代X的功能设计" |
132
+ | 系统设计师 | `@speccrew-system-designer` | 架构设计、平台详细设计 | "开始迭代X的系统设计" |
133
+ | 系统开发者 | `@speccrew-system-developer` | 开发协调、代码生成 | "开始迭代X的开发" |
134
+ | 测试经理 | `@speccrew-test-manager` | 测试规划、用例设计、执行 | "开始迭代X的测试" |
135
+
136
+ > **提示**:你不需要记住所有 Agent。只需与 `@speccrew-team-leader` 对话,它会将你的请求路由到合适的 Agent。
137
+
138
+ ---
139
+
140
+ ## 5. 工作流程总览
66
141
 
67
142
  ### 完整流程图
68
143
 
@@ -89,11 +164,11 @@ flowchart LR
89
164
 
90
165
  ---
91
166
 
92
- ## 3. 第零步:知识库初始化
167
+ ## 6. 第零步:知识库初始化
93
168
 
94
169
  在开始正式工程流程前,需要先初始化项目知识库。
95
170
 
96
- ### 3.1 技术知识库初始化
171
+ ### 6.1 技术知识库初始化
97
172
 
98
173
  **对话示例**:
99
174
  ```
@@ -115,7 +190,7 @@ speccrew-workspace/knowledges/techs/{platform-id}/
115
190
  └── INDEX.md # 索引文件
116
191
  ```
117
192
 
118
- ### 3.2 业务知识库初始化
193
+ ### 6.2 业务知识库初始化
119
194
 
120
195
  **对话示例**:
121
196
  ```
@@ -139,9 +214,9 @@ speccrew-workspace/knowledges/bizs/
139
214
 
140
215
  ---
141
216
 
142
- ## 4. 逐阶段对话指南
217
+ ## 7. 逐阶段对话指南
143
218
 
144
- ### 4.1 阶段一:需求分析(Product Manager)
219
+ ### 7.1 阶段一:需求分析(Product Manager)
145
220
 
146
221
  **如何启动**:
147
222
  ```
@@ -168,7 +243,7 @@ iterations/{序号}-{类型}-{名称}/01.product-requirement/
168
243
 
169
244
  ---
170
245
 
171
- ### 4.2 阶段二:功能设计(Feature Designer)
246
+ ### 7.2 阶段二:功能设计(Feature Designer)
172
247
 
173
248
  **如何启动**:
174
249
  ```
@@ -195,7 +270,7 @@ iterations/{iter}/02.feature-design/
195
270
 
196
271
  ---
197
272
 
198
- ### 4.3 阶段三:系统设计(System Designer)
273
+ ### 7.3 阶段三:系统设计(System Designer)
199
274
 
200
275
  **如何启动**:
201
276
  ```
@@ -226,7 +301,7 @@ iterations/{iter}/03.system-design/
226
301
 
227
302
  ---
228
303
 
229
- ### 4.4 阶段四:开发实现(System Developer)
304
+ ### 7.4 阶段四:开发实现(System Developer)
230
305
 
231
306
  **如何启动**:
232
307
  ```
@@ -257,7 +332,7 @@ iterations/{iter}/04.development/
257
332
 
258
333
  ---
259
334
 
260
- ### 4.5 阶段五:系统测试(Test Manager)
335
+ ### 7.5 阶段五:系统测试(Test Manager)
261
336
 
262
337
  **如何启动**:
263
338
  ```
@@ -292,7 +367,7 @@ iterations/{iter}/05.system-test/
292
367
 
293
368
  ---
294
369
 
295
- ### 4.6 阶段六:归档
370
+ ### 7.6 阶段六:归档
296
371
 
297
372
  迭代完成后自动归档:
298
373
 
@@ -308,9 +383,9 @@ speccrew-workspace/iteration-archives/
308
383
 
309
384
  ---
310
385
 
311
- ## 5. 知识库说明
386
+ ## 8. 知识库说明
312
387
 
313
- ### 5.1 业务知识库(bizs)
388
+ ### 8.1 业务知识库(bizs)
314
389
 
315
390
  **作用**:存储项目的业务功能描述、模块划分、API 特征
316
391
 
@@ -325,7 +400,7 @@ knowledges/bizs/
325
400
 
326
401
  **使用场景**:Product Manager、Feature Designer
327
402
 
328
- ### 5.2 技术知识库(techs)
403
+ ### 8.2 技术知识库(techs)
329
404
 
330
405
  **作用**:存储项目的技术栈、架构约定、开发规约、测试规约
331
406
 
@@ -343,11 +418,11 @@ knowledges/techs/{platform-id}/
343
418
 
344
419
  ---
345
420
 
346
- ## 6. 流水线进度管理
421
+ ## 9. 流水线进度管理
347
422
 
348
423
  SpecCrew 虚拟团队遵循严格的阶段门控机制,每个阶段必须经过用户确认后才能推进到下一阶段。同时支持断点续传 —— 中断后重新启动时,自动从上次停止的位置继续。
349
424
 
350
- ### 6.1 三层进度文件
425
+ ### 9.1 三层进度文件
351
426
 
352
427
  工作流自动维护三类 JSON 进度文件,位于迭代目录下:
353
428
 
@@ -357,7 +432,7 @@ SpecCrew 虚拟团队遵循严格的阶段门控机制,每个阶段必须经
357
432
  | `.checkpoints.json` | 各阶段目录下 | 记录用户确认点(Checkpoint)通过状态 |
358
433
  | `DISPATCH-PROGRESS.json` | 各阶段目录下 | 记录并行任务(多平台/多模块)的逐项进度 |
359
434
 
360
- ### 6.2 阶段状态流转
435
+ ### 9.2 阶段状态流转
361
436
 
362
437
  每个阶段遵循以下状态流转:
363
438
 
@@ -370,7 +445,7 @@ pending → in_progress → completed → confirmed
370
445
  - **completed**:Agent 执行完成,等待用户确认
371
446
  - **confirmed**:用户通过最终 Checkpoint 确认,下一阶段可以启动
372
447
 
373
- ### 6.3 断点续传
448
+ ### 9.3 断点续传
374
449
 
375
450
  当重新启动某个阶段的 Agent 时:
376
451
 
@@ -378,7 +453,7 @@ pending → in_progress → completed → confirmed
378
453
  2. **恢复 Checkpoint**:读取 `.checkpoints.json`,跳过已通过的确认点,从上次中断处继续
379
454
  3. **恢复并行任务**:读取 `DISPATCH-PROGRESS.json`,只重新执行 `pending` 或 `failed` 状态的任务,跳过已 `completed` 的任务
380
455
 
381
- ### 6.4 查看当前进度
456
+ ### 9.4 查看当前进度
382
457
 
383
458
  通过 Team Leader Agent 查看流水线全景状态:
384
459
 
@@ -397,13 +472,13 @@ Pipeline Status: i001-user-management
397
472
  05 System Test: ⏳ Pending
398
473
  ```
399
474
 
400
- ### 6.5 向下兼容
475
+ ### 9.5 向下兼容
401
476
 
402
477
  进度文件机制完全向下兼容 —— 如果进度文件不存在(如旧项目或全新迭代),所有 Agent 将按照原有逻辑正常执行。
403
478
 
404
479
  ---
405
480
 
406
- ## 7. 常见问题(FAQ)
481
+ ## 10. 常见问题(FAQ)
407
482
 
408
483
  ### Q1: Agent 不按预期工作怎么办?
409
484
 
@@ -479,7 +554,7 @@ npm install -g speccrew@0.5.6
479
554
 
480
555
  ---
481
556
 
482
- ## 8. 快速参考
557
+ ## 11. 快速参考
483
558
 
484
559
  ### Agent 启动速查表
485
560