@edupia-tutor/spec-driven-docs 0.14.0 → 0.14.2

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 (162) hide show
  1. package/bin/index.js +12 -1
  2. package/commands/debug.md +436 -436
  3. package/commands/debug.tmpl +111 -111
  4. package/commands/define-product.md +350 -345
  5. package/commands/define-product.tmpl +69 -64
  6. package/commands/dev-gen-test.md +365 -365
  7. package/commands/dev-gen-test.tmpl +63 -63
  8. package/commands/dev-run-test.md +376 -376
  9. package/commands/dev-run-test.tmpl +74 -74
  10. package/commands/dev-smoke-test.md +341 -341
  11. package/commands/dev-smoke-test.tmpl +60 -60
  12. package/commands/fix-bug.md +403 -403
  13. package/commands/fix-bug.tmpl +78 -78
  14. package/commands/generate-bdd.md +513 -513
  15. package/commands/generate-bdd.tmpl +211 -211
  16. package/commands/generate-code.md +481 -483
  17. package/commands/generate-code.tmpl +179 -181
  18. package/commands/generate-design-spec.md +497 -497
  19. package/commands/generate-design-spec.tmpl +220 -220
  20. package/commands/generate-prd.md +452 -400
  21. package/commands/generate-prd.tmpl +50 -200
  22. package/commands/generate-spec-manifest.md +340 -340
  23. package/commands/generate-spec-manifest.tmpl +59 -59
  24. package/commands/generate-tech-docs.md +365 -365
  25. package/commands/generate-tech-docs.tmpl +84 -84
  26. package/commands/learn.md +347 -347
  27. package/commands/learn.tmpl +22 -22
  28. package/commands/map-testids.md +322 -322
  29. package/commands/map-testids.tmpl +41 -41
  30. package/commands/propose-scenario.md +335 -335
  31. package/commands/propose-scenario.tmpl +54 -54
  32. package/commands/qc-analyze.md +323 -324
  33. package/commands/qc-analyze.tmpl +42 -43
  34. package/commands/qc-design-test.md +304 -304
  35. package/commands/qc-design-test.tmpl +23 -23
  36. package/commands/qc-plan.md +297 -297
  37. package/commands/qc-plan.tmpl +16 -16
  38. package/commands/qc-report.md +302 -302
  39. package/commands/qc-report.tmpl +21 -21
  40. package/commands/qc-review.md +298 -298
  41. package/commands/qc-review.tmpl +17 -17
  42. package/commands/qc-run-test.md +337 -337
  43. package/commands/qc-run-test.tmpl +35 -35
  44. package/commands/refine-prd.md +428 -430
  45. package/commands/refine-prd.tmpl +62 -62
  46. package/commands/report-bug.md +351 -351
  47. package/commands/report-bug.tmpl +70 -70
  48. package/commands/review-code.md +364 -364
  49. package/commands/review-code.tmpl +39 -39
  50. package/commands/review-context.md +578 -580
  51. package/commands/review-context.tmpl +212 -212
  52. package/commands/review-tech-docs.md +427 -427
  53. package/commands/review-tech-docs.tmpl +146 -146
  54. package/commands/setup-ai-first.md +239 -239
  55. package/commands/setup-ai-first.tmpl +133 -133
  56. package/commands/sync.md +145 -145
  57. package/commands/sync.tmpl +93 -93
  58. package/commands/update-framework.md +88 -88
  59. package/commands/update-framework.tmpl +36 -36
  60. package/commands/validate-traces.md +381 -381
  61. package/commands/validate-traces.tmpl +100 -100
  62. package/core/FRAMEWORK_VERSION +1 -1
  63. package/core/commands/debug.md +436 -436
  64. package/core/commands/define-product.md +350 -345
  65. package/core/commands/dev-gen-test.md +365 -365
  66. package/core/commands/dev-run-test.md +376 -376
  67. package/core/commands/dev-smoke-test.md +341 -341
  68. package/core/commands/fix-bug.md +403 -403
  69. package/core/commands/generate-bdd.md +513 -513
  70. package/core/commands/generate-code.md +481 -483
  71. package/core/commands/generate-design-spec.md +497 -497
  72. package/core/commands/generate-prd.md +452 -400
  73. package/core/commands/generate-spec-manifest.md +340 -340
  74. package/core/commands/generate-tech-docs.md +365 -365
  75. package/core/commands/learn.md +347 -347
  76. package/core/commands/map-testids.md +322 -322
  77. package/core/commands/propose-scenario.md +335 -335
  78. package/core/commands/qc-analyze.md +323 -324
  79. package/core/commands/qc-design-test.md +304 -304
  80. package/core/commands/qc-plan.md +297 -297
  81. package/core/commands/qc-report.md +302 -302
  82. package/core/commands/qc-review.md +298 -298
  83. package/core/commands/qc-run-test.md +337 -337
  84. package/core/commands/refine-prd.md +428 -430
  85. package/core/commands/report-bug.md +351 -351
  86. package/core/commands/review-code.md +364 -364
  87. package/core/commands/review-context.md +578 -580
  88. package/core/commands/review-tech-docs.md +427 -427
  89. package/core/commands/setup-ai-first.md +239 -239
  90. package/core/commands/sync.md +145 -145
  91. package/core/commands/update-framework.md +88 -88
  92. package/core/commands/validate-traces.md +381 -381
  93. package/core/skills/code/SKILL.md +389 -389
  94. package/core/skills/debug/SKILL.md +391 -391
  95. package/core/skills/design-spec/SKILL.md +318 -318
  96. package/core/skills/discovery/SKILL.md +7 -547
  97. package/core/skills/prd/SKILL.md +298 -394
  98. package/core/skills/setup-ai-first/SKILL.md +80 -80
  99. package/core/skills/spec/SKILL.md +178 -178
  100. package/core/skills/test/SKILL.md +604 -604
  101. package/core/steps/capture-lesson.md +44 -44
  102. package/core/steps/context-loader.md +175 -175
  103. package/core/steps/gate.md +54 -54
  104. package/core/steps/report-footer.md +52 -52
  105. package/core/steps/review-fanout.md +85 -87
  106. package/core/steps/spawn-agent.md +45 -45
  107. package/core/steps/trace-mirror.md +21 -21
  108. package/core/templates/architecture.template.md +37 -37
  109. package/core/templates/design-spec.template.md +77 -77
  110. package/core/templates/platform-guide.template.md +47 -47
  111. package/core/templates/prd.template.md +107 -232
  112. package/core/templates/product-definition.template.md +101 -88
  113. package/core/templates/project-context.yaml +2 -2
  114. package/docs/01-getting-started/core-concepts.md +1 -1
  115. package/docs/01-getting-started/quickstart.md +7 -7
  116. package/docs/02-guides/developer/bdd-and-trace.md +1 -1
  117. package/docs/02-guides/developer/scenarios.md +5 -5
  118. package/docs/02-guides/product-owner/handoff-checklist.md +1 -1
  119. package/docs/02-guides/product-owner/scenarios.md +23 -23
  120. package/docs/02-guides/tester/bug-reporting.md +2 -2
  121. package/docs/02-guides/tester/reading-specs.md +2 -2
  122. package/docs/02-guides/tester/scenarios.md +1 -1
  123. package/docs/02-guides/tester/spec-manifest.md +3 -3
  124. package/docs/02-guides/tester/workflow.md +1 -1
  125. package/docs/03-concepts/architecture.md +3 -3
  126. package/docs/03-concepts/pipeline.md +3 -3
  127. package/docs/04-operations/publishing.md +20 -3
  128. package/docs/04-operations/sync-and-update.md +5 -5
  129. package/docs/05-reference/command-cheatsheet.md +2 -2
  130. package/docs/05-reference/commands.md +8 -8
  131. package/package.json +1 -1
  132. package/scripts/migrate-specs.js +5 -3
  133. package/scripts/rename-prd-files.js +174 -0
  134. package/skills/code/SKILL.md +389 -389
  135. package/skills/code/SKILL.tmpl +56 -56
  136. package/skills/debug/SKILL.md +391 -391
  137. package/skills/debug/SKILL.tmpl +60 -60
  138. package/skills/design-spec/SKILL.md +318 -318
  139. package/skills/design-spec/SKILL.tmpl +37 -37
  140. package/skills/discovery/SKILL.md +7 -547
  141. package/skills/discovery/SKILL.tmpl +7 -140
  142. package/skills/prd/SKILL.md +298 -394
  143. package/skills/prd/SKILL.tmpl +40 -151
  144. package/skills/setup-ai-first/SKILL.md +80 -80
  145. package/skills/setup-ai-first/SKILL.tmpl +28 -28
  146. package/skills/spec/SKILL.md +178 -178
  147. package/skills/spec/SKILL.tmpl +20 -20
  148. package/skills/test/SKILL.md +604 -604
  149. package/skills/test/SKILL.tmpl +44 -44
  150. package/steps/capture-lesson.md +44 -44
  151. package/steps/context-loader.md +175 -175
  152. package/steps/gate.md +54 -54
  153. package/steps/report-footer.md +52 -52
  154. package/steps/review-fanout.md +85 -87
  155. package/steps/spawn-agent.md +45 -45
  156. package/steps/trace-mirror.md +21 -21
  157. package/templates/architecture.template.md +37 -37
  158. package/templates/design-spec.template.md +77 -77
  159. package/templates/platform-guide.template.md +47 -47
  160. package/templates/prd.template.md +107 -232
  161. package/templates/product-definition.template.md +101 -88
  162. package/templates/project-context.yaml +2 -2
