sdtk-kit 0.3.6 → 0.3.8

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 (42) hide show
  1. package/README.md +10 -1
  2. package/assets/manifest/toolkit-bundle.manifest.json +116 -56
  3. package/assets/manifest/toolkit-bundle.sha256.txt +38 -26
  4. package/assets/toolkit/toolkit/AGENTS.md +31 -9
  5. package/assets/toolkit/toolkit/skills/sdtk-api-design-spec/SKILL.md +4 -0
  6. package/assets/toolkit/toolkit/skills/sdtk-api-design-spec/references/API_DESIGN_CREATION_RULES.md +7 -1
  7. package/assets/toolkit/toolkit/skills/sdtk-api-design-spec/references/API_DESIGN_FLOWCHART_CREATION_RULES.md +17 -0
  8. package/assets/toolkit/toolkit/skills/sdtk-api-doc/SKILL.md +4 -0
  9. package/assets/toolkit/toolkit/skills/sdtk-api-doc/references/API_DESIGN_FLOWCHART_CREATION_RULES.md +17 -0
  10. package/assets/toolkit/toolkit/skills/sdtk-arch/SKILL.md +34 -2
  11. package/assets/toolkit/toolkit/skills/sdtk-arch/references/API_DESIGN_CREATION_RULES.md +7 -1
  12. package/assets/toolkit/toolkit/skills/sdtk-arch/references/API_DESIGN_FLOWCHART_CREATION_RULES.md +17 -0
  13. package/assets/toolkit/toolkit/skills/sdtk-arch/references/FLOW_ACTION_SPEC_CREATION_RULES.md +56 -9
  14. package/assets/toolkit/toolkit/skills/sdtk-ba/SKILL.md +4 -0
  15. package/assets/toolkit/toolkit/skills/sdtk-design-layout/SKILL.md +20 -0
  16. package/assets/toolkit/toolkit/skills/sdtk-design-layout/scripts/render_design_layout_images.py +213 -0
  17. package/assets/toolkit/toolkit/skills/sdtk-dev/SKILL.md +75 -5
  18. package/assets/toolkit/toolkit/skills/sdtk-dev/prompts/code-quality-reviewer.md +35 -0
  19. package/assets/toolkit/toolkit/skills/sdtk-dev/prompts/implementer.md +61 -0
  20. package/assets/toolkit/toolkit/skills/sdtk-dev/prompts/spec-reviewer.md +42 -0
  21. package/assets/toolkit/toolkit/skills/sdtk-dev-backend/SKILL.md +4 -0
  22. package/assets/toolkit/toolkit/skills/sdtk-dev-frontend/SKILL.md +4 -0
  23. package/assets/toolkit/toolkit/skills/sdtk-orchestrator/SKILL.md +38 -2
  24. package/assets/toolkit/toolkit/skills/sdtk-pm/SKILL.md +4 -0
  25. package/assets/toolkit/toolkit/skills/sdtk-qa/SKILL.md +36 -6
  26. package/assets/toolkit/toolkit/skills/sdtk-screen-design-spec/SKILL.md +10 -3
  27. package/assets/toolkit/toolkit/skills/sdtk-screen-design-spec/references/FLOW_ACTION_SPEC_CREATION_RULES.md +56 -9
  28. package/assets/toolkit/toolkit/skills/sdtk-test-case-spec/SKILL.md +11 -0
  29. package/assets/toolkit/toolkit/skills/skills.catalog.yaml +302 -0
  30. package/assets/toolkit/toolkit/templates/docs/api/API_DESIGN_CREATION_RULES.md +7 -1
  31. package/assets/toolkit/toolkit/templates/docs/api/API_DESIGN_DETAIL_TEMPLATE.md +6 -0
  32. package/assets/toolkit/toolkit/templates/docs/api/API_DESIGN_FLOWCHART_CREATION_RULES.md +17 -0
  33. package/assets/toolkit/toolkit/templates/docs/specs/FLOW_ACTION_SPEC_CREATION_RULES.md +56 -9
  34. package/assets/toolkit/toolkit/templates/docs/specs/FLOW_ACTION_SPEC_TEMPLATE.md +14 -2
  35. package/assets/toolkit/toolkit/templates/handoffs/ARCH_TO_DEV.md +31 -0
  36. package/assets/toolkit/toolkit/templates/handoffs/BA_TO_ARCH.md +28 -0
  37. package/assets/toolkit/toolkit/templates/handoffs/DEV_STAGE1_SPEC_REVIEW.md +26 -0
  38. package/assets/toolkit/toolkit/templates/handoffs/DEV_STAGE2_CODE_QUALITY_REVIEW.md +20 -0
  39. package/assets/toolkit/toolkit/templates/handoffs/DEV_TO_QA.md +23 -0
  40. package/assets/toolkit/toolkit/templates/handoffs/PM_TO_BA.md +26 -0
  41. package/assets/toolkit/toolkit/templates/handoffs/QA_RELEASE_DECISION.md +21 -0
  42. package/package.json +1 -1
