speccrew 0.5.19 → 0.6.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.
Files changed (51) hide show
  1. package/.speccrew/agents/speccrew-product-manager.md +2 -1
  2. package/.speccrew/agents/speccrew-system-deployer.md +616 -0
  3. package/.speccrew/agents/speccrew-team-leader.md +7 -3
  4. package/.speccrew/agents/speccrew-test-manager.md +31 -31
  5. package/.speccrew/skills/speccrew-deploy-build/SKILL.md +128 -0
  6. package/.speccrew/skills/speccrew-deploy-migrate/SKILL.md +141 -0
  7. package/.speccrew/skills/speccrew-deploy-smoke-test/SKILL.md +243 -0
  8. package/.speccrew/skills/speccrew-deploy-startup/SKILL.md +218 -0
  9. package/.speccrew/skills/speccrew-dev-backend/SKILL.md +35 -6
  10. package/.speccrew/skills/speccrew-knowledge-techs-generate/templates/CONVENTIONS-DATA-TEMPLATE.md +35 -0
  11. package/.speccrew/skills/speccrew-sd-backend/templates/SD-BACKEND-TEMPLATE.md +6 -3
  12. package/.speccrew/skills/speccrew-test-case-design/SKILL.md +2 -2
  13. package/.speccrew/skills/speccrew-test-code-gen/SKILL.md +2 -2
  14. package/README.ar.md +26 -20
  15. package/README.bn.md +2 -2
  16. package/README.bs.md +21 -15
  17. package/README.da.md +21 -15
  18. package/README.de.md +21 -15
  19. package/README.el.md +2 -2
  20. package/README.en.md +26 -20
  21. package/README.es.md +26 -20
  22. package/README.fr.md +21 -15
  23. package/README.it.md +21 -15
  24. package/README.ja.md +21 -15
  25. package/README.ko.md +21 -15
  26. package/README.md +21 -15
  27. package/README.no.md +21 -15
  28. package/README.pl.md +21 -15
  29. package/README.pt-BR.md +21 -15
  30. package/README.ru.md +21 -15
  31. package/README.th.md +17 -12
  32. package/README.zh-TW.md +21 -15
  33. package/docs/GETTING-STARTED.ar.md +48 -8
  34. package/docs/GETTING-STARTED.bn.md +4 -2
  35. package/docs/GETTING-STARTED.bs.md +4 -2
  36. package/docs/GETTING-STARTED.da.md +48 -8
  37. package/docs/GETTING-STARTED.de.md +50 -8
  38. package/docs/GETTING-STARTED.el.md +42 -6
  39. package/docs/GETTING-STARTED.en.md +48 -8
  40. package/docs/GETTING-STARTED.es.md +48 -8
  41. package/docs/GETTING-STARTED.fr.md +48 -8
  42. package/docs/GETTING-STARTED.it.md +50 -8
  43. package/docs/GETTING-STARTED.ja.md +50 -8
  44. package/docs/GETTING-STARTED.ko.md +50 -8
  45. package/docs/GETTING-STARTED.md +50 -8
  46. package/docs/GETTING-STARTED.no.md +459 -86
  47. package/docs/GETTING-STARTED.th.md +4 -2
  48. package/docs/GETTING-STARTED.zh-TW.md +54 -12
  49. package/package.json +1 -1
  50. package/workspace-template/docs/solutions/agent-knowledge-map.md +4 -3
  51. package/workspace-template/docs/solutions/workspace-structure.md +65 -7
@@ -146,13 +146,15 @@ flowchart LR
146
146
  PRD[階段一<br/>需求分析<br/>Product Manager] --> FD[階段二<br/>功能設計<br/>Feature Designer]
147
147
  FD --> SD[階段三<br/>系統設計<br/>System Designer]
148
148
  SD --> DEV[階段四<br/>開發實現<br/>System Developer]
149
- DEV --> TEST[階段五<br/>系統測試<br/>Test Manager]
150
- TEST --> ARCHIVE[階段六<br/>歸檔]
149
+ DEV --> DEPLOY[階段五<br/>部署實施<br/>System Deployer]
150
+ DEPLOY --> TEST[階段六<br/>系統測試<br/>Test Manager]
151
+ TEST --> ARCHIVE[階段七<br/>歸檔]
151
152
 
152
153
  KB[(知識庫<br/>貫穿始終)] -.-> PRD
153
154
  KB -.-> FD
154
155
  KB -.-> SD
155
156
  KB -.-> DEV
157
+ KB -.-> DEPLOY
156
158
  KB -.-> TEST