@@ -1,22 +1,22 @@
1
1
  ---
2
- description: Sets up the Spec-Driven Development framework in any backend project from scratch. Trigger when: "/setup-ai-first", "setup spec-driven workflow", "initialize ai-first framework", "cài đặt framework", "khởi tạo spec-driven", "set up this workflow", "how do I start using this framework".
2
+ description: Cài đặt framework Spec-Driven Development trong bất kỳ backend project nào từ đầu. Trigger when: "/setup-ai-first", "setup spec-driven workflow", "initialize ai-first framework", "cài đặt framework", "khởi tạo spec-driven", "set up this workflow", "how do I start using this framework".
3
3
  ---
4
4
 
5
5
  # /setup-ai-first — Initialize Spec-Driven Docs in a Project
6
6
 
7
- Walk the user through a one-time setup that creates all required directories, installs CLAUDE.md, and verifies the environment.
7
+ Dẫn người dùng qua một setup một-lần tạo mọi thư mục cần thiết, cài CLAUDE.md, verify môi trường.
8
8
 
9
9
  ## Precondition Check
10
10
 
11
- First, ask: "Bạn đang ở project nào? Cho tôi đường dẫn root của project."
11
+ Trước tiên, hỏi: "Bạn đang ở project nào? Cho tôi đường dẫn root của project."
12
12
 
