sdtk-spec-kit 0.3.14 → 0.3.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/assets/manifest/toolkit-bundle.manifest.json +61 -126
  2. package/assets/manifest/toolkit-bundle.sha256.txt +29 -42
  3. package/assets/toolkit/toolkit/AGENTS.md +17 -15
  4. package/assets/toolkit/toolkit/SDTK_TOOLKIT.md +10 -6
  5. package/assets/toolkit/toolkit/install.ps1 +60 -50
  6. package/assets/toolkit/toolkit/runtimes/claude/CLAUDE_TEMPLATE.md +2 -2
  7. package/assets/toolkit/toolkit/scripts/agents/run-codex-task.ps1 +117 -103
  8. package/assets/toolkit/toolkit/scripts/install-claude-skills.ps1 +179 -169
  9. package/assets/toolkit/toolkit/skills/sdtk-api-design-spec/SKILL.md +111 -84
  10. package/assets/toolkit/toolkit/skills/sdtk-api-doc/SKILL.md +46 -10
  11. package/assets/toolkit/toolkit/skills/sdtk-arch/SKILL.md +85 -85
  12. package/assets/toolkit/toolkit/skills/sdtk-design-layout/SKILL.md +42 -3
  13. package/assets/toolkit/toolkit/skills/sdtk-dev-backend/SKILL.md +61 -5
  14. package/assets/toolkit/toolkit/skills/sdtk-dev-frontend/SKILL.md +63 -5
  15. package/assets/toolkit/toolkit/skills/sdtk-screen-design-spec/SKILL.md +53 -33
  16. package/assets/toolkit/toolkit/skills/sdtk-test-case-spec/SKILL.md +60 -24
  17. package/assets/toolkit/toolkit/skills/skills.catalog.yaml +9 -9
  18. package/assets/toolkit/toolkit/skills-claude/api-design-spec/SKILL.md +116 -90
  19. package/assets/toolkit/toolkit/skills-claude/api-doc/SKILL.md +49 -9
  20. package/assets/toolkit/toolkit/skills-claude/arch/SKILL.md +3 -3
  21. package/assets/toolkit/toolkit/skills-claude/design-layout/SKILL.md +36 -2
  22. package/assets/toolkit/toolkit/skills-claude/dev-backend/SKILL.md +58 -5
  23. package/assets/toolkit/toolkit/skills-claude/dev-frontend/SKILL.md +60 -5
  24. package/assets/toolkit/toolkit/skills-claude/screen-design-spec/SKILL.md +49 -27
  25. package/assets/toolkit/toolkit/skills-claude/test-case-spec/SKILL.md +74 -20
  26. package/assets/toolkit/toolkit/templates/README.md +5 -1
  27. package/assets/toolkit/toolkit/templates/docs/api/API_DESIGN_CREATION_RULES.md +1 -2
  28. package/assets/toolkit/toolkit/templates/docs/api/API_DESIGN_FLOWCHART_CREATION_RULES.md +468 -468
  29. package/assets/toolkit/toolkit/templates/docs/api/FLOWCHART_CREATION_RULES.md +3 -3
  30. package/assets/toolkit/toolkit/templates/docs/api/YAML_CREATION_RULES.md +128 -128
  31. package/assets/toolkit/toolkit/templates/mailbox/AGENT_TASK_TEMPLATE.md +3 -1
  32. package/package.json +46 -46
  33. package/assets/toolkit/toolkit/skills/sdtk-api-design-spec/references/API_DESIGN_CREATION_RULES.md +0 -22
  34. package/assets/toolkit/toolkit/skills/sdtk-api-design-spec/references/API_DESIGN_FLOWCHART_CREATION_RULES.md +0 -468
  35. package/assets/toolkit/toolkit/skills/sdtk-api-design-spec/references/FLOWCHART_CREATION_RULES.md +0 -20
  36. package/assets/toolkit/toolkit/skills/sdtk-api-doc/references/API_DESIGN_FLOWCHART_CREATION_RULES.md +0 -468
  37. package/assets/toolkit/toolkit/skills/sdtk-api-doc/references/FLOWCHART_CREATION_RULES.md +0 -20
  38. package/assets/toolkit/toolkit/skills/sdtk-api-doc/references/YAML_CREATION_RULES.md +0 -128
  39. package/assets/toolkit/toolkit/skills/sdtk-arch/references/API_DESIGN_CREATION_RULES.md +0 -22
  40. package/assets/toolkit/toolkit/skills/sdtk-arch/references/API_DESIGN_FLOWCHART_CREATION_RULES.md +0 -468
  41. package/assets/toolkit/toolkit/skills/sdtk-arch/references/FLOWCHART_CREATION_RULES.md +0 -20
  42. package/assets/toolkit/toolkit/skills/sdtk-arch/references/FLOW_ACTION_SPEC_CREATION_RULES.md +0 -220
  43. package/assets/toolkit/toolkit/skills/sdtk-arch/references/YAML_CREATION_RULES.md +0 -128
  44. package/assets/toolkit/toolkit/skills/sdtk-screen-design-spec/references/FLOW_ACTION_SPEC_CREATION_RULES.md +0 -220
  45. package/assets/toolkit/toolkit/skills/sdtk-test-case-spec/references/TEST_CASE_CREATION_RULES.md +0 -129