157
159
  ```
158
160
 
@@ -332,14 +334,49 @@ iterations/{iter}/04.development/
332
334
 
333
335
  ---
334
336
 
335
- ### 7.5 階段五:系統測試(Test Manager)
337
+ ### 7.5 階段五:部署實施(System Deployer)
336
338
 
337
- **如何啟動**:
339
+ **如何啟動**:
340
+
341
+ ```
342
+ @speccrew-system-deployer 開始部署
343
+ ```
344
+
345
+ **Agent 工作流程**:
346
+ 1. 驗證開發階段已完成(Stage Gate)
347
+ 2. 加載技術知識庫(構建配置、資料庫遷移配置、服務啟動命令)
348
+ 3. **Checkpoint**:環境預檢 — 驗證構建工具、運行時版本、依賴可用性
349
+ 4. 按順序執行部署技能:構建(Build)→ 資料庫遷移(Migrate)→ 服務啟動(Startup)→ 煙霧測試(Smoke Test)
350
+ 5. 輸出部署報告
351
+
352
+ > 💡 **提示**:對於無資料庫的專案,遷移步驟會自動跳過;對於客戶端應用(桌面/行動端),會使用程序驗證模式替代 HTTP 健康檢查。
353
+
354
+ **產出物**:
355
+
356
+ ```
357
+ iterations/{iter}/05.deployment/
358
+ ├── {platform-id}/
359
+ │ ├── deployment-plan.md # 部署計劃
360
+ │ └── deployment-log.md # 部署執行日誌
361
+ └── deployment-report.md # 部署完成報告
362
+ ```
363
+
364
+ **確認要點**:
365
+ - [ ] 構建是否成功完成
366
+ - [ ] 資料庫遷移腳本是否全部執行成功(如適用)
367
+ - [ ] 應用是否正常啟動並通過健康檢查
368
+ - [ ] 煙霧測試是否全部通過
369
+
370
+ ---
371
+
372
+ ### 7.6 階段六:系統測試(Test Manager)
373
+
374
+ **如何啟動**:
338
375
  ```
339
376
  @speccrew-test-manager 開始測試
340
377
  ```
341
378
 
342
- **三階段測試流程**:
379
+ **三階段測試流程**:
343
380
 
344
381
  | 階段 | 說明 | Checkpoint |
345
382
  |------|------|------------|
@@ -347,9 +384,9 @@ iterations/{iter}/04.development/
347
384
  | 測試程式碼生成 | 生成可執行的測試程式碼 | B:展示生成的測試檔案和用例映射,等待使用者確認 |
348
385
  | 測試執行與 Bug 報告 | 自動執行測試,生成報告 | 無(自動執行) |
349
386
 
350
- **產出物**:
387
+ **產出物**:
351
388
  ```
352
- iterations/{iter}/05.system-test/
389
+ iterations/{iter}/06.system-test/
353
390
  ├── cases/
354
391
  │ └── {platform-id}/ # 測試用例文檔
355
392
  ├── code/
@@ -360,14 +397,14 @@ iterations/{iter}/05.system-test/
360
397
  └── BUG-{id}-{title}.md # Bug 報告(每個 Bug 一個檔案)
361
398
  ```
362
399
 
363
- **確認要點**:
400
+ **確認要點**:
364
401
  - [ ] 用例覆蓋是否完整
365
402
  - [ ] 測試程式碼是否可運行
366
403
  - [ ] Bug 嚴重程度判定是否準確
367
404
 
368
405
  ---
369
406
 
370
- ### 7.6 階段六:歸檔
407
+ ### 7.7 階段七:歸檔
371
408
 
372
409
  迭代完成後自動歸檔:
373
410
 
@@ -378,7 +415,8 @@ speccrew-workspace/iteration-archives/
378
415
  ├── 02.feature-design/
379
416
  ├── 03.system-design/
380
417
  ├── 04.development/
381
- └── 05.system-test/
418
+ ├── 05.deployment/
419
+ └── 06.system-test/
382
420
  ```
383
421
 
384
422
  ---
@@ -469,7 +507,8 @@ Pipeline Status: i001-user-management
469
507
  02 Feature Design: 🔄 In Progress (Checkpoint A passed)
470
508
  03 System Design: ⏳ Pending
471
509
  04 Development: ⏳ Pending