13
- Check if already set up:
14
- - If `.claude/commands/` exists with `.md` files report "Already set up. Run `/validate-traces` to check status."
15
- - If `specs/` existsoffer to re-initialize or skip
13
+ Kiểm tra đã setup chưa:
14
+ - Nếu `.claude/commands/` tồn tại với file `.md` → báo "Đã setup. Chạy `/validate-traces` để kiểm tra trạng thái."
15
+ - Nếu `specs/` tồn tại đề nghị re-initialize hoặc skip
16
16
 
17
- ## Step 1 — Create Directory Structure
17
+ ## Step 1 — Tạo cấu trúc thư mục
18
18
 
19
- Create the following directories (skip if already exist):
19
+ Tạo các thư mục sau (skip nếu đã tồn tại):
20
20
 
21
21
  ```
22
22
  {project-root}/
@@ -28,22 +28,22 @@ Create the following directories (skip if already exist):
28
28
  └── review/ # Output of /refine-prd ({prd-slug}-findings.yaml)
29
29
  ```
30
30
 
31
- **Feature-package layout** — per-feature artifacts are NOT pre-created here; each command
32
- creates its own folder on demand under `specs/{domain}/{prd-slug}/`:
31
+ **Bố cục feature-package** — artifact theo từng feature KHÔNG được tạo trước ở đây; mỗi lệnh
32
+ tự tạo folder của nó on demand dưới `specs/{domain}/{prd-slug}/`:
33
33
 
