@edupia-tutor/spec-driven-docs 0.14.0 → 0.14.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.
- package/commands/debug.md +435 -435
- package/commands/debug.tmpl +111 -111
- package/commands/define-product.md +330 -327
- package/commands/define-product.tmpl +50 -47
- package/commands/dev-gen-test.md +364 -364
- package/commands/dev-gen-test.tmpl +63 -63
- package/commands/dev-run-test.md +375 -375
- package/commands/dev-run-test.tmpl +74 -74
- package/commands/dev-smoke-test.md +340 -340
- package/commands/dev-smoke-test.tmpl +60 -60
- package/commands/fix-bug.md +402 -402
- package/commands/fix-bug.tmpl +78 -78
- package/commands/generate-bdd.md +512 -512
- package/commands/generate-bdd.tmpl +211 -211
- package/commands/generate-code.md +480 -482
- package/commands/generate-code.tmpl +179 -181
- package/commands/generate-design-spec.md +495 -495
- package/commands/generate-design-spec.tmpl +219 -219
- package/commands/generate-prd.md +445 -396
- package/commands/generate-prd.tmpl +45 -198
- package/commands/generate-spec-manifest.md +337 -337
- package/commands/generate-spec-manifest.tmpl +57 -57
- package/commands/generate-tech-docs.md +364 -364
- package/commands/generate-tech-docs.tmpl +84 -84
- package/commands/learn.md +346 -346
- package/commands/learn.tmpl +22 -22
- package/commands/map-testids.md +321 -321
- package/commands/map-testids.tmpl +41 -41
- package/commands/propose-scenario.md +334 -334
- package/commands/propose-scenario.tmpl +54 -54
- package/commands/qc-analyze.md +322 -323
- package/commands/qc-analyze.tmpl +42 -43
- package/commands/qc-design-test.md +303 -303
- package/commands/qc-design-test.tmpl +23 -23
- package/commands/qc-plan.md +296 -296
- package/commands/qc-plan.tmpl +16 -16
- package/commands/qc-report.md +301 -301
- package/commands/qc-report.tmpl +21 -21
- package/commands/qc-review.md +297 -297
- package/commands/qc-review.tmpl +17 -17
- package/commands/qc-run-test.md +336 -336
- package/commands/qc-run-test.tmpl +35 -35
- package/commands/refine-prd.md +426 -428
- package/commands/refine-prd.tmpl +61 -61
- package/commands/report-bug.md +350 -350
- package/commands/report-bug.tmpl +70 -70
- package/commands/review-code.md +363 -363
- package/commands/review-code.tmpl +39 -39
- package/commands/review-context.md +577 -579
- package/commands/review-context.tmpl +212 -212
- package/commands/review-tech-docs.md +426 -426
- package/commands/review-tech-docs.tmpl +146 -146
- package/commands/setup-ai-first.md +237 -237
- package/commands/setup-ai-first.tmpl +131 -131
- package/commands/sync.md +145 -145
- package/commands/sync.tmpl +93 -93
- package/commands/update-framework.md +88 -88
- package/commands/update-framework.tmpl +36 -36
- package/commands/validate-traces.md +379 -379
- package/commands/validate-traces.tmpl +99 -99
- package/core/FRAMEWORK_VERSION +1 -1
- package/core/commands/debug.md +435 -435
- package/core/commands/define-product.md +330 -327
- package/core/commands/dev-gen-test.md +364 -364
- package/core/commands/dev-run-test.md +375 -375
- package/core/commands/dev-smoke-test.md +340 -340
- package/core/commands/fix-bug.md +402 -402
- package/core/commands/generate-bdd.md +512 -512
- package/core/commands/generate-code.md +480 -482
- package/core/commands/generate-design-spec.md +495 -495
- package/core/commands/generate-prd.md +445 -396
- package/core/commands/generate-spec-manifest.md +337 -337
- package/core/commands/generate-tech-docs.md +364 -364
- package/core/commands/learn.md +346 -346
- package/core/commands/map-testids.md +321 -321
- package/core/commands/propose-scenario.md +334 -334
- package/core/commands/qc-analyze.md +322 -323
- package/core/commands/qc-design-test.md +303 -303
- package/core/commands/qc-plan.md +296 -296
- package/core/commands/qc-report.md +301 -301
- package/core/commands/qc-review.md +297 -297
- package/core/commands/qc-run-test.md +336 -336
- package/core/commands/refine-prd.md +426 -428
- package/core/commands/report-bug.md +350 -350
- package/core/commands/review-code.md +363 -363
- package/core/commands/review-context.md +577 -579
- package/core/commands/review-tech-docs.md +426 -426
- package/core/commands/setup-ai-first.md +237 -237
- package/core/commands/sync.md +145 -145
- package/core/commands/update-framework.md +88 -88
- package/core/commands/validate-traces.md +379 -379
- package/core/skills/code/SKILL.md +388 -388
- package/core/skills/debug/SKILL.md +390 -390
- package/core/skills/design-spec/SKILL.md +316 -316
- package/core/skills/discovery/SKILL.md +7 -547
- package/core/skills/prd/SKILL.md +298 -394
- package/core/skills/setup-ai-first/SKILL.md +79 -79
- package/core/skills/spec/SKILL.md +176 -176
- package/core/skills/test/SKILL.md +602 -602
- package/core/steps/capture-lesson.md +44 -44
- package/core/steps/context-loader.md +174 -174
- package/core/steps/gate.md +54 -54
- package/core/steps/report-footer.md +52 -52
- package/core/steps/review-fanout.md +85 -87
- package/core/steps/spawn-agent.md +45 -45
- package/core/steps/trace-mirror.md +21 -21
- package/core/templates/architecture.template.md +37 -37
- package/core/templates/design-spec.template.md +77 -77
- package/core/templates/platform-guide.template.md +47 -47
- package/core/templates/prd.template.md +106 -231
- package/core/templates/product-definition.template.md +101 -88
- package/docs/04-operations/publishing.md +20 -3
- package/package.json +1 -1
- package/skills/code/SKILL.md +388 -388
- package/skills/code/SKILL.tmpl +56 -56
- package/skills/debug/SKILL.md +390 -390
- package/skills/debug/SKILL.tmpl +60 -60
- package/skills/design-spec/SKILL.md +316 -316
- package/skills/design-spec/SKILL.tmpl +36 -36
- package/skills/discovery/SKILL.md +7 -547
- package/skills/discovery/SKILL.tmpl +7 -140
- package/skills/prd/SKILL.md +298 -394
- package/skills/prd/SKILL.tmpl +40 -151
- package/skills/setup-ai-first/SKILL.md +79 -79
- package/skills/setup-ai-first/SKILL.tmpl +27 -27
- package/skills/spec/SKILL.md +176 -176
- package/skills/spec/SKILL.tmpl +18 -18
- package/skills/test/SKILL.md +602 -602
- package/skills/test/SKILL.tmpl +44 -44
- package/steps/capture-lesson.md +44 -44
- package/steps/context-loader.md +174 -174
- package/steps/gate.md +54 -54
- package/steps/report-footer.md +52 -52
- package/steps/review-fanout.md +85 -87
- package/steps/spawn-agent.md +45 -45
- package/steps/trace-mirror.md +21 -21
- package/templates/architecture.template.md +37 -37
- package/templates/design-spec.template.md +77 -77
- package/templates/platform-guide.template.md +47 -47
- package/templates/prd.template.md +106 -231
- package/templates/product-definition.template.md +101 -88
package/commands/qc-analyze.tmpl
CHANGED
|
@@ -6,12 +6,12 @@ ported_from: ai-automation-qc-base
|
|
|
6
6
|
|
|
7
7
|
# /qc-analyze — QC Requirement Analysis
|
|
8
8
|
|
|
9
|
-
> Stage 1
|
|
9
|
+
> Stage 1 của QC automation pipeline native (qc-analyze → qc-plan → qc-design-test → qc-review → qc-run-test → qc-report). Port từ qa-analyst của team QC. Markdown-first: không có script ở đây.
|
|
10
10
|
|
|
11
11
|
## Gate
|
|
12
12
|
{{include:steps/gate.md}}
|
|
13
13
|
|
|
14
|
-
*
|
|
14
|
+
*Lưu ý: Với lệnh này, target ở Bước 1 là một UC-ID hoặc file feature/PRD. Đọc spec chính thức của UC đó — file `.feature` (mang `@trace.id={UC-ID}` và mỗi scenario `@trace.scenario={UC-ID}-SC{N}`), PRD, và design-spec — từ feature package `{paths.specs_dir}/{domain}/{prd-slug}/` (file `.feature` dưới `bdd/`, `prd.md`, và design-spec dưới `design-spec/`). Spec của framework CHÍNH LÀ source of truth; đừng suy lại các requirement đã có ở đó.*
|
|
15
15
|
|
|
16
16
|
## Context
|
|
17
17
|
{{include:steps/context-loader.md}}
|
|
@@ -20,67 +20,66 @@ ported_from: ai-automation-qc-base
|
|
|
20
20
|
|
|
21
21
|
## Role
|
|
22
22
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
23
|
+
Bạn là **QC Analyst** — stage đầu tiên của QC automation pipeline. Lấy requirement
|
|
24
|
+
chính thức (PRD + BDD `.feature` + design-spec) và phân rã thành một mô tả requirement
|
|
25
|
+
CÓ CẤU TRÚC: function, business rule, data flow, acceptance criteria. Bạn **không**
|
|
26
|
+
viết test case chi tiết hay Python (đó là qc-design-test / qc-run-test).
|
|
27
27
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
hand off to qc-plan — never invent an answer.
|
|
28
|
+
Ranh giới với `/qc-plan`: bạn trả lời *"requirement là gì?"*; qc-plan trả lời *"rủi ro ở đâu,
|
|
29
|
+
hỏi dev gì?"*. Khi có gì mơ hồ/thiếu, ghi nó thành gap và bàn giao cho qc-plan — đừng bao giờ bịa câu trả lời.
|
|
31
30
|
|
|
32
31
|
## Skills (`{paths.qc_skills_dir}/qa-analyst/`)
|
|
33
32
|
|
|
34
|
-
|
|
35
|
-
- `spec-breakdown.md` —
|
|
36
|
-
- `business-rules.md` —
|
|
37
|
-
- `data-flow.md` — input/output, data flow,
|
|
38
|
-
- `acceptance-criteria.md` — Given/When/Then
|
|
33
|
+
Chỉ nạp file cho bước đang làm (mỗi file tự đủ):
|
|
34
|
+
- `spec-breakdown.md` — phân rã spec/PRD/user story thành cấu trúc.
|
|
35
|
+
- `business-rules.md` — trích business rule, điều kiện, ràng buộc (code `BR-xx`).
|
|
36
|
+
- `data-flow.md` — input/output, data flow, điểm tích hợp/thất bại.
|
|
37
|
+
- `acceptance-criteria.md` — acceptance criteria Given/When/Then (code `AC-xx`).
|
|
39
38
|
|
|
40
|
-
|
|
39
|
+
Thứ tự điển hình: spec-breakdown → business-rules / data-flow → acceptance-criteria.
|
|
41
40
|
|
|
42
|
-
## Trace mapping (
|
|
41
|
+
## Trace mapping (bắt buộc)
|
|
43
42
|
|
|
44
|
-
|
|
45
|
-
`@trace.business_rules`. Map
|
|
46
|
-
|
|
47
|
-
|
|
43
|
+
File `.feature` chính thức đã định nghĩa scenario là `@trace.scenario={UC-ID}-SC{N}` với
|
|
44
|
+
`@trace.business_rules`. Map mọi `BR-xx` / `AC-xx` bạn tạo ra tới `{UC-ID}-SC{N}` sở hữu nó
|
|
45
|
+
và ghi lại mapping — qc-design-test và qc-run-test cần nó để gắn tag
|
|
46
|
+
`@trace.verifies` cho test và ghi `qc_status` theo từng scenario.
|
|
48
47
|
|
|
49
|
-
## DOC_GAPS (
|
|
48
|
+
## DOC_GAPS (bắt buộc)
|
|
50
49
|
|
|
51
|
-
|
|
52
|
-
-
|
|
53
|
-
-
|
|
54
|
-
-
|
|
55
|
-
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
(
|
|
59
|
-
coverage. `ASSUMPTION` / `OPEN QUESTION`
|
|
50
|
+
Luôn tạo một file gaps theo `{paths.qc_skills_dir}/qa-analyst/DOC_GAPS.template.md`:
|
|
51
|
+
- Mỗi gap `GAP-xx`, phân loại MISSING / AMBIGUOUS / CONTRADICTORY / ASSUMPTION / OPEN QUESTION, với severity (🔴 Blocker → 🟢 Low) và function/BR/AC bị ảnh hưởng.
|
|
52
|
+
- Không bao giờ bịa câu trả lời; đánh dấu giả định là `ASSUMPTION` để PO/dev confirm.
|
|
53
|
+
- Bất kỳ `🔴 Blocker` nào còn `Open` ⇒ UC chưa sẵn sàng cho qc-design-test — bàn giao cho qc-plan.
|
|
54
|
+
- **Đẩy các defect spec thực sự lên PO (không chỉ giữ local).** Một blocker là lỗi thật
|
|
55
|
+
trong spec chính thức — `AMBIGUOUS` / `CONTRADICTORY` / `MISSING` trong PRD/BDD — phải tới
|
|
56
|
+
PO qua feedback flow, không chỉ nằm trong `DOC_GAPS.md`: tạo `/report-bug {UC-ID} {desc}`
|
|
57
|
+
(BUG_FLOW của nó phân loại PRD vs BDD), hoặc `/propose-scenario {UC-ID}` nếu gap là thiếu test
|
|
58
|
+
coverage. Gap `ASSUMPTION` / `OPEN QUESTION` được confirm qua questions-for-dev của qc-plan — không file thành bug.
|
|
60
59
|
|
|
61
60
|
## Output
|
|
62
61
|
|
|
63
|
-
|
|
64
|
-
|
|
62
|
+
Ghi **đúng HAI file** dưới `{paths.qc_dir}/{UC-ID}/` — **đừng** tách phân tích
|
|
63
|
+
thành một-file-mỗi-bước (không có file spec-breakdown / business-rules / data-flow / AC riêng):
|
|
65
64
|
|
|
66
|
-
1. **`{paths.qc_dir}/{UC-ID}/REQUIREMENT_ANALYSIS.md`** —
|
|
67
|
-
|
|
68
|
-
acceptance-criteria (`AC-xx`),
|
|
69
|
-
2. **`{paths.qc_dir}/{UC-ID}/DOC_GAPS.md`** —
|
|
65
|
+
1. **`{paths.qc_dir}/{UC-ID}/REQUIREMENT_ANALYSIS.md`** — bản phân tích hợp nhất duy nhất.
|
|
66
|
+
Section theo thứ tự: phân rã requirement → bảng business-rule (`BR-xx`) → data-flow →
|
|
67
|
+
acceptance-criteria (`AC-xx`), mỗi `BR`/`AC` map tới `{UC-ID}-SC{N}` sở hữu nó.
|
|
68
|
+
2. **`{paths.qc_dir}/{UC-ID}/DOC_GAPS.md`** — file gaps (theo `{paths.qc_skills_dir}/qa-analyst/DOC_GAPS.template.md`).
|
|
70
69
|
|
|
71
|
-
`{paths.qc_dir}`
|
|
72
|
-
|
|
73
|
-
spec
|
|
70
|
+
`{paths.qc_dir}` là folder top-level NHÌN THẤY trong QC repo (mặc định `docs/`, **không** phải
|
|
71
|
+
`.agent/review/` ẩn) để team QC mở và xử lý output dễ dàng. Spec chính thức ở lại
|
|
72
|
+
spec submodule của PO — đừng ghi phân tích vào đó.
|
|
74
73
|
|
|
75
74
|
## Report
|
|
76
75
|
|
|
77
76
|
{{include:steps/report-footer.md}}
|
|
78
77
|
|
|
79
78
|
```
|
|
80
|
-
/qc-analyze
|
|
79
|
+
/qc-analyze Hoàn tất — {UC-ID}
|
|
81
80
|
Files: {paths.qc_dir}/{UC-ID}/REQUIREMENT_ANALYSIS.md + DOC_GAPS.md (2 files)
|
|
82
|
-
Gaps: {N} ({blockers} blocker) ← spec-defect
|
|
83
|
-
SC mapping: {M} BR/AC
|
|
81
|
+
Gaps: {N} ({blockers} blocker) ← blocker là spec-defect? → /report-bug {UC-ID} | coverage gap → /propose-scenario {UC-ID}
|
|
82
|
+
SC mapping: {M} BR/AC map tới {K} scenario
|
|
84
83
|
Next: /qc-plan {UC-ID} ← risk / what-if / questions-for-dev
|
|
85
|
-
(
|
|
84
|
+
(giải quyết các gap 🔴 Blocker với PO/Dev trước)
|
|
86
85
|
```
|