472
- 05 System Test: ⏳ Pending
510
+ 05 Deployment: ⏳ Pending
511
+ 06 System Test: ⏳ Pending
473
512
  ```
474
513
 
475
514
  ### 9.5 向下相容
@@ -565,6 +604,7 @@ npm install -g speccrew@0.5.6
565
604
  | 功能設計 | Feature Designer | `@speccrew-feature-designer 開始功能設計` |
566
605
  | 系統設計 | System Designer | `@speccrew-system-designer 開始系統設計` |
567
606
  | 開發實現 | System Developer | `@speccrew-system-developer 開始開發` |
607
+ | 部署實施 | System Deployer | `@speccrew-system-deployer 開始部署` |
568
608
  | 系統測試 | Test Manager | `@speccrew-test-manager 開始測試` |
569
609
 
570
610
  ### Checkpoint 檢查清單
@@ -575,6 +615,7 @@ npm install -g speccrew@0.5.6
575
615
  | 功能設計 | 1 | 場景覆蓋、交互清晰度、資料完整性、異常處理 |
576
616
  | 系統設計 | 2 | A: 框架評估;B: 偽程式碼語法、跨端一致性、錯誤處理 |
577
617
  | 開發實現 | 1 | A: 環境就緒、集成問題、程式碼規約 |
618
+ | 部署實施 | 1 | 構建成功、遷移完成、服務啟動、煙霧測試通過 |
578
619
  | 系統測試 | 2 | A: 用例覆蓋;B: 測試程式碼可運行性 |
579
620
 
580
621
  ### 產出物路徑速查
@@ -585,7 +626,8 @@ npm install -g speccrew@0.5.6
585
626
  | 功能設計 | `iterations/{iter}/02.feature-design/` | `[name]-feature-spec.md` |
586
627
  | 系統設計 | `iterations/{iter}/03.system-design/` | `DESIGN-OVERVIEW.md`, `{platform}/INDEX.md`, `{platform}/{module}-design.md` |
587
628
  | 開發實現 | `iterations/{iter}/04.development/` | 源程式碼 + `delivery-report.md` |
588
- | 系統測試 | `iterations/{iter}/05.system-test/` | `cases/`, `code/`, `reports/`, `bugs/` |
629
+ | 部署實施 | `iterations/{iter}/05.deployment/` | `deployment-plan.md`, `deployment-log.md`, `deployment-report.md` |
630
+ | 系統測試 | `iterations/{iter}/06.system-test/` | `cases/`, `code/`, `reports/`, `bugs/` |
589
631
  | 歸檔 | `iteration-archives/{iter}-{date}/` | 完整迭代副本 |
590
632
 
591
633
  ---
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "speccrew",
3
- "version": "0.5.19",
3
+ "version": "0.6.1",
4
4
  "description": "Spec-Driven Development toolkit for AI-powered IDEs",
5
5
  "author": "charlesmu99",
6
6
  "repository": {
@@ -180,8 +180,8 @@ Backend Designer Agent:
180
180
 
181
181
  | Deliverable | Path | Format | Description |
182
182
  |-------------|------|--------|-------------|
183
- | Test Case Document | `iterations/iXXX/05.tests/cases/[feature-name]-test-cases.md` | Per template | Includes acceptance and unit tests |
184
- | Test Report | `iterations/iXXX/05.tests/reports/[feature-name]-test-report.md` | Structured report | Includes pass rate, failure details |
183
+ | Test Case Document | `iterations/iXXX/06.system-test/cases/[feature-name]-test-cases.md` | Per template | Includes acceptance and unit tests |
184
+ | Test Report | `iterations/iXXX/06.system-test/reports/[feature-name]-test-report.md` | Structured report | Includes pass rate, failure details |
185
185
 
186
186
  ---
187
187
 
@@ -204,7 +204,8 @@ knowledge/ iterations/iXXX/
204
204
  │ ├── 04.development/
205
205
  │ │ ├── {platform_id}/ ←── Dev Agent output (frontend/backend/mobile/desktop)
206
206
  │ Dev Agent │
207
- └── 05.tests/
207
+ ├── 05.deployment/
208
+ │ └── 06.system-test/
208
209
  └── techs/conventions/testing.md ├── cases/ ←── Test Agent output
209
210
  Test Agent ────────────────── └── reports/
210
211
  ```
@@ -20,8 +20,9 @@ SpecCrew-workspace/
20
20
  │ ├── 03.system-design/ # 系统设计
21
21
  │ ├── 04.development/ # 开发阶段
22
22
  │ │ └── tech-debt/ # 技术债记录(统一目录)
23
- │ ├── 05.test/ # 测试阶段
24
- └── 06.delivery/ # 交付阶段
23
+ │ ├── 05.deployment/ # 部署阶段
24
+ ├── 06.system-test/ # 系统测试阶段
25
+ │ └── 07.delivery/ # 交付阶段
25
26
 
26
27
  ├── iteration-archives/ # 迭代归档
27
28
  │ └── {序号}-{类型}-{名称}-{日期}/ # 如 001-feature-order-20260322
@@ -85,8 +86,9 @@ iterations/
85
86
  │ ├── 03.system-design/ # 系统设计
86
87
  │ ├── 04.development/ # 开发阶段
87
88
  │ │ └── tech-debt/ # 技术债记录(统一目录)
88
- │ ├── 05.test/ # 测试阶段
89
- └── 06.delivery/ # 交付阶段
89
+ │ ├── 05.deployment/ # 部署阶段
90
+ ├── 06.system-test/ # 系统测试阶段
91
+ │ └── 07.delivery/ # 交付阶段
90
92
 