34
34
  ```
35
35
  specs/{domain}/{prd-slug}/
36
- ├── prd.md # /generate-prd
37
- ├── bdd/ # /generate-bdd (.feature files)
36
+ ├── {TICKET-ID}-{prd-slug}.md # /generate-prd (vd SEG01-segment-scoring-service.md)
37
+ ├── bdd/ # /generate-bdd (file .feature)
38
38
  ├── tech-docs/ # /generate-tech-docs
39
- └── design-spec/ # /generate-design-spec (FE/App only)
39
+ └── design-spec/ # /generate-design-spec (chỉ FE/App)
40
40
  ```
41
41
 
42
- Report each directory created or already existing.
42
+ Report mỗi thư mục được tạo hoặc đã tồn tại.
43
43
 
44
44
  ## Step 2 — Copy Slash Commands
45
45
 
46
- Tell the user:
46
+ Nói với người dùng:
47
47
 
48
48
  > "Framework này đã cài slash commands vào Claude tự động qua skill system.
49
49
  > Nếu bạn muốn dùng commands trực tiếp trong Claude Code project (`.claude/commands/`), chạy lệnh sau:"
@@ -54,21 +54,21 @@ mkdir -p {project-root}/.claude/commands
54
54
  cp {plugin-dir}/commands/*.md {project-root}/.claude/commands/
55
55
  ```
56
56
 
57
- Note: The `.claude/commands/` copies are optional. Skills in this framework work without them.
57
+ Lưu ý: Bản copy `.claude/commands/` tuỳ chọn. Skill trong framework này hoạt động không cần chúng.
58
58
 
59
- ## Step 3 — Create CLAUDE.md
59
+ ## Step 3 — Tạo CLAUDE.md
60
60
 
61
- Check if `{project-root}/CLAUDE.md` exists:
62
- - If yes: ask "CLAUDE.md đã tồn tại. Merge template vào hay bỏ qua?"
63
- - If no: create from template in `templates/architecture.template.md`
61
+ Kiểm tra `{project-root}/CLAUDE.md` tồn tại chưa:
62
+ - Nếu có: hỏi "CLAUDE.md đã tồn tại. Merge template vào hay bỏ qua?"
63
+ - Nếu không: tạo từ template trong `templates/architecture.template.md`
64
64
 
65
- After creating, instruct:
65
+ Sau khi tạo, hướng dẫn:
66
66
  > "Mở CLAUDE.md và điền vào các placeholder `{{...}}` với thông tin dự án của bạn.
67
67
  > Đặc biệt quan trọng: §1 (project overview) và §3 (coding standards)."
68
68
 
69
- ## Step 4 — Create project-context.yaml
69
+ ## Step 4 — Tạo project-context.yaml
70
70
 
71
- Create `{project-root}/.agent/project-context.yaml`:
71
+ Tạo `{project-root}/.agent/project-context.yaml`:
72
72
 
73
73
  ```yaml
74
74
  # Project context for AI-First workflow
@@ -97,11 +97,11 @@ domains: [] # List your business domains, e.g. [rental, payment, user]
97
97
 
98
98
  ## Step 5 — Verify Setup
99
99
 
100
- Run a quick check:
101
- - [ ] `specs/` directory exists
102
- - [ ] `.trace/` directory exists
103
- - [ ] `.agent/project-context.yaml` exists
104
- - [ ] `CLAUDE.md` exists
100
+ Chạy check nhanh:
101
+ - [ ] Thư mục `specs/` tồn tại
102
+ - [ ] Thư mục `.trace/` tồn tại
103
+ - [ ] `.agent/project-context.yaml` tồn tại
104
+ - [ ] `CLAUDE.md` tồn tại
105
105
 
106
106
  Report:
107
107
  ```
@@ -113,38 +113,38 @@ Files created:
113
113
  ✅ .agent/project-context.yaml (needs customization)
114
114
  ```
115
115
 
116
- # Report Footer — Standard Command Output Format
116
+ # Report Footer — Định dạng output chuẩn cho mọi lệnh
117
117
 
118
- Every command report must end with this standard footer section.
118
+ Mọi report của lệnh phải kết thúc bằng section footer chuẩn này.
119
119
 
120
120
  ## Status Badge
121
121
 
122
- Choose one based on outcome:
123
- - `✅ Complete` — all steps succeeded, no issues found
124
- - `❌ Failed` — command could not complete due to a blocking error
125
- - `⚠️ Warnings` — completed with non-blocking issues that should be reviewed
122
+ Chọn một theo kết quả:
123
+ - `✅ Complete` — mọi bước thành công, không vấn đề
124
+ - `❌ Failed` — lệnh không hoàn thành được do lỗi chặn
125
+ - `⚠️ Warnings` — hoàn thành nhưng vấn đề không chặn, nên review lại
126
126
 
127
127
  ## Output Artifacts
128
128
 
129
- List every file created or modified by this command:
129
+ Liệt mọi file được tạo hoặc sửa bởi lệnh này:
130
130
  ```
131
131
  Output Artifacts:
132
- {created|updated} {file-path} ({brief description})
133
- {created|updated} {file-path} ({brief description})
132
+ {created|updated} {file-path} ({ tả ngắn})
133
+ {created|updated} {file-path} ({ tả ngắn})
134
134
  ```
135
135
 
136
- If no files were written (e.g., review or analysis commands) → write `Output Artifacts: none (read-only)`.
136
+ Nếu không ghi file nào (vd: lệnh review hoặc phân tích) → ghi `Output Artifacts: none (read-only)`.
137
137
 
138
138
  ## Pipeline Position
139
139
 
140
- Print a one-line map of the pipeline with the CURRENT command's phase marked `◀ bạn ở đây`,
141
- so the user always sees where this command sits in the end-to-end flow:
140
+ In một đồ pipeline một dòng, đánh dấu phase của lệnh HIỆN TẠI bằng `◀ bạn ở đây`,
141
+ để người dùng luôn thấy lệnh này nằm đâu trong luồng end-to-end:
142
142
 
143
143
  ```
144
144
  Discovery → PRD → [Design Spec] → BDD → Tech Design → Code → Dev Self-Check → QC → Trace Audit
145
145
  ```
146
146
 
147
- Find the current command in this phase legend and mark **its** phase in the map above:
147
+ Tìm lệnh hiện tại trong bảng phase dưới đây đánh dấu **phase của nó** trong sơ đồ trên:
148
148
 
149
149
  | Phase | Commands |
150
150
  |-------|----------|
@@ -158,59 +158,59 @@ Find the current command in this phase legend and mark **its** phase in the map
158
158
  | QC | `/qc-analyze` · `/qc-plan` · `/qc-design-test` · `/qc-review` · `/qc-run-test` · `/qc-report` |
159
159
  | Trace Audit | `/validate-traces` |
160
160
 
161
- For a **review command**, also append the 3-step review loop with the current step marked, e.g.:
161
+ Với **lệnh review**, thêm vòng review 3 bước đánh dấu bước hiện tại, vd:
162
162
  `Vòng review: [① phân tích ◀] → ② Review Board → ③ --resume`.
163
163
 
164
- **Cross-cutting commands** (`/sync`, `/update-framework`, `/fix-bug`, `/debug`, `/learn`,
165
- `/report-bug`, `/propose-scenario`, `/generate-spec-manifest`) sit outside the linear pipeline
166
- **omit the Pipeline line entirely** for these (do not force-fit them onto the map).
164
+ **Lệnh xuyên suốt** (`/sync`, `/update-framework`, `/fix-bug`, `/debug`, `/learn`,
165
+ `/report-bug`, `/propose-scenario`, `/generate-spec-manifest`) nằm ngoài pipeline tuyến tính
166
+ **bỏ hẳn dòng Pipeline** cho các lệnh này (đừng cố nhét chúng vào đồ).
167
167
 
168
- ## Next Command Suggestion
168
+ ## Gợi ý lệnh tiếp theo
169
169
 
170
- Suggest the logical next command based on workflow phase:
170
+ Gợi ý lệnh kế tiếp hợp theo phase của workflow:
171
171
 
172
- | Current command | Suggest next |
172
+ | Lệnh hiện tại | Gợi ý lệnh tiếp theo |
173
173
  |-------------------------|-----------------------------------------------|
174
- | /setup-ai-first | `/define-product` to start your first feature |
174
+ | /setup-ai-first | `/define-product` để bắt đầu feature đầu tiên |
175
175
  | /define-product | `/generate-prd {product-definition-file}` |
176
- | /generate-prd | `/refine-prd {prd-file}` then `/review-context {prd-file}` |
177
- | /refine-prd | Open Review Board → update PRD → `/review-context {prd-file}` |
178
- | /review-context (PRD) | FE/App: `/generate-design-spec {prd-file}` (then BDD after sign-off); BE: `/generate-bdd {prd-file}` directly; fix PRD if NEEDS_FIX |
179
- | /generate-design-spec | Designer review → Figma links confirmed → PO + Designer sign-off → `/generate-bdd {prd-file}` |
180
- | /generate-bdd | `/review-context {feature-file}` to verify coverage |
181
- | /review-context (BDD) | `/generate-tech-docs {UC-ID}` if APPROVED; regenerate if NEEDS_FIX |
182
- | /qc-analyze | `/qc-plan {UC-ID}` (resolve 🔴 blocker gaps first) |
176
+ | /generate-prd | `/refine-prd {prd-file}` rồi `/review-context {prd-file}` |
177
+ | /refine-prd | Mở Review Board → cập nhật PRD → `/review-context {prd-file}` |
178
+ | /review-context (PRD) | FE/App: `/generate-design-spec {prd-file}` (rồi BDD sau khi sign-off); BE: `/generate-bdd {prd-file}` trực tiếp; sửa PRD nếu NEEDS_FIX |
179
+ | /generate-design-spec | Designer review → xác nhận link Figma → PO + Designer sign-off → `/generate-bdd {prd-file}` |
180
+ | /generate-bdd | `/review-context {feature-file}` để kiểm tra độ phủ |
181
+ | /review-context (BDD) | `/generate-tech-docs {UC-ID}` nếu APPROVED; sinh lại nếu NEEDS_FIX |
182
+ | /qc-analyze | `/qc-plan {UC-ID}` (xử các gap blocker 🔴 trước) |
183
183
  | /qc-plan | `/qc-design-test {UC-ID}` |
184
- | /qc-design-test | `/qc-review {UC-ID}` (test-case review) |
185
- | /qc-review (test-case) | `/qc-run-test {UC-ID}` if APPROVED; fix TCs if NEEDS_FIX |
186
- | /qc-run-test | `/qc-report {UC-ID}` then `/qc-review {UC-ID}` (script review) |
187
- | /qc-review (script) | `/qc-report {UC-ID}` then create PR if APPROVED |
188
- | /qc-report | `/validate-traces {UC-ID}` to refresh Living Docs (qc_status) |
184
+ | /qc-design-test | `/qc-review {UC-ID}` (review test-case) |
185
+ | /qc-review (test-case) | `/qc-run-test {UC-ID}` nếu APPROVED; sửa TC nếu NEEDS_FIX |
186
+ | /qc-run-test | `/qc-report {UC-ID}` rồi `/qc-review {UC-ID}` (review script) |
187
+ | /qc-review (script) | `/qc-report {UC-ID}` rồi tạo PR nếu APPROVED |
188
+ | /qc-report | `/validate-traces {UC-ID}` để làm mới Living Docs (qc_status) |
189
189
  | /generate-tech-docs | `/review-tech-docs {tech-design-file}` |
190
- | /review-tech-docs | `/generate-code {feature-file}` if APPROVED; fix doc if NEEDS_FIX |
191
- | /generate-code | First gen → `/review-code {UC-ID}`; re-gen → `/dev-gen-test {UC-ID}` |
190
+ | /review-tech-docs | `/generate-code {feature-file}` nếu APPROVED; sửa doc nếu NEEDS_FIX |
191
+ | /generate-code | Lần gen đầu → `/review-code {UC-ID}`; gen lại → `/dev-gen-test {UC-ID}` |
192
192
  | /dev-gen-test | `/dev-run-test {UC-ID}` |
193
193
  | /dev-run-test (passing) | `/review-code {UC-ID}` |
194
- | /dev-run-test (failing) | `/fix-bug {ticket-id}` or `/debug {error}` |
195
- | /review-code | `/dev-smoke-test {UC-ID}` or create PR |
196
- | /dev-smoke-test | Create PR and link to ticket |
197
- | /validate-traces | DRIFT/UNTRACKED → `/generate-code {UC-ID}`; GAP → `/dev-gen-test {UC-ID}`; all OK → create PR |
198
- | /fix-bug | Create PR and link to ticket |
199
- | /debug | `/fix-bug {ticket-id}` if fix needed |
200
- | /report-bug | Send to dev (`/fix-bug {BUG-ID}`); if coverage gap → `/propose-scenario {UC-ID}` |
201
- | /propose-scenario | Notify PO/Dev to review the proposal in `feedback/bdd-proposals/` |
202
- | /learn | Continue working — lesson applies on next command |
203
- | /sync | `/validate-traces` for full coverage; act on any `📥 tester feedback` surfaced |
204
- | /update-framework | Review `git diff .agent/`, commit; `/sync` for project content |
205
-
206
- Format the footer as:
194
+ | /dev-run-test (failing) | `/fix-bug {ticket-id}` hoặc `/debug {error}` |
195
+ | /review-code | `/dev-smoke-test {UC-ID}` hoặc tạo PR |
196
+ | /dev-smoke-test | Tạo PR link tới ticket |
197
+ | /validate-traces | DRIFT/UNTRACKED → `/generate-code {UC-ID}`; GAP → `/dev-gen-test {UC-ID}`; tất cả OK → tạo PR |
198
+ | /fix-bug | Tạo PR link tới ticket |
199
+ | /debug | `/fix-bug {ticket-id}` nếu cần sửa |
200
+ | /report-bug | Gửi cho dev (`/fix-bug {BUG-ID}`); nếu thiếu coverage → `/propose-scenario {UC-ID}` |
201
+ | /propose-scenario | Báo PO/Dev review proposal trong `feedback/bdd-proposals/` |
202
+ | /learn | Tiếp tục làm việc — lesson áp dụng lệnh kế tiếp |
203
+ | /sync | `/validate-traces` để xem độ phủ đầy đủ; xử lý mọi `📥 tester feedback` được nêu |
204
+ | /update-framework | Review `git diff .agent/`, commit; `/sync` để đồng bộ nội dung dự án |
205
+
206
+ Định dạng footer như sau:
207
207
  ```
208
208
  ---
209
209
  Status : {badge}
210
- {Output Artifacts block}
210
+ {khối Output Artifacts}
211
211
  Pipeline : Discovery → PRD → [BDD ◀ bạn ở đây] → Tech Design → Code → Dev Self-Check → QC → Trace Audit
212
- (review cmd) Vòng review: [① phân tích ◀] → ② Review Board → ③ --resume
213
- Next : {suggested command with example arguments}
212
+ (lệnh review) Vòng review: [① phân tích ◀] → ② Review Board → ③ --resume
213
+ Next : {lệnh gợi ý kèm ví dụ tham số}
214
214
  ```
215
- *(Omit the `Pipeline` line for cross-cutting commands listed above.)*
215
+ *(Bỏ dòng `Pipeline` cho các lệnh xuyên suốt liệt kê ở trên.)*
216
216