sdtk-kit 0.3.8 → 1.0.0

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 (113) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +123 -177
  3. package/package.json +52 -46
  4. package/scripts/postinstall.js +40 -0
  5. package/assets/manifest/toolkit-bundle.manifest.json +0 -473
  6. package/assets/manifest/toolkit-bundle.sha256.txt +0 -93
  7. package/assets/toolkit/toolkit/AGENTS.md +0 -131
  8. package/assets/toolkit/toolkit/install.ps1 +0 -270
  9. package/assets/toolkit/toolkit/runtimes/claude/CLAUDE_TEMPLATE.md +0 -54
  10. package/assets/toolkit/toolkit/runtimes/codex/CODEX_TEMPLATE.md +0 -32
  11. package/assets/toolkit/toolkit/scripts/init-feature.ps1 +0 -261
  12. package/assets/toolkit/toolkit/scripts/install-claude-skills.ps1 +0 -129
  13. package/assets/toolkit/toolkit/scripts/install-codex-skills.ps1 +0 -189
  14. package/assets/toolkit/toolkit/scripts/uninstall-claude-skills.ps1 +0 -139
  15. package/assets/toolkit/toolkit/scripts/uninstall-codex-skills.ps1 +0 -116
  16. package/assets/toolkit/toolkit/sdtk.config.json +0 -28
  17. package/assets/toolkit/toolkit/sdtk.config.profiles.example.json +0 -50
  18. package/assets/toolkit/toolkit/skills/sdtk-api-design-spec/SKILL.md +0 -84
  19. package/assets/toolkit/toolkit/skills/sdtk-api-design-spec/references/API_DESIGN_CREATION_RULES.md +0 -22
  20. package/assets/toolkit/toolkit/skills/sdtk-api-design-spec/references/API_DESIGN_FLOWCHART_CREATION_RULES.md +0 -468
  21. package/assets/toolkit/toolkit/skills/sdtk-api-design-spec/references/FLOWCHART_CREATION_RULES.md +0 -20
  22. package/assets/toolkit/toolkit/skills/sdtk-api-design-spec/scripts/generate_api_design_detail.py +0 -656
  23. package/assets/toolkit/toolkit/skills/sdtk-api-doc/SKILL.md +0 -43
  24. package/assets/toolkit/toolkit/skills/sdtk-api-doc/references/API_DESIGN_FLOWCHART_CREATION_RULES.md +0 -468
  25. package/assets/toolkit/toolkit/skills/sdtk-api-doc/references/FLOWCHART_CREATION_RULES.md +0 -20
  26. package/assets/toolkit/toolkit/skills/sdtk-api-doc/references/YAML_CREATION_RULES.md +0 -128
  27. package/assets/toolkit/toolkit/skills/sdtk-arch/SKILL.md +0 -83
  28. package/assets/toolkit/toolkit/skills/sdtk-arch/references/API_DESIGN_CREATION_RULES.md +0 -22
  29. package/assets/toolkit/toolkit/skills/sdtk-arch/references/API_DESIGN_FLOWCHART_CREATION_RULES.md +0 -468
  30. package/assets/toolkit/toolkit/skills/sdtk-arch/references/FLOWCHART_CREATION_RULES.md +0 -20
  31. package/assets/toolkit/toolkit/skills/sdtk-arch/references/FLOW_ACTION_SPEC_CREATION_RULES.md +0 -200
  32. package/assets/toolkit/toolkit/skills/sdtk-arch/references/YAML_CREATION_RULES.md +0 -128
  33. package/assets/toolkit/toolkit/skills/sdtk-ba/SKILL.md +0 -29
  34. package/assets/toolkit/toolkit/skills/sdtk-design-layout/SKILL.md +0 -41
  35. package/assets/toolkit/toolkit/skills/sdtk-design-layout/scripts/render_design_layout_images.py +0 -213
  36. package/assets/toolkit/toolkit/skills/sdtk-dev/SKILL.md +0 -90
  37. package/assets/toolkit/toolkit/skills/sdtk-dev/prompts/code-quality-reviewer.md +0 -35
  38. package/assets/toolkit/toolkit/skills/sdtk-dev/prompts/implementer.md +0 -61
  39. package/assets/toolkit/toolkit/skills/sdtk-dev/prompts/spec-reviewer.md +0 -42
  40. package/assets/toolkit/toolkit/skills/sdtk-dev-backend/SKILL.md +0 -21
  41. package/assets/toolkit/toolkit/skills/sdtk-dev-frontend/SKILL.md +0 -19
  42. package/assets/toolkit/toolkit/skills/sdtk-orchestrator/SKILL.md +0 -80
  43. package/assets/toolkit/toolkit/skills/sdtk-pm/SKILL.md +0 -30
  44. package/assets/toolkit/toolkit/skills/sdtk-qa/SKILL.md +0 -53
  45. package/assets/toolkit/toolkit/skills/sdtk-screen-design-spec/SKILL.md +0 -73
  46. package/assets/toolkit/toolkit/skills/sdtk-screen-design-spec/references/FLOW_ACTION_SPEC_CREATION_RULES.md +0 -200
  47. package/assets/toolkit/toolkit/skills/sdtk-screen-design-spec/references/excel-image-export.md +0 -51
  48. package/assets/toolkit/toolkit/skills/sdtk-screen-design-spec/references/figma-mcp.md +0 -54
  49. package/assets/toolkit/toolkit/skills/sdtk-screen-design-spec/references/numbering-rules.md +0 -76
  50. package/assets/toolkit/toolkit/skills/sdtk-screen-design-spec/scripts/renumber_flow_action_spec_global.py +0 -136
  51. package/assets/toolkit/toolkit/skills/sdtk-screen-design-spec/scripts/validate_flow_action_spec_numbering.py +0 -249
  52. package/assets/toolkit/toolkit/skills/sdtk-test-case-spec/SKILL.md +0 -74
  53. package/assets/toolkit/toolkit/skills/sdtk-test-case-spec/references/TEST_CASE_CREATION_RULES.md +0 -129
  54. package/assets/toolkit/toolkit/skills/sdtk-test-case-spec/scripts/validate_test_case_spec.py +0 -97
  55. package/assets/toolkit/toolkit/skills/skills.catalog.yaml +0 -302
  56. package/assets/toolkit/toolkit/skills-claude/api-design-spec/SKILL.md +0 -76
  57. package/assets/toolkit/toolkit/skills-claude/api-doc/SKILL.md +0 -47
  58. package/assets/toolkit/toolkit/skills-claude/arch/SKILL.md +0 -72
  59. package/assets/toolkit/toolkit/skills-claude/ba/SKILL.md +0 -50
  60. package/assets/toolkit/toolkit/skills-claude/design-layout/SKILL.md +0 -25
  61. package/assets/toolkit/toolkit/skills-claude/dev/SKILL.md +0 -45
  62. package/assets/toolkit/toolkit/skills-claude/dev-backend/SKILL.md +0 -20
  63. package/assets/toolkit/toolkit/skills-claude/dev-frontend/SKILL.md +0 -18
  64. package/assets/toolkit/toolkit/skills-claude/orchestrator/SKILL.md +0 -63
  65. package/assets/toolkit/toolkit/skills-claude/pm/SKILL.md +0 -52
  66. package/assets/toolkit/toolkit/skills-claude/qa/SKILL.md +0 -48
  67. package/assets/toolkit/toolkit/skills-claude/screen-design-spec/SKILL.md +0 -68
  68. package/assets/toolkit/toolkit/skills-claude/test-case-spec/SKILL.md +0 -61
  69. package/assets/toolkit/toolkit/templates/QUALITY_CHECKLIST.md +0 -124
  70. package/assets/toolkit/toolkit/templates/README.md +0 -63
  71. package/assets/toolkit/toolkit/templates/SHARED_PLANNING.md +0 -80
  72. package/assets/toolkit/toolkit/templates/docs/api/API_DESIGN_CREATION_RULES.md +0 -22
  73. package/assets/toolkit/toolkit/templates/docs/api/API_DESIGN_DETAIL_TEMPLATE.md +0 -67
  74. package/assets/toolkit/toolkit/templates/docs/api/API_DESIGN_FLOWCHART_CREATION_RULES.md +0 -468
  75. package/assets/toolkit/toolkit/templates/docs/api/API_ENDPOINTS_TEMPLATE.md +0 -229
  76. package/assets/toolkit/toolkit/templates/docs/api/FEATURE_API_TEMPLATE.yaml +0 -20
  77. package/assets/toolkit/toolkit/templates/docs/api/FLOWCHART_CREATION_RULES.md +0 -20
  78. package/assets/toolkit/toolkit/templates/docs/api/YAML_CREATION_RULES.md +0 -128
  79. package/assets/toolkit/toolkit/templates/docs/api/feature_api_flow_list_TEMPLATE.txt +0 -12
  80. package/assets/toolkit/toolkit/templates/docs/architecture/ARCH_DESIGN_TEMPLATE.md +0 -109
  81. package/assets/toolkit/toolkit/templates/docs/database/DATABASE_SPEC_TEMPLATE.md +0 -175
  82. package/assets/toolkit/toolkit/templates/docs/design/DESIGN_LAYOUT_TEMPLATE.md +0 -49
  83. package/assets/toolkit/toolkit/templates/docs/dev/FEATURE_IMPL_PLAN_TEMPLATE.md +0 -73
  84. package/assets/toolkit/toolkit/templates/docs/product/BACKLOG_TEMPLATE.md +0 -50
  85. package/assets/toolkit/toolkit/templates/docs/product/PRD_TEMPLATE.md +0 -66
  86. package/assets/toolkit/toolkit/templates/docs/product/PROJECT_INITIATION_TEMPLATE.md +0 -98
  87. package/assets/toolkit/toolkit/templates/docs/qa/QA_RELEASE_REPORT_TEMPLATE.md +0 -61
  88. package/assets/toolkit/toolkit/templates/docs/qa/TEST_CASE_CREATION_RULES.md +0 -129
  89. package/assets/toolkit/toolkit/templates/docs/qa/TEST_CASE_TEMPLATE.md +0 -104
  90. package/assets/toolkit/toolkit/templates/docs/specs/BA_SPEC_TEMPLATE.md +0 -139
  91. package/assets/toolkit/toolkit/templates/docs/specs/FLOW_ACTION_SPEC_CREATION_RULES.md +0 -200
  92. package/assets/toolkit/toolkit/templates/docs/specs/FLOW_ACTION_SPEC_TEMPLATE.md +0 -172
  93. package/assets/toolkit/toolkit/templates/handoffs/ARCH_TO_DEV.md +0 -31
  94. package/assets/toolkit/toolkit/templates/handoffs/BA_TO_ARCH.md +0 -28
  95. package/assets/toolkit/toolkit/templates/handoffs/DEV_STAGE1_SPEC_REVIEW.md +0 -26
  96. package/assets/toolkit/toolkit/templates/handoffs/DEV_STAGE2_CODE_QUALITY_REVIEW.md +0 -20
  97. package/assets/toolkit/toolkit/templates/handoffs/DEV_TO_QA.md +0 -23
  98. package/assets/toolkit/toolkit/templates/handoffs/PM_TO_BA.md +0 -26
  99. package/assets/toolkit/toolkit/templates/handoffs/QA_RELEASE_DECISION.md +0 -21
  100. package/bin/sdtk.js +0 -15
  101. package/src/commands/auth.js +0 -85
  102. package/src/commands/generate.js +0 -177
  103. package/src/commands/help.js +0 -101
  104. package/src/commands/init.js +0 -97
  105. package/src/commands/runtime.js +0 -217
  106. package/src/index.js +0 -59
  107. package/src/lib/args.js +0 -116
  108. package/src/lib/errors.js +0 -41
  109. package/src/lib/github-access.js +0 -68
  110. package/src/lib/powershell.js +0 -85
  111. package/src/lib/scope.js +0 -68
  112. package/src/lib/state.js +0 -83
  113. package/src/lib/toolkit-payload.js +0 -99