91
93
  └── 002-bugfix-payment/ # 支付修复迭代(后启动)
92
94
  └── ...
@@ -101,7 +103,8 @@ iterations/
101
103
  | 特性设计 | `02.feature-design/` | 特性规格、API 契约、交互设计 |
102
104
  | 系统设计 | `03.system-design/` | 详细设计、数据库设计、接口设计 |
103
105
  | 开发 | `04.development/` | 代码实现、开发日志、技术债记录 |
104
- | 测试 | `05.test/` | 测试用例、测试报告 |
106
+ | 部署 | `05.deployment/` | 部署配置、部署日志 |
107
+ | 系统测试 | `06.system-test/` | 测试用例、测试报告 |
105
108
 
106
109
  #### Stage 4 详细目录结构 (`04.development/`)
107
110
 
@@ -117,7 +120,62 @@ iterations/
117
120
 
118
121
  > ⚠️ **MANDATORY**: All Stage 4 outputs MUST use `04.development/` as the top-level directory.
119
122
  > The following variants are **FORBIDDEN**: `04.dev-report/`, `04.dev-reports/`, `04.implementation/`, or any other `04.*` name.
120
- | 交付 | `06.delivery/` | 部署文档、验收报告、交付清单 |
123
+
124
+ #### Stage 5 详细目录结构 (`05.deployment/`)
125
+
126
+ ```
127
+ 05.deployment/
128
+ ├── .checkpoints.json # Stage progress checkpoints
129
+ ├── DISPATCH-PROGRESS.json # Task dispatch and execution tracking
130
+ ├── {platform_id}/ # Grouped by platform
131
+ │ ├── deployment-plan.md # Deployment plan for platform
132
+ │ └── deployment-log.md # Deployment execution log
133
+ └── delivery-report.md # Deployment completion report
134
+ ```
135
+
136
+ #### Stage 6 详细目录结构 (`06.system-test/`)
137
+
138
+ ```
139
+ 06.system-test/
140
+ ├── .checkpoints.json # Stage progress checkpoints
141
+ ├── DISPATCH-PROGRESS.json # Task dispatch and execution tracking
142
+ ├── cases/ # Test case documents
143
+ │ └── {platform_id}/
144
+ │ └── [feature]-test-cases.md
145
+ ├── code/ # Test code plans
146
+ │ └── {platform_id}/
147
+ │ └── [feature]-test-code-plan.md
148
+ ├── results/ # Test execution results
149
+ │ └── {platform_id}/
150
+ │ └── [feature]-test-execution-results.md
151
+ ├── reports/ # Test reports
152
+ │ └── [feature]-test-report.md
153
+ └── bugs/ # Bug reports
154
+ └── [feature]-bug-{序号}.md
155
+ ```
156
+
157
+ #### Stage 7 详细目录结构 (`07.delivery/`)
158
+
159
+ ```
160
+ 07.delivery/
161
+ ├── .checkpoints.json # Stage progress checkpoints
162
+ ├── deployment-guide.md # Deployment guide
163
+ ├── acceptance-report.md # Acceptance report
164
+ └── delivery-checklist.md # Delivery checklist
165
+ ```
166
+
167
+ **迭代阶段说明**:
168
+
169
+ | 阶段 | 目录 | 说明 |
170
+ |------|------|------|
171
+ | 原始需求 | `00.docs/` | 用户需求的原始文档,保持原样 |
172
+ | 产品需求 | `01.product-requirement/` | 产品需求文档,需求分析和规格说明 |
173
+ | 特性设计 | `02.feature-design/` | 特性规格、API 契约、交互设计 |
174
+ | 系统设计 | `03.system-design/` | 详细设计、数据库设计、接口设计 |
175
+ | 开发 | `04.development/` | 代码实现、开发日志、技术债记录 |
176
+ | 部署 | `05.deployment/` | 部署配置、部署日志 |
177
+ | 系统测试 | `06.system-test/` | 测试用例、测试报告 |
178
+ | 交付 | `07.delivery/` | 部署文档、验收报告、交付清单 |
121
179
  ```
122
180
 
123
181
  **迭代命名规范**:
@@ -330,4 +388,4 @@ techs/
330
388
  1. **迭代与知识分离**:`iterations/` 存放单次迭代产出,`knowledges/` 存放跨迭代共享知识
331
389
  2. **元数据集中管理**:诊断报告、同步状态统一放在 `knowledges/base/`
332
390
  3. **架构知识合并**:架构约定合并到 `techs/{platform}/architecture.md`,减少目录层级
333
- 4. **阶段目录有序**:迭代阶段使用数字前缀(00.docs ~ 06.delivery),便于排序和理解
391
+ 4. **阶段目录有序**:迭代阶段使用数字前缀(00.docs ~ 07.delivery),便于排序和理解