sdtk-spec-kit 0.4.3 → 0.4.5
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/README.md +369 -376
- package/assets/atlas/build_atlas.py +880 -873
- package/assets/atlas/doc_atlas_viewer_template.html +3796 -3722
- package/assets/atlas/vendor/mermaid.min.js +2029 -2029
- package/assets/keys/spec-entitlement-public.pem +11 -11
- package/assets/manifest/toolkit-bundle.manifest.json +178 -178
- package/assets/manifest/toolkit-bundle.sha256.txt +83 -83
- package/assets/toolkit/toolkit/AGENTS.md +247 -245
- package/assets/toolkit/toolkit/README.md +50 -50
- package/assets/toolkit/toolkit/SDTK_TOOLKIT.md +207 -208
- package/assets/toolkit/toolkit/install.ps1 +21 -21
- package/assets/toolkit/toolkit/runtimes/claude/CLAUDE_TEMPLATE.md +92 -92
- package/assets/toolkit/toolkit/runtimes/codex/CODEX_TEMPLATE.md +70 -70
- package/assets/toolkit/toolkit/scripts/agents/run-claude-task.ps1 +332 -332
- package/assets/toolkit/toolkit/scripts/agents/run-codex-task.ps1 +618 -618
- package/assets/toolkit/toolkit/scripts/agents/validate-mailbox-formal-artifact.py +86 -86
- package/assets/toolkit/toolkit/scripts/init-feature.ps1 +262 -262
- package/assets/toolkit/toolkit/scripts/install-codex-skills.ps1 +209 -209
- package/assets/toolkit/toolkit/scripts/uninstall-claude-skills.ps1 +139 -139
- package/assets/toolkit/toolkit/scripts/uninstall-codex-skills.ps1 +143 -143
- package/assets/toolkit/toolkit/sdtk-spec.config.json +27 -27
- package/assets/toolkit/toolkit/sdtk-spec.config.profiles.example.json +49 -49
- package/assets/toolkit/toolkit/session/SDTK_ACTIVE_BOOTSTRAP.md +47 -47
- package/assets/toolkit/toolkit/session/SDTK_AGENT_WORKING_RULES.md +49 -49
- package/assets/toolkit/toolkit/skills/sdtk-api-design-spec/SKILL.md +111 -111
- package/assets/toolkit/toolkit/skills/sdtk-api-design-spec/scripts/generate_api_design_detail.py +732 -732
- package/assets/toolkit/toolkit/skills/sdtk-api-doc/SKILL.md +79 -79
- package/assets/toolkit/toolkit/skills/sdtk-arch/SKILL.md +85 -85
- package/assets/toolkit/toolkit/skills/sdtk-ba/SKILL.md +46 -46
- package/assets/toolkit/toolkit/skills/sdtk-design-layout/SKILL.md +91 -91
- package/assets/toolkit/toolkit/skills/sdtk-design-layout/scripts/render_design_layout_images.py +246 -246
- package/assets/toolkit/toolkit/skills/sdtk-dev/prompts/code-quality-reviewer.md +34 -34
- package/assets/toolkit/toolkit/skills/sdtk-dev/prompts/implementer.md +60 -60
- package/assets/toolkit/toolkit/skills/sdtk-dev/prompts/spec-reviewer.md +41 -41
- package/assets/toolkit/toolkit/skills/sdtk-dev-backend/SKILL.md +80 -80
- package/assets/toolkit/toolkit/skills/sdtk-dev-frontend/SKILL.md +80 -80
- package/assets/toolkit/toolkit/skills/sdtk-mailbox-dispatch/SKILL.md +2 -2
- package/assets/toolkit/toolkit/skills/sdtk-orchestrator/SKILL.md +17 -17
- package/assets/toolkit/toolkit/skills/sdtk-screen-design-spec/SKILL.md +106 -106
- package/assets/toolkit/toolkit/skills/sdtk-screen-design-spec/references/excel-image-export.md +50 -50
- package/assets/toolkit/toolkit/skills/sdtk-screen-design-spec/references/figma-mcp.md +53 -53
- package/assets/toolkit/toolkit/skills/sdtk-screen-design-spec/references/numbering-rules.md +28 -28
- package/assets/toolkit/toolkit/skills/sdtk-screen-design-spec/scripts/renumber_flow_action_spec_global.py +136 -136
- package/assets/toolkit/toolkit/skills/sdtk-screen-design-spec/scripts/validate_flow_action_spec_numbering.py +414 -414
- package/assets/toolkit/toolkit/skills/sdtk-test-case-spec/SKILL.md +110 -110
- package/assets/toolkit/toolkit/skills/sdtk-test-case-spec/scripts/validate_test_case_spec.py +97 -97
- package/assets/toolkit/toolkit/skills/skills.catalog.yaml +330 -330
- package/assets/toolkit/toolkit/skills-claude/api-design-spec/SKILL.md +116 -116
- package/assets/toolkit/toolkit/skills-claude/api-doc/SKILL.md +87 -87
- package/assets/toolkit/toolkit/skills-claude/arch/SKILL.md +59 -59
- package/assets/toolkit/toolkit/skills-claude/ba/SKILL.md +67 -67
- package/assets/toolkit/toolkit/skills-claude/design-layout/SKILL.md +91 -91
- package/assets/toolkit/toolkit/skills-claude/dev-backend/SKILL.md +73 -73
- package/assets/toolkit/toolkit/skills-claude/dev-frontend/SKILL.md +73 -73
- package/assets/toolkit/toolkit/skills-claude/mailbox-dispatch/SKILL.md +2 -2
- package/assets/toolkit/toolkit/skills-claude/orchestrator/SKILL.md +40 -40
- package/assets/toolkit/toolkit/skills-claude/pm/SKILL.md +88 -88
- package/assets/toolkit/toolkit/skills-claude/qa/SKILL.md +58 -58
- package/assets/toolkit/toolkit/skills-claude/screen-design-spec/SKILL.md +112 -112
- package/assets/toolkit/toolkit/skills-claude/test-case-spec/SKILL.md +115 -115
- package/assets/toolkit/toolkit/templates/README.md +68 -68
- package/assets/toolkit/toolkit/templates/docs/api/API_DESIGN_CREATION_RULES.md +21 -21
- package/assets/toolkit/toolkit/templates/docs/api/API_DESIGN_DETAIL_TEMPLATE.md +67 -67
- package/assets/toolkit/toolkit/templates/docs/api/API_DESIGN_FLOWCHART_CREATION_RULES.md +468 -468
- package/assets/toolkit/toolkit/templates/docs/api/API_ENDPOINTS_TEMPLATE.md +228 -228
- package/assets/toolkit/toolkit/templates/docs/api/FEATURE_API_TEMPLATE.yaml +20 -20
- package/assets/toolkit/toolkit/templates/docs/api/FLOWCHART_CREATION_RULES.md +20 -20
- package/assets/toolkit/toolkit/templates/docs/api/YAML_CREATION_RULES.md +128 -128
- package/assets/toolkit/toolkit/templates/docs/api/feature_api_flow_list_TEMPLATE.txt +12 -12
- package/assets/toolkit/toolkit/templates/docs/architecture/ARCH_DESIGN_TEMPLATE.md +107 -107
- package/assets/toolkit/toolkit/templates/docs/design/DESIGN_LAYOUT_TEMPLATE.md +60 -60
- package/assets/toolkit/toolkit/templates/docs/dev/OPS_HANDOFF_CREATION_RULES.md +369 -369
- package/assets/toolkit/toolkit/templates/docs/discovery/REQUIREMENT_TEMPLATE.md +155 -155
- package/assets/toolkit/toolkit/templates/docs/product/BACKLOG_TEMPLATE.md +50 -50
- package/assets/toolkit/toolkit/templates/docs/product/CONDENSED_UPSTREAM_INPUT_TEMPLATE.md +276 -276
- package/assets/toolkit/toolkit/templates/docs/product/PRD_TEMPLATE.md +66 -66
- package/assets/toolkit/toolkit/templates/docs/product/PROJECT_INITIATION_TEMPLATE.md +98 -98
- package/assets/toolkit/toolkit/templates/docs/qa/TEST_CASE_CREATION_RULES.md +129 -129
- package/assets/toolkit/toolkit/templates/docs/qa/TEST_CASE_TEMPLATE.md +104 -104
- package/assets/toolkit/toolkit/templates/docs/specs/BA_SPEC_TEMPLATE.md +139 -139
- package/assets/toolkit/toolkit/templates/docs/specs/FLOW_ACTION_SPEC_TEMPLATE.md +197 -197
- package/assets/toolkit/toolkit/templates/handoffs/ARCH_TO_DEV.md +31 -31
- package/assets/toolkit/toolkit/templates/handoffs/BA_TO_ARCH.md +28 -28
- package/assets/toolkit/toolkit/templates/handoffs/DEV_STAGE1_SPEC_REVIEW.md +26 -26
- package/assets/toolkit/toolkit/templates/handoffs/DEV_STAGE2_CODE_QUALITY_REVIEW.md +20 -20
- package/assets/toolkit/toolkit/templates/handoffs/DEV_TO_QA.md +33 -33
- package/assets/toolkit/toolkit/templates/handoffs/PM_TO_BA.md +29 -29
- package/assets/toolkit/toolkit/templates/handoffs/QA_RELEASE_DECISION.md +26 -26
- package/assets/toolkit/toolkit/templates/mailbox/AGENT_TASK_TEMPLATE.md +76 -76
- package/bin/sdtk.js +15 -15
- package/package.json +48 -48
- package/src/commands/activate.js +90 -90
- package/src/commands/analyze.js +11 -0
- package/src/commands/atlas.js +341 -352
- package/src/commands/auth.js +85 -85
- package/src/commands/entitlement.js +163 -163
- package/src/commands/generate.js +209 -147
- package/src/commands/help.js +41 -33
- package/src/commands/init.js +15 -15
- package/src/commands/project.js +51 -51
- package/src/commands/runtime.js +239 -239
- package/src/index.js +9 -6
- package/src/lib/activation-state.js +68 -68
- package/src/lib/args.js +116 -116
- package/src/lib/atlas-config.js +200 -200
- package/src/lib/atlas-runner.js +435 -355
- package/src/lib/browser-open.js +39 -39
- package/src/lib/capabilities.js +92 -92
- package/src/lib/entitlements.js +238 -238
- package/src/lib/errors.js +41 -41
- package/src/lib/github-access.js +143 -143
- package/src/lib/legacy-auth-migration.js +55 -55
- package/src/lib/license-activation.js +375 -351
- package/src/lib/powershell.js +85 -85
- package/src/lib/premium-loader.js +126 -126
- package/src/lib/premium-packs.js +331 -331
- package/src/lib/premium-sync.js +235 -235
- package/src/lib/project-audit.js +332 -332
- package/src/lib/project-config.js +108 -108
- package/src/lib/project-ingest.js +450 -450
- package/src/lib/project-refresh.js +666 -666
- package/src/lib/requirement-analysis.js +396 -0
- package/src/lib/scope.js +83 -83
- package/src/lib/state.js +73 -73
- package/src/lib/suite-state.js +70 -70
- package/src/lib/toolkit-payload.js +99 -99
- package/src/lib/atlas-ask.js +0 -170
|
@@ -1,115 +1,115 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: test-case-spec
|
|
3
|
-
description: Generate screen-based QA test-case markdown in Excel-aligned layout (Statistic + per-screen UTC/ITC worksheets). Use when QA needs reusable test design artifacts before or during execution.
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
## Required Inputs (read before proceeding)
|
|
7
|
-
Read the following artifacts for the current feature:
|
|
8
|
-
1. `docs/specs/[FEATURE_KEY]_FLOW_ACTION_SPEC.md` - screen/flow references
|
|
9
|
-
2. `docs/specs/BA_SPEC_[FEATURE_KEY].md` - business rules, use cases
|
|
10
|
-
3. `docs/api/[FEATURE_KEY]_ENDPOINTS.md` - API reference
|
|
11
|
-
4. `docs/specs/Q&A.md` or `docs/en/specs/Q&A.md` - clarification source (when available)
|
|
12
|
-
|
|
13
|
-
## Input
|
|
14
|
-
$ARGUMENTS
|
|
15
|
-
|
|
16
|
-
# SDTK-SPEC Test Case Spec
|
|
17
|
-
|
|
18
|
-
## Critical Constraints
|
|
19
|
-
- I do not invent test coverage beyond BA, flow-action, and API sources.
|
|
20
|
-
- I do not let test totals drift away from worksheet rows or the QA baseline.
|
|
21
|
-
- I do not emit a final TEST_CASE artifact without applying `./references/TEST_CASE_CREATION_RULES.md`.
|
|
22
|
-
- I do not renumber stable case IDs only because of regrouping; stable IDs preserve traceability.
|
|
23
|
-
|
|
24
|
-
## Outputs
|
|
25
|
-
- `docs/qa/[FEATURE_KEY]_TEST_CASE.md`
|
|
26
|
-
- Optional project variant:
|
|
27
|
-
- `docs/en/qa/[FEATURE_KEY]_TEST_CASE.md` (only when project uses `docs/en/**`)
|
|
28
|
-
|
|
29
|
-
## Required Inputs
|
|
30
|
-
- Feature key (`FEATURE_KEY`)
|
|
31
|
-
- Screen/flow references:
|
|
32
|
-
- `docs/specs/[FEATURE_KEY]_FLOW_ACTION_SPEC.md`
|
|
33
|
-
- `docs/specs/BA_SPEC_[FEATURE_KEY].md`
|
|
34
|
-
- API reference:
|
|
35
|
-
- `docs/api/[FEATURE_KEY]_ENDPOINTS.md`
|
|
36
|
-
- (optional) `docs/api/[FeaturePascal]_API.yaml`
|
|
37
|
-
- Clarification source:
|
|
38
|
-
- `docs/specs/Q&A.md` or `docs/en/specs/Q&A.md` when available
|
|
39
|
-
|
|
40
|
-
## When To Stop Or Escalate
|
|
41
|
-
- Stop if `docs/specs/[FEATURE_KEY]_FLOW_ACTION_SPEC.md` does not exist; do not design test cases without a finalized flow-action spec as the primary source of truth for UI coverage.
|
|
42
|
-
- Stop if the Statistic Summary cannot be completed because test counts cannot be verified against the available flow/action rows; surface the gap rather than estimating.
|
|
43
|
-
- Stop if a coverage claim requires a requirement that is marked OQ-xx and still OPEN; track the gap explicitly in the Open Questions section rather than assuming resolution.
|
|
44
|
-
- Escalate to `/qa` or `sdtk-qa` if the test-case scope intersects a release decision that requires the QA Release Report.
|
|
45
|
-
- Escalate to `@ba` if a BA requirement is ambiguous for a test case that depends on it.
|
|
46
|
-
|
|
47
|
-
## Core Process
|
|
48
|
-
1. Apply `./references/TEST_CASE_CREATION_RULES.md` first.
|
|
49
|
-
2. Resolve output path:
|
|
50
|
-
- default `docs/qa/[FEATURE_KEY]_TEST_CASE.md`
|
|
51
|
-
- use `docs/en/qa/...` only if the repo already follows `docs/en/**`.
|
|
52
|
-
3. Build/refresh `Statistic Summary (Excel-aligned)` with UT total, IT total, and grand total.
|
|
53
|
-
4. Build `Feature Coverage Matrix` from flow/action and API docs.
|
|
54
|
-
5. Split UTC/ITC by screen sections (`screen-first`), not by test type only.
|
|
55
|
-
6. Fill conflict/permission/error-path cases from Q&A decisions and API contracts.
|
|
56
|
-
7. Record unresolved items in section `Open Questions`.
|
|
57
|
-
8. Keep section order fixed: Statistic -> Abbreviations -> Scope -> References -> Environment -> Coverage -> Screen-based UTC/ITC -> OQ -> STC/UAT note.
|
|
58
|
-
9. Keep one unified 18-column schema for UTC/ITC rows.
|
|
59
|
-
10. Keep stable case IDs; do not renumber only because of regrouping.
|
|
60
|
-
11. Track unresolved decisions via `OQ-xx` and keep benchmark-expected OQs explicitly OPEN per `governance/ai/core/SDTK_BENCHMARK_OQ_POLICY.md`.
|
|
61
|
-
|
|
62
|
-
## Validation / Quality Gates
|
|
63
|
-
- Statistic Summary totals match the actual row counts in UTC/ITC tables.
|
|
64
|
-
- Structured TEST_CASE total stays aligned with the QA release-report baseline; E2E tracked separately if applicable.
|
|
65
|
-
- No placeholder tokens such as `??` remain in any field.
|
|
66
|
-
- Out-of-scope boundaries are explicitly stated.
|
|
67
|
-
- Open OQ-xx items are explicitly listed and not silently collapsed.
|
|
68
|
-
- Run `scripts/validate_test_case_spec.py` before finalizing.
|
|
69
|
-
|
|
70
|
-
## Order-Critical Hard Gate
|
|
71
|
-
Do not build the coverage matrix or test rows before applying `./references/TEST_CASE_CREATION_RULES.md`. The rules define mandatory column schema and section order; skipping them produces non-Excel-aligned output that must be reformatted before QA handoff.
|
|
72
|
-
|
|
73
|
-
Do not finalize the artifact before verifying Statistic Summary totals match table row counts. Drifted totals are a hard failure at QA review.
|
|
74
|
-
|
|
75
|
-
## Common Mistakes
|
|
76
|
-
|
|
77
|
-
| Mistake | Why it is wrong | Do instead |
|
|
78
|
-
|---|---|---|
|
|
79
|
-
| Skip TEST_CASE_CREATION_RULES.md and free-form the layout | Produces non-conformant column schema | Always read and apply the rules before writing any row |
|
|
80
|
-
| Let Statistic Summary totals drift from table row counts | Hard failure at QA review | Verify totals against actual rows before finalizing |
|
|
81
|
-
| Renumber stable case IDs during regrouping | Breaks traceability with existing defect refs | Preserve case IDs; regroup without renumbering |
|
|
82
|
-
| Leave `??` placeholders in any field | Incomplete test cases cannot be executed | Resolve or escalate every ambiguity before finalizing |
|
|
83
|
-
| Invent coverage beyond available sources | Creates untraceable test claims | Only claim coverage for requirements present in BA/flow/API sources |
|
|
84
|
-
| Collapse OPEN OQ-xx items silently | Hides unresolved gaps from QA | Keep OQ-xx explicitly OPEN in the Open Questions section |
|
|
85
|
-
|
|
86
|
-
## Role Integration
|
|
87
|
-
- Primary owner: `/qa`.
|
|
88
|
-
- `/qa` uses this skill to design/update reusable test-case specs.
|
|
89
|
-
- `/qa` still owns release decision artifact (`QA_RELEASE_REPORT_*`).
|
|
90
|
-
|
|
91
|
-
## Notes
|
|
92
|
-
- This skill is for test-case specification artifacts, not test execution logs.
|
|
93
|
-
- For release approval and defect triage, continue with `/qa`.
|
|
94
|
-
|
|
95
|
-
## Validator Script
|
|
96
|
-
- `scripts/validate_test_case_spec.py`
|
|
97
|
-
|
|
98
|
-
### Typical command
|
|
99
|
-
```bash
|
|
100
|
-
python scripts/validate_test_case_spec.py \
|
|
101
|
-
--file "docs/qa/[FEATURE_KEY]_TEST_CASE.md"
|
|
102
|
-
```
|
|
103
|
-
|
|
104
|
-
## Reference Loading Guidance
|
|
105
|
-
Read at skill start:
|
|
106
|
-
- `./references/TEST_CASE_CREATION_RULES.md` (required before any row generation)
|
|
107
|
-
|
|
108
|
-
Read at slice start:
|
|
109
|
-
- `docs/specs/[FEATURE_KEY]_FLOW_ACTION_SPEC.md` (required)
|
|
110
|
-
- `docs/specs/BA_SPEC_[FEATURE_KEY].md` (required)
|
|
111
|
-
- `docs/api/[FEATURE_KEY]_ENDPOINTS.md` (required)
|
|
112
|
-
|
|
113
|
-
Read on demand:
|
|
114
|
-
- `docs/specs/Q&A.md` or `docs/en/specs/Q&A.md` (when clarification is needed)
|
|
115
|
-
- `governance/ai/core/SDTK_BENCHMARK_OQ_POLICY.md` (when OQ-xx items need policy guidance)
|
|
1
|
+
---
|
|
2
|
+
name: test-case-spec
|
|
3
|
+
description: Generate screen-based QA test-case markdown in Excel-aligned layout (Statistic + per-screen UTC/ITC worksheets). Use when QA needs reusable test design artifacts before or during execution.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
## Required Inputs (read before proceeding)
|
|
7
|
+
Read the following artifacts for the current feature:
|
|
8
|
+
1. `docs/specs/[FEATURE_KEY]_FLOW_ACTION_SPEC.md` - screen/flow references
|
|
9
|
+
2. `docs/specs/BA_SPEC_[FEATURE_KEY].md` - business rules, use cases
|
|
10
|
+
3. `docs/api/[FEATURE_KEY]_ENDPOINTS.md` - API reference
|
|
11
|
+
4. `docs/specs/Q&A.md` or `docs/en/specs/Q&A.md` - clarification source (when available)
|
|
12
|
+
|
|
13
|
+
## Input
|
|
14
|
+
$ARGUMENTS
|
|
15
|
+
|
|
16
|
+
# SDTK-SPEC Test Case Spec
|
|
17
|
+
|
|
18
|
+
## Critical Constraints
|
|
19
|
+
- I do not invent test coverage beyond BA, flow-action, and API sources.
|
|
20
|
+
- I do not let test totals drift away from worksheet rows or the QA baseline.
|
|
21
|
+
- I do not emit a final TEST_CASE artifact without applying `./references/TEST_CASE_CREATION_RULES.md`.
|
|
22
|
+
- I do not renumber stable case IDs only because of regrouping; stable IDs preserve traceability.
|
|
23
|
+
|
|
24
|
+
## Outputs
|
|
25
|
+
- `docs/qa/[FEATURE_KEY]_TEST_CASE.md`
|
|
26
|
+
- Optional project variant:
|
|
27
|
+
- `docs/en/qa/[FEATURE_KEY]_TEST_CASE.md` (only when project uses `docs/en/**`)
|
|
28
|
+
|
|
29
|
+
## Required Inputs
|
|
30
|
+
- Feature key (`FEATURE_KEY`)
|
|
31
|
+
- Screen/flow references:
|
|
32
|
+
- `docs/specs/[FEATURE_KEY]_FLOW_ACTION_SPEC.md`
|
|
33
|
+
- `docs/specs/BA_SPEC_[FEATURE_KEY].md`
|
|
34
|
+
- API reference:
|
|
35
|
+
- `docs/api/[FEATURE_KEY]_ENDPOINTS.md`
|
|
36
|
+
- (optional) `docs/api/[FeaturePascal]_API.yaml`
|
|
37
|
+
- Clarification source:
|
|
38
|
+
- `docs/specs/Q&A.md` or `docs/en/specs/Q&A.md` when available
|
|
39
|
+
|
|
40
|
+
## When To Stop Or Escalate
|
|
41
|
+
- Stop if `docs/specs/[FEATURE_KEY]_FLOW_ACTION_SPEC.md` does not exist; do not design test cases without a finalized flow-action spec as the primary source of truth for UI coverage.
|
|
42
|
+
- Stop if the Statistic Summary cannot be completed because test counts cannot be verified against the available flow/action rows; surface the gap rather than estimating.
|
|
43
|
+
- Stop if a coverage claim requires a requirement that is marked OQ-xx and still OPEN; track the gap explicitly in the Open Questions section rather than assuming resolution.
|
|
44
|
+
- Escalate to `/qa` or `sdtk-qa` if the test-case scope intersects a release decision that requires the QA Release Report.
|
|
45
|
+
- Escalate to `@ba` if a BA requirement is ambiguous for a test case that depends on it.
|
|
46
|
+
|
|
47
|
+
## Core Process
|
|
48
|
+
1. Apply `./references/TEST_CASE_CREATION_RULES.md` first.
|
|
49
|
+
2. Resolve output path:
|
|
50
|
+
- default `docs/qa/[FEATURE_KEY]_TEST_CASE.md`
|
|
51
|
+
- use `docs/en/qa/...` only if the repo already follows `docs/en/**`.
|
|
52
|
+
3. Build/refresh `Statistic Summary (Excel-aligned)` with UT total, IT total, and grand total.
|
|
53
|
+
4. Build `Feature Coverage Matrix` from flow/action and API docs.
|
|
54
|
+
5. Split UTC/ITC by screen sections (`screen-first`), not by test type only.
|
|
55
|
+
6. Fill conflict/permission/error-path cases from Q&A decisions and API contracts.
|
|
56
|
+
7. Record unresolved items in section `Open Questions`.
|
|
57
|
+
8. Keep section order fixed: Statistic -> Abbreviations -> Scope -> References -> Environment -> Coverage -> Screen-based UTC/ITC -> OQ -> STC/UAT note.
|
|
58
|
+
9. Keep one unified 18-column schema for UTC/ITC rows.
|
|
59
|
+
10. Keep stable case IDs; do not renumber only because of regrouping.
|
|
60
|
+
11. Track unresolved decisions via `OQ-xx` and keep benchmark-expected OQs explicitly OPEN per `governance/ai/core/SDTK_BENCHMARK_OQ_POLICY.md`.
|
|
61
|
+
|
|
62
|
+
## Validation / Quality Gates
|
|
63
|
+
- Statistic Summary totals match the actual row counts in UTC/ITC tables.
|
|
64
|
+
- Structured TEST_CASE total stays aligned with the QA release-report baseline; E2E tracked separately if applicable.
|
|
65
|
+
- No placeholder tokens such as `??` remain in any field.
|
|
66
|
+
- Out-of-scope boundaries are explicitly stated.
|
|
67
|
+
- Open OQ-xx items are explicitly listed and not silently collapsed.
|
|
68
|
+
- Run `scripts/validate_test_case_spec.py` before finalizing.
|
|
69
|
+
|
|
70
|
+
## Order-Critical Hard Gate
|
|
71
|
+
Do not build the coverage matrix or test rows before applying `./references/TEST_CASE_CREATION_RULES.md`. The rules define mandatory column schema and section order; skipping them produces non-Excel-aligned output that must be reformatted before QA handoff.
|
|
72
|
+
|
|
73
|
+
Do not finalize the artifact before verifying Statistic Summary totals match table row counts. Drifted totals are a hard failure at QA review.
|
|
74
|
+
|
|
75
|
+
## Common Mistakes
|
|
76
|
+
|
|
77
|
+
| Mistake | Why it is wrong | Do instead |
|
|
78
|
+
|---|---|---|
|
|
79
|
+
| Skip TEST_CASE_CREATION_RULES.md and free-form the layout | Produces non-conformant column schema | Always read and apply the rules before writing any row |
|
|
80
|
+
| Let Statistic Summary totals drift from table row counts | Hard failure at QA review | Verify totals against actual rows before finalizing |
|
|
81
|
+
| Renumber stable case IDs during regrouping | Breaks traceability with existing defect refs | Preserve case IDs; regroup without renumbering |
|
|
82
|
+
| Leave `??` placeholders in any field | Incomplete test cases cannot be executed | Resolve or escalate every ambiguity before finalizing |
|
|
83
|
+
| Invent coverage beyond available sources | Creates untraceable test claims | Only claim coverage for requirements present in BA/flow/API sources |
|
|
84
|
+
| Collapse OPEN OQ-xx items silently | Hides unresolved gaps from QA | Keep OQ-xx explicitly OPEN in the Open Questions section |
|
|
85
|
+
|
|
86
|
+
## Role Integration
|
|
87
|
+
- Primary owner: `/qa`.
|
|
88
|
+
- `/qa` uses this skill to design/update reusable test-case specs.
|
|
89
|
+
- `/qa` still owns release decision artifact (`QA_RELEASE_REPORT_*`).
|
|
90
|
+
|
|
91
|
+
## Notes
|
|
92
|
+
- This skill is for test-case specification artifacts, not test execution logs.
|
|
93
|
+
- For release approval and defect triage, continue with `/qa`.
|
|
94
|
+
|
|
95
|
+
## Validator Script
|
|
96
|
+
- `scripts/validate_test_case_spec.py`
|
|
97
|
+
|
|
98
|
+
### Typical command
|
|
99
|
+
```bash
|
|
100
|
+
python scripts/validate_test_case_spec.py \
|
|
101
|
+
--file "docs/qa/[FEATURE_KEY]_TEST_CASE.md"
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
## Reference Loading Guidance
|
|
105
|
+
Read at skill start:
|
|
106
|
+
- `./references/TEST_CASE_CREATION_RULES.md` (required before any row generation)
|
|
107
|
+
|
|
108
|
+
Read at slice start:
|
|
109
|
+
- `docs/specs/[FEATURE_KEY]_FLOW_ACTION_SPEC.md` (required)
|
|
110
|
+
- `docs/specs/BA_SPEC_[FEATURE_KEY].md` (required)
|
|
111
|
+
- `docs/api/[FEATURE_KEY]_ENDPOINTS.md` (required)
|
|
112
|
+
|
|
113
|
+
Read on demand:
|
|
114
|
+
- `docs/specs/Q&A.md` or `docs/en/specs/Q&A.md` (when clarification is needed)
|
|
115
|
+
- `governance/ai/core/SDTK_BENCHMARK_OQ_POLICY.md` (when OQ-xx items need policy guidance)
|
|
@@ -1,68 +1,68 @@
|
|
|
1
|
-
# Templates (SDTK-SPEC)
|
|
2
|
-
|
|
3
|
-
Files in `toolkit/templates/` are skeleton artifacts used by `init-feature.ps1`
|
|
4
|
-
to bootstrap a new feature across the SDLC phases.
|
|
5
|
-
|
|
6
|
-
**Note:** These templates produce *scaffold* files with TBD placeholders.
|
|
7
|
-
The scaffolds define the document structure for each SDLC phase. Content is
|
|
8
|
-
expected to be filled in by human authors or AI agents working through the
|
|
9
|
-
6-phase pipeline (PM Init -> BA -> PM Planning -> ARCH -> DEV -> QA).
|
|
10
|
-
See `SHARED_PLANNING.md` (generated) for the phase pipeline tracker.
|
|
11
|
-
|
|
12
|
-
## Tokens
|
|
13
|
-
- `{{FEATURE_KEY}}` (UPPER_SNAKE_CASE), example: `WORKFLOW_ENGINE`
|
|
14
|
-
- `{{FEATURE_NAME}}`, example: `Workflow Engine`
|
|
15
|
-
- `{{FEATURE_PASCAL}}`, example: `WorkflowEngine`
|
|
16
|
-
- `{{FEATURE_SNAKE}}` (lower_snake_case), example: `workflow_engine`
|
|
17
|
-
- `{{DATE}}` format: `YYYY-MM-DD`
|
|
18
|
-
- `{{DATETIME}}` format: `YYYY-MM-DD HH:mm`
|
|
19
|
-
|
|
20
|
-
## Generate
|
|
21
|
-
Run from project root:
|
|
22
|
-
|
|
23
|
-
`powershell -ExecutionPolicy Bypass -File ".\\toolkit\\\scripts\\init-feature.ps1" -FeatureKey YOUR_FEATURE -FeatureName "Your Feature"`
|
|
24
|
-
|
|
25
|
-
The script renders templates into `docs/**` and updates:
|
|
26
|
-
- `SHARED_PLANNING.md`
|
|
27
|
-
- `QUALITY_CHECKLIST.md`
|
|
28
|
-
|
|
29
|
-
## Stack Configuration
|
|
30
|
-
- Stack and command values come from `sdtk-spec.config.json` (project root).
|
|
31
|
-
- `init-feature.ps1` reads config values and injects them into templates.
|
|
32
|
-
|
|
33
|
-
## Added Architecture Outputs
|
|
34
|
-
- `docs/api/[FEATURE_KEY]_ENDPOINTS.md`
|
|
35
|
-
- `docs/api/[FEATURE_KEY]_API_DESIGN_DETAIL.md`
|
|
36
|
-
- `docs/database/DATABASE_SPEC_[FEATURE_KEY].md`
|
|
37
|
-
- `docs/specs/[FEATURE_KEY]_FLOW_ACTION_SPEC.md`
|
|
38
|
-
|
|
39
|
-
## Added QA Outputs
|
|
40
|
-
- `docs/qa/[FEATURE_KEY]_TEST_CASE.md`
|
|
41
|
-
- `docs/qa/QA_RELEASE_REPORT_[FEATURE_KEY].md`
|
|
42
|
-
- `docs/qa/CONTROLLER_ACCEPTANCE_[FEATURE_KEY].md`
|
|
43
|
-
|
|
44
|
-
## ARCH Orchestration Mapping
|
|
45
|
-
- API scope: use `sdtk-api-doc`.
|
|
46
|
-
- API detail scope (from YAML + flow list): use `sdtk-api-design-spec` (mode `apiDesignDetailMode: auto|on|off`).
|
|
47
|
-
- UI flow-action scope: use `sdtk-screen-design-spec`.
|
|
48
|
-
|
|
49
|
-
## QA Orchestration Mapping
|
|
50
|
-
- QA release decision/report scope: use `sdtk-qa`.
|
|
51
|
-
- QA detailed test-case spec scope: use `sdtk-test-case-spec` (mode `testCaseSpecMode: auto|on|off`).
|
|
52
|
-
|
|
53
|
-
## Rules Used by Toolkit
|
|
54
|
-
- API design/flowchart rules:
|
|
55
|
-
- `templates/docs/api/YAML_CREATION_RULES.md`
|
|
56
|
-
- `templates/docs/api/API_DESIGN_FLOWCHART_CREATION_RULES.md`
|
|
57
|
-
- Compatibility notes kept for legacy references:
|
|
58
|
-
- `templates/docs/api/FLOWCHART_CREATION_RULES.md`
|
|
59
|
-
- `templates/docs/api/API_DESIGN_CREATION_RULES.md`
|
|
60
|
-
- Screen flow-action spec rules:
|
|
61
|
-
- `templates/docs/specs/FLOW_ACTION_SPEC_CREATION_RULES.md`
|
|
62
|
-
- Numbering mode is fixed: global numbering across full document (no screen-level reset).
|
|
63
|
-
- QA test-case spec rules:
|
|
64
|
-
- `templates/docs/qa/TEST_CASE_CREATION_RULES.md`
|
|
65
|
-
- Skill-specific local helper refs retained outside `templates/docs/**`:
|
|
66
|
-
- `toolkit/skills/sdtk-screen-design-spec/references/numbering-rules.md`
|
|
67
|
-
- `toolkit/skills/sdtk-screen-design-spec/references/figma-mcp.md`
|
|
68
|
-
- `toolkit/skills/sdtk-screen-design-spec/references/excel-image-export.md`
|
|
1
|
+
# Templates (SDTK-SPEC)
|
|
2
|
+
|
|
3
|
+
Files in `toolkit/templates/` are skeleton artifacts used by `init-feature.ps1`
|
|
4
|
+
to bootstrap a new feature across the SDLC phases.
|
|
5
|
+
|
|
6
|
+
**Note:** These templates produce *scaffold* files with TBD placeholders.
|
|
7
|
+
The scaffolds define the document structure for each SDLC phase. Content is
|
|
8
|
+
expected to be filled in by human authors or AI agents working through the
|
|
9
|
+
6-phase pipeline (PM Init -> BA -> PM Planning -> ARCH -> DEV -> QA).
|
|
10
|
+
See `SHARED_PLANNING.md` (generated) for the phase pipeline tracker.
|
|
11
|
+
|
|
12
|
+
## Tokens
|
|
13
|
+
- `{{FEATURE_KEY}}` (UPPER_SNAKE_CASE), example: `WORKFLOW_ENGINE`
|
|
14
|
+
- `{{FEATURE_NAME}}`, example: `Workflow Engine`
|
|
15
|
+
- `{{FEATURE_PASCAL}}`, example: `WorkflowEngine`
|
|
16
|
+
- `{{FEATURE_SNAKE}}` (lower_snake_case), example: `workflow_engine`
|
|
17
|
+
- `{{DATE}}` format: `YYYY-MM-DD`
|
|
18
|
+
- `{{DATETIME}}` format: `YYYY-MM-DD HH:mm`
|
|
19
|
+
|
|
20
|
+
## Generate
|
|
21
|
+
Run from project root:
|
|
22
|
+
|
|
23
|
+
`powershell -ExecutionPolicy Bypass -File ".\\toolkit\\\scripts\\init-feature.ps1" -FeatureKey YOUR_FEATURE -FeatureName "Your Feature"`
|
|
24
|
+
|
|
25
|
+
The script renders templates into `docs/**` and updates:
|
|
26
|
+
- `SHARED_PLANNING.md`
|
|
27
|
+
- `QUALITY_CHECKLIST.md`
|
|
28
|
+
|
|
29
|
+
## Stack Configuration
|
|
30
|
+
- Stack and command values come from `sdtk-spec.config.json` (project root).
|
|
31
|
+
- `init-feature.ps1` reads config values and injects them into templates.
|
|
32
|
+
|
|
33
|
+
## Added Architecture Outputs
|
|
34
|
+
- `docs/api/[FEATURE_KEY]_ENDPOINTS.md`
|
|
35
|
+
- `docs/api/[FEATURE_KEY]_API_DESIGN_DETAIL.md`
|
|
36
|
+
- `docs/database/DATABASE_SPEC_[FEATURE_KEY].md`
|
|
37
|
+
- `docs/specs/[FEATURE_KEY]_FLOW_ACTION_SPEC.md`
|
|
38
|
+
|
|
39
|
+
## Added QA Outputs
|
|
40
|
+
- `docs/qa/[FEATURE_KEY]_TEST_CASE.md`
|
|
41
|
+
- `docs/qa/QA_RELEASE_REPORT_[FEATURE_KEY].md`
|
|
42
|
+
- `docs/qa/CONTROLLER_ACCEPTANCE_[FEATURE_KEY].md`
|
|
43
|
+
|
|
44
|
+
## ARCH Orchestration Mapping
|
|
45
|
+
- API scope: use `sdtk-api-doc`.
|
|
46
|
+
- API detail scope (from YAML + flow list): use `sdtk-api-design-spec` (mode `apiDesignDetailMode: auto|on|off`).
|
|
47
|
+
- UI flow-action scope: use `sdtk-screen-design-spec`.
|
|
48
|
+
|
|
49
|
+
## QA Orchestration Mapping
|
|
50
|
+
- QA release decision/report scope: use `sdtk-qa`.
|
|
51
|
+
- QA detailed test-case spec scope: use `sdtk-test-case-spec` (mode `testCaseSpecMode: auto|on|off`).
|
|
52
|
+
|
|
53
|
+
## Rules Used by Toolkit
|
|
54
|
+
- API design/flowchart rules:
|
|
55
|
+
- `templates/docs/api/YAML_CREATION_RULES.md`
|
|
56
|
+
- `templates/docs/api/API_DESIGN_FLOWCHART_CREATION_RULES.md`
|
|
57
|
+
- Compatibility notes kept for legacy references:
|
|
58
|
+
- `templates/docs/api/FLOWCHART_CREATION_RULES.md`
|
|
59
|
+
- `templates/docs/api/API_DESIGN_CREATION_RULES.md`
|
|
60
|
+
- Screen flow-action spec rules:
|
|
61
|
+
- `templates/docs/specs/FLOW_ACTION_SPEC_CREATION_RULES.md`
|
|
62
|
+
- Numbering mode is fixed: global numbering across full document (no screen-level reset).
|
|
63
|
+
- QA test-case spec rules:
|
|
64
|
+
- `templates/docs/qa/TEST_CASE_CREATION_RULES.md`
|
|
65
|
+
- Skill-specific local helper refs retained outside `templates/docs/**`:
|
|
66
|
+
- `toolkit/skills/sdtk-screen-design-spec/references/numbering-rules.md`
|
|
67
|
+
- `toolkit/skills/sdtk-screen-design-spec/references/figma-mcp.md`
|
|
68
|
+
- `toolkit/skills/sdtk-screen-design-spec/references/excel-image-export.md`
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
# API DESIGN CREATION RULES (Compatibility Note)
|
|
2
|
-
|
|
3
|
-
This file is kept only for backward compatibility.
|
|
4
|
-
|
|
5
|
-
Do not use this file as the primary source of truth anymore.
|
|
6
|
-
The active rule source for API design detail and API flowchart behavior is now:
|
|
7
|
-
- `toolkit/templates/docs/api/API_DESIGN_FLOWCHART_CREATION_RULES.md`
|
|
8
|
-
|
|
9
|
-
Even in compatibility mode, generated API design detail docs must still include:
|
|
10
|
-
- a top-level `## Assumptions` section
|
|
11
|
-
- this table format: `| # | Assumption | Verified | Risk if wrong |`
|
|
12
|
-
- explicit unresolved assumptions when downstream review depends on them
|
|
13
|
-
|
|
14
|
-
Use the active rule file for:
|
|
15
|
-
- API design detail markdown structure
|
|
16
|
-
- flowchart integration and synchronization rules
|
|
17
|
-
- error section rules
|
|
18
|
-
- flow summary / notes / login rules
|
|
19
|
-
- assumptions-section requirements
|
|
20
|
-
|
|
21
|
-
This compatibility note should remain only until all references are migrated.
|
|
1
|
+
# API DESIGN CREATION RULES (Compatibility Note)
|
|
2
|
+
|
|
3
|
+
This file is kept only for backward compatibility.
|
|
4
|
+
|
|
5
|
+
Do not use this file as the primary source of truth anymore.
|
|
6
|
+
The active rule source for API design detail and API flowchart behavior is now:
|
|
7
|
+
- `toolkit/templates/docs/api/API_DESIGN_FLOWCHART_CREATION_RULES.md`
|
|
8
|
+
|
|
9
|
+
Even in compatibility mode, generated API design detail docs must still include:
|
|
10
|
+
- a top-level `## Assumptions` section
|
|
11
|
+
- this table format: `| # | Assumption | Verified | Risk if wrong |`
|
|
12
|
+
- explicit unresolved assumptions when downstream review depends on them
|
|
13
|
+
|
|
14
|
+
Use the active rule file for:
|
|
15
|
+
- API design detail markdown structure
|
|
16
|
+
- flowchart integration and synchronization rules
|
|
17
|
+
- error section rules
|
|
18
|
+
- flow summary / notes / login rules
|
|
19
|
+
- assumptions-section requirements
|
|
20
|
+
|
|
21
|
+
This compatibility note should remain only until all references are migrated.
|
|
@@ -1,67 +1,67 @@
|
|
|
1
|
-
# {{FEATURE_KEY}} API DESIGN DETAIL
|
|
2
|
-
|
|
3
|
-
## 0. Abbreviations
|
|
4
|
-
|
|
5
|
-
| No | Term | Meaning |
|
|
6
|
-
| ---: | --- | --- |
|
|
7
|
-
| 1 | API | Application Programming Interface |
|
|
8
|
-
| 2 | UUID | Universally Unique Identifier |
|
|
9
|
-
| 3 | FE | Frontend |
|
|
10
|
-
| 4 | BE | Backend |
|
|
11
|
-
| 5 | DT | Datetime |
|
|
12
|
-
|
|
13
|
-
## 1. Document Scope
|
|
14
|
-
|
|
15
|
-
| No | Method | Endpoint | Reference Template |
|
|
16
|
-
| ---: | --- | --- | --- |
|
|
17
|
-
| 1 | TBD | TBD | `API_design.xlsx` |
|
|
18
|
-
|
|
19
|
-
## Assumptions
|
|
20
|
-
|
|
21
|
-
| # | Assumption | Verified | Risk if wrong |
|
|
22
|
-
| ---: | --- | --- | --- |
|
|
23
|
-
| 1 | TBD | No | TBD |
|
|
24
|
-
|
|
25
|
-
## 2. API Detail 1 - TBD
|
|
26
|
-
|
|
27
|
-
**Endpoint:** `TBD`
|
|
28
|
-
|
|
29
|
-
### 2.1 Process Flow
|
|
30
|
-
|
|
31
|
-
Source of truth: `docs/api/{{FEATURE_SNAKE}}_api_flow_list.txt`
|
|
32
|
-
|
|
33
|
-
```text
|
|
34
|
-
@startuml
|
|
35
|
-
partition "TBD" {
|
|
36
|
-
start
|
|
37
|
-
:TBD;
|
|
38
|
-
stop
|
|
39
|
-
}
|
|
40
|
-
@enduml
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-

|
|
44
|
-
|
|
45
|
-
### 2.2 Parameters
|
|
46
|
-
|
|
47
|
-
`None`
|
|
48
|
-
|
|
49
|
-
### 2.3 Request Parameters (JSON format)
|
|
50
|
-
|
|
51
|
-
`None`
|
|
52
|
-
|
|
53
|
-
### 2.4 Success Response (JSON format)
|
|
54
|
-
|
|
55
|
-
`None`
|
|
56
|
-
|
|
57
|
-
### 2.5 Error Response (JSON format)
|
|
58
|
-
|
|
59
|
-
`None`
|
|
60
|
-
|
|
61
|
-
## 3. Generation Notes
|
|
62
|
-
|
|
63
|
-
- This file should be generated/updated by skill `sdtk-api-design-spec`.
|
|
64
|
-
- Rules source: `templates/docs/api/API_DESIGN_FLOWCHART_CREATION_RULES.md`.
|
|
65
|
-
- Contract source:
|
|
66
|
-
- `docs/api/{{FEATURE_PASCAL}}_API.yaml`
|
|
67
|
-
- `docs/api/{{FEATURE_SNAKE}}_api_flow_list.txt`
|
|
1
|
+
# {{FEATURE_KEY}} API DESIGN DETAIL
|
|
2
|
+
|
|
3
|
+
## 0. Abbreviations
|
|
4
|
+
|
|
5
|
+
| No | Term | Meaning |
|
|
6
|
+
| ---: | --- | --- |
|
|
7
|
+
| 1 | API | Application Programming Interface |
|
|
8
|
+
| 2 | UUID | Universally Unique Identifier |
|
|
9
|
+
| 3 | FE | Frontend |
|
|
10
|
+
| 4 | BE | Backend |
|
|
11
|
+
| 5 | DT | Datetime |
|
|
12
|
+
|
|
13
|
+
## 1. Document Scope
|
|
14
|
+
|
|
15
|
+
| No | Method | Endpoint | Reference Template |
|
|
16
|
+
| ---: | --- | --- | --- |
|
|
17
|
+
| 1 | TBD | TBD | `API_design.xlsx` |
|
|
18
|
+
|
|
19
|
+
## Assumptions
|
|
20
|
+
|
|
21
|
+
| # | Assumption | Verified | Risk if wrong |
|
|
22
|
+
| ---: | --- | --- | --- |
|
|
23
|
+
| 1 | TBD | No | TBD |
|
|
24
|
+
|
|
25
|
+
## 2. API Detail 1 - TBD
|
|
26
|
+
|
|
27
|
+
**Endpoint:** `TBD`
|
|
28
|
+
|
|
29
|
+
### 2.1 Process Flow
|
|
30
|
+
|
|
31
|
+
Source of truth: `docs/api/{{FEATURE_SNAKE}}_api_flow_list.txt`
|
|
32
|
+
|
|
33
|
+
```text
|
|
34
|
+
@startuml
|
|
35
|
+
partition "TBD" {
|
|
36
|
+
start
|
|
37
|
+
:TBD;
|
|
38
|
+
stop
|
|
39
|
+
}
|
|
40
|
+
@enduml
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+

|
|
44
|
+
|
|
45
|
+
### 2.2 Parameters
|
|
46
|
+
|
|
47
|
+
`None`
|
|
48
|
+
|
|
49
|
+
### 2.3 Request Parameters (JSON format)
|
|
50
|
+
|
|
51
|
+
`None`
|
|
52
|
+
|
|
53
|
+
### 2.4 Success Response (JSON format)
|
|
54
|
+
|
|
55
|
+
`None`
|
|
56
|
+
|
|
57
|
+
### 2.5 Error Response (JSON format)
|
|
58
|
+
|
|
59
|
+
`None`
|
|
60
|
+
|
|
61
|
+
## 3. Generation Notes
|
|
62
|
+
|
|
63
|
+
- This file should be generated/updated by skill `sdtk-api-design-spec`.
|
|
64
|
+
- Rules source: `templates/docs/api/API_DESIGN_FLOWCHART_CREATION_RULES.md`.
|
|
65
|
+
- Contract source:
|
|
66
|
+
- `docs/api/{{FEATURE_PASCAL}}_API.yaml`
|
|
67
|
+
- `docs/api/{{FEATURE_SNAKE}}_api_flow_list.txt`
|