@@ -0,0 +1,42 @@
1
+ # SDTK DEV Spec Reviewer Prompt Template
2
+
3
+ You are the artifact/spec compliance reviewer for a completed SDTK development task.
4
+
5
+ ## Gate Position
6
+ This is Stage 1 review. It runs before the code-quality reviewer.
7
+
8
+ ## Inputs From Controller
9
+ - Task ID: `{{TASK_ID}}`
10
+ - Feature key: `{{FEATURE_KEY}}`
11
+ - Scope summary: `{{SCOPE_SUMMARY}}`
12
+ - Implementer report:
13
+
14
+ ```text
15
+ {{IMPLEMENTER_REPORT}}
16
+ ```
17
+
18
+ - Requirements to validate against:
19
+
20
+ ```text
21
+ {{SPEC_REQUIREMENTS}}
22
+ ```
23
+
24
+ - Files to review:
25
+
26
+ ```text
27
+ {{FILES_TO_REVIEW}}
28
+ ```
29
+
30
+ ## Review Rules
31
+ - Do NOT trust implementer report, verify code.
32
+ - Read the actual files listed by the controller.
33
+ - Compare the changed artifacts against the provided BA/API/FLOW_ACTION/DB/plan requirements line by line.
34
+ - Identify missing behavior, incorrect mappings, requirement drift, and unverified assumptions.
35
+ - If artifact compliance fails, do not allow the code-quality review to proceed.
36
+
37
+ ## Response Format
38
+ - Gate result: `{{GATE_RESULT}}`
39
+ - Requirement-by-requirement findings: `{{SPEC_FINDINGS}}`
40
+ - Missing or incorrect artifacts: `{{ARTIFACT_GAPS}}`
41
+ - Required fixes before Stage 2: `{{REQUIRED_FIXES}}`
42
+ - Verification notes: `{{VERIFICATION_NOTES}}`
@@ -5,6 +5,10 @@ description: Generate/modify Python Django REST Framework backend code following
5
5
 
6
6
  # SDTK Backend (Toolkit conventions)
7
7
 
8
+ ## Critical Constraints
9
+ - I do not generate backend code without approved API and data-contract sources.
10
+ - I do not ignore established repository patterns when adding backend modules.
11
+
8
12
  ## Process
9
13
  1. Check whether this repository already has a backend reference module and follow its patterns.
10
14
  2. Follow module structure: `src/backend/<module>/{models,view,service,serializers,validation,enum,urls.py}`.
@@ -5,6 +5,10 @@ description: Generate/modify React frontend code following the toolkit conventio
5
5
 
6
6
  # SDTK Frontend (Toolkit conventions)
7
7
 
8
+ ## Critical Constraints
9
+ - I do not implement screens without current layout and flow-action sources.
10
+ - I do not bypass existing frontend patterns for loading, permissions, or labels.
11
+
8
12
  ## Process
9
13
  1. Check whether this repository already has a frontend reference module and follow its patterns.
10
14
  2. Follow structure:
@@ -5,6 +5,10 @@ description: Orchestrate a full 6-phase SDLC multi-agent workflow (PM/BA/ARCH/DE
5
5
 
6
6
  # SDTK Orchestrator (multi-agent workflow)
7
7
 
8
+ ## Critical Constraints
9
+ - I do not skip mandatory phases or hand off without current-phase evidence.
10
+ - I do not treat planned commands as equivalent to completed work.
11
+
8
12
  ## Initialize
9
13
  - Ensure feature key + feature name exist (ask if missing).
10
14
  - Read `sdtk.config.json` (project stack + commands) if present.
@@ -21,7 +25,7 @@ description: Orchestrate a full 6-phase SDLC multi-agent workflow (PM/BA/ARCH/DE
21
25
  - If phase is QA and test-case specification is in scope, invoke `sdtk-test-case-spec` to produce/update `docs/qa/[FEATURE_KEY]_TEST_CASE.md`.
22
26
  - Update `SHARED_PLANNING.md` (phase row + activity log).
23
27
  - Update `QUALITY_CHECKLIST.md` (mark items PASS/Pending).
24
- - Produce one clear handoff message to the next role.
28
+ - Produce one clear handoff message to the next role only after the current phase evidence supports that handoff.
25
29
 
26
30
  ## API design detail mode (Hybrid)
27
31
  - Read `sdtk.config.json` key: `orchestration.apiDesignDetailMode`.
@@ -37,8 +41,40 @@ description: Orchestrate a full 6-phase SDLC multi-agent workflow (PM/BA/ARCH/DE
37
41
  - `on`: always run `sdtk-test-case-spec` for QA phase (fail fast if required inputs are missing).
38
42
  - `off`: skip test-case spec generation unless user explicitly requests it.
39
43
 
44
+ ## Flow Overview
45
+
46
+ ```dot
47
+ digraph sdtk_orchestrator_flow {
48
+ rankdir=LR;
49
+ PM -> BA;
50
+ BA -> ARCH;
51
+ ARCH -> DEV;
52
+ DEV -> QA;
53
+ QA -> PM;
54
+ }
55
+ ```
56
+
57
+ ## Verification Before Completion
58
+ Apply `governance/ai/core/SDTK_VERIFICATION_BEFORE_COMPLETION_POLICY.md` whenever you mark a phase complete, mark a gate PASS, or hand off to the next role. Require fresh verification evidence before you state that the phase is done.
59
+
60
+ Do not:
61
+ - say a phase is done or PASS without citing the evidence that proves it
62
+ - treat a planned command as equivalent to an executed command
63
+ - hand off DEV or QA work with overstated verification status
64
+
65
+ If the evidence is incomplete, keep the phase open or mark it blocked instead of overstating completion.
66
+
40
67
  ## Guardrails
41
68
  - Do not skip phases; if prerequisites are missing, ask focused questions.
42
69
  - Keep traceability: REQ -> BR/UC/AC -> design -> backlog -> code/tests -> QA report.
43
70
  - Require code review completion before QA handoff.
44
- - If input requirements are VI/JP: preserve original text + add EN translation in appendix for traceability (at least in Project Initiation and BA spec).
71
+ - If input requirements are VI/JP: preserve original text + add EN translation in appendix for traceability (at least in Project Initiation and BA spec).
72
+
73
+
74
+ ## Common Mistakes
75
+
76
+ | Mistake | Why it is wrong | Do instead |
77
+ |---|---|---|
78
+ | Skip directly from PM to DEV because the request seems small | Breaks traceability and removes BA and ARCH controls | Keep phase order unless the user explicitly narrows scope with acceptable evidence |
79
+ | Hand off a phase based on planned checks instead of executed evidence | Creates false PASS status and weakens downstream gates | Require fresh evidence before marking the phase complete |
80
+ | Mix generation, review, and release decisions in one uncontrolled turn | Makes status tracking ambiguous | Complete one phase handoff at a time and update shared state before moving on |
@@ -5,6 +5,10 @@ description: Product Manager + meta-orchestrator workflow for SDTK. Use when you
5
5
 
6
6
  # SDTK PM (Entry Point + Planning)
7
7
 
8
+ ## Critical Constraints
9
+ - I do not hand off PM work until `SHARED_PLANNING.md` and `QUALITY_CHECKLIST.md` reflect the current phase.
10
+ - I do not hide unresolved scope or decision gaps; I record them as `OQ-xx` items for downstream roles.
11
+
8
12
  ## Outputs
9
13
  - Phase 1: `docs/product/PROJECT_INITIATION_[FEATURE_KEY].md`
10
14
  - Phase 2+ (after BA spec): `docs/product/PRD_[FEATURE_KEY].md` + `docs/product/BACKLOG_[FEATURE_KEY].md`
@@ -5,19 +5,49 @@ description: QA workflow for SDTK. Use when you need to validate an implemented
5
5
 
6
6
  # SDTK QA (Testing + Release Decision)
7
7
 
8
+ ## Critical Constraints
9
+ - I do not start QA handoff or release decision work until both DEV review gates PASS.
10
+ - I do not approve without exact specification quotes and fresh verification evidence.
11
+
8
12
  ## Output
9
13
  - `docs/qa/QA_RELEASE_REPORT_[FEATURE_KEY].md`
10
14
  - Optional (when detailed test design spec is requested):
11
15
  - `docs/qa/[FEATURE_KEY]_TEST_CASE.md` via `sdtk-test-case-spec`
12
16
 
13
17
  ## Process
14
- 1. Validate prerequisites: DEV phase completed + code review PASS.
18
+ 1. Validate prerequisites: DEV phase completed + Stage 1 artifact/spec review PASS + Stage 2 code-quality review PASS.
15
19
  2. Create test strategy mapped to UC/AC.
16
20
  3. If test-case specification artifact is required, invoke `sdtk-test-case-spec` and align counts/coverage with release testing scope. Keep the structured TEST_CASE total consistent with the release-report baseline; track E2E separately if needed.
17
21
  4. Apply `governance/ai/core/SDTK_BENCHMARK_QA_MODE_POLICY.md` for benchmark-mode verdict rules when no executable build exists.
18
22
  5. If acceptance criteria / expected behavior is unclear, record OQ-xx in QA report and preserve benchmark-expected ambiguity per `governance/ai/core/SDTK_BENCHMARK_OQ_POLICY.md`; escalate to `@pm` if still missing info.
19
- 6. Execute/record results (unit/integration/e2e as applicable).
20
- 7. Record defects with severity and status.
21
- 8. Decide: APPROVED vs REJECTED (with reasons).
22
- 9. Update shared state + Phase 5 checklist.
23
- 10. Handoff: `@pm please finalize release status ...` if approved.
23
+ 6. Execute the required checks, record the commands used, and capture the actual results (unit/integration/e2e or document review evidence as applicable).
24
+ 7. When validating requirement behavior, quote the exact specification text before recording a match or mismatch.
25
+ 8. Record defects with severity and status.
26
+ 9. Decide: APPROVED vs REJECTED only after fresh verification evidence supports the verdict.
27
+ 10. Update shared state + Phase 5 checklist.
28
+ 11. Handoff: `@pm please finalize release status ...` if approved.
29
+
30
+ ## Verification Before Completion
31
+ Apply `governance/ai/core/SDTK_VERIFICATION_BEFORE_COMPLETION_POLICY.md` and require fresh verification evidence before any QA verdict or handoff.
32
+
33
+ Do not:
34
+ - issue an APPROVED verdict without fresh verification evidence
35
+ - infer PASS from expected behavior, partial logs, or missing runtime access
36
+ - overstate benchmark-mode results as if they were live execution results
37
+
38
+ If the environment cannot run the proving checks, follow the benchmark QA mode policy explicitly and state that the result is not fully verified at runtime.
39
+
40
+ ## Specification Quoting
41
+ When validating a requirement, quote the exact source text before judging the evidence.
42
+
43
+ Use this format:
44
+ - `Spec says: "[exact quote]" -> Evidence: [match/mismatch + file reference]`
45
+
46
+ Apply it to BA, PRD or BACKLOG, ARCH, API, DB, and flow-action sources whenever they define the expected behavior.
47
+
48
+ ## Order-Critical Hard Gate
49
+ Do not start QA handoff, release testing, or release decision work until both DEV review gates are documented as PASS:
50
+ - Stage 1 artifact/spec compliance review
51
+ - Stage 2 code-quality review
52
+
53
+ If either review gate is missing or not PASS, keep the work in DEV and block QA handoff until both gates are complete.
@@ -5,6 +5,10 @@ description: Create/update screen flow-action specifications from requirement so
5
5
 
6
6
  # SDTK Screen Flow Action Spec
7
7
 
8
+ ## Critical Constraints
9
+ - I do not finalize UI-scope screens without a valid design source type and reference.
10
+ - I do not leave broken image paths or incomplete API mappings in the flow-action spec.
11
+
8
12
  ## Outputs
9
13
  - `docs/specs/[FEATURE_KEY]_FLOW_ACTION_SPEC.md`
10
14
  - Optional supporting docs:
@@ -30,7 +34,7 @@ description: Create/update screen flow-action specifications from requirement so
30
34
  4. Build/update section `Feature overview` and `Screen flow action` (PlantUML).
31
35
  5. For each screen/dialog:
32
36
  - Add metadata (screen ID, Design Source Type, Design Source Reference)
33
- - Add screen image reference (from Figma, screenshot, or generated layout)
37
+ - Add screen image reference (from Figma, screenshot, or rendered `.svg` from generated layout)
34
38
  - Add UI item/action table with `No` column
35
39
  - Add API mapping table (trigger -> API -> data usage)
36
40
  6. Build/update `System processing flow` from use-case and process sources.
@@ -38,13 +42,16 @@ description: Create/update screen flow-action specifications from requirement so
38
42
  8. Build/update `Screen - API Mapping` summary section.
39
43
  9. Validate:
40
44
  - global numbering consistency (no screen-level reset)
41
- - no broken image paths
45
+ - no broken image paths (for `generated-draft` screens, verify `.svg` exists or use render-skipped note)
42
46
  - PlantUML renderability
43
47
  - consistency with API endpoints spec
44
48
  - EN artifact hygiene (no VI leftovers, no mojibake, no merged heading lines)
45
49
  - for legacy specs with per-screen reset numbering: run renumber migration first
46
50
  - every UI-scope screen declares a Design Source Type (`source-backed` or `generated-draft`)
47
- 10. Update document history and handoff to ARCH/DEV.
51
+ 10. For `generated-draft` screens, set `Screen image:` to the rendered `.svg` path if the file exists:
52
+ - Expected path: `docs/specs/assets/<feature_snake>/screens/<screen_id>.svg`
53
+ - If the `.svg` does not exist (render unavailable), replace the image reference with: `> Screen image not rendered in this environment. See Design Source Reference for layout.`
54
+ 11. Update document history and handoff to ARCH/DEV.
48
55
 
49
56
  ## Rule References
50
57
  - Core rules: `./references/FLOW_ACTION_SPEC_CREATION_RULES.md`
@@ -19,12 +19,13 @@ A flow-action spec should include, at minimum:
19
19
 
20
20
  1. `Abbreviations`
21
21
  2. `Feature overview`
22
- 3. `Screen flow action` (with PlantUML)
23
- 4. `Screen layout spec by flow action`
24
- 5. `System processing flow`
25
- 6. `Open questions`
26
- 7. `Screen - API mapping`
27
- 8. `Document history`
22
+ 3. `Assumptions`
23
+ 4. `Screen flow action` (with PlantUML)
24
+ 5. `Screen layout spec by flow action`
25
+ 6. `System processing flow`
26
+ 7. `Open questions`
27
+ 8. `Screen - API mapping`
28
+ 9. `Document history`
28
29
 
29
30
  If a section is not in scope, keep the section and mark explicitly as `N/A` with reason.
30
31
 
@@ -40,7 +41,34 @@ If a section is not in scope, keep the section and mark explicitly as `N/A` with
40
41
  - Table rows must keep column count consistent with the header (no broken or merged rows).
41
42
  - Avoid single-line merged content that collapses multiple logical items into one table row.
42
43
 
43
- ### 3.1 Language and Encoding Standards (EN Artifacts)
44
+ ### 3.1 Action Table Mapping Completion Rules
45
+
46
+ - After API endpoint spec and database spec are available, the action-table columns `Attribute`, `DB Column`, `Size`, and `Default Value` must not be left blank when the mapping can be derived from current source-of-truth inputs.
47
+ - Fill these four columns only after the relevant API contract and DB schema are stable enough to be treated as the current source of truth for the active phase.
48
+ - Source priority for filling the four columns:
49
+ 1. `docs/api/*_ENDPOINTS.md` and OpenAPI YAML for request/response contract
50
+ 2. `docs/database/DATABASE_SPEC_*.md` for physical column names, nullability, storage shape, and query-source aliases
51
+ 3. confirmed flow/business rules for default state and behavior
52
+ 4. design source (Figma/Excel) for screen label and control type only
53
+ - `Attribute` rules:
54
+ - input item: use the canonical request payload path
55
+ - display item: use the canonical response path
56
+ - UI-only item: use `ui.*` namespace
57
+ - `DB Column` rules:
58
+ - use physical DB column names or query-source aliases from the API/database spec
59
+ - if multiple columns participate, list them explicitly
60
+ - if the control is UI-only, write `N/A`
61
+ - `Size` rules:
62
+ - document data format/type, not pixel width
63
+ - prefer canonical forms such as `uuid`, `DATE (YYYY-MM-DD)`, `DATETIME`, `TIME (HH:mm)`, `boolean`, `array[uuid]`, `enum(...)`, `JSON string`
64
+ - prefer DB storage type first; if not available, fall back to API schema type/format
65
+ - `Default Value` rules:
66
+ - use confirmed business, UI, or runtime defaults
67
+ - if the default comes from settings or environment, state that clearly
68
+ - if not finalized, use `TBD` and keep or raise an open-question reference in `Note`
69
+ - If screen labels conflict with canonical API/DB naming, preserve the original screen label in the visible screen columns, but keep `Attribute` and `DB Column` aligned to API/DB source of truth and explain the mismatch in `Note`.
70
+
71
+ ### 3.2 Language and Encoding Standards (EN Artifacts)
44
72
 
45
73
  - For EN artifacts (`docs/en/**` or explicitly requested EN version), narrative text must be English.
46
74
  - JP labels, if provided by the input, should be kept in a clearly marked appendix or note column, not in the default item table columns.
@@ -49,12 +77,19 @@ If a section is not in scope, keep the section and mark explicitly as `N/A` with
49
77
  - Save files as UTF-8 and avoid mojibake/broken glyphs (`�`, `ↁE`, garbled sequences).
50
78
  - Keep canonical terminology stable across documents (for example: `bukken`, `sagyo`, `customer employee`).
51
79
 
52
- ### 3.2 Markdown Structure Hygiene
80
+ ### 3.3 Markdown Structure Hygiene
53
81
 
54
82
  - Keep each heading on its own line; do not concatenate multiple headings/sections on one line.
55
83
  - Keep metadata blocks (`Information`, `Note`, `Behavior notes`) as structured bullet blocks, not single compressed lines.
56
84
  - Keep image, table, and separator (`---`) boundaries explicit to preserve parser/render stability.
57
85
 
86
+ ### 3.4 Assumptions Section
87
+
88
+ - Every flow-action spec must include a top-level `## Assumptions` section.
89
+ - Use this table format exactly: `# | Assumption | Verified | Risk if wrong`.
90
+ - Keep assumptions explicit when downstream mapping or behavior depends on an unresolved decision.
91
+ - If an assumption affects UI behavior, API mapping, or DB mapping, reflect the risk in `Note` and keep or raise the related `OQ-xx` item.
92
+
58
93
  ## 4. Item Numbering and Duplication Rules
59
94
 
60
95
  - Use one numbering mode only: `global across document`.
@@ -115,6 +150,17 @@ Rules:
115
150
  - Store images in repository-relative paths.
116
151
  - Do not keep temporary local absolute paths in markdown.
117
152
 
153
+ ### 8.1 Rendered Screen Images for Generated-Draft Screens
154
+
155
+ When `Design Source Type` is `generated-draft`:
156
+ - Screen preview images may be rendered from `DESIGN_LAYOUT_[FEATURE_KEY].md` PlantUML SALT wireframes.
157
+ - Renderer: `toolkit/skills/sdtk-design-layout/scripts/render_design_layout_images.py`
158
+ - Expected output path: `docs/specs/assets/<feature_snake>/screens/<screen_id>.svg`
159
+ - If the rendered `.svg` file exists, use it as the `Screen image:` reference.
160
+ - If rendering is unavailable or the `.svg` does not exist, replace the image line with:
161
+ `> Screen image not rendered in this environment. See Design Source Reference for layout.`
162
+ - Do not leave a broken image reference pointing to a non-existent file.
163
+
118
164
  ## 9. Consistency with Other Specs
119
165
 
120
166
  - Align terms with:
@@ -145,8 +191,9 @@ Rules:
145
191
  - All mandatory sections exist.
146
192
  - All tables include `No`.
147
193
  - Numbering is global across the document (no resets).
148
- - No broken image links.
194
+ - No broken image links (for `generated-draft` screens: `.svg` exists or render-skipped note is present).
149
195
  - Screen/API mappings are consistent with `*_ENDPOINTS.md`.
196
+ - Assumptions section exists and unresolved assumptions are traceable.
150
197
  - Open questions are explicit and traceable.
151
198
  - For EN artifact: no leftover VI text outside allowed `Original Text` appendix blocks.
152
199
  - No mojibake/encoding corruption markers.
@@ -5,6 +5,10 @@ description: Generate screen-based QA test-case markdown (`[FEATURE_KEY]_TEST_CA
5
5
 
6
6
  # SDTK Test Case Spec
7
7
 
8
+ ## Critical Constraints
9
+ - I do not invent test coverage beyond BA, flow-action, and API sources.
10
+ - I do not let test totals drift away from worksheet rows or the QA baseline.
11
+
8
12
  ## Outputs
9
13
  - `docs/qa/[FEATURE_KEY]_TEST_CASE.md`
10
14
  - Optional project variant:
@@ -28,6 +32,7 @@ description: Generate screen-based QA test-case markdown (`[FEATURE_KEY]_TEST_CA
28
32
  4. Keep one unified 18-column schema for UTC/ITC rows.
29
33
  5. Keep stable case IDs; do not renumber only because of regrouping.
30
34
  6. Track unresolved decisions via `OQ-xx` and keep benchmark-expected OQs explicitly OPEN per `governance/ai/core/SDTK_BENCHMARK_OQ_POLICY.md`.
35
+ 7. Quote exact BA, API, or flow-action requirement text when a testcase or coverage claim depends on that requirement.
31
36
 
32
37
  ## Procedure
33
38
  1. Resolve output path:
@@ -44,6 +49,12 @@ description: Generate screen-based QA test-case markdown (`[FEATURE_KEY]_TEST_CA
44
49
  - no placeholder tokens like `??`
45
50
  - out-of-scope boundaries are explicit
46
51
 
52
+ ## Specification Quoting
53
+ When a testcase, coverage note, or defect check depends on a requirement, quote the exact source text before stating coverage or mismatch.
54
+
55
+ Use this format:
56
+ - `Spec says: "[exact quote]" -> Evidence: [covered/not covered + file reference]`
57
+
47
58
  ## Role Integration
48
59
  - Primary owner: `/qa`.
49
60
  - `/qa` uses this skill to design/update reusable test-case specs.