@@ -4,8 +4,8 @@ This file is kept only for backward compatibility.
4
4
 
5
5
  Do not use this file as the primary source of truth anymore.
6
6
  The rule set has been split into two files:
7
- - `YAML_CREATION_RULES_FINAL.md` (root) / `templates/docs/api/YAML_CREATION_RULES.md` (toolkit)
8
- - `API_DESIGN_FLOWCHART_CREATION_RULES_FINAL.md` (root) / `templates/docs/api/API_DESIGN_FLOWCHART_CREATION_RULES.md` (toolkit)
7
+ - `toolkit/templates/docs/api/YAML_CREATION_RULES.md`
8
+ - `toolkit/templates/docs/api/API_DESIGN_FLOWCHART_CREATION_RULES.md`
9
9
 
10
10
  Use the YAML rules file for:
11
11
  - endpoint path/method conventions
@@ -17,4 +17,4 @@ Use the API design + flowchart rules file for:
17
17
  - PlantUML flow depth and wording
18
18
  - API design detail markdown rules
19
19
 
20
- This compatibility note should remain only until all references are migrated.
20
+ This compatibility note should remain only until all references are migrated.
@@ -1,128 +1,128 @@
1
- # YAML CREATION RULES FINAL
2
-
3
- This file is the canonical rule set for designing and maintaining feature-level OpenAPI YAML.
4
-
5
- Use this file for:
6
- - OpenAPI YAML contract design
7
- - endpoint path/method decisions
8
- - request/response schema design
9
- - endpoint summary and contract consistency checks
10
-
11
- Do not use this file as the primary rule source for:
12
- - flowchart writing details
13
- - API design detail markdown layout
14
-
15
- Use `API_DESIGN_FLOWCHART_CREATION_RULES_FINAL.md` for those.
16
-
17
- ## 1. Rule Precedence
18
- - Priority 1: follow the existing system's real route, method, payload, and response conventions.
19
- - Priority 2: match the current source code and runtime behavior.
20
- - Priority 3: apply the reusable standards in this document.
21
- - If a reusable rule conflicts with the target system, keep the system rule and document the exception explicitly.
22
-
23
- ## 2. API Scope Classification
24
- - Every endpoint must be classified as one of:
25
- - `New`
26
- - `Deferred`
27
- - `Existing (reuse)`
28
- - Do not silently create a new feature-local API if an existing system API already provides the same behavior with a compatible contract.
29
- - If the existing API is close in purpose but payload or response is incompatible with the feature need, create a bounded new API.
30
-
31
- ## 3. Endpoint Path Design
32
- - Use singular resource names in endpoint paths.
33
- - Use explicit action segments only when needed by system convention:
34
- - `list`
35
- - `search`
36
- - `edit`
37
- - `delete`
38
- - `multi-create`
39
- - Prefer stable system-style patterns such as:
40
- - list: `GET /{resource}/list/{organization_uuid}/{parent_uuid}`
41
- - search: `POST /{resource}/search/{organization_uuid}`
42
- - view-specific search: `POST /{resource}/resource-view/search/{organization_uuid}`
43
- - create: `POST /{resource}/{organization_uuid}`
44
- - detail: `GET /{resource}/{organization_uuid}/{resource_uuid}`
45
- - edit: `POST /{resource}/edit/{organization_uuid}/{resource_uuid}`
46
- - delete: `POST /{resource}/delete/{organization_uuid}/{resource_uuid}`
47
- - Separate namespaces by bounded context.
48
- - Do not repeat namespace meaning in child path segments.
49
-
50
- ## 4. Request Contract Rules
51
- - For feature-owned POST search and write APIs, prefer a stable wrapper:
52
- - `data: { ... }`
53
- - For complex filters, place fields under:
54
- - `data.info`
55
- - If reusing an existing system API, keep the owning module's contract shape exactly as-is.
56
- - Do not force reused APIs into the feature wrapper pattern.
57
- - If a payload field changes behavior, the field must be explicit in the schema and must not remain only in examples.
58
-
59
- ## 5. Response Contract Rules
60
- - Success responses must include `status` at minimum.
61
- - Create APIs should return the minimum new identifier required by the caller.
62
- - Example: `status + task_assignment_uuid`
63
- - Edit and delete APIs should return status-only unless the target system has a stronger standard.
64
- - Pre-check or validation helper APIs should return only the minimum boolean or status needed by the UI.
65
- - Do not return detail payloads the UI does not consume.
66
- - Do not add FE-only visual helper payloads when the client can derive them safely.
67
- - Example: remove `timeline_backgrounds` if the frontend renders timeline lines from existing data.
68
-
69
- ## 6. Naming and Field Mapping Rules
70
- - Use canonical business-domain terminology from the system glossary and database.
71
- - Prefer actual system terms such as:
72
- - `resource`
73
- - `task`
74
- - `assignee`
75
- - `certification`
76
- - Avoid legacy aliases when an official term already exists.
77
- - Field names should align with database semantics when they represent the same concept.
78
- - If the DB uses a string state code, the API field must not be modeled as an integer.
79
- - If a field is date-only (`format: date`), include the display format in the description.
80
- - Example: `Start date (YYYYMMDD)`
81
-
82
- ## 7. Search and List API Rules
83
- - One search API may serve multiple UI actions when the logic is the same:
84
- - initial load
85
- - search button
86
- - refresh after mode/date change
87
- - If one endpoint serves multiple UI actions, document that explicitly in YAML description and endpoint docs.
88
- - Search APIs must define filter combination semantics clearly:
89
- - AND across different fields
90
- - OR within each `*_uuids` array
91
- - If UI rendering depends on stable order, the YAML description must state the confirmed ORDER BY logic.
92
-
93
- ## 8. Split vs Reuse Rules
94
- - Split read/search endpoints when the FE needs materially different grouped or view-shaped datasets.
95
- - Merge or remove helper payloads when they add maintenance cost without business value.
96
- - Reuse existing platform APIs when behavior already exists and only a feature-level mapping layer is needed.
97
- - Example: reuse shared environment setting APIs instead of creating feature-local setting APIs.
98
-
99
- ## 9. Sample Data Rules
100
- - For fields declared as `format: uuid`, use canonical UUID samples.
101
- - Example: `123e4567-e89b-12d3-a456-426614174000`
102
- - Do not use placeholder UUID-like labels such as:
103
- - `customer-uuid-001`
104
- - `assign-uuid-001`
105
- - Keep sample data deterministic and internally consistent across request and response examples.
106
-
107
- ## 10. Cross-Artifact Consistency Rules
108
- - The YAML contract is the source of truth for:
109
- - endpoint path
110
- - method
111
- - request wrapper
112
- - response shape
113
- - After any YAML contract change, sync these artifacts:
114
- - endpoint markdown
115
- - flow list
116
- - PlantUML flow assets
117
- - API design detail markdown
118
- - If any artifact cannot yet be synced, note the mismatch explicitly rather than leaving stale content.
119
-
120
- ## 11. Minimum YAML Quality Gate
121
- - Path/method follow the target system convention.
122
- - API type is classified (`New`, `Deferred`, `Existing (reuse)`).
123
- - Request/response wrappers are stable and explicit.
124
- - FE-only helper payloads are removed.
125
- - Field names and types match DB semantics.
126
- - UUID examples are valid UUIDs.
127
- - Date descriptions include display format where needed.
128
- - Search/list APIs document filter semantics and ordering when relevant.
1
+ # YAML CREATION RULES FINAL
2
+
3
+ This file is the canonical rule set for designing and maintaining feature-level OpenAPI YAML.
4
+
5
+ Use this file for:
6
+ - OpenAPI YAML contract design
7
+ - endpoint path/method decisions
8
+ - request/response schema design
9
+ - endpoint summary and contract consistency checks
10
+
11
+ Do not use this file as the primary rule source for:
12
+ - flowchart writing details
13
+ - API design detail markdown layout
14
+
15
+ Use `toolkit/templates/docs/api/API_DESIGN_FLOWCHART_CREATION_RULES.md` for those.
16
+
17
+ ## 1. Rule Precedence
18
+ - Priority 1: follow the existing system's real route, method, payload, and response conventions.
19
+ - Priority 2: match the current source code and runtime behavior.
20
+ - Priority 3: apply the reusable standards in this document.
21
+ - If a reusable rule conflicts with the target system, keep the system rule and document the exception explicitly.
22
+
23
+ ## 2. API Scope Classification
24
+ - Every endpoint must be classified as one of:
25
+ - `New`
26
+ - `Deferred`
27
+ - `Existing (reuse)`
28
+ - Do not silently create a new feature-local API if an existing system API already provides the same behavior with a compatible contract.
29
+ - If the existing API is close in purpose but payload or response is incompatible with the feature need, create a bounded new API.
30
+
31
+ ## 3. Endpoint Path Design
32
+ - Use singular resource names in endpoint paths.
33
+ - Use explicit action segments only when needed by system convention:
34
+ - `list`
35
+ - `search`
36
+ - `edit`
37
+ - `delete`
38
+ - `multi-create`
39
+ - Prefer stable system-style patterns such as:
40
+ - list: `GET /{resource}/list/{organization_uuid}/{parent_uuid}`
41
+ - search: `POST /{resource}/search/{organization_uuid}`
42
+ - view-specific search: `POST /{resource}/resource-view/search/{organization_uuid}`
43
+ - create: `POST /{resource}/{organization_uuid}`
44
+ - detail: `GET /{resource}/{organization_uuid}/{resource_uuid}`
45
+ - edit: `POST /{resource}/edit/{organization_uuid}/{resource_uuid}`
46
+ - delete: `POST /{resource}/delete/{organization_uuid}/{resource_uuid}`
47
+ - Separate namespaces by bounded context.
48
+ - Do not repeat namespace meaning in child path segments.
49
+
50
+ ## 4. Request Contract Rules
51
+ - For feature-owned POST search and write APIs, prefer a stable wrapper:
52
+ - `data: { ... }`
53
+ - For complex filters, place fields under:
54
+ - `data.info`
55
+ - If reusing an existing system API, keep the owning module's contract shape exactly as-is.
56
+ - Do not force reused APIs into the feature wrapper pattern.
57
+ - If a payload field changes behavior, the field must be explicit in the schema and must not remain only in examples.
58
+
59
+ ## 5. Response Contract Rules
60
+ - Success responses must include `status` at minimum.
61
+ - Create APIs should return the minimum new identifier required by the caller.
62
+ - Example: `status + task_assignment_uuid`
63
+ - Edit and delete APIs should return status-only unless the target system has a stronger standard.
64
+ - Pre-check or validation helper APIs should return only the minimum boolean or status needed by the UI.
65
+ - Do not return detail payloads the UI does not consume.
66
+ - Do not add FE-only visual helper payloads when the client can derive them safely.
67
+ - Example: remove `timeline_backgrounds` if the frontend renders timeline lines from existing data.
68
+
69
+ ## 6. Naming and Field Mapping Rules
70
+ - Use canonical business-domain terminology from the system glossary and database.
71
+ - Prefer actual system terms such as:
72
+ - `resource`
73
+ - `task`
74
+ - `assignee`
75
+ - `certification`
76
+ - Avoid legacy aliases when an official term already exists.
77
+ - Field names should align with database semantics when they represent the same concept.
78
+ - If the DB uses a string state code, the API field must not be modeled as an integer.
79
+ - If a field is date-only (`format: date`), include the display format in the description.
80
+ - Example: `Start date (YYYYMMDD)`
81
+
82
+ ## 7. Search and List API Rules
83
+ - One search API may serve multiple UI actions when the logic is the same:
84
+ - initial load
85
+ - search button
86
+ - refresh after mode/date change
87
+ - If one endpoint serves multiple UI actions, document that explicitly in YAML description and endpoint docs.
88
+ - Search APIs must define filter combination semantics clearly:
89
+ - AND across different fields
90
+ - OR within each `*_uuids` array
91
+ - If UI rendering depends on stable order, the YAML description must state the confirmed ORDER BY logic.
92
+
93
+ ## 8. Split vs Reuse Rules
94
+ - Split read/search endpoints when the FE needs materially different grouped or view-shaped datasets.
95
+ - Merge or remove helper payloads when they add maintenance cost without business value.
96
+ - Reuse existing platform APIs when behavior already exists and only a feature-level mapping layer is needed.
97
+ - Example: reuse shared environment setting APIs instead of creating feature-local setting APIs.
98
+
99
+ ## 9. Sample Data Rules
100
+ - For fields declared as `format: uuid`, use canonical UUID samples.
101
+ - Example: `123e4567-e89b-12d3-a456-426614174000`
102
+ - Do not use placeholder UUID-like labels such as:
103
+ - `customer-uuid-001`
104
+ - `assign-uuid-001`
105
+ - Keep sample data deterministic and internally consistent across request and response examples.
106
+
107
+ ## 10. Cross-Artifact Consistency Rules
108
+ - The YAML contract is the source of truth for:
109
+ - endpoint path
110
+ - method
111
+ - request wrapper
112
+ - response shape
113
+ - After any YAML contract change, sync these artifacts:
114
+ - endpoint markdown
115
+ - flow list
116
+ - PlantUML flow assets
117
+ - API design detail markdown
118
+ - If any artifact cannot yet be synced, note the mismatch explicitly rather than leaving stale content.
119
+
120
+ ## 11. Minimum YAML Quality Gate
121
+ - Path/method follow the target system convention.
122
+ - API type is classified (`New`, `Deferred`, `Existing (reuse)`).
123
+ - Request/response wrappers are stable and explicit.
124
+ - FE-only helper payloads are removed.
125
+ - Field names and types match DB semantics.
126
+ - UUID examples are valid UUIDs.
127
+ - Date descriptions include display format where needed.
128
+ - Search/list APIs document filter semantics and ordering when relevant.
@@ -14,6 +14,8 @@ Decision Requested:
14
14
  - <exact decision or ready-state question>
