sdtk-spec-kit 0.3.10 → 0.3.12
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 +219 -197
- package/assets/manifest/toolkit-bundle.manifest.json +72 -57
- package/assets/manifest/toolkit-bundle.sha256.txt +30 -27
- package/assets/toolkit/toolkit/README.md +50 -0
- package/assets/toolkit/toolkit/SDTK_TOOLKIT.md +185 -0
- package/assets/toolkit/toolkit/install.ps1 +347 -310
- package/assets/toolkit/toolkit/scripts/init-feature.ps1 +2 -1
- package/assets/toolkit/toolkit/skills/sdtk-api-design-spec/SKILL.md +84 -84
- package/assets/toolkit/toolkit/skills/sdtk-api-design-spec/references/API_DESIGN_FLOWCHART_CREATION_RULES.md +468 -468
- package/assets/toolkit/toolkit/skills/sdtk-api-doc/references/API_DESIGN_FLOWCHART_CREATION_RULES.md +468 -468
- package/assets/toolkit/toolkit/skills/sdtk-api-doc/references/YAML_CREATION_RULES.md +127 -127
- package/assets/toolkit/toolkit/skills/sdtk-arch/SKILL.md +85 -83
- package/assets/toolkit/toolkit/skills/sdtk-arch/references/API_DESIGN_FLOWCHART_CREATION_RULES.md +468 -468
- package/assets/toolkit/toolkit/skills/sdtk-arch/references/FLOW_ACTION_SPEC_CREATION_RULES.md +220 -220
- package/assets/toolkit/toolkit/skills/sdtk-arch/references/YAML_CREATION_RULES.md +127 -127
- package/assets/toolkit/toolkit/skills/sdtk-dev/SKILL.md +108 -102
- package/assets/toolkit/toolkit/skills/sdtk-orchestrator/SKILL.md +97 -81
- package/assets/toolkit/toolkit/skills/sdtk-pm/SKILL.md +37 -30
- package/assets/toolkit/toolkit/skills/sdtk-qa/SKILL.md +75 -61
- package/assets/toolkit/toolkit/skills/sdtk-screen-design-spec/references/FLOW_ACTION_SPEC_CREATION_RULES.md +220 -220
- package/assets/toolkit/toolkit/skills-claude/api-design-spec/SKILL.md +90 -90
- package/assets/toolkit/toolkit/skills-claude/orchestrator/SKILL.md +25 -53
- package/assets/toolkit/toolkit/skills-claude/qa/SKILL.md +12 -6
- package/assets/toolkit/toolkit/templates/QUALITY_CHECKLIST.md +124 -124
- package/assets/toolkit/toolkit/templates/README.md +1 -0
- package/assets/toolkit/toolkit/templates/SHARED_PLANNING.md +81 -81
- package/assets/toolkit/toolkit/templates/docs/api/API_DESIGN_FLOWCHART_CREATION_RULES.md +468 -468
- package/assets/toolkit/toolkit/templates/docs/api/YAML_CREATION_RULES.md +127 -127
- package/assets/toolkit/toolkit/templates/docs/database/DATABASE_SPEC_TEMPLATE.md +174 -174
- package/assets/toolkit/toolkit/templates/docs/dev/FEATURE_IMPL_PLAN_TEMPLATE.md +106 -96
- package/assets/toolkit/toolkit/templates/docs/qa/CONTROLLER_ACCEPTANCE_TEMPLATE.md +90 -0
- package/assets/toolkit/toolkit/templates/docs/qa/QA_RELEASE_REPORT_TEMPLATE.md +162 -95
- package/assets/toolkit/toolkit/templates/docs/specs/FLOW_ACTION_SPEC_CREATION_RULES.md +220 -220
- package/package.json +20 -20
- package/src/commands/help.js +26 -10
- package/src/commands/init.js +108 -105
- package/src/commands/update.js +11 -0
- package/src/index.js +62 -59
- package/src/lib/project-target-guard.js +53 -0
- package/src/lib/update.js +333 -0
|
@@ -216,7 +216,8 @@ $outputs = @(
|
|
|
216
216
|
|
|
217
217
|
@{ Dest = (Join-Path $projectRoot "docs/dev/FEATURE_IMPL_PLAN_$FeatureKey.md"); Template = (Join-Path $templateRoot 'docs/dev/FEATURE_IMPL_PLAN_TEMPLATE.md') },
|
|
218
218
|
@{ Dest = (Join-Path $projectRoot "docs/qa/${FeatureKey}_TEST_CASE.md"); Template = (Join-Path $templateRoot 'docs/qa/TEST_CASE_TEMPLATE.md') },
|
|
219
|
-
@{ Dest = (Join-Path $projectRoot "docs/qa/QA_RELEASE_REPORT_$FeatureKey.md"); Template = (Join-Path $templateRoot 'docs/qa/QA_RELEASE_REPORT_TEMPLATE.md') }
|
|
219
|
+
@{ Dest = (Join-Path $projectRoot "docs/qa/QA_RELEASE_REPORT_$FeatureKey.md"); Template = (Join-Path $templateRoot 'docs/qa/QA_RELEASE_REPORT_TEMPLATE.md') },
|
|
220
|
+
@{ Dest = (Join-Path $projectRoot "docs/qa/CONTROLLER_ACCEPTANCE_$FeatureKey.md"); Template = (Join-Path $templateRoot 'docs/qa/CONTROLLER_ACCEPTANCE_TEMPLATE.md') }
|
|
220
221
|
)
|
|
221
222
|
|
|
222
223
|
if ($ValidateOnly) {
|
|
@@ -1,84 +1,84 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: sdtk-api-design-spec
|
|
3
|
-
description: Generate detailed API design markdown (`[FEATURE_KEY]_API_DESIGN_DETAIL.md`) from OpenAPI YAML and API flow list using Excel-style structure rules. Use when you need field-level request/response tables + per-endpoint process flow images for implementation/review handoff.
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# SDTK-SPEC API Design Detail Spec
|
|
7
|
-
|
|
8
|
-
## Critical Constraints
|
|
9
|
-
- I do not drift from the source YAML or flow list.
|
|
10
|
-
- I do not leave broken flow image embeds or missing assumptions in the API design detail.
|
|
11
|
-
|
|
12
|
-
## Outputs
|
|
13
|
-
- `docs/api/[FEATURE_KEY]_API_DESIGN_DETAIL.md`
|
|
14
|
-
- Supporting generated assets:
|
|
15
|
-
- `docs/api/flows/*.puml`
|
|
16
|
-
- `docs/api/images/*.svg`
|
|
17
|
-
|
|
18
|
-
## Required Inputs
|
|
19
|
-
- Feature key (`FEATURE_KEY`)
|
|
20
|
-
- API contract YAML:
|
|
21
|
-
- Preferred: `docs/api/[FeaturePascal]_API.yaml`
|
|
22
|
-
- Fallback: a specified YAML file path
|
|
23
|
-
- API flow list:
|
|
24
|
-
- Preferred: `docs/api/[feature_snake]_api_flow_list.txt`
|
|
25
|
-
- Fallback: a specified flow list path
|
|
26
|
-
|
|
27
|
-
## Core Rules
|
|
28
|
-
- Apply `./references/API_DESIGN_FLOWCHART_CREATION_RULES.md` first.
|
|
29
|
-
- Keep endpoint contracts consistent with source YAML.
|
|
30
|
-
- Keep process flow source synchronized with flow list (`*_api_flow_list.txt`).
|
|
31
|
-
- Keep one visible flowchart per API section (embed image), avoid duplicate preview rendering.
|
|
32
|
-
- Keep `Process Flow` sections implementation-readable:
|
|
33
|
-
- include YAML-derived flow summary / notes / login bullets
|
|
34
|
-
- keep error sections aligned with actual flow exits, not `None`
|
|
35
|
-
|
|
36
|
-
## Generation Procedure
|
|
37
|
-
1. Resolve input files (`yaml`, `flow_list`, `output`).
|
|
38
|
-
2. Parse YAML endpoints (method, path, request schema, success/error schema).
|
|
39
|
-
3. Parse flow blocks from flow list (`@startuml ... @enduml`) and map by normalized `METHOD + path`.
|
|
40
|
-
4. Generate detailed markdown sections per API:
|
|
41
|
-
- Flow summary / notes / login bullets from YAML `description`
|
|
42
|
-
- Process flow source block (`text` fenced block)
|
|
43
|
-
- Embedded flowchart image
|
|
44
|
-
- Path parameter table
|
|
45
|
-
- Request table (hierarchy levels + type + format + required)
|
|
46
|
-
- Success response table
|
|
47
|
-
- Error response table (explicit schema if defined, otherwise shared envelope + inferred business statuses from flow)
|
|
48
|
-
5. Generate/update `.puml` per API under `docs/api/flows`.
|
|
49
|
-
6. Render `.svg` images under `docs/api/images`.
|
|
50
|
-
7. Validate:
|
|
51
|
-
- every API section has one embedded image
|
|
52
|
-
- every embed path exists
|
|
53
|
-
- no render error image output
|
|
54
|
-
- markdown tables keep `No` sequential numbering
|
|
55
|
-
|
|
56
|
-
## Script
|
|
57
|
-
- `scripts/generate_api_design_detail.py`
|
|
58
|
-
|
|
59
|
-
### Typical command
|
|
60
|
-
```powershell
|
|
61
|
-
python "toolkit/skills/sdtk-api-design-spec/scripts/generate_api_design_detail.py" `
|
|
62
|
-
--feature-key
|
|
63
|
-
--yaml "docs/api/
|
|
64
|
-
--flow-list "docs/api/
|
|
65
|
-
--output "docs/api/
|
|
66
|
-
```
|
|
67
|
-
|
|
68
|
-
### Optional subset generation
|
|
69
|
-
```powershell
|
|
70
|
-
python "toolkit/skills/sdtk-api-design-spec/scripts/generate_api_design_detail.py" `
|
|
71
|
-
--feature-key
|
|
72
|
-
--yaml "docs/api/
|
|
73
|
-
--flow-list "docs/api/
|
|
74
|
-
--output "docs/api/
|
|
75
|
-
--include "POST /api/
|
|
76
|
-
--include "POST /api/
|
|
77
|
-
--include "POST /api/
|
|
78
|
-
```
|
|
79
|
-
|
|
80
|
-
## Orchestrator Integration (Hybrid)
|
|
81
|
-
- `apiDesignDetailMode` in `sdtk-spec.config.json` controls orchestration behavior:
|
|
82
|
-
- `auto` (default): generate API design detail when ARCH has API scope and YAML/flow sources are available.
|
|
83
|
-
- `on`: always generate API design detail for API scope (fail if required sources are missing).
|
|
84
|
-
- `off`: skip unless user explicitly requests.
|
|
1
|
+
---
|
|
2
|
+
name: sdtk-api-design-spec
|
|
3
|
+
description: Generate detailed API design markdown (`[FEATURE_KEY]_API_DESIGN_DETAIL.md`) from OpenAPI YAML and API flow list using Excel-style structure rules. Use when you need field-level request/response tables + per-endpoint process flow images for implementation/review handoff.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# SDTK-SPEC API Design Detail Spec
|
|
7
|
+
|
|
8
|
+
## Critical Constraints
|
|
9
|
+
- I do not drift from the source YAML or flow list.
|
|
10
|
+
- I do not leave broken flow image embeds or missing assumptions in the API design detail.
|
|
11
|
+
|
|
12
|
+
## Outputs
|
|
13
|
+
- `docs/api/[FEATURE_KEY]_API_DESIGN_DETAIL.md`
|
|
14
|
+
- Supporting generated assets:
|
|
15
|
+
- `docs/api/flows/*.puml`
|
|
16
|
+
- `docs/api/images/*.svg`
|
|
17
|
+
|
|
18
|
+
## Required Inputs
|
|
19
|
+
- Feature key (`FEATURE_KEY`)
|
|
20
|
+
- API contract YAML:
|
|
21
|
+
- Preferred: `docs/api/[FeaturePascal]_API.yaml`
|
|
22
|
+
- Fallback: a specified YAML file path
|
|
23
|
+
- API flow list:
|
|
24
|
+
- Preferred: `docs/api/[feature_snake]_api_flow_list.txt`
|
|
25
|
+
- Fallback: a specified flow list path
|
|
26
|
+
|
|
27
|
+
## Core Rules
|
|
28
|
+
- Apply `./references/API_DESIGN_FLOWCHART_CREATION_RULES.md` first.
|
|
29
|
+
- Keep endpoint contracts consistent with source YAML.
|
|
30
|
+
- Keep process flow source synchronized with flow list (`*_api_flow_list.txt`).
|
|
31
|
+
- Keep one visible flowchart per API section (embed image), avoid duplicate preview rendering.
|
|
32
|
+
- Keep `Process Flow` sections implementation-readable:
|
|
33
|
+
- include YAML-derived flow summary / notes / login bullets
|
|
34
|
+
- keep error sections aligned with actual flow exits, not `None`
|
|
35
|
+
|
|
36
|
+
## Generation Procedure
|
|
37
|
+
1. Resolve input files (`yaml`, `flow_list`, `output`).
|
|
38
|
+
2. Parse YAML endpoints (method, path, request schema, success/error schema).
|
|
39
|
+
3. Parse flow blocks from flow list (`@startuml ... @enduml`) and map by normalized `METHOD + path`.
|
|
40
|
+
4. Generate detailed markdown sections per API:
|
|
41
|
+
- Flow summary / notes / login bullets from YAML `description`
|
|
42
|
+
- Process flow source block (`text` fenced block)
|
|
43
|
+
- Embedded flowchart image
|
|
44
|
+
- Path parameter table
|
|
45
|
+
- Request table (hierarchy levels + type + format + required)
|
|
46
|
+
- Success response table
|
|
47
|
+
- Error response table (explicit schema if defined, otherwise shared envelope + inferred business statuses from flow)
|
|
48
|
+
5. Generate/update `.puml` per API under `docs/api/flows`.
|
|
49
|
+
6. Render `.svg` images under `docs/api/images`.
|
|
50
|
+
7. Validate:
|
|
51
|
+
- every API section has one embedded image
|
|
52
|
+
- every embed path exists
|
|
53
|
+
- no render error image output
|
|
54
|
+
- markdown tables keep `No` sequential numbering
|
|
55
|
+
|
|
56
|
+
## Script
|
|
57
|
+
- `scripts/generate_api_design_detail.py`
|
|
58
|
+
|
|
59
|
+
### Typical command
|
|
60
|
+
```powershell
|
|
61
|
+
python "toolkit/skills/sdtk-api-design-spec/scripts/generate_api_design_detail.py" `
|
|
62
|
+
--feature-key WORK_PLANNING_BOARD `
|
|
63
|
+
--yaml "docs/api/WorkPlanningBoard_API.yaml" `
|
|
64
|
+
--flow-list "docs/api/work_planning_board_api_flow_list.txt" `
|
|
65
|
+
--output "docs/api/WORK_PLANNING_BOARD_API_DESIGN_DETAIL.md"
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
### Optional subset generation
|
|
69
|
+
```powershell
|
|
70
|
+
python "toolkit/skills/sdtk-api-design-spec/scripts/generate_api_design_detail.py" `
|
|
71
|
+
--feature-key WORK_PLANNING_BOARD `
|
|
72
|
+
--yaml "docs/api/WorkPlanningBoard_API.yaml" `
|
|
73
|
+
--flow-list "docs/api/work_planning_board_api_flow_list.txt" `
|
|
74
|
+
--output "docs/api/WORK_PLANNING_BOARD_API_DESIGN_DETAIL.md" `
|
|
75
|
+
--include "POST /api/work-assignment/{organization_uuid}" `
|
|
76
|
+
--include "POST /api/work-assignment/edit/{organization_uuid}/{task_assignment_uuid}" `
|
|
77
|
+
--include "POST /api/work-assignment/delete/{organization_uuid}/{task_assignment_uuid}"
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
## Orchestrator Integration (Hybrid)
|
|
81
|
+
- `apiDesignDetailMode` in `sdtk-spec.config.json` controls orchestration behavior:
|
|
82
|
+
- `auto` (default): generate API design detail when ARCH has API scope and YAML/flow sources are available.
|
|
83
|
+
- `on`: always generate API design detail for API scope (fail if required sources are missing).
|
|
84
|
+
- `off`: skip unless user explicitly requests.
|