sdtk-spec-kit 0.4.11 → 0.4.14
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 +353 -353
- package/assets/atlas/build_atlas.py +880 -880
- package/assets/atlas/doc_atlas_viewer_template.html +3796 -3796
- package/assets/atlas/vendor/mermaid.min.js +2029 -2029
- package/assets/keys/spec-entitlement-public.pem +9 -9
- package/assets/manifest/toolkit-bundle.manifest.json +496 -496
- package/assets/manifest/toolkit-bundle.sha256.txt +97 -97
- package/assets/toolkit/toolkit/AGENTS.md +157 -241
- package/assets/toolkit/toolkit/README.md +51 -51
- package/assets/toolkit/toolkit/SDTK_TOOLKIT.md +206 -206
- package/assets/toolkit/toolkit/install.ps1 +362 -362
- package/assets/toolkit/toolkit/runtimes/claude/CLAUDE_TEMPLATE.md +95 -91
- package/assets/toolkit/toolkit/runtimes/codex/CODEX_TEMPLATE.md +70 -69
- 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 +87 -87
- package/assets/toolkit/toolkit/scripts/generate-code-handoff.ps1 +317 -317
- package/assets/toolkit/toolkit/scripts/init-feature.ps1 +262 -262
- package/assets/toolkit/toolkit/scripts/install-claude-skills.ps1 +180 -180
- 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 +28 -28
- package/assets/toolkit/toolkit/sdtk-spec.config.profiles.example.json +50 -50
- package/assets/toolkit/toolkit/session/SDTK_ACTIVE_BOOTSTRAP.md +46 -46
- package/assets/toolkit/toolkit/session/SDTK_AGENT_WORKING_RULES.md +48 -48
- 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/SKILL.md +133 -133
- 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 +73 -73
- package/assets/toolkit/toolkit/skills/sdtk-orchestrator/SKILL.md +176 -108
- package/assets/toolkit/toolkit/skills/sdtk-pm/SKILL.md +74 -74
- package/assets/toolkit/toolkit/skills/sdtk-qa/SKILL.md +75 -75
- package/assets/toolkit/toolkit/skills/sdtk-screen-design-spec/SKILL.md +108 -107
- package/assets/toolkit/toolkit/skills/sdtk-screen-design-spec/references/excel-image-export.md +51 -51
- package/assets/toolkit/toolkit/skills/sdtk-screen-design-spec/references/figma-mcp.md +54 -54
- 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/SKILL.md +59 -59
- 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 +73 -73
- package/assets/toolkit/toolkit/skills-claude/orchestrator/SKILL.md +88 -42
- 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 +113 -112
- package/assets/toolkit/toolkit/skills-claude/test-case-spec/SKILL.md +115 -115
- package/assets/toolkit/toolkit/templates/QUALITY_CHECKLIST.md +124 -124
- package/assets/toolkit/toolkit/templates/README.md +68 -68
- package/assets/toolkit/toolkit/templates/SHARED_PLANNING.md +81 -81
- 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 +229 -229
- 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 +109 -109
- package/assets/toolkit/toolkit/templates/docs/database/DATABASE_SPEC_TEMPLATE.md +175 -175
- package/assets/toolkit/toolkit/templates/docs/design/DESIGN_LAYOUT_TEMPLATE.md +60 -60
- package/assets/toolkit/toolkit/templates/docs/dev/FEATURE_IMPL_PLAN_TEMPLATE.md +117 -117
- 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/CONTROLLER_ACCEPTANCE_TEMPLATE.md +90 -90
- package/assets/toolkit/toolkit/templates/docs/qa/QA_RELEASE_REPORT_TEMPLATE.md +162 -162
- 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_CREATION_RULES.md +220 -220
- 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/DEV_TO_SDTK_CODE.md +60 -60
- package/assets/toolkit/toolkit/templates/handoffs/PM_TO_BA.md +30 -30
- package/assets/toolkit/toolkit/templates/handoffs/QA_RELEASE_DECISION.md +26 -26
- package/assets/toolkit/toolkit/templates/mailbox/AGENT_REPORT_TEMPLATE.md +63 -63
- 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 +94 -94
- package/src/commands/atlas.js +339 -339
- package/src/commands/auth.js +85 -85
- package/src/commands/entitlement.js +170 -170
- package/src/commands/generate.js +191 -170
- package/src/commands/help.js +248 -246
- package/src/commands/init.js +117 -117
- package/src/commands/project.js +51 -51
- package/src/commands/runtime.js +239 -239
- package/src/commands/update.js +11 -11
- package/src/index.js +68 -68
- 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 -435
- package/src/lib/browser-open.js +39 -39
- package/src/lib/capabilities.js +89 -89
- package/src/lib/entitlements.js +245 -245
- package/src/lib/errors.js +41 -41
- package/src/lib/github-access.js +143 -143
- package/src/lib/legacy-auth-migration.js +56 -56
- package/src/lib/license-activation.js +386 -386
- package/src/lib/powershell.js +85 -85
- package/src/lib/premium-loader.js +124 -124
- package/src/lib/premium-packs.js +333 -333
- 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/project-target-guard.js +79 -79
- package/src/lib/requirement-analysis.js +14 -4
- package/src/lib/scope.js +83 -83
- package/src/lib/state.js +74 -74
- package/src/lib/suite-state.js +70 -70
- package/src/lib/toolkit-payload.js +99 -99
- package/src/lib/update.js +333 -333
|
@@ -1,58 +1,58 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: qa
|
|
3
|
-
description: QA workflow for SDTK-SPEC. Use when you need to validate downstream implementation evidence against BA/PRD/Backlog, run quality gates, document defects, and produce a QA_RELEASE_REPORT with a release decision.
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
## SDTK-SPEC Pipeline Rules (always apply)
|
|
7
|
-
1. Pipeline: PM Initiation -> BA Analysis -> PM Planning -> Architecture Design -> Development Planning + SDTK-CODE Handoff -> QA Validation
|
|
8
|
-
2. After completing phase work: update SHARED_PLANNING.md + QUALITY_CHECKLIST.md
|
|
9
|
-
3. If unclear: log OQ-xx in artifact, escalate to PM
|
|
10
|
-
4. Traceability: REQ -> BR/UC/AC -> design -> backlog -> FEATURE_IMPL_PLAN -> CODE_HANDOFF -> downstream implementation evidence -> OPS_HANDOFF + downstream OPS evidence -> QA
|
|
11
|
-
5. QA waits for downstream implementation evidence, normally from SDTK-CODE, plus downstream OPS evidence in the current formal suite flow
|
|
12
|
-
6. Do not skip phases. If inputs are missing, ask focused questions.
|
|
13
|
-
|
|
14
|
-
## Prerequisites (verify before proceeding)
|
|
15
|
-
Read QUALITY_CHECKLIST.md and verify:
|
|
16
|
-
- Phase 4 DEV gate must show planning/handoff completion.
|
|
17
|
-
- Downstream implementation evidence exists for the same feature scope.
|
|
18
|
-
- `docs/dev/REVIEW_PACKET_[FEATURE_KEY].md` exists for the same feature scope when `SDTK-CODE verify` has run.
|
|
19
|
-
- `OPS_HANDOFF` and downstream OPS evidence exist for the same feature scope.
|
|
20
|
-
|
|
21
|
-
If prerequisites are not met, report which gate or downstream evidence is missing and suggest user complete `/dev` or the SDTK-CODE flow first.
|
|
22
|
-
|
|
23
|
-
## Current Context
|
|
24
|
-
- Config: !`node -e "try{process.stdout.write(require('fs').readFileSync('sdtk-spec.config.json','utf8'))}catch{process.stdout.write('{}')}"`
|
|
25
|
-
- Pipeline: !`node -e "try{process.stdout.write(require('fs').readFileSync('SHARED_PLANNING.md','utf8'))}catch{process.stdout.write('Not initialized')}"`
|
|
26
|
-
- Gates: !`node -e "try{process.stdout.write(require('fs').readFileSync('QUALITY_CHECKLIST.md','utf8'))}catch{process.stdout.write('Not initialized')}"`
|
|
27
|
-
- State: !`node -e "try{process.stdout.write(require('fs').readFileSync('.sdtk/orchestration-state.json','utf8'))}catch{process.stdout.write('{}')}"`
|
|
28
|
-
|
|
29
|
-
## Input
|
|
30
|
-
$ARGUMENTS
|
|
31
|
-
|
|
32
|
-
If no arguments are provided, read current feature context from SHARED_PLANNING.md.
|
|
33
|
-
|
|
34
|
-
# SDTK-SPEC QA (Testing + Release Decision)
|
|
35
|
-
|
|
36
|
-
## Output
|
|
37
|
-
- `docs/qa/QA_RELEASE_REPORT_[FEATURE_KEY].md`
|
|
38
|
-
- `docs/qa/CONTROLLER_ACCEPTANCE_[FEATURE_KEY].md` remains a separate downstream controller artifact and does not replace the primary QA output
|
|
39
|
-
- Optional (when detailed test design spec is requested):
|
|
40
|
-
- `docs/qa/[FEATURE_KEY]_TEST_CASE.md` via `/test-case-spec`
|
|
41
|
-
|
|
42
|
-
## Process
|
|
43
|
-
1. Validate prerequisites: `FEATURE_IMPL_PLAN`, `CODE_HANDOFF`, `REVIEW_PACKET`, `OPS_HANDOFF`, downstream implementation evidence, and downstream OPS evidence are available and aligned.
|
|
44
|
-
2. Treat SDTK-CODE workflow evidence as the normal bridge into QA. In the current formal suite flow, `OPS_HANDOFF` plus downstream OPS evidence are also required before final QA approval.
|
|
45
|
-
3. Create test strategy mapped to UC/AC.
|
|
46
|
-
4. If test-case specification artifact is required, invoke `/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.
|
|
47
|
-
5. Apply `governance/ai/core/SDTK_BENCHMARK_QA_MODE_POLICY.md` for benchmark-mode verdict rules when no executable build exists.
|
|
48
|
-
6. 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.
|
|
49
|
-
7. Execute/record results (unit/integration/e2e as applicable).
|
|
50
|
-
8. Persist the five mandatory review lanes inside `QA_RELEASE_REPORT_[FEATURE_KEY].md` under `3.1 Contract Review`, `3.2 Behavior Review`, `3.3 Evidence Review`, `3.4 Truth-Sync Review`, and `3.5 Closeout Hygiene Review`.
|
|
51
|
-
9. In each lane subsection, fill `Scope Checked`, `Findings`, `Severity`, `Evidence Refs`, and `Residual Risk / Notes`.
|
|
52
|
-
10. Record defects with severity and status.
|
|
53
|
-
11. Record `CODE_HANDOFF`, `REVIEW_PACKET`, `OPS_HANDOFF`, CODE evidence, and OPS evidence in the QA release artifact.
|
|
54
|
-
12. If the controller requests a bounded audit, answer one narrow evidence question only, cite exact refs, and do not issue the final verdict from that audit response.
|
|
55
|
-
13. Missing helper dispatch is not a QA blocker by itself; continue the review directly with the available artifacts and evidence.
|
|
56
|
-
14. Decide: APPROVED vs REJECTED (with reasons). `OPS_HANDOFF` alone is not sufficient final release evidence, and missing required OPS evidence blocks approval.
|
|
57
|
-
15. Update shared state + Phase 5 checklist.
|
|
58
|
-
16. Handoff: notify PM and stakeholders of the QA verdict and follow-up without reassigning final QA release authority.
|
|
1
|
+
---
|
|
2
|
+
name: qa
|
|
3
|
+
description: QA workflow for SDTK-SPEC. Use when you need to validate downstream implementation evidence against BA/PRD/Backlog, run quality gates, document defects, and produce a QA_RELEASE_REPORT with a release decision.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
## SDTK-SPEC Pipeline Rules (always apply)
|
|
7
|
+
1. Pipeline: PM Initiation -> BA Analysis -> PM Planning -> Architecture Design -> Development Planning + SDTK-CODE Handoff -> QA Validation
|
|
8
|
+
2. After completing phase work: update SHARED_PLANNING.md + QUALITY_CHECKLIST.md
|
|
9
|
+
3. If unclear: log OQ-xx in artifact, escalate to PM
|
|
10
|
+
4. Traceability: REQ -> BR/UC/AC -> design -> backlog -> FEATURE_IMPL_PLAN -> CODE_HANDOFF -> downstream implementation evidence -> OPS_HANDOFF + downstream OPS evidence -> QA
|
|
11
|
+
5. QA waits for downstream implementation evidence, normally from SDTK-CODE, plus downstream OPS evidence in the current formal suite flow
|
|
12
|
+
6. Do not skip phases. If inputs are missing, ask focused questions.
|
|
13
|
+
|
|
14
|
+
## Prerequisites (verify before proceeding)
|
|
15
|
+
Read QUALITY_CHECKLIST.md and verify:
|
|
16
|
+
- Phase 4 DEV gate must show planning/handoff completion.
|
|
17
|
+
- Downstream implementation evidence exists for the same feature scope.
|
|
18
|
+
- `docs/dev/REVIEW_PACKET_[FEATURE_KEY].md` exists for the same feature scope when `SDTK-CODE verify` has run.
|
|
19
|
+
- `OPS_HANDOFF` and downstream OPS evidence exist for the same feature scope.
|
|
20
|
+
|
|
21
|
+
If prerequisites are not met, report which gate or downstream evidence is missing and suggest user complete `/dev` or the SDTK-CODE flow first.
|
|
22
|
+
|
|
23
|
+
## Current Context
|
|
24
|
+
- Config: !`node -e "try{process.stdout.write(require('fs').readFileSync('sdtk-spec.config.json','utf8'))}catch{process.stdout.write('{}')}"`
|
|
25
|
+
- Pipeline: !`node -e "try{process.stdout.write(require('fs').readFileSync('SHARED_PLANNING.md','utf8'))}catch{process.stdout.write('Not initialized')}"`
|
|
26
|
+
- Gates: !`node -e "try{process.stdout.write(require('fs').readFileSync('QUALITY_CHECKLIST.md','utf8'))}catch{process.stdout.write('Not initialized')}"`
|
|
27
|
+
- State: !`node -e "try{process.stdout.write(require('fs').readFileSync('.sdtk/orchestration-state.json','utf8'))}catch{process.stdout.write('{}')}"`
|
|
28
|
+
|
|
29
|
+
## Input
|
|
30
|
+
$ARGUMENTS
|
|
31
|
+
|
|
32
|
+
If no arguments are provided, read current feature context from SHARED_PLANNING.md.
|
|
33
|
+
|
|
34
|
+
# SDTK-SPEC QA (Testing + Release Decision)
|
|
35
|
+
|
|
36
|
+
## Output
|
|
37
|
+
- `docs/qa/QA_RELEASE_REPORT_[FEATURE_KEY].md`
|
|
38
|
+
- `docs/qa/CONTROLLER_ACCEPTANCE_[FEATURE_KEY].md` remains a separate downstream controller artifact and does not replace the primary QA output
|
|
39
|
+
- Optional (when detailed test design spec is requested):
|
|
40
|
+
- `docs/qa/[FEATURE_KEY]_TEST_CASE.md` via `/test-case-spec`
|
|
41
|
+
|
|
42
|
+
## Process
|
|
43
|
+
1. Validate prerequisites: `FEATURE_IMPL_PLAN`, `CODE_HANDOFF`, `REVIEW_PACKET`, `OPS_HANDOFF`, downstream implementation evidence, and downstream OPS evidence are available and aligned.
|
|
44
|
+
2. Treat SDTK-CODE workflow evidence as the normal bridge into QA. In the current formal suite flow, `OPS_HANDOFF` plus downstream OPS evidence are also required before final QA approval.
|
|
45
|
+
3. Create test strategy mapped to UC/AC.
|
|
46
|
+
4. If test-case specification artifact is required, invoke `/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.
|
|
47
|
+
5. Apply `governance/ai/core/SDTK_BENCHMARK_QA_MODE_POLICY.md` for benchmark-mode verdict rules when no executable build exists.
|
|
48
|
+
6. 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.
|
|
49
|
+
7. Execute/record results (unit/integration/e2e as applicable).
|
|
50
|
+
8. Persist the five mandatory review lanes inside `QA_RELEASE_REPORT_[FEATURE_KEY].md` under `3.1 Contract Review`, `3.2 Behavior Review`, `3.3 Evidence Review`, `3.4 Truth-Sync Review`, and `3.5 Closeout Hygiene Review`.
|
|
51
|
+
9. In each lane subsection, fill `Scope Checked`, `Findings`, `Severity`, `Evidence Refs`, and `Residual Risk / Notes`.
|
|
52
|
+
10. Record defects with severity and status.
|
|
53
|
+
11. Record `CODE_HANDOFF`, `REVIEW_PACKET`, `OPS_HANDOFF`, CODE evidence, and OPS evidence in the QA release artifact.
|
|
54
|
+
12. If the controller requests a bounded audit, answer one narrow evidence question only, cite exact refs, and do not issue the final verdict from that audit response.
|
|
55
|
+
13. Missing helper dispatch is not a QA blocker by itself; continue the review directly with the available artifacts and evidence.
|
|
56
|
+
14. Decide: APPROVED vs REJECTED (with reasons). `OPS_HANDOFF` alone is not sufficient final release evidence, and missing required OPS evidence blocks approval.
|
|
57
|
+
15. Update shared state + Phase 5 checklist.
|
|
58
|
+
16. Handoff: notify PM and stakeholders of the QA verdict and follow-up without reassigning final QA release authority.
|
|
@@ -1,112 +1,113 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: screen-design-spec
|
|
3
|
-
description: Create or update screen flow-action specifications from requirement sources, including screen flow PlantUML, UI item tables, API mapping tables, and screen-to-API traceability.
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
## Required Inputs (read before proceeding)
|
|
7
|
-
Read the following artifacts for the current feature:
|
|
8
|
-
1. `docs/specs/BA_SPEC_*.md` - business rules and use cases
|
|
9
|
-
2. `docs/architecture/ARCH_DESIGN_*.md` - system components
|
|
10
|
-
3. `docs/api/[FEATURE_KEY]_ENDPOINTS.md` - API endpoints, when available
|
|
11
|
-
|
|
12
|
-
## Input
|
|
13
|
-
$ARGUMENTS
|
|
14
|
-
|
|
15
|
-
# SDTK-SPEC Screen Flow Action Spec
|
|
16
|
-
|
|
17
|
-
## Critical Constraints
|
|
18
|
-
- I do not finalize UI-scope screens without a valid design source type and reference.
|
|
19
|
-
- I do not leave broken image paths or incomplete API mappings in the flow-action spec.
|
|
20
|
-
- I use new-style PlantUML activity diagram syntax only for the screen flow diagram.
|
|
21
|
-
- I do not mix legacy and new-style PlantUML activity syntax in the screen flow diagram.
|
|
22
|
-
- Do not mix legacy activity syntax such as `(*)`, `-->`, or `[edge label]` with new-style activity actions like `:Activity;`.
|
|
23
|
-
- I keep action-table numbering global across the document even when wireframe markers reset per screen.
|
|
24
|
-
- I do not proceed on generated-draft screens if `DESIGN_LAYOUT_[FEATURE_KEY].md` does not exist.
|
|
25
|
-
|
|
26
|
-
## Outputs
|
|
27
|
-
- `docs/specs/[FEATURE_KEY]_FLOW_ACTION_SPEC.md`
|
|
28
|
-
- Optional supporting docs:
|
|
29
|
-
- `docs/specs/[FEATURE_KEY]_FIGMA_LAYOUT.md`
|
|
30
|
-
- `docs/specs/[FEATURE_KEY]_DESIGN_SPEC_FROM_EXCEL.md`
|
|
31
|
-
- `docs/specs/assets/[feature_snake]/screens/*`
|
|
32
|
-
|
|
33
|
-
## Required Inputs
|
|
34
|
-
- Feature key/name
|
|
35
|
-
- Primary requirement sources (BA spec, architecture, customer design docs)
|
|
36
|
-
- Screen source references, using one of these design source modes:
|
|
37
|
-
- `source-backed`: Figma URLs and/or requirement screenshots
|
|
38
|
-
- `generated-draft`: generated layout from `docs/design/DESIGN_LAYOUT_[FEATURE_KEY].md`
|
|
39
|
-
- API endpoint source (`docs/api/[FEATURE_KEY]_ENDPOINTS.md`) when available
|
|
40
|
-
|
|
41
|
-
## When To Stop Or Escalate
|
|
42
|
-
- Stop if no design source is available for a UI-scope screen (neither Figma/screenshot nor a completed DESIGN_LAYOUT); do not draft a flow-action spec against missing design sources.
|
|
43
|
-
- Stop if `DESIGN_LAYOUT_[FEATURE_KEY].md` is referenced as a generated-draft source but does not exist; escalate to `/design-layout` before continuing.
|
|
44
|
-
- Stop if the API mapping table cannot be completed because ENDPOINTS.md is missing; record as OQ-xx and continue with explicit gaps noted.
|
|
45
|
-
- Stop if legacy PlantUML activity syntax is found in existing source sections; run renumber/migration scripts before adding new content.
|
|
46
|
-
- Escalate to `@ba` if UC/BR coverage cannot be confirmed for a screen's flow.
|
|
47
|
-
- Escalate to `@arch` if API assignment for a screen is architecturally ambiguous.
|
|
48
|
-
|
|
49
|
-
## Core Process
|
|
50
|
-
1. Read requirement sources and identify in-scope screens, dialogs, and transitions.
|
|
51
|
-
2. Read and apply rules from `./references/FLOW_ACTION_SPEC_CREATION_RULES.md`.
|
|
52
|
-
3. Determine design source mode per screen:
|
|
53
|
-
- If Figma URL or screenshot exists: use `source-backed`.
|
|
54
|
-
- If no Figma/screenshot but feature has UI scope: use `generated-draft` and reference the corresponding section in `docs/design/DESIGN_LAYOUT_[FEATURE_KEY].md`.
|
|
55
|
-
- If screen has no UI scope: use `none`.
|
|
56
|
-
4. Build/update section `Feature overview` and `Screen flow action` (PlantUML).
|
|
57
|
-
5. For each screen/dialog:
|
|
58
|
-
- Add metadata (screen ID, Design Source Type, Design Source Reference)
|
|
59
|
-
- Add screen image reference (from Figma, screenshot, or rendered `.svg` from generated layout)
|
|
60
|
-
- For generated-draft wireframes, add a wireframe-marker mapping table from the screen-local wireframe markers to the global action-table `No`
|
|
61
|
-
- Add UI item/action table with `No` column
|
|
62
|
-
- Add API mapping table (trigger -> API -> data usage)
|
|
63
|
-
6. Build/update `System processing flow` from use-case and process sources.
|
|
64
|
-
7. Build/update `Open questions` for unresolved behavior/API/data points.
|
|
65
|
-
8. Build/update `Screen - API Mapping` summary section.
|
|
66
|
-
9. Update document history and handoff to ARCH/DEV.
|
|
67
|
-
|
|
68
|
-
## Validation / Quality Gates
|
|
69
|
-
- Global numbering consistency: no screen-level reset in action-table `No` column.
|
|
70
|
-
- No broken image paths; for generated-draft screens, verify `.svg` exists or use render-skipped note.
|
|
71
|
-
-
|
|
72
|
-
-
|
|
73
|
-
-
|
|
74
|
-
-
|
|
75
|
-
- Every
|
|
76
|
-
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
|
91
|
-
|
|
|
92
|
-
|
|
|
93
|
-
|
|
|
94
|
-
|
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
- `./references/
|
|
112
|
-
- `./references/
|
|
1
|
+
---
|
|
2
|
+
name: screen-design-spec
|
|
3
|
+
description: Create or update screen flow-action specifications from requirement sources, including screen flow PlantUML, UI item tables, API mapping tables, and screen-to-API traceability.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
## Required Inputs (read before proceeding)
|
|
7
|
+
Read the following artifacts for the current feature:
|
|
8
|
+
1. `docs/specs/BA_SPEC_*.md` - business rules and use cases
|
|
9
|
+
2. `docs/architecture/ARCH_DESIGN_*.md` - system components
|
|
10
|
+
3. `docs/api/[FEATURE_KEY]_ENDPOINTS.md` - API endpoints, when available
|
|
11
|
+
|
|
12
|
+
## Input
|
|
13
|
+
$ARGUMENTS
|
|
14
|
+
|
|
15
|
+
# SDTK-SPEC Screen Flow Action Spec
|
|
16
|
+
|
|
17
|
+
## Critical Constraints
|
|
18
|
+
- I do not finalize UI-scope screens without a valid design source type and reference.
|
|
19
|
+
- I do not leave broken image paths or incomplete API mappings in the flow-action spec.
|
|
20
|
+
- I use new-style PlantUML activity diagram syntax only for the screen flow diagram.
|
|
21
|
+
- I do not mix legacy and new-style PlantUML activity syntax in the screen flow diagram.
|
|
22
|
+
- Do not mix legacy activity syntax such as `(*)`, `-->`, or `[edge label]` with new-style activity actions like `:Activity;`.
|
|
23
|
+
- I keep action-table numbering global across the document even when wireframe markers reset per screen.
|
|
24
|
+
- I do not proceed on generated-draft screens if `DESIGN_LAYOUT_[FEATURE_KEY].md` does not exist.
|
|
25
|
+
|
|
26
|
+
## Outputs
|
|
27
|
+
- `docs/specs/[FEATURE_KEY]_FLOW_ACTION_SPEC.md`
|
|
28
|
+
- Optional supporting docs:
|
|
29
|
+
- `docs/specs/[FEATURE_KEY]_FIGMA_LAYOUT.md`
|
|
30
|
+
- `docs/specs/[FEATURE_KEY]_DESIGN_SPEC_FROM_EXCEL.md`
|
|
31
|
+
- `docs/specs/assets/[feature_snake]/screens/*`
|
|
32
|
+
|
|
33
|
+
## Required Inputs
|
|
34
|
+
- Feature key/name
|
|
35
|
+
- Primary requirement sources (BA spec, architecture, customer design docs)
|
|
36
|
+
- Screen source references, using one of these design source modes:
|
|
37
|
+
- `source-backed`: Figma URLs and/or requirement screenshots
|
|
38
|
+
- `generated-draft`: generated layout from `docs/design/DESIGN_LAYOUT_[FEATURE_KEY].md`
|
|
39
|
+
- API endpoint source (`docs/api/[FEATURE_KEY]_ENDPOINTS.md`) when available
|
|
40
|
+
|
|
41
|
+
## When To Stop Or Escalate
|
|
42
|
+
- Stop if no design source is available for a UI-scope screen (neither Figma/screenshot nor a completed DESIGN_LAYOUT); do not draft a flow-action spec against missing design sources.
|
|
43
|
+
- Stop if `DESIGN_LAYOUT_[FEATURE_KEY].md` is referenced as a generated-draft source but does not exist; escalate to `/design-layout` before continuing.
|
|
44
|
+
- Stop if the API mapping table cannot be completed because ENDPOINTS.md is missing; record as OQ-xx and continue with explicit gaps noted.
|
|
45
|
+
- Stop if legacy PlantUML activity syntax is found in existing source sections; run renumber/migration scripts before adding new content.
|
|
46
|
+
- Escalate to `@ba` if UC/BR coverage cannot be confirmed for a screen's flow.
|
|
47
|
+
- Escalate to `@arch` if API assignment for a screen is architecturally ambiguous.
|
|
48
|
+
|
|
49
|
+
## Core Process
|
|
50
|
+
1. Read requirement sources and identify in-scope screens, dialogs, and transitions.
|
|
51
|
+
2. Read and apply rules from `./references/FLOW_ACTION_SPEC_CREATION_RULES.md`.
|
|
52
|
+
3. Determine design source mode per screen:
|
|
53
|
+
- If Figma URL or screenshot exists: use `source-backed`.
|
|
54
|
+
- If no Figma/screenshot but feature has UI scope: use `generated-draft` and reference the corresponding section in `docs/design/DESIGN_LAYOUT_[FEATURE_KEY].md`.
|
|
55
|
+
- If screen has no UI scope: use `none`.
|
|
56
|
+
4. Build/update section `Feature overview` and `Screen flow action` (PlantUML).
|
|
57
|
+
5. For each screen/dialog:
|
|
58
|
+
- Add metadata (screen ID, Design Source Type, Design Source Reference)
|
|
59
|
+
- Add screen image reference (from Figma, screenshot, or rendered `.svg` from generated layout)
|
|
60
|
+
- For generated-draft wireframes, add a wireframe-marker mapping table from the screen-local wireframe markers to the global action-table `No`
|
|
61
|
+
- Add UI item/action table with `No` column
|
|
62
|
+
- Add API mapping table (trigger -> API -> data usage)
|
|
63
|
+
6. Build/update `System processing flow` from use-case and process sources.
|
|
64
|
+
7. Build/update `Open questions` for unresolved behavior/API/data points.
|
|
65
|
+
8. Build/update `Screen - API Mapping` summary section.
|
|
66
|
+
9. Update document history and handoff to ARCH/DEV.
|
|
67
|
+
|
|
68
|
+
## Validation / Quality Gates
|
|
69
|
+
- Global numbering consistency: no screen-level reset in action-table `No` column.
|
|
70
|
+
- No broken image paths; for generated-draft screens, verify `.svg` exists or use render-skipped note.
|
|
71
|
+
- Screen-image markdown references must use file-relative paths (relative to the spec document), e.g. `assets/<feature_snake>/screens/<screen_id>.svg`; never absolute or repo-root paths.
|
|
72
|
+
- PlantUML renderability and new-style activity syntax consistency: no `(*)`, `-->`, or `[edge label]` mixing.
|
|
73
|
+
- Consistency with API endpoints spec.
|
|
74
|
+
- EN artifact hygiene: no VI leftovers, no mojibake, no merged heading lines.
|
|
75
|
+
- Every UI-scope screen declares a Design Source Type (`source-backed` or `generated-draft`).
|
|
76
|
+
- Every generated-draft screen with an embedded wireframe image includes a wireframe-marker mapping table to the global action-table `No`.
|
|
77
|
+
- Run validation script before finalizing.
|
|
78
|
+
|
|
79
|
+
## Order-Critical Hard Gate
|
|
80
|
+
Do not finalize any screen section before applying `./references/FLOW_ACTION_SPEC_CREATION_RULES.md`. The rules define mandatory section structure; skipping them produces incomplete specs that will fail ARCH/DEV review.
|
|
81
|
+
|
|
82
|
+
For generated-draft screens: do not set Design Source Type = `generated-draft` if `DESIGN_LAYOUT_[FEATURE_KEY].md` does not exist. Block until the layout doc is produced.
|
|
83
|
+
|
|
84
|
+
Do not reset action-table numbering between screens. Numbering must be global across the entire document.
|
|
85
|
+
|
|
86
|
+
## Common Mistakes
|
|
87
|
+
|
|
88
|
+
| Mistake | Why it is wrong | Do instead |
|
|
89
|
+
|---|---|---|
|
|
90
|
+
| Reset action-table `No` per screen | Breaks global traceability | Keep `No` sequential across the entire document |
|
|
91
|
+
| Mix legacy PlantUML syntax (`-->`, `(*)`) with new-style | Renders incorrectly; fails syntax check | Use new-style activity syntax only; run migration script on legacy content |
|
|
92
|
+
| Set `generated-draft` when DESIGN_LAYOUT does not exist | References a missing source | Block until `/design-layout` produces the layout doc |
|
|
93
|
+
| Leave image path as a broken link | Breaks the rendered spec for reviewers | Verify `.svg` exists; use render-skipped note if unavailable |
|
|
94
|
+
| Omit API mapping table for API-connected screens | Hides screen-to-API traceability | Add a complete API mapping table for every screen with API calls |
|
|
95
|
+
| Apply FLOW_ACTION_SPEC rules from memory | Rules evolve; memory is stale | Always read `./references/FLOW_ACTION_SPEC_CREATION_RULES.md` first |
|
|
96
|
+
|
|
97
|
+
## Validation Script
|
|
98
|
+
- `.claude/skills/screen-design-spec/scripts/validate_flow_action_spec_numbering.py`
|
|
99
|
+
- `python ".claude/skills/screen-design-spec/scripts/validate_flow_action_spec_numbering.py" --spec "docs/specs/[FEATURE_KEY]_FLOW_ACTION_SPEC.md" --en-check`
|
|
100
|
+
- `.claude/skills/screen-design-spec/scripts/renumber_flow_action_spec_global.py`
|
|
101
|
+
- Dry-run:
|
|
102
|
+
- `python ".claude/skills/screen-design-spec/scripts/renumber_flow_action_spec_global.py" --spec "docs/specs/[FEATURE_KEY]_FLOW_ACTION_SPEC.md"`
|
|
103
|
+
- Apply:
|
|
104
|
+
- `python ".claude/skills/screen-design-spec/scripts/renumber_flow_action_spec_global.py" --spec "docs/specs/[FEATURE_KEY]_FLOW_ACTION_SPEC.md" --write`
|
|
105
|
+
|
|
106
|
+
## Reference Loading Guidance
|
|
107
|
+
Read at skill start:
|
|
108
|
+
- `./references/FLOW_ACTION_SPEC_CREATION_RULES.md` (required before any screen section)
|
|
109
|
+
|
|
110
|
+
Read on demand:
|
|
111
|
+
- `./references/numbering-rules.md` (when resolving numbering migration questions)
|
|
112
|
+
- `./references/figma-mcp.md` (when source-backed mode uses Figma)
|
|
113
|
+
- `./references/excel-image-export.md` (when source includes Excel screenshots)
|
|
@@ -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)
|