15
15
  Issue Closeout Mode:
16
16
  - <full-issue|phase-only>
17
+ Execution Permission:
18
+ - <read-only|workspace-write-approved>
17
19
  Formal Outputs To Produce:
18
20
  1. <tracked artifact path>
19
21
  2. <tracked artifact path>
@@ -60,4 +62,4 @@ Return Format:
60
62
  5. exact verification results
61
63
  6. boundary truth
62
64
  7. blockers or open questions
63
- 8. explicit readiness statement
65
+ 8. explicit readiness statement
package/package.json CHANGED
@@ -1,48 +1,48 @@
1
1
  {
2
- "name": "sdtk-spec-kit",
3
- "version": "0.3.14",
4
- "description": "SDTK-SPEC CLI toolkit for deterministic software documentation workflows via the sdtk-spec command",
5
- "bin": {
6
- "sdtk-spec": "bin/sdtk.js"
7
- },
8
- "main": "src/index.js",
9
- "type": "commonjs",
10
- "files": [
11
- "bin/",
12
- "src/",
13
- "assets/"
14
- ],
15
- "scripts": {
16
- "test": "npm run verify:payload && npm run pack:smoke",
17
- "build:payload": "powershell -ExecutionPolicy Bypass -File scripts/sync-toolkit-assets.ps1 && powershell -ExecutionPolicy Bypass -File scripts/build-toolkit-manifest.ps1",
18
- "verify:payload": "node -e \"require('./src/lib/toolkit-payload').verify()\"",
19
- "pack:smoke": "npm pack --dry-run",
20
- "pack:release": "npm pack",
21
- "prepublishOnly": "node -e \"require('./src/lib/toolkit-payload').verify()\""
22
- },
23
- "engines": {
24
- "node": ">=18.13.0"
25
- },
26
- "keywords": [
27
- "sdtk",
28
- "sdtk-spec",
29
- "sdtk-spec-kit",
30
- "cli",
31
- "documentation",
32
- "toolkit",
33
- "dockkit"
34
- ],
35
- "license": "MIT",
36
- "repository": {
37
- "type": "git",
38
- "url": "git+https://github.com/codexsdtk/sdtk-toolkit.git",
39
- "directory": "products/sdtk-spec/distribution/sdtk-spec-kit"
40
- },
41
- "homepage": "https://agenttoolkits.dev",
42
- "bugs": {
43
- "url": "https://github.com/codexsdtk/sdtk-toolkit/issues"
44
- },
45
- "publishConfig": {
46
- "access": "public"
47
- }
2
+ "name": "sdtk-spec-kit",
3
+ "version": "0.3.15",
4
+ "description": "SDTK-SPEC CLI toolkit for deterministic software documentation workflows via the sdtk-spec command",
5
+ "bin": {
6
+ "sdtk-spec": "bin/sdtk.js"
7
+ },
8
+ "main": "src/index.js",
9
+ "type": "commonjs",
10
+ "files": [
11
+ "bin/",
12
+ "src/",
13
+ "assets/"
14
+ ],
15
+ "scripts": {
16
+ "test": "npm run verify:payload \u0026\u0026 npm run pack:smoke",
17
+ "build:payload": "powershell -ExecutionPolicy Bypass -File scripts/sync-toolkit-assets.ps1 \u0026\u0026 powershell -ExecutionPolicy Bypass -File scripts/build-toolkit-manifest.ps1",
18
+ "verify:payload": "node -e \"require(\u0027./src/lib/toolkit-payload\u0027).verify()\"",
19
+ "pack:smoke": "npm pack --dry-run",
20
+ "pack:release": "npm pack",
21
+ "prepublishOnly": "node -e \"require(\u0027./src/lib/toolkit-payload\u0027).verify()\""
22
+ },
23
+ "engines": {
24
+ "node": "\u003e=18.13.0"
25
+ },
26
+ "keywords": [
27
+ "sdtk",
28
+ "sdtk-spec",
29
+ "sdtk-spec-kit",
30
+ "cli",
31
+ "documentation",
32
+ "toolkit",
33
+ "dockkit"
34
+ ],
35
+ "license": "MIT",
36
+ "repository": {
37
+ "type": "git",
38
+ "url": "git+https://github.com/codexsdtk/sdtk-toolkit.git",
39
+ "directory": "products/sdtk-spec/distribution/sdtk-spec-kit"
40
+ },
41
+ "homepage": "https://agenttoolkits.dev",
42
+ "bugs": {
43
+ "url": "https://github.com/codexsdtk/sdtk-toolkit/issues"
44
+ },
45
+ "publishConfig": {
46
+ "access": "public"
47
+ }
48
48
  }
@@ -1,22 +0,0 @@
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
- - `API_DESIGN_FLOWCHART_CREATION_RULES_FINAL.md` (root)
8
- - `templates/docs/api/API_DESIGN_FLOWCHART_CREATION_RULES.md` (toolkit)
9
-
10
- Even in compatibility mode, generated API design detail docs must still include:
11
- - a top-level `## Assumptions` section
12
- - this table format: `| # | Assumption | Verified | Risk if wrong |`
13
- - explicit unresolved assumptions when downstream review depends on them
14
-
15
- Use the active rule file for:
16
- - API design detail markdown structure
17
- - flowchart integration and synchronization rules
18
- - error section rules
19
- - flow summary / notes / login rules
20
- - assumptions-section requirements
21
-
22
- This compatibility note should remain only until all references are migrated.