@@ -1,90 +0,0 @@
1
- ---
2
- name: sdtk-dev
3
- description: Developer workflow for SDTK. Use when you need to implement a feature from ARCH_DESIGN + BACKLOG: create an implementation plan, write code + tests, complete mandatory code review gate, and prepare a QA handoff.
4
- ---
5
-
6
- # SDTK DEV (Implementation + Code Review)
7
-
8
- ## Critical Constraints
9
- - I do not start implementation before the current `FEATURE_IMPL_PLAN` scope is approved.
10
- - I do not claim implementation is complete without fresh verification evidence.
11
-
12
- ## Outputs
13
- - `docs/dev/FEATURE_IMPL_PLAN_[FEATURE_KEY].md`
14
- - Code + tests (follow repo conventions)
15
-
16
- ## Prompt Templates
17
- - `./prompts/implementer.md`
18
- - `./prompts/spec-reviewer.md`
19
- - `./prompts/code-quality-reviewer.md`
20
-
21
- Use these templates when you need a controller -> subagent execution loop for implementation and review. The controller owns context selection and pastes the task text into the template placeholders.
22
-
23
- ## Process
24
- 1. Read `ARCH_DESIGN_*` + backlog.
25
- 2. Read `sdtk.config.json` for project stack + test/lint commands.
26
- 3. Write `FEATURE_IMPL_PLAN_*` (scope, file list, test plan).
27
- 4. If anything is unclear: record OQ-xx in FEATURE_IMPL_PLAN "Open Questions" and escalate to `@pm` for a decision (PM asks the user if still missing info).
28
- 5. Dispatch implementation work with `./prompts/implementer.md` when task slicing or delegated execution is needed. The controller must paste the full task text and relevant constraints into the template; do not make the implementer subagent discover missing context on its own.
29
- 6. Implement incrementally with tests.
30
- 7. Run the verification commands that prove the current claim (unit tests, lint, typecheck, build, or targeted smoke checks as applicable) and read the full output before saying the work is done.
31
- 8. If delegated review is needed, run the review loop in this order:
32
- - `./prompts/spec-reviewer.md` first for artifact/spec compliance
33
- - `./prompts/code-quality-reviewer.md` only after spec reviewer PASS is documented
34
- 9. Complete mandatory code review gate (self + peer checklist; AI peer review allowed).
35
- 10. Update `SHARED_PLANNING.md` + `QUALITY_CHECKLIST.md` Phase 4.
36
- 11. Handoff: `@qa please test ...` (only after code review PASS and fresh verification evidence is recorded).
37
-
38
- ## Delegated Execution Contract
39
- - The implementer subagent receives the full task text directly in the prompt.
40
- - Required implementer status values:
41
- - `DONE`
42
- - `DONE_WITH_CONCERNS`
43
- - `NEEDS_CONTEXT`
44
- - `BLOCKED`
45
- - `DONE_WITH_CONCERNS` means the task is complete but the controller must read the concerns before review.
46
- - `NEEDS_CONTEXT` means the controller must supply missing information and re-dispatch.
47
- - `BLOCKED` means do not retry the same task unchanged; resolve the blocker first.
48
- - The spec reviewer must verify real artifacts, not trust implementer claims.
49
- - The code-quality reviewer is a second-stage review and must not run before spec compliance passes.
50
-
51
- ## Model Selection Guidance
52
- Choose the cheapest model that can safely complete the task without creating avoidable rework.
53
-
54
- | Task type | Recommended model tier | Why |
55
- |---|---|---|
56
- | Single-file mechanical change with a clear spec | Fast model | Speed matters more than deep judgment |
57
- | Multi-file integration that follows an approved plan | Standard model | Needs pattern matching across several files |
58
- | Architecture or design tradeoff for the current implementation slice | Most capable model | Requires judgment and ambiguity handling |
59
- | Stage 1 artifact/spec review | Standard model | Needs careful comparison against requirements |
60
- | Stage 2 code-quality review | Standard or most capable model | Choose most capable when boundaries or refactors are non-trivial |
61
- | Cross-artifact consistency investigation | Most capable model | Requires broader synthesis across docs and code |
62
-
63
- Blocked-task rule:
64
- - If an implementer returns `BLOCKED`, do not force the same model to retry the same task unchanged.
65
- - First resolve missing context or reduce task scope.
66
- - Escalate to a stronger model only when the blocker is judgment or synthesis bound, not because the prompt was incomplete.
67
-
68
- ## Verification Before Completion
69
- Apply `governance/ai/core/SDTK_VERIFICATION_BEFORE_COMPLETION_POLICY.md`.
70
-
71
- Do not:
72
- - say implementation is done, passing, or QA-ready without fresh verification evidence
73
- - use `should`, `probably`, or `seems` in place of executed checks
74
- - rely on partial output, stale command runs, or unchecked agent reports
75
-
76
- If verification fails or cannot be run, report the status as not verified and explain the blocker.
77
-
78
- ## Order-Critical Hard Gate
79
- Do not start implementation work until `docs/dev/FEATURE_IMPL_PLAN_[FEATURE_KEY].md` exists and the current execution scope is explicitly approved in that plan for implementation.
80
-
81
- If the plan is missing, incomplete, or still awaiting approval for the current task slice, stop and update the plan first. Do not implement first and backfill the plan later.
82
-
83
-
84
- ## Common Mistakes
85
-
86
- | Mistake | Why it is wrong | Do instead |
87
- |---|---|---|
88
- | Start coding before the implementation plan is approved | Causes scope drift and invalidates review order | Finish and approve `FEATURE_IMPL_PLAN` first |
89
- | Run Stage 2 code-quality review before Stage 1 spec review passes | Hides requirement mismatches behind style feedback | Keep the review order strict: spec first, quality second |
90
- | Retry a `BLOCKED` implementer with the same prompt and same model | Repeats the same failure mode | Add missing context, split the task, or change model tier intentionally |
@@ -1,35 +0,0 @@
1
- # SDTK DEV Code Quality Reviewer Prompt Template
2
-
3
- You are the Stage 2 code-quality reviewer for a completed SDTK development task.
4
-
5
- ## Gate Position
6
- Run this prompt only after the spec reviewer has passed Stage 1 artifact/spec compliance.
7
-
8
- ## Inputs From Controller
9
- - Task ID: `{{TASK_ID}}`
10
- - Feature key: `{{FEATURE_KEY}}`
11
- - Stage 1 PASS evidence: `{{SPEC_REVIEW_PASS_EVIDENCE}}`
12
- - Files to review:
13
-
14
- ```text
15
- {{FILES_TO_REVIEW}}
16
- ```
17
-
18
- - Relevant coding standards or repo conventions:
19
-
20
- ```text
21
- {{CODE_QUALITY_RULES}}
22
- ```
23
-
24
- ## Review Rules
25
- - Confirm Stage 1 PASS before reviewing code quality.
26
- - Review structure, naming, maintainability, boundary clarity, and test quality.
27
- - Flag issues that make the implementation fragile even if it is spec-compliant.
28
- - Do not reopen Stage 1 scope unless you find a direct contradiction in the shipped code.
29
-
30
- ## Response Format
31
- - Gate result: `{{GATE_RESULT}}`
32
- - Code quality findings: `{{QUALITY_FINDINGS}}`
33
- - Test quality findings: `{{TEST_FINDINGS}}`
34
- - Required improvements: `{{REQUIRED_IMPROVEMENTS}}`
35
- - Final recommendation: `{{FINAL_RECOMMENDATION}}`
@@ -1,61 +0,0 @@
1
- # SDTK DEV Implementer Prompt Template
2
-
3
- You are the implementation subagent for a single SDTK 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
- - Questions for the controller (if any): `{{FOLLOW_UP_QUESTIONS}}`
@@ -1,42 +0,0 @@
1
- # SDTK DEV Spec Reviewer Prompt Template
2
-
3
- You are the artifact/spec compliance reviewer for a completed SDTK 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
- - Verification notes: `{{VERIFICATION_NOTES}}`
@@ -1,21 +0,0 @@
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 Backend (Toolkit conventions)
7
-
8
- ## Critical Constraints
9
- - I do not generate backend code without approved API and data-contract sources.
10
- - I do not ignore established repository patterns when adding backend modules.
11
-
12
- ## Process
13
- 1. Check whether this repository already has a backend reference module and follow its patterns.
14
- 2. Follow module structure: `src/backend/<module>/{models,view,service,serializers,validation,enum,urls.py}`.
15
- 3. Apply conventions:
16
- - Soft delete via `del_flg`
17
- - Audit fields (creator/updater/del timestamps)
18
- - Permission checks before operations
19
- - `transaction.atomic()` for writes
20
- - Logging decorator on public endpoints
21
- 4. Add tests for critical business rules and state transitions.
@@ -1,19 +0,0 @@
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 Frontend (Toolkit conventions)
7
-
8
- ## Critical Constraints
9
- - I do not implement screens without current layout and flow-action sources.
10
- - I do not bypass existing frontend patterns for loading, permissions, or labels.
11
-
12
- ## Process
13
- 1. Check whether this repository already has a frontend reference module and follow its patterns.
14
- 2. Follow structure:
15
- - `src/frontend/features/{feature}/...`
16
- - `src/frontend/services/{feature}/{feature}Service.js`
17
- - `src/frontend/services/apiHook/{feature}.js`
18
- 3. Implement screens based on `docs/design/DESIGN_LAYOUT_[FEATURE_KEY].md`.
19
- 4. Preserve patterns: React Query hooks, loading states, permission checks, consistent labels.
@@ -1,80 +0,0 @@
1
- ---
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 + phase handoffs.
4
- ---
5
-
6
- # SDTK Orchestrator (multi-agent workflow)
7
-
8
- ## Critical Constraints
9
- - I do not skip mandatory phases or hand off without current-phase evidence.
10
- - I do not treat planned commands as equivalent to completed work.
11
-
12
- ## Initialize
13
- - Ensure feature key + feature name exist (ask if missing).
14
- - Read `sdtk.config.json` (project stack + commands) if present.
15
- - If `toolkit/scripts/init-feature.ps1` exists: run it to create skeleton artifacts; otherwise create the same files from `toolkit/templates/`.
16
-
17
- ## Execute pipeline (one phase per turn)
18
- - Default role: PM (entry point) if user did not specify.
19
- - Respect role tags: `/pm`, `/ba`, `/arch`, `/dev`, `/qa`.
20
- - For each phase:
21
- - Create/update the phase artifact(s) in `docs/`.
22
- - 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`.
23
- - If phase is ARCH and API detail spec is in scope, invoke `sdtk-api-design-spec` to produce/update `docs/api/[FEATURE_KEY]_API_DESIGN_DETAIL.md`.
24
- - If phase is ARCH and UI flow behavior is in scope, invoke `sdtk-screen-design-spec` to produce/update `docs/specs/[FEATURE_KEY]_FLOW_ACTION_SPEC.md`.
25
- - If phase is QA and test-case specification is in scope, invoke `sdtk-test-case-spec` to produce/update `docs/qa/[FEATURE_KEY]_TEST_CASE.md`.
26
- - Update `SHARED_PLANNING.md` (phase row + activity log).
27
- - Update `QUALITY_CHECKLIST.md` (mark items PASS/Pending).
28
- - Produce one clear handoff message to the next role only after the current phase evidence supports that handoff.
29
-
30
- ## API design detail mode (Hybrid)
31
- - Read `sdtk.config.json` key: `orchestration.apiDesignDetailMode`.
32
- - Supported values:
33
- - `auto` (default): run `sdtk-api-design-spec` when ARCH has API scope and YAML + flow list are available.
34
- - `on`: always run `sdtk-api-design-spec` for API scope (fail fast if required inputs are missing).
35
- - `off`: skip API design detail generation unless user explicitly requests it.
36
-
37
- ## Test-case spec mode (Hybrid)
38
- - Read `sdtk.config.json` key: `orchestration.testCaseSpecMode`.
39
- - Supported values:
40
- - `auto` (default): run `sdtk-test-case-spec` when QA phase requires reusable test-case artifact.
41
- - `on`: always run `sdtk-test-case-spec` for QA phase (fail fast if required inputs are missing).
42
- - `off`: skip test-case spec generation unless user explicitly requests it.
43
-
44
- ## Flow Overview
45
-
46
- ```dot
47
- digraph sdtk_orchestrator_flow {
48
- rankdir=LR;
49
- PM -> BA;
50
- BA -> ARCH;
51
- ARCH -> DEV;
52
- DEV -> QA;
53
- QA -> PM;
54
- }
55
- ```
56
-
57
- ## Verification Before Completion
58
- Apply `governance/ai/core/SDTK_VERIFICATION_BEFORE_COMPLETION_POLICY.md` whenever you mark a phase complete, mark a gate PASS, or hand off to the next role. Require fresh verification evidence before you state that the phase is done.
59
-
60
- Do not:
61
- - say a phase is done or PASS without citing the evidence that proves it
62
- - treat a planned command as equivalent to an executed command
63
- - hand off DEV or QA work with overstated verification status
64
-
65
- If the evidence is incomplete, keep the phase open or mark it blocked instead of overstating completion.
66
-
67
- ## Guardrails
68
- - Do not skip phases; if prerequisites are missing, ask focused questions.
69
- - Keep traceability: REQ -> BR/UC/AC -> design -> backlog -> code/tests -> QA report.
70
- - Require code review completion before QA handoff.
71
- - If input requirements are VI/JP: preserve original text + add EN translation in appendix for traceability (at least in Project Initiation and BA spec).
72
-
73
-
74
- ## Common Mistakes
75
-
76
- | Mistake | Why it is wrong | Do instead |
77
- |---|---|---|
78
- | Skip directly from PM to DEV because the request seems small | Breaks traceability and removes BA and ARCH controls | Keep phase order unless the user explicitly narrows scope with acceptable evidence |
79
- | Hand off a phase based on planned checks instead of executed evidence | Creates false PASS status and weakens downstream gates | Require fresh evidence before marking the phase complete |
80
- | Mix generation, review, and release decisions in one uncontrolled turn | Makes status tracking ambiguous | Complete one phase handoff at a time and update shared state before moving on |
@@ -1,30 +0,0 @@
1
- ---
2
- name: sdtk-pm
3
- description: Product Manager + meta-orchestrator workflow for SDTK. Use when you need to start a new feature (Phase 1) or produce PM planning artifacts (PRD + BACKLOG) and update SHARED_PLANNING.md / QUALITY_CHECKLIST.md with correct phase handoffs.
4
- ---
5
-
6
- # SDTK PM (Entry Point + Planning)
7
-
8
- ## Critical Constraints
9
- - I do not hand off PM work until `SHARED_PLANNING.md` and `QUALITY_CHECKLIST.md` reflect the current phase.
10
- - I do not hide unresolved scope or decision gaps; I record them as `OQ-xx` items for downstream roles.
11
-
12
- ## Outputs
13
- - Phase 1: `docs/product/PROJECT_INITIATION_[FEATURE_KEY].md`
14
- - Phase 2+ (after BA spec): `docs/product/PRD_[FEATURE_KEY].md` + `docs/product/BACKLOG_[FEATURE_KEY].md`
15
-
16
- ## Process
17
- 1. Confirm `FEATURE_KEY` + `FEATURE_NAME` + Phase-1 scope in/out.
18
- 2. Create/update PM artifact(s) using `toolkit/templates/docs/product/*` as structure.
19
- 3. Ensure REQ-xx list is clear and testable.
20
- 4. If requirements are provided in VI/JP: keep the original text in an appendix and add an EN translation (literal) for traceability.
21
- 5. Update `SHARED_PLANNING.md` + `QUALITY_CHECKLIST.md`.
22
- 6. Handoff:
23
- - After Project Initiation -> `@ba please analyze ...`
24
- - After PRD/Backlog -> `@arch please design ...`
25
-
26
- ## Clarification And Decisions (PM responsibility)
27
- - Collect OQ-xx items raised by BA/ARCH/DEV/QA in their respective artifacts.
28
- - Try to resolve OQ-xx using existing docs and reasonable product/tech decisions.
29
- - If still missing information from the original input: ask the user (final stakeholder) and record the answer as the resolution.
30
- - Record decisions in PRD `Decision Log` and update OQ-xx `Resolution` fields in the originating docs.
@@ -1,53 +0,0 @@
1
- ---
2
- name: sdtk-qa
3
- description: QA workflow for SDTK. Use when you need to validate an implemented feature against BA/PRD/Backlog, run quality gates, document defects, and produce a QA_RELEASE_REPORT with a release decision.
4
- ---
5
-
6
- # SDTK QA (Testing + Release Decision)
7
-
8
- ## Critical Constraints
9
- - I do not start QA handoff or release decision work until both DEV review gates PASS.
10
- - I do not approve without exact specification quotes and fresh verification evidence.
11
-
12
- ## Output
13
- - `docs/qa/QA_RELEASE_REPORT_[FEATURE_KEY].md`
14
- - Optional (when detailed test design spec is requested):
15
- - `docs/qa/[FEATURE_KEY]_TEST_CASE.md` via `sdtk-test-case-spec`
16
-
17
- ## Process
18
- 1. Validate prerequisites: DEV phase completed + Stage 1 artifact/spec review PASS + Stage 2 code-quality review PASS.
19
- 2. Create test strategy mapped to UC/AC.
20
- 3. If test-case specification artifact is required, invoke `sdtk-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.
21
- 4. Apply `governance/ai/core/SDTK_BENCHMARK_QA_MODE_POLICY.md` for benchmark-mode verdict rules when no executable build exists.
22
- 5. 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` if still missing info.
23
- 6. Execute the required checks, record the commands used, and capture the actual results (unit/integration/e2e or document review evidence as applicable).
24
- 7. When validating requirement behavior, quote the exact specification text before recording a match or mismatch.
25
- 8. Record defects with severity and status.
26
- 9. Decide: APPROVED vs REJECTED only after fresh verification evidence supports the verdict.
27
- 10. Update shared state + Phase 5 checklist.
28
- 11. Handoff: `@pm please finalize release status ...` if approved.
29
-
30
- ## Verification Before Completion
31
- Apply `governance/ai/core/SDTK_VERIFICATION_BEFORE_COMPLETION_POLICY.md` and require fresh verification evidence before any QA verdict or handoff.
32
-
33
- Do not:
34
- - issue an APPROVED verdict without fresh verification evidence
35
- - infer PASS from expected behavior, partial logs, or missing runtime access
36
- - overstate benchmark-mode results as if they were live execution results
37
-
38
- If the environment cannot run the proving checks, follow the benchmark QA mode policy explicitly and state that the result is not fully verified at runtime.
39
-
40
- ## Specification Quoting
41
- When validating a requirement, quote the exact source text before judging the evidence.
42
-
43
- Use this format:
44
- - `Spec says: "[exact quote]" -> Evidence: [match/mismatch + file reference]`
45
-
46
- Apply it to BA, PRD or BACKLOG, ARCH, API, DB, and flow-action sources whenever they define the expected behavior.
47
-
48
- ## Order-Critical Hard Gate
49
- Do not start QA handoff, release testing, or release decision work until both DEV review gates are documented as PASS:
50
- - Stage 1 artifact/spec compliance review
51
- - Stage 2 code-quality review
52
-
53
- If either review gate is missing or not PASS, keep the work in DEV and block QA handoff until both gates are complete.
@@ -1,73 +0,0 @@
1
- ---
2
- name: sdtk-screen-design-spec
3
- description: Create/update screen flow-action specifications from requirement sources (Excel/Figma/spec docs), including screen flow PlantUML, UI item/action tables, API mapping tables, and screen-to-API traceability.
4
- ---
5
-
6
- # SDTK Screen Flow Action Spec
7
-
8
- ## Critical Constraints
9
- - I do not finalize UI-scope screens without a valid design source type and reference.
10
- - I do not leave broken image paths or incomplete API mappings in the flow-action spec.
11
-
12
- ## Outputs
13
- - `docs/specs/[FEATURE_KEY]_FLOW_ACTION_SPEC.md`
14
- - Optional supporting docs:
15
- - `docs/specs/[FEATURE_KEY]_FIGMA_LAYOUT.md`
16
- - `docs/specs/[FEATURE_KEY]_DESIGN_SPEC_FROM_EXCEL.md`
17
- - `docs/specs/assets/[feature_snake]/screens/*`
18
-
19
- ## Required Inputs
20
- - Feature key/name
21
- - Primary requirement sources (BA spec, architecture, customer design docs)
22
- - Screen source references, using one of these design source modes:
23
- - `source-backed`: Figma URLs and/or requirement screenshots
24
- - `generated-draft`: generated layout from `docs/design/DESIGN_LAYOUT_[FEATURE_KEY].md` (used when no Figma/screenshot is available for a UI-scope feature)
25
- - API endpoint source (`docs/api/[FEATURE_KEY]_ENDPOINTS.md`) when available
26
-
27
- ## Process
28
- 1. Read requirement sources and identify in-scope screens, dialogs, and transitions.
29
- 2. Read and apply rules from `./references/FLOW_ACTION_SPEC_CREATION_RULES.md`.
30
- 3. Determine design source mode per screen:
31
- - If Figma URL or screenshot exists: use `source-backed`.
32
- - 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`. That file must exist before finalizing the flow-action spec.
33
- - If screen has no UI scope: use `none`.
34
- 4. Build/update section `Feature overview` and `Screen flow action` (PlantUML).
35
- 5. For each screen/dialog:
36
- - Add metadata (screen ID, Design Source Type, Design Source Reference)
37
- - Add screen image reference (from Figma, screenshot, or rendered `.svg` from generated layout)
38
- - Add UI item/action table with `No` column
39
- - Add API mapping table (trigger -> API -> data usage)
40
- 6. Build/update `System processing flow` from use-case and process sources.
41
- 7. Build/update `Open questions` for unresolved behavior/API/data points.
42
- 8. Build/update `Screen - API Mapping` summary section.
43
- 9. Validate:
44
- - global numbering consistency (no screen-level reset)
45
- - no broken image paths (for `generated-draft` screens, verify `.svg` exists or use render-skipped note)
46
- - PlantUML renderability
47
- - consistency with API endpoints spec
48
- - EN artifact hygiene (no VI leftovers, no mojibake, no merged heading lines)
49
- - for legacy specs with per-screen reset numbering: run renumber migration first
50
- - every UI-scope screen declares a Design Source Type (`source-backed` or `generated-draft`)
51
- 10. For `generated-draft` screens, set `Screen image:` to the rendered `.svg` path if the file exists:
52
- - Expected path: `docs/specs/assets/<feature_snake>/screens/<screen_id>.svg`
53
- - If the `.svg` does not exist (render unavailable), replace the image reference with: `> Screen image not rendered in this environment. See Design Source Reference for layout.`
54
- 11. Update document history and handoff to ARCH/DEV.
55
-
56
- ## Rule References
57
- - Core rules: `./references/FLOW_ACTION_SPEC_CREATION_RULES.md`
58
- - Numbering reference: `./references/numbering-rules.md`
59
- - Figma reference: `./references/figma-mcp.md`
60
- - Excel image export reference: `./references/excel-image-export.md`
61
-
62
- ## Validation Script
63
- - `scripts/validate_flow_action_spec_numbering.py`
64
- - Checks duplicate/resetted numbering in action tables.
65
- - Checks encoding/markdown hygiene.
66
- - For EN artifacts, run with `--en-check`:
67
- - `python "toolkit/skills/sdtk-screen-design-spec/scripts/validate_flow_action_spec_numbering.py" --spec "docs/specs/[FEATURE_KEY]_FLOW_ACTION_SPEC.md" --en-check`
68
- - `scripts/renumber_flow_action_spec_global.py`
69
- - Auto-migrates action table `No` fields to global numbering.
70
- - Dry-run:
71
- - `python "toolkit/skills/sdtk-screen-design-spec/scripts/renumber_flow_action_spec_global.py" --spec "docs/specs/[FEATURE_KEY]_FLOW_ACTION_SPEC.md"`
72
- - Apply:
73
- - `python "toolkit/skills/sdtk-screen-design-spec/scripts/renumber_flow_action_spec_global.py" --spec "docs/specs/[FEATURE_KEY]_FLOW_ACTION_SPEC.md" --write`