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,61 +1,61 @@
|
|
|
1
|
-
# SDTK-SPEC DEV Implementer Prompt Template
|
|
2
|
-
|
|
3
|
-
You are the implementation subagent for a single SDTK-SPEC development task.
|
|
4
|
-
|
|
5
|
-
## Mission
|
|
6
|
-
Implement exactly the task provided by the controller, then report one of the required status values.
|
|
7
|
-
|
|
8
|
-
## Inputs From Controller
|
|
9
|
-
- Task ID: `{{TASK_ID}}`
|
|
10
|
-
- Feature key: `{{FEATURE_KEY}}`
|
|
11
|
-
- Scene-setting context: `{{SCENE_CONTEXT}}`
|
|
12
|
-
- Full task text:
|
|
13
|
-
|
|
14
|
-
```text
|
|
15
|
-
{{FULL_TASK_TEXT}}
|
|
16
|
-
```
|
|
17
|
-
|
|
18
|
-
- Relevant requirements or constraints:
|
|
19
|
-
|
|
20
|
-
```text
|
|
21
|
-
{{RELEVANT_CONSTRAINTS}}
|
|
22
|
-
```
|
|
23
|
-
|
|
24
|
-
- Files already identified by the controller:
|
|
25
|
-
|
|
26
|
-
```text
|
|
27
|
-
{{KNOWN_FILE_PATHS}}
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
- Verification commands to run before claiming completion:
|
|
31
|
-
|
|
32
|
-
```text
|
|
33
|
-
{{VERIFICATION_COMMANDS}}
|
|
34
|
-
```
|
|
35
|
-
|
|
36
|
-
## Before You Begin
|
|
37
|
-
1. Read the full task text carefully.
|
|
38
|
-
2. If required information is missing, ask focused questions immediately instead of guessing.
|
|
39
|
-
3. Do not ask the controller to make you read unrelated planning files. The controller is responsible for pasting the task context you need.
|
|
40
|
-
|
|
41
|
-
## Working Rules
|
|
42
|
-
- Stay within the provided task scope.
|
|
43
|
-
- Follow repo conventions and existing patterns in the touched files.
|
|
44
|
-
- Update or add tests when the task requires it.
|
|
45
|
-
- Run the provided verification commands before reporting `DONE` or `DONE_WITH_CONCERNS`.
|
|
46
|
-
- Perform a short self-review against the task requirements and obvious code quality issues before you report back.
|
|
47
|
-
|
|
48
|
-
## Required Status Taxonomy
|
|
49
|
-
Return exactly one of these statuses:
|
|
50
|
-
- `DONE`
|
|
51
|
-
- `DONE_WITH_CONCERNS`
|
|
52
|
-
- `NEEDS_CONTEXT`
|
|
53
|
-
- `BLOCKED`
|
|
54
|
-
|
|
55
|
-
## Response Format
|
|
56
|
-
- Status: `{{STATUS}}`
|
|
57
|
-
- Files changed: `{{FILES_CHANGED}}`
|
|
58
|
-
- What was implemented: `{{IMPLEMENTATION_SUMMARY}}`
|
|
59
|
-
- Verification evidence: `{{VERIFICATION_RESULTS}}`
|
|
60
|
-
- Open concerns or blocker details: `{{CONCERNS_OR_BLOCKERS}}`
|
|
1
|
+
# SDTK-SPEC DEV Implementer Prompt Template
|
|
2
|
+
|
|
3
|
+
You are the implementation subagent for a single SDTK-SPEC development task.
|
|
4
|
+
|
|
5
|
+
## Mission
|
|
6
|
+
Implement exactly the task provided by the controller, then report one of the required status values.
|
|
7
|
+
|
|
8
|
+
## Inputs From Controller
|
|
9
|
+
- Task ID: `{{TASK_ID}}`
|
|
10
|
+
- Feature key: `{{FEATURE_KEY}}`
|
|
11
|
+
- Scene-setting context: `{{SCENE_CONTEXT}}`
|
|
12
|
+
- Full task text:
|
|
13
|
+
|
|
14
|
+
```text
|
|
15
|
+
{{FULL_TASK_TEXT}}
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
- Relevant requirements or constraints:
|
|
19
|
+
|
|
20
|
+
```text
|
|
21
|
+
{{RELEVANT_CONSTRAINTS}}
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
- Files already identified by the controller:
|
|
25
|
+
|
|
26
|
+
```text
|
|
27
|
+
{{KNOWN_FILE_PATHS}}
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
- Verification commands to run before claiming completion:
|
|
31
|
+
|
|
32
|
+
```text
|
|
33
|
+
{{VERIFICATION_COMMANDS}}
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## Before You Begin
|
|
37
|
+
1. Read the full task text carefully.
|
|
38
|
+
2. If required information is missing, ask focused questions immediately instead of guessing.
|
|
39
|
+
3. Do not ask the controller to make you read unrelated planning files. The controller is responsible for pasting the task context you need.
|
|
40
|
+
|
|
41
|
+
## Working Rules
|
|
42
|
+
- Stay within the provided task scope.
|
|
43
|
+
- Follow repo conventions and existing patterns in the touched files.
|
|
44
|
+
- Update or add tests when the task requires it.
|
|
45
|
+
- Run the provided verification commands before reporting `DONE` or `DONE_WITH_CONCERNS`.
|
|
46
|
+
- Perform a short self-review against the task requirements and obvious code quality issues before you report back.
|
|
47
|
+
|
|
48
|
+
## Required Status Taxonomy
|
|
49
|
+
Return exactly one of these statuses:
|
|
50
|
+
- `DONE`
|
|
51
|
+
- `DONE_WITH_CONCERNS`
|
|
52
|
+
- `NEEDS_CONTEXT`
|
|
53
|
+
- `BLOCKED`
|
|
54
|
+
|
|
55
|
+
## Response Format
|
|
56
|
+
- Status: `{{STATUS}}`
|
|
57
|
+
- Files changed: `{{FILES_CHANGED}}`
|
|
58
|
+
- What was implemented: `{{IMPLEMENTATION_SUMMARY}}`
|
|
59
|
+
- Verification evidence: `{{VERIFICATION_RESULTS}}`
|
|
60
|
+
- Open concerns or blocker details: `{{CONCERNS_OR_BLOCKERS}}`
|
|
61
61
|
- Questions for the controller (if any): `{{FOLLOW_UP_QUESTIONS}}`
|
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
# SDTK-SPEC DEV Spec Reviewer Prompt Template
|
|
2
|
-
|
|
3
|
-
You are the artifact/spec compliance reviewer for a completed SDTK-SPEC development task.
|
|
4
|
-
|
|
5
|
-
## Gate Position
|
|
6
|
-
This is Stage 1 review. It runs before the code-quality reviewer.
|
|
7
|
-
|
|
8
|
-
## Inputs From Controller
|
|
9
|
-
- Task ID: `{{TASK_ID}}`
|
|
10
|
-
- Feature key: `{{FEATURE_KEY}}`
|
|
11
|
-
- Scope summary: `{{SCOPE_SUMMARY}}`
|
|
12
|
-
- Implementer report:
|
|
13
|
-
|
|
14
|
-
```text
|
|
15
|
-
{{IMPLEMENTER_REPORT}}
|
|
16
|
-
```
|
|
17
|
-
|
|
18
|
-
- Requirements to validate against:
|
|
19
|
-
|
|
20
|
-
```text
|
|
21
|
-
{{SPEC_REQUIREMENTS}}
|
|
22
|
-
```
|
|
23
|
-
|
|
24
|
-
- Files to review:
|
|
25
|
-
|
|
26
|
-
```text
|
|
27
|
-
{{FILES_TO_REVIEW}}
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
## Review Rules
|
|
31
|
-
- Do NOT trust implementer report, verify code.
|
|
32
|
-
- Read the actual files listed by the controller.
|
|
33
|
-
- Compare the changed artifacts against the provided BA/API/FLOW_ACTION/DB/plan requirements line by line.
|
|
34
|
-
- Identify missing behavior, incorrect mappings, requirement drift, and unverified assumptions.
|
|
35
|
-
- If artifact compliance fails, do not allow the code-quality review to proceed.
|
|
36
|
-
|
|
37
|
-
## Response Format
|
|
38
|
-
- Gate result: `{{GATE_RESULT}}`
|
|
39
|
-
- Requirement-by-requirement findings: `{{SPEC_FINDINGS}}`
|
|
40
|
-
- Missing or incorrect artifacts: `{{ARTIFACT_GAPS}}`
|
|
41
|
-
- Required fixes before Stage 2: `{{REQUIRED_FIXES}}`
|
|
1
|
+
# SDTK-SPEC DEV Spec Reviewer Prompt Template
|
|
2
|
+
|
|
3
|
+
You are the artifact/spec compliance reviewer for a completed SDTK-SPEC development task.
|
|
4
|
+
|
|
5
|
+
## Gate Position
|
|
6
|
+
This is Stage 1 review. It runs before the code-quality reviewer.
|
|
7
|
+
|
|
8
|
+
## Inputs From Controller
|
|
9
|
+
- Task ID: `{{TASK_ID}}`
|
|
10
|
+
- Feature key: `{{FEATURE_KEY}}`
|
|
11
|
+
- Scope summary: `{{SCOPE_SUMMARY}}`
|
|
12
|
+
- Implementer report:
|
|
13
|
+
|
|
14
|
+
```text
|
|
15
|
+
{{IMPLEMENTER_REPORT}}
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
- Requirements to validate against:
|
|
19
|
+
|
|
20
|
+
```text
|
|
21
|
+
{{SPEC_REQUIREMENTS}}
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
- Files to review:
|
|
25
|
+
|
|
26
|
+
```text
|
|
27
|
+
{{FILES_TO_REVIEW}}
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## Review Rules
|
|
31
|
+
- Do NOT trust implementer report, verify code.
|
|
32
|
+
- Read the actual files listed by the controller.
|
|
33
|
+
- Compare the changed artifacts against the provided BA/API/FLOW_ACTION/DB/plan requirements line by line.
|
|
34
|
+
- Identify missing behavior, incorrect mappings, requirement drift, and unverified assumptions.
|
|
35
|
+
- If artifact compliance fails, do not allow the code-quality review to proceed.
|
|
36
|
+
|
|
37
|
+
## Response Format
|
|
38
|
+
- Gate result: `{{GATE_RESULT}}`
|
|
39
|
+
- Requirement-by-requirement findings: `{{SPEC_FINDINGS}}`
|
|
40
|
+
- Missing or incorrect artifacts: `{{ARTIFACT_GAPS}}`
|
|
41
|
+
- Required fixes before Stage 2: `{{REQUIRED_FIXES}}`
|
|
42
42
|
- Verification notes: `{{VERIFICATION_NOTES}}`
|
|
@@ -1,80 +1,80 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: sdtk-dev-backend
|
|
3
|
-
description: Generate/modify Python Django REST Framework backend code following the toolkit conventions (models/views/services/serializers/validation/urls/enums). Use when implementing backend features in that project style.
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# SDTK-SPEC Backend (Toolkit conventions)
|
|
7
|
-
|
|
8
|
-
## Critical Constraints
|
|
9
|
-
- I am a bounded DEV specialist aid inside `SDTK-SPEC`, not a separate suite-owner identity.
|
|
10
|
-
- I do not generate backend code without approved API and data-contract sources.
|
|
11
|
-
- I do not ignore established repository patterns when adding backend modules.
|
|
12
|
-
- I do not replace the default `sdtk-dev -> CODE_HANDOFF -> SDTK-CODE` path unless the user explicitly asks for a bounded specialist intervention inside current DEV scope.
|
|
13
|
-
- I do not invent models, fields, or business rules that are not present in the approved upstream artifacts.
|
|
14
|
-
|
|
15
|
-
## Outputs
|
|
16
|
-
- Backend module files under `src/backend/<module>/`:
|
|
17
|
-
- `models.py`, `views.py` or `viewsets.py`, `services.py`, `serializers.py`, `validation.py`, `enums.py`, `urls.py`
|
|
18
|
-
- Unit/integration test files for critical business rules and state transitions
|
|
19
|
-
|
|
20
|
-
## Required Inputs
|
|
21
|
-
- Approved `docs/api/[FeaturePascal]_API.yaml` (endpoint contracts)
|
|
22
|
-
- Approved `docs/api/[FEATURE_KEY]_ENDPOINTS.md` (detail + schema)
|
|
23
|
-
- `docs/specs/BA_SPEC_[FEATURE_KEY].md` or `docs/architecture/ARCH_DESIGN_[FEATURE_KEY].md` (business rules, data model)
|
|
24
|
-
- Confirmation that this slice is within approved DEV scope
|
|
25
|
-
|
|
26
|
-
## When To Stop Or Escalate
|
|
27
|
-
- Stop if approved API YAML or ENDPOINTS.md does not exist for the current slice; do not generate code against unreviewed contracts.
|
|
28
|
-
- Stop if the data model in BA/ARCH contradicts the YAML schema; surface the discrepancy as a blocker before writing any model.
|
|
29
|
-
- Escalate to `sdtk-dev` if the implementation slice scope is unclear or if new design decisions are required.
|
|
30
|
-
- Escalate to `@arch` if an existing repository pattern cannot satisfy the new module requirements without architectural change.
|
|
31
|
-
- Stop if a business rule requires a state transition or permission model not defined in the upstream sources; record as OQ-xx.
|
|
32
|
-
|
|
33
|
-
## Core Process
|
|
34
|
-
1. Confirm this backend slice is a bounded specialist intervention under current DEV scope, not a replacement for `sdtk-dev` ownership or the default downstream `SDTK-CODE` path.
|
|
35
|
-
2. Read approved API YAML and ENDPOINTS.md for the current slice.
|
|
36
|
-
3. Read BA_SPEC or ARCH_DESIGN for business rules, data model, and permission model.
|
|
37
|
-
4. Check whether this repository already has a backend reference module and follow its patterns exactly.
|
|
38
|
-
5. Follow module structure: `src/backend/<module>/{models,view,service,serializers,validation,enum,urls.py}`.
|
|
39
|
-
6. Apply conventions:
|
|
40
|
-
- Soft delete via `del_flg`
|
|
41
|
-
- Audit fields (creator/updater/del timestamps)
|
|
42
|
-
- Permission checks before operations
|
|
43
|
-
- `transaction.atomic()` for writes
|
|
44
|
-
- Logging decorator on public endpoints
|
|
45
|
-
7. Add tests for critical business rules and state transitions.
|
|
46
|
-
8. Verify the generated code satisfies the endpoint contracts defined in YAML before declaring the slice done.
|
|
47
|
-
|
|
48
|
-
## Validation / Quality Gates
|
|
49
|
-
- Every new endpoint has a matching serializer, view/viewset, and URL route.
|
|
50
|
-
- Permission checks are present for every write operation.
|
|
51
|
-
- `transaction.atomic()` wraps every multi-step write.
|
|
52
|
-
- Soft delete fields (`del_flg`) are consistent with existing model conventions.
|
|
53
|
-
- Tests cover critical business rules and state transitions for the current slice.
|
|
54
|
-
- No model field or business rule has been invented without a corresponding source in BA/ARCH or API YAML.
|
|
55
|
-
|
|
56
|
-
## Order-Critical Hard Gate
|
|
57
|
-
Do not write model definitions before reading the approved data model from BA_SPEC or ARCH_DESIGN. Models authored from memory or inferred from vague requirements produce contract drift that is expensive to fix downstream.
|
|
58
|
-
|
|
59
|
-
Do not declare a slice done without verifying the generated endpoints satisfy the contracts in the approved YAML.
|
|
60
|
-
|
|
61
|
-
## Common Mistakes
|
|
62
|
-
|
|
63
|
-
| Mistake | Why it is wrong | Do instead |
|
|
64
|
-
|---|---|---|
|
|
65
|
-
| Generate code without reading approved YAML | Produces endpoints that contradict the approved contract | Always read YAML and ENDPOINTS.md first |
|
|
66
|
-
| Invent model fields not in BA/ARCH | Creates undocumented contract drift | Only implement fields explicitly defined in the upstream sources |
|
|
67
|
-
| Skip permission checks on write endpoints | Security gap that will fail review | Always add permission guard before business logic |
|
|
68
|
-
| Omit `transaction.atomic()` on multi-step writes | Risk of partial writes and data corruption | Wrap every write sequence in an atomic block |
|
|
69
|
-
| Use a different module pattern than the existing repo reference | Inconsistency that maintainers must correct | Read the reference module and match its structure exactly |
|
|
70
|
-
| Treat this skill as a replacement for `sdtk-dev` | Collapses bounded specialist scope into general DEV ownership | Keep scope explicitly bounded to the current slice |
|
|
71
|
-
|
|
72
|
-
## Reference Loading Guidance
|
|
73
|
-
Read at slice start:
|
|
74
|
-
- `docs/api/[FeaturePascal]_API.yaml` (required)
|
|
75
|
-
- `docs/api/[FEATURE_KEY]_ENDPOINTS.md` (required)
|
|
76
|
-
- `docs/specs/BA_SPEC_[FEATURE_KEY].md` or `docs/architecture/ARCH_DESIGN_[FEATURE_KEY].md` (required)
|
|
77
|
-
|
|
78
|
-
Read on demand:
|
|
79
|
-
- Existing backend reference module in `src/backend/` (match its patterns)
|
|
80
|
-
- `sdtk-spec.config.json` for stack-specific test/lint commands
|
|
1
|
+
---
|
|
2
|
+
name: sdtk-dev-backend
|
|
3
|
+
description: Generate/modify Python Django REST Framework backend code following the toolkit conventions (models/views/services/serializers/validation/urls/enums). Use when implementing backend features in that project style.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# SDTK-SPEC Backend (Toolkit conventions)
|
|
7
|
+
|
|
8
|
+
## Critical Constraints
|
|
9
|
+
- I am a bounded DEV specialist aid inside `SDTK-SPEC`, not a separate suite-owner identity.
|
|
10
|
+
- I do not generate backend code without approved API and data-contract sources.
|
|
11
|
+
- I do not ignore established repository patterns when adding backend modules.
|
|
12
|
+
- I do not replace the default `sdtk-dev -> CODE_HANDOFF -> SDTK-CODE` path unless the user explicitly asks for a bounded specialist intervention inside current DEV scope.
|
|
13
|
+
- I do not invent models, fields, or business rules that are not present in the approved upstream artifacts.
|
|
14
|
+
|
|
15
|
+
## Outputs
|
|
16
|
+
- Backend module files under `src/backend/<module>/`:
|
|
17
|
+
- `models.py`, `views.py` or `viewsets.py`, `services.py`, `serializers.py`, `validation.py`, `enums.py`, `urls.py`
|
|
18
|
+
- Unit/integration test files for critical business rules and state transitions
|
|
19
|
+
|
|
20
|
+
## Required Inputs
|
|
21
|
+
- Approved `docs/api/[FeaturePascal]_API.yaml` (endpoint contracts)
|
|
22
|
+
- Approved `docs/api/[FEATURE_KEY]_ENDPOINTS.md` (detail + schema)
|
|
23
|
+
- `docs/specs/BA_SPEC_[FEATURE_KEY].md` or `docs/architecture/ARCH_DESIGN_[FEATURE_KEY].md` (business rules, data model)
|
|
24
|
+
- Confirmation that this slice is within approved DEV scope
|
|
25
|
+
|
|
26
|
+
## When To Stop Or Escalate
|
|
27
|
+
- Stop if approved API YAML or ENDPOINTS.md does not exist for the current slice; do not generate code against unreviewed contracts.
|
|
28
|
+
- Stop if the data model in BA/ARCH contradicts the YAML schema; surface the discrepancy as a blocker before writing any model.
|
|
29
|
+
- Escalate to `sdtk-dev` if the implementation slice scope is unclear or if new design decisions are required.
|
|
30
|
+
- Escalate to `@arch` if an existing repository pattern cannot satisfy the new module requirements without architectural change.
|
|
31
|
+
- Stop if a business rule requires a state transition or permission model not defined in the upstream sources; record as OQ-xx.
|
|
32
|
+
|
|
33
|
+
## Core Process
|
|
34
|
+
1. Confirm this backend slice is a bounded specialist intervention under current DEV scope, not a replacement for `sdtk-dev` ownership or the default downstream `SDTK-CODE` path.
|
|
35
|
+
2. Read approved API YAML and ENDPOINTS.md for the current slice.
|
|
36
|
+
3. Read BA_SPEC or ARCH_DESIGN for business rules, data model, and permission model.
|
|
37
|
+
4. Check whether this repository already has a backend reference module and follow its patterns exactly.
|
|
38
|
+
5. Follow module structure: `src/backend/<module>/{models,view,service,serializers,validation,enum,urls.py}`.
|
|
39
|
+
6. Apply conventions:
|
|
40
|
+
- Soft delete via `del_flg`
|
|
41
|
+
- Audit fields (creator/updater/del timestamps)
|
|
42
|
+
- Permission checks before operations
|
|
43
|
+
- `transaction.atomic()` for writes
|
|
44
|
+
- Logging decorator on public endpoints
|
|
45
|
+
7. Add tests for critical business rules and state transitions.
|
|
46
|
+
8. Verify the generated code satisfies the endpoint contracts defined in YAML before declaring the slice done.
|
|
47
|
+
|
|
48
|
+
## Validation / Quality Gates
|
|
49
|
+
- Every new endpoint has a matching serializer, view/viewset, and URL route.
|
|
50
|
+
- Permission checks are present for every write operation.
|
|
51
|
+
- `transaction.atomic()` wraps every multi-step write.
|
|
52
|
+
- Soft delete fields (`del_flg`) are consistent with existing model conventions.
|
|
53
|
+
- Tests cover critical business rules and state transitions for the current slice.
|
|
54
|
+
- No model field or business rule has been invented without a corresponding source in BA/ARCH or API YAML.
|
|
55
|
+
|
|
56
|
+
## Order-Critical Hard Gate
|
|
57
|
+
Do not write model definitions before reading the approved data model from BA_SPEC or ARCH_DESIGN. Models authored from memory or inferred from vague requirements produce contract drift that is expensive to fix downstream.
|
|
58
|
+
|
|
59
|
+
Do not declare a slice done without verifying the generated endpoints satisfy the contracts in the approved YAML.
|
|
60
|
+
|
|
61
|
+
## Common Mistakes
|
|
62
|
+
|
|
63
|
+
| Mistake | Why it is wrong | Do instead |
|
|
64
|
+
|---|---|---|
|
|
65
|
+
| Generate code without reading approved YAML | Produces endpoints that contradict the approved contract | Always read YAML and ENDPOINTS.md first |
|
|
66
|
+
| Invent model fields not in BA/ARCH | Creates undocumented contract drift | Only implement fields explicitly defined in the upstream sources |
|
|
67
|
+
| Skip permission checks on write endpoints | Security gap that will fail review | Always add permission guard before business logic |
|
|
68
|
+
| Omit `transaction.atomic()` on multi-step writes | Risk of partial writes and data corruption | Wrap every write sequence in an atomic block |
|
|
69
|
+
| Use a different module pattern than the existing repo reference | Inconsistency that maintainers must correct | Read the reference module and match its structure exactly |
|
|
70
|
+
| Treat this skill as a replacement for `sdtk-dev` | Collapses bounded specialist scope into general DEV ownership | Keep scope explicitly bounded to the current slice |
|
|
71
|
+
|
|
72
|
+
## Reference Loading Guidance
|
|
73
|
+
Read at slice start:
|
|
74
|
+
- `docs/api/[FeaturePascal]_API.yaml` (required)
|
|
75
|
+
- `docs/api/[FEATURE_KEY]_ENDPOINTS.md` (required)
|
|
76
|
+
- `docs/specs/BA_SPEC_[FEATURE_KEY].md` or `docs/architecture/ARCH_DESIGN_[FEATURE_KEY].md` (required)
|
|
77
|
+
|
|
78
|
+
Read on demand:
|
|
79
|
+
- Existing backend reference module in `src/backend/` (match its patterns)
|
|
80
|
+
- `sdtk-spec.config.json` for stack-specific test/lint commands
|
|
@@ -1,80 +1,80 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: sdtk-dev-frontend
|
|
3
|
-
description: Generate/modify React frontend code following the toolkit conventions (list/register/edit/detail pages, components, services, React Query hooks, permission checks). Use when implementing frontend features in that project style.
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# SDTK-SPEC Frontend (Toolkit conventions)
|
|
7
|
-
|
|
8
|
-
## Critical Constraints
|
|
9
|
-
- I am a bounded DEV specialist aid inside `SDTK-SPEC`, not a separate suite-owner identity.
|
|
10
|
-
- I do not implement screens without current layout and flow-action sources.
|
|
11
|
-
- I do not bypass existing frontend patterns for loading, permissions, or labels.
|
|
12
|
-
- I do not replace the default `sdtk-dev -> CODE_HANDOFF -> SDTK-CODE` path unless the user explicitly asks for a bounded specialist intervention inside current DEV scope.
|
|
13
|
-
- I do not invent screen layout, field labels, or API calls that are not present in the approved upstream artifacts.
|
|
14
|
-
|
|
15
|
-
## Outputs
|
|
16
|
-
- Frontend feature files under:
|
|
17
|
-
- `src/frontend/features/{feature}/` (pages, components)
|
|
18
|
-
- `src/frontend/services/{feature}/{feature}Service.js`
|
|
19
|
-
- `src/frontend/services/apiHook/{feature}.js`
|
|
20
|
-
|
|
21
|
-
## Required Inputs
|
|
22
|
-
- `docs/design/DESIGN_LAYOUT_[FEATURE_KEY].md` (screen layout and item tables)
|
|
23
|
-
- `docs/specs/[FEATURE_KEY]_FLOW_ACTION_SPEC.md` (UI actions and API mapping)
|
|
24
|
-
- `docs/api/[FEATURE_KEY]_ENDPOINTS.md` (API contracts for hook/service binding)
|
|
25
|
-
- Confirmation that this slice is within approved DEV scope
|
|
26
|
-
|
|
27
|
-
## When To Stop Or Escalate
|
|
28
|
-
- Stop if `DESIGN_LAYOUT_[FEATURE_KEY].md` does not exist or has no screen sections for the current slice; do not implement screens against memory or assumptions.
|
|
29
|
-
- Stop if the flow-action spec is missing or incomplete for the screens being implemented; surface as a blocker.
|
|
30
|
-
- Stop if an API endpoint required by the screen is not present in ENDPOINTS.md; do not invent API calls.
|
|
31
|
-
- Escalate to `sdtk-dev` if the implementation slice scope is unclear or if design decisions are required that go beyond the approved layout.
|
|
32
|
-
- Escalate to `@arch` or `sdtk-design-layout` if the existing layout file does not cover a screen required by the current slice.
|
|
33
|
-
|
|
34
|
-
## Core Process
|
|
35
|
-
1. Confirm this frontend slice is a bounded specialist intervention under current DEV scope, not a replacement for `sdtk-dev` ownership or the default downstream `SDTK-CODE` path.
|
|
36
|
-
2. Read `docs/design/DESIGN_LAYOUT_[FEATURE_KEY].md` for screen structure and item tables.
|
|
37
|
-
3. Read `docs/specs/[FEATURE_KEY]_FLOW_ACTION_SPEC.md` for UI actions, API mapping, and flow context.
|
|
38
|
-
4. Read `docs/api/[FEATURE_KEY]_ENDPOINTS.md` for API contracts.
|
|
39
|
-
5. Check whether this repository already has a frontend reference module and follow its patterns exactly.
|
|
40
|
-
6. Follow structure:
|
|
41
|
-
- `src/frontend/features/{feature}/...`
|
|
42
|
-
- `src/frontend/services/{feature}/{feature}Service.js`
|
|
43
|
-
- `src/frontend/services/apiHook/{feature}.js`
|
|
44
|
-
7. Implement screens based on `DESIGN_LAYOUT_[FEATURE_KEY].md`; do not add or remove fields without a corresponding layout update.
|
|
45
|
-
8. Preserve patterns: React Query hooks, loading states, permission checks, consistent labels.
|
|
46
|
-
9. Verify the implemented screens satisfy the flow-action mappings before declaring the slice done.
|
|
47
|
-
|
|
48
|
-
## Validation / Quality Gates
|
|
49
|
-
- Every screen section in the layout spec has a matching page/component implemented.
|
|
50
|
-
- React Query hooks exist for every API call made by the feature.
|
|
51
|
-
- Loading and error states are handled consistently with existing patterns.
|
|
52
|
-
- Permission checks guard all protected actions.
|
|
53
|
-
- Field labels match the layout and flow-action spec exactly; no free-form label invention.
|
|
54
|
-
- No API call exists in the implementation that is not present in ENDPOINTS.md.
|
|
55
|
-
|
|
56
|
-
## Order-Critical Hard Gate
|
|
57
|
-
Do not implement a screen before reading the corresponding section in `DESIGN_LAYOUT_[FEATURE_KEY].md`. Screens built without a layout reference produce inconsistent UX that must be corrected before QA.
|
|
58
|
-
|
|
59
|
-
Do not declare a slice done without verifying all implemented screens satisfy the API mappings in the flow-action spec.
|
|
60
|
-
|
|
61
|
-
## Common Mistakes
|
|
62
|
-
|
|
63
|
-
| Mistake | Why it is wrong | Do instead |
|
|
64
|
-
|---|---|---|
|
|
65
|
-
| Implement screens without reading DESIGN_LAYOUT | Introduces layout drift from spec | Always read the layout doc before implementing any screen |
|
|
66
|
-
| Invent API calls not in ENDPOINTS.md | Creates untracked contract dependencies | Only call APIs explicitly defined in the ENDPOINTS file |
|
|
67
|
-
| Skip permission checks on protected actions | Security gap that will fail review | Always guard protected actions with the existing permission pattern |
|
|
68
|
-
| Use a different structure than the existing frontend reference | Inconsistency maintainers must correct | Read the reference module and match its structure exactly |
|
|
69
|
-
| Treat this skill as a replacement for `sdtk-dev` | Collapses bounded specialist scope into general DEV ownership | Keep scope explicitly bounded to the current slice |
|
|
70
|
-
| Add field labels from memory | Labels drift from the spec | Copy field label text exactly from the layout or flow-action doc |
|
|
71
|
-
|
|
72
|
-
## Reference Loading Guidance
|
|
73
|
-
Read at slice start:
|
|
74
|
-
- `docs/design/DESIGN_LAYOUT_[FEATURE_KEY].md` (required)
|
|
75
|
-
- `docs/specs/[FEATURE_KEY]_FLOW_ACTION_SPEC.md` (required)
|
|
76
|
-
- `docs/api/[FEATURE_KEY]_ENDPOINTS.md` (required)
|
|
77
|
-
|
|
78
|
-
Read on demand:
|
|
79
|
-
- Existing frontend reference module in `src/frontend/` (match its patterns)
|
|
80
|
-
- `sdtk-spec.config.json` for stack-specific commands
|
|
1
|
+
---
|
|
2
|
+
name: sdtk-dev-frontend
|
|
3
|
+
description: Generate/modify React frontend code following the toolkit conventions (list/register/edit/detail pages, components, services, React Query hooks, permission checks). Use when implementing frontend features in that project style.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# SDTK-SPEC Frontend (Toolkit conventions)
|
|
7
|
+
|
|
8
|
+
## Critical Constraints
|
|
9
|
+
- I am a bounded DEV specialist aid inside `SDTK-SPEC`, not a separate suite-owner identity.
|
|
10
|
+
- I do not implement screens without current layout and flow-action sources.
|
|
11
|
+
- I do not bypass existing frontend patterns for loading, permissions, or labels.
|
|
12
|
+
- I do not replace the default `sdtk-dev -> CODE_HANDOFF -> SDTK-CODE` path unless the user explicitly asks for a bounded specialist intervention inside current DEV scope.
|
|
13
|
+
- I do not invent screen layout, field labels, or API calls that are not present in the approved upstream artifacts.
|
|
14
|
+
|
|
15
|
+
## Outputs
|
|
16
|
+
- Frontend feature files under:
|
|
17
|
+
- `src/frontend/features/{feature}/` (pages, components)
|
|
18
|
+
- `src/frontend/services/{feature}/{feature}Service.js`
|
|
19
|
+
- `src/frontend/services/apiHook/{feature}.js`
|
|
20
|
+
|
|
21
|
+
## Required Inputs
|
|
22
|
+
- `docs/design/DESIGN_LAYOUT_[FEATURE_KEY].md` (screen layout and item tables)
|
|
23
|
+
- `docs/specs/[FEATURE_KEY]_FLOW_ACTION_SPEC.md` (UI actions and API mapping)
|
|
24
|
+
- `docs/api/[FEATURE_KEY]_ENDPOINTS.md` (API contracts for hook/service binding)
|
|
25
|
+
- Confirmation that this slice is within approved DEV scope
|
|
26
|
+
|
|
27
|
+
## When To Stop Or Escalate
|
|
28
|
+
- Stop if `DESIGN_LAYOUT_[FEATURE_KEY].md` does not exist or has no screen sections for the current slice; do not implement screens against memory or assumptions.
|
|
29
|
+
- Stop if the flow-action spec is missing or incomplete for the screens being implemented; surface as a blocker.
|
|
30
|
+
- Stop if an API endpoint required by the screen is not present in ENDPOINTS.md; do not invent API calls.
|
|
31
|
+
- Escalate to `sdtk-dev` if the implementation slice scope is unclear or if design decisions are required that go beyond the approved layout.
|
|
32
|
+
- Escalate to `@arch` or `sdtk-design-layout` if the existing layout file does not cover a screen required by the current slice.
|
|
33
|
+
|
|
34
|
+
## Core Process
|
|
35
|
+
1. Confirm this frontend slice is a bounded specialist intervention under current DEV scope, not a replacement for `sdtk-dev` ownership or the default downstream `SDTK-CODE` path.
|
|
36
|
+
2. Read `docs/design/DESIGN_LAYOUT_[FEATURE_KEY].md` for screen structure and item tables.
|
|
37
|
+
3. Read `docs/specs/[FEATURE_KEY]_FLOW_ACTION_SPEC.md` for UI actions, API mapping, and flow context.
|
|
38
|
+
4. Read `docs/api/[FEATURE_KEY]_ENDPOINTS.md` for API contracts.
|
|
39
|
+
5. Check whether this repository already has a frontend reference module and follow its patterns exactly.
|
|
40
|
+
6. Follow structure:
|
|
41
|
+
- `src/frontend/features/{feature}/...`
|
|
42
|
+
- `src/frontend/services/{feature}/{feature}Service.js`
|
|
43
|
+
- `src/frontend/services/apiHook/{feature}.js`
|
|
44
|
+
7. Implement screens based on `DESIGN_LAYOUT_[FEATURE_KEY].md`; do not add or remove fields without a corresponding layout update.
|
|
45
|
+
8. Preserve patterns: React Query hooks, loading states, permission checks, consistent labels.
|
|
46
|
+
9. Verify the implemented screens satisfy the flow-action mappings before declaring the slice done.
|
|
47
|
+
|
|
48
|
+
## Validation / Quality Gates
|
|
49
|
+
- Every screen section in the layout spec has a matching page/component implemented.
|
|
50
|
+
- React Query hooks exist for every API call made by the feature.
|
|
51
|
+
- Loading and error states are handled consistently with existing patterns.
|
|
52
|
+
- Permission checks guard all protected actions.
|
|
53
|
+
- Field labels match the layout and flow-action spec exactly; no free-form label invention.
|
|
54
|
+
- No API call exists in the implementation that is not present in ENDPOINTS.md.
|
|
55
|
+
|
|
56
|
+
## Order-Critical Hard Gate
|
|
57
|
+
Do not implement a screen before reading the corresponding section in `DESIGN_LAYOUT_[FEATURE_KEY].md`. Screens built without a layout reference produce inconsistent UX that must be corrected before QA.
|
|
58
|
+
|
|
59
|
+
Do not declare a slice done without verifying all implemented screens satisfy the API mappings in the flow-action spec.
|
|
60
|
+
|
|
61
|
+
## Common Mistakes
|
|
62
|
+
|
|
63
|
+
| Mistake | Why it is wrong | Do instead |
|
|
64
|
+
|---|---|---|
|
|
65
|
+
| Implement screens without reading DESIGN_LAYOUT | Introduces layout drift from spec | Always read the layout doc before implementing any screen |
|
|
66
|
+
| Invent API calls not in ENDPOINTS.md | Creates untracked contract dependencies | Only call APIs explicitly defined in the ENDPOINTS file |
|
|
67
|
+
| Skip permission checks on protected actions | Security gap that will fail review | Always guard protected actions with the existing permission pattern |
|
|
68
|
+
| Use a different structure than the existing frontend reference | Inconsistency maintainers must correct | Read the reference module and match its structure exactly |
|
|
69
|
+
| Treat this skill as a replacement for `sdtk-dev` | Collapses bounded specialist scope into general DEV ownership | Keep scope explicitly bounded to the current slice |
|
|
70
|
+
| Add field labels from memory | Labels drift from the spec | Copy field label text exactly from the layout or flow-action doc |
|
|
71
|
+
|
|
72
|
+
## Reference Loading Guidance
|
|
73
|
+
Read at slice start:
|
|
74
|
+
- `docs/design/DESIGN_LAYOUT_[FEATURE_KEY].md` (required)
|
|
75
|
+
- `docs/specs/[FEATURE_KEY]_FLOW_ACTION_SPEC.md` (required)
|
|
76
|
+
- `docs/api/[FEATURE_KEY]_ENDPOINTS.md` (required)
|
|
77
|
+
|
|
78
|
+
Read on demand:
|
|
79
|
+
- Existing frontend reference module in `src/frontend/` (match its patterns)
|
|
80
|
+
- `sdtk-spec.config.json` for stack-specific commands
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
---
|
|
2
2
|
name: sdtk-mailbox-dispatch
|
|
3
3
|
description: Controller-owned mailbox delegation for SDTK-SPEC. Use when PM or Orchestrator needs to assign a bounded phase to Claude or Codex, preserve exact include/exclude boundaries, review raw reports against formal artifacts, and run a mandatory post-issue mailbox retrospective.
|
|
4
4
|
---
|
|
@@ -70,4 +70,4 @@ Read these shipped toolkit surfaces before dispatching or reviewing a run:
|
|
|
70
70
|
4. `qa-review`
|
|
71
71
|
5. `controller-acceptance`
|
|
72
72
|
6. `commit/push`
|
|
73
|
-
7. `post-issue-retrospective`
|
|
73
|
+
7. `post-issue-retrospective`
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: sdtk-orchestrator
|
|
3
|
-
description: "Orchestrate a full 6-phase SDLC multi-agent workflow (PM/BA/ARCH/DEV/QA) using this repo's conventions: SHARED_PLANNING.md + QUALITY_CHECKLIST.md + docs/* artifacts + explicit /dev -> SDTK-CODE -> /qa handoffs."
|
|
3
|
+
description: "Orchestrate a full 6-phase SDLC multi-agent workflow (PM/BA/ARCH/DEV/QA) using this repo's conventions: SHARED_PLANNING.md + QUALITY_CHECKLIST.md + docs/* artifacts + explicit /dev -> SDTK-CODE -> /qa handoffs."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# SDTK-SPEC Orchestrator (multi-agent workflow)
|
|
@@ -17,17 +17,17 @@ description: "Orchestrate a full 6-phase SDLC multi-agent workflow (PM/BA/ARCH/D
|
|
|
17
17
|
- `visible` and `working` are separate runtime checks; `working` requires observable controller action from a bounded request.
|
|
18
18
|
- Until runtime-specific direct syntax is validated, continue via the repo-local orchestrator contract in the current session.
|
|
19
19
|
|
|
20
|
-
## Initialize
|
|
21
|
-
- Start as Orchestrator Intake for unprefixed user requests.
|
|
22
|
-
- Classify intent before choosing PM/BA/ARCH/DEV/QA or downstream SDTK-CODE/SDTK-OPS paths.
|
|
23
|
-
- Use brainstorm / requirement clarification for unclear ideas before formal PM initiation.
|
|
24
|
-
- Ensure feature key + feature name exist (ask if missing).
|
|
25
|
-
- Read `sdtk-spec.config.json` (project stack + commands) if present.
|
|
26
|
-
- If `toolkit/scripts/init-feature.ps1` exists: run it to create skeleton artifacts; otherwise create the same files from `toolkit/templates/`.
|
|
27
|
-
|
|
28
|
-
## Execute pipeline (one phase per turn)
|
|
29
|
-
- Default unprefixed role: Orchestrator Intake. Select PM only when the request is ready for formal SDTK-SPEC product initiation.
|
|
30
|
-
- Respect role tags: `/pm`, `/ba`, `/arch`, `/dev`, `/qa`.
|
|
20
|
+
## Initialize
|
|
21
|
+
- Start as Orchestrator Intake for unprefixed user requests.
|
|
22
|
+
- Classify intent before choosing PM/BA/ARCH/DEV/QA or downstream SDTK-CODE/SDTK-OPS paths.
|
|
23
|
+
- Use brainstorm / requirement clarification for unclear ideas before formal PM initiation.
|
|
24
|
+
- Ensure feature key + feature name exist (ask if missing).
|
|
25
|
+
- Read `sdtk-spec.config.json` (project stack + commands) if present.
|
|
26
|
+
- If `toolkit/scripts/init-feature.ps1` exists: run it to create skeleton artifacts; otherwise create the same files from `toolkit/templates/`.
|
|
27
|
+
|
|
28
|
+
## Execute pipeline (one phase per turn)
|
|
29
|
+
- Default unprefixed role: Orchestrator Intake. Select PM only when the request is ready for formal SDTK-SPEC product initiation.
|
|
30
|
+
- Respect role tags: `/pm`, `/ba`, `/arch`, `/dev`, `/qa`.
|
|
31
31
|
- For each phase:
|
|
32
32
|
- Create/update the phase artifact(s) in `docs/`.
|
|
33
33
|
- If phase is ARCH and API contract/flow is in scope, invoke `sdtk-api-doc` to produce/update `docs/api/[FeaturePascal]_API.yaml`, `docs/api/[FEATURE_KEY]_ENDPOINTS.md`, and `docs/api/[feature_snake]_api_flow_list.txt`.
|
|
@@ -55,11 +55,11 @@ description: "Orchestrate a full 6-phase SDLC multi-agent workflow (PM/BA/ARCH/D
|
|
|
55
55
|
- `on`: always run `sdtk-test-case-spec` for QA phase (fail fast if required inputs are missing).
|
|
56
56
|
- `off`: skip test-case spec generation unless user explicitly requests it.
|
|
57
57
|
|
|
58
|
-
## Optional: Mailbox Dispatch
|
|
59
|
-
- Use `sdtk-mailbox-dispatch` when one bounded controller-owned phase should be delegated to Claude or Codex.
|
|
60
|
-
- Keep planning local when the controller already has enough repo context.
|
|
61
|
-
- Lock exact include/exclude boundaries, fallback triggers, and verification commands before dispatch.
|
|
62
|
-
- Keep mailbox runtime files transient under `governance/ai/agent-mailbox/runtime/`.
|
|
58
|
+
## Optional: Mailbox Dispatch
|
|
59
|
+
- Use `sdtk-mailbox-dispatch` when one bounded controller-owned phase should be delegated to Claude or Codex.
|
|
60
|
+
- Keep planning local when the controller already has enough repo context.
|
|
61
|
+
- Lock exact include/exclude boundaries, fallback triggers, and verification commands before dispatch.
|
|
62
|
+
- Keep mailbox runtime files transient under `governance/ai/agent-mailbox/runtime/`.
|
|
63
63
|
- Run the default post-issue mailbox retrospective after repo truth is closed and before the next mailbox-driven issue.
|
|
64
64
|
|
|
65
65
|
## Flow Overview
|