sdtk-spec-kit 0.4.11 → 0.4.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +353 -353
- package/assets/atlas/build_atlas.py +880 -880
- package/assets/atlas/doc_atlas_viewer_template.html +3796 -3796
- package/assets/atlas/vendor/mermaid.min.js +2029 -2029
- package/assets/keys/spec-entitlement-public.pem +9 -9
- package/assets/manifest/toolkit-bundle.manifest.json +496 -496
- package/assets/manifest/toolkit-bundle.sha256.txt +97 -97
- package/assets/toolkit/toolkit/AGENTS.md +157 -241
- package/assets/toolkit/toolkit/README.md +51 -51
- package/assets/toolkit/toolkit/SDTK_TOOLKIT.md +206 -206
- package/assets/toolkit/toolkit/install.ps1 +362 -362
- package/assets/toolkit/toolkit/runtimes/claude/CLAUDE_TEMPLATE.md +95 -91
- package/assets/toolkit/toolkit/runtimes/codex/CODEX_TEMPLATE.md +70 -69
- package/assets/toolkit/toolkit/scripts/agents/run-claude-task.ps1 +332 -332
- package/assets/toolkit/toolkit/scripts/agents/run-codex-task.ps1 +618 -618
- package/assets/toolkit/toolkit/scripts/agents/validate-mailbox-formal-artifact.py +87 -87
- package/assets/toolkit/toolkit/scripts/generate-code-handoff.ps1 +317 -317
- package/assets/toolkit/toolkit/scripts/init-feature.ps1 +262 -262
- package/assets/toolkit/toolkit/scripts/install-claude-skills.ps1 +180 -180
- package/assets/toolkit/toolkit/scripts/install-codex-skills.ps1 +209 -209
- package/assets/toolkit/toolkit/scripts/uninstall-claude-skills.ps1 +139 -139
- package/assets/toolkit/toolkit/scripts/uninstall-codex-skills.ps1 +143 -143
- package/assets/toolkit/toolkit/sdtk-spec.config.json +28 -28
- package/assets/toolkit/toolkit/sdtk-spec.config.profiles.example.json +50 -50
- package/assets/toolkit/toolkit/session/SDTK_ACTIVE_BOOTSTRAP.md +46 -46
- package/assets/toolkit/toolkit/session/SDTK_AGENT_WORKING_RULES.md +48 -48
- package/assets/toolkit/toolkit/skills/sdtk-api-design-spec/SKILL.md +111 -111
- package/assets/toolkit/toolkit/skills/sdtk-api-design-spec/scripts/generate_api_design_detail.py +732 -732
- package/assets/toolkit/toolkit/skills/sdtk-api-doc/SKILL.md +79 -79
- package/assets/toolkit/toolkit/skills/sdtk-arch/SKILL.md +85 -85
- package/assets/toolkit/toolkit/skills/sdtk-ba/SKILL.md +46 -46
- package/assets/toolkit/toolkit/skills/sdtk-design-layout/SKILL.md +91 -91
- package/assets/toolkit/toolkit/skills/sdtk-design-layout/scripts/render_design_layout_images.py +246 -246
- package/assets/toolkit/toolkit/skills/sdtk-dev/SKILL.md +133 -133
- package/assets/toolkit/toolkit/skills/sdtk-dev/prompts/code-quality-reviewer.md +34 -34
- package/assets/toolkit/toolkit/skills/sdtk-dev/prompts/implementer.md +60 -60
- package/assets/toolkit/toolkit/skills/sdtk-dev/prompts/spec-reviewer.md +41 -41
- package/assets/toolkit/toolkit/skills/sdtk-dev-backend/SKILL.md +80 -80
- package/assets/toolkit/toolkit/skills/sdtk-dev-frontend/SKILL.md +80 -80
- package/assets/toolkit/toolkit/skills/sdtk-mailbox-dispatch/SKILL.md +73 -73
- package/assets/toolkit/toolkit/skills/sdtk-orchestrator/SKILL.md +176 -108
- package/assets/toolkit/toolkit/skills/sdtk-pm/SKILL.md +74 -74
- package/assets/toolkit/toolkit/skills/sdtk-qa/SKILL.md +75 -75
- package/assets/toolkit/toolkit/skills/sdtk-screen-design-spec/SKILL.md +108 -107
- package/assets/toolkit/toolkit/skills/sdtk-screen-design-spec/references/excel-image-export.md +51 -51
- package/assets/toolkit/toolkit/skills/sdtk-screen-design-spec/references/figma-mcp.md +54 -54
- package/assets/toolkit/toolkit/skills/sdtk-screen-design-spec/references/numbering-rules.md +28 -28
- package/assets/toolkit/toolkit/skills/sdtk-screen-design-spec/scripts/renumber_flow_action_spec_global.py +136 -136
- package/assets/toolkit/toolkit/skills/sdtk-screen-design-spec/scripts/validate_flow_action_spec_numbering.py +414 -414
- package/assets/toolkit/toolkit/skills/sdtk-test-case-spec/SKILL.md +110 -110
- package/assets/toolkit/toolkit/skills/sdtk-test-case-spec/scripts/validate_test_case_spec.py +97 -97
- package/assets/toolkit/toolkit/skills/skills.catalog.yaml +330 -330
- package/assets/toolkit/toolkit/skills-claude/api-design-spec/SKILL.md +116 -116
- package/assets/toolkit/toolkit/skills-claude/api-doc/SKILL.md +87 -87
- package/assets/toolkit/toolkit/skills-claude/arch/SKILL.md +59 -59
- package/assets/toolkit/toolkit/skills-claude/ba/SKILL.md +67 -67
- package/assets/toolkit/toolkit/skills-claude/design-layout/SKILL.md +91 -91
- package/assets/toolkit/toolkit/skills-claude/dev/SKILL.md +59 -59
- package/assets/toolkit/toolkit/skills-claude/dev-backend/SKILL.md +73 -73
- package/assets/toolkit/toolkit/skills-claude/dev-frontend/SKILL.md +73 -73
- package/assets/toolkit/toolkit/skills-claude/mailbox-dispatch/SKILL.md +73 -73
- package/assets/toolkit/toolkit/skills-claude/orchestrator/SKILL.md +88 -42
- package/assets/toolkit/toolkit/skills-claude/pm/SKILL.md +88 -88
- package/assets/toolkit/toolkit/skills-claude/qa/SKILL.md +58 -58
- package/assets/toolkit/toolkit/skills-claude/screen-design-spec/SKILL.md +113 -112
- package/assets/toolkit/toolkit/skills-claude/test-case-spec/SKILL.md +115 -115
- package/assets/toolkit/toolkit/templates/QUALITY_CHECKLIST.md +124 -124
- package/assets/toolkit/toolkit/templates/README.md +68 -68
- package/assets/toolkit/toolkit/templates/SHARED_PLANNING.md +81 -81
- package/assets/toolkit/toolkit/templates/docs/api/API_DESIGN_CREATION_RULES.md +21 -21
- package/assets/toolkit/toolkit/templates/docs/api/API_DESIGN_DETAIL_TEMPLATE.md +67 -67
- package/assets/toolkit/toolkit/templates/docs/api/API_DESIGN_FLOWCHART_CREATION_RULES.md +468 -468
- package/assets/toolkit/toolkit/templates/docs/api/API_ENDPOINTS_TEMPLATE.md +229 -229
- package/assets/toolkit/toolkit/templates/docs/api/FEATURE_API_TEMPLATE.yaml +20 -20
- package/assets/toolkit/toolkit/templates/docs/api/FLOWCHART_CREATION_RULES.md +20 -20
- package/assets/toolkit/toolkit/templates/docs/api/YAML_CREATION_RULES.md +128 -128
- package/assets/toolkit/toolkit/templates/docs/api/feature_api_flow_list_TEMPLATE.txt +12 -12
- package/assets/toolkit/toolkit/templates/docs/architecture/ARCH_DESIGN_TEMPLATE.md +109 -109
- package/assets/toolkit/toolkit/templates/docs/database/DATABASE_SPEC_TEMPLATE.md +175 -175
- package/assets/toolkit/toolkit/templates/docs/design/DESIGN_LAYOUT_TEMPLATE.md +60 -60
- package/assets/toolkit/toolkit/templates/docs/dev/FEATURE_IMPL_PLAN_TEMPLATE.md +117 -117
- package/assets/toolkit/toolkit/templates/docs/dev/OPS_HANDOFF_CREATION_RULES.md +369 -369
- package/assets/toolkit/toolkit/templates/docs/discovery/REQUIREMENT_TEMPLATE.md +155 -155
- package/assets/toolkit/toolkit/templates/docs/product/BACKLOG_TEMPLATE.md +50 -50
- package/assets/toolkit/toolkit/templates/docs/product/CONDENSED_UPSTREAM_INPUT_TEMPLATE.md +276 -276
- package/assets/toolkit/toolkit/templates/docs/product/PRD_TEMPLATE.md +66 -66
- package/assets/toolkit/toolkit/templates/docs/product/PROJECT_INITIATION_TEMPLATE.md +98 -98
- package/assets/toolkit/toolkit/templates/docs/qa/CONTROLLER_ACCEPTANCE_TEMPLATE.md +90 -90
- package/assets/toolkit/toolkit/templates/docs/qa/QA_RELEASE_REPORT_TEMPLATE.md +162 -162
- package/assets/toolkit/toolkit/templates/docs/qa/TEST_CASE_CREATION_RULES.md +129 -129
- package/assets/toolkit/toolkit/templates/docs/qa/TEST_CASE_TEMPLATE.md +104 -104
- package/assets/toolkit/toolkit/templates/docs/specs/BA_SPEC_TEMPLATE.md +139 -139
- package/assets/toolkit/toolkit/templates/docs/specs/FLOW_ACTION_SPEC_CREATION_RULES.md +220 -220
- package/assets/toolkit/toolkit/templates/docs/specs/FLOW_ACTION_SPEC_TEMPLATE.md +197 -197
- package/assets/toolkit/toolkit/templates/handoffs/ARCH_TO_DEV.md +31 -31
- package/assets/toolkit/toolkit/templates/handoffs/BA_TO_ARCH.md +28 -28
- package/assets/toolkit/toolkit/templates/handoffs/DEV_STAGE1_SPEC_REVIEW.md +26 -26
- package/assets/toolkit/toolkit/templates/handoffs/DEV_STAGE2_CODE_QUALITY_REVIEW.md +20 -20
- package/assets/toolkit/toolkit/templates/handoffs/DEV_TO_QA.md +33 -33
- package/assets/toolkit/toolkit/templates/handoffs/DEV_TO_SDTK_CODE.md +60 -60
- package/assets/toolkit/toolkit/templates/handoffs/PM_TO_BA.md +30 -30
- package/assets/toolkit/toolkit/templates/handoffs/QA_RELEASE_DECISION.md +26 -26
- package/assets/toolkit/toolkit/templates/mailbox/AGENT_REPORT_TEMPLATE.md +63 -63
- package/assets/toolkit/toolkit/templates/mailbox/AGENT_TASK_TEMPLATE.md +76 -76
- package/bin/sdtk.js +15 -15
- package/package.json +48 -48
- package/src/commands/activate.js +94 -94
- package/src/commands/atlas.js +339 -339
- package/src/commands/auth.js +85 -85
- package/src/commands/entitlement.js +170 -170
- package/src/commands/generate.js +191 -170
- package/src/commands/help.js +248 -246
- package/src/commands/init.js +117 -117
- package/src/commands/project.js +51 -51
- package/src/commands/runtime.js +239 -239
- package/src/commands/update.js +11 -11
- package/src/index.js +68 -68
- package/src/lib/activation-state.js +68 -68
- package/src/lib/args.js +116 -116
- package/src/lib/atlas-config.js +200 -200
- package/src/lib/atlas-runner.js +435 -435
- package/src/lib/browser-open.js +39 -39
- package/src/lib/capabilities.js +89 -89
- package/src/lib/entitlements.js +245 -245
- package/src/lib/errors.js +41 -41
- package/src/lib/github-access.js +143 -143
- package/src/lib/legacy-auth-migration.js +56 -56
- package/src/lib/license-activation.js +386 -386
- package/src/lib/powershell.js +85 -85
- package/src/lib/premium-loader.js +124 -124
- package/src/lib/premium-packs.js +333 -333
- package/src/lib/premium-sync.js +235 -235
- package/src/lib/project-audit.js +332 -332
- package/src/lib/project-config.js +108 -108
- package/src/lib/project-ingest.js +450 -450
- package/src/lib/project-refresh.js +666 -666
- package/src/lib/project-target-guard.js +79 -79
- package/src/lib/requirement-analysis.js +14 -4
- package/src/lib/scope.js +83 -83
- package/src/lib/state.js +74 -74
- package/src/lib/suite-state.js +70 -70
- package/src/lib/toolkit-payload.js +99 -99
- package/src/lib/update.js +333 -333
|
@@ -1,73 +1,73 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: 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
|
-
## Input
|
|
7
|
-
$ARGUMENTS
|
|
8
|
-
|
|
9
|
-
# SDTK-SPEC Frontend (Toolkit conventions)
|
|
10
|
-
|
|
11
|
-
## Critical Constraints
|
|
12
|
-
- I am a bounded DEV specialist aid inside `SDTK-SPEC`, not a separate suite-owner identity.
|
|
13
|
-
- I do not implement screens without current layout and flow-action sources.
|
|
14
|
-
- I do not bypass existing frontend patterns for loading, permissions, or labels.
|
|
15
|
-
- 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.
|
|
16
|
-
- I do not invent screen layout, field labels, or API calls that are not present in the approved upstream artifacts.
|
|
17
|
-
|
|
18
|
-
## Outputs
|
|
19
|
-
- Frontend feature files under:
|
|
20
|
-
- `src/frontend/features/{feature}/` (pages, components)
|
|
21
|
-
- `src/frontend/services/{feature}/{feature}Service.js`
|
|
22
|
-
- `src/frontend/services/apiHook/{feature}.js`
|
|
23
|
-
|
|
24
|
-
## Required Inputs
|
|
25
|
-
- `docs/design/DESIGN_LAYOUT_[FEATURE_KEY].md` (screen layout and item tables)
|
|
26
|
-
- `docs/specs/[FEATURE_KEY]_FLOW_ACTION_SPEC.md` (UI actions and API mapping)
|
|
27
|
-
- `docs/api/[FEATURE_KEY]_ENDPOINTS.md` (API contracts for hook/service binding)
|
|
28
|
-
- Confirmation that this slice is within approved DEV scope
|
|
29
|
-
|
|
30
|
-
## When To Stop Or Escalate
|
|
31
|
-
- 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.
|
|
32
|
-
- Stop if the flow-action spec is missing or incomplete for the screens being implemented; surface as a blocker.
|
|
33
|
-
- Stop if an API endpoint required by the screen is not present in ENDPOINTS.md; do not invent API calls.
|
|
34
|
-
- Escalate to `sdtk-dev` if the implementation slice scope is unclear or if design decisions are required that go beyond the approved layout.
|
|
35
|
-
- Escalate to `@arch` or `sdtk-design-layout` if the existing layout file does not cover a screen required by the current slice.
|
|
36
|
-
|
|
37
|
-
## Core Process
|
|
38
|
-
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.
|
|
39
|
-
2. Read `docs/design/DESIGN_LAYOUT_[FEATURE_KEY].md` for screen structure and item tables.
|
|
40
|
-
3. Read `docs/specs/[FEATURE_KEY]_FLOW_ACTION_SPEC.md` for UI actions, API mapping, and flow context.
|
|
41
|
-
4. Read `docs/api/[FEATURE_KEY]_ENDPOINTS.md` for API contracts.
|
|
42
|
-
5. Check whether this repository already has a frontend reference module and follow its patterns exactly.
|
|
43
|
-
6. Follow structure:
|
|
44
|
-
- `src/frontend/features/{feature}/...`
|
|
45
|
-
- `src/frontend/services/{feature}/{feature}Service.js`
|
|
46
|
-
- `src/frontend/services/apiHook/{feature}.js`
|
|
47
|
-
7. Implement screens based on `DESIGN_LAYOUT_[FEATURE_KEY].md`; do not add or remove fields without a corresponding layout update.
|
|
48
|
-
8. Preserve patterns: React Query hooks, loading states, permission checks, consistent labels.
|
|
49
|
-
9. Verify the implemented screens satisfy the flow-action mappings before declaring the slice done.
|
|
50
|
-
|
|
51
|
-
## Validation / Quality Gates
|
|
52
|
-
- Every screen section in the layout spec has a matching page/component implemented.
|
|
53
|
-
- React Query hooks exist for every API call made by the feature.
|
|
54
|
-
- Loading and error states are handled consistently with existing patterns.
|
|
55
|
-
- Permission checks guard all protected actions.
|
|
56
|
-
- Field labels match the layout and flow-action spec exactly; no free-form label invention.
|
|
57
|
-
- No API call exists in the implementation that is not present in ENDPOINTS.md.
|
|
58
|
-
|
|
59
|
-
## Order-Critical Hard Gate
|
|
60
|
-
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.
|
|
61
|
-
|
|
62
|
-
Do not declare a slice done without verifying all implemented screens satisfy the API mappings in the flow-action spec.
|
|
63
|
-
|
|
64
|
-
## Common Mistakes
|
|
65
|
-
|
|
66
|
-
| Mistake | Why it is wrong | Do instead |
|
|
67
|
-
|---|---|---|
|
|
68
|
-
| Implement screens without reading DESIGN_LAYOUT | Introduces layout drift from spec | Always read the layout doc before implementing any screen |
|
|
69
|
-
| Invent API calls not in ENDPOINTS.md | Creates untracked contract dependencies | Only call APIs explicitly defined in the ENDPOINTS file |
|
|
70
|
-
| Skip permission checks on protected actions | Security gap that will fail review | Always guard protected actions with the existing permission pattern |
|
|
71
|
-
| Use a different structure than the existing frontend reference | Inconsistency maintainers must correct | Read the reference module and match its structure exactly |
|
|
72
|
-
| 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 |
|
|
73
|
-
| Add field labels from memory | Labels drift from the spec | Copy field label text exactly from the layout or flow-action doc |
|
|
1
|
+
---
|
|
2
|
+
name: 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
|
+
## Input
|
|
7
|
+
$ARGUMENTS
|
|
8
|
+
|
|
9
|
+
# SDTK-SPEC Frontend (Toolkit conventions)
|
|
10
|
+
|
|
11
|
+
## Critical Constraints
|
|
12
|
+
- I am a bounded DEV specialist aid inside `SDTK-SPEC`, not a separate suite-owner identity.
|
|
13
|
+
- I do not implement screens without current layout and flow-action sources.
|
|
14
|
+
- I do not bypass existing frontend patterns for loading, permissions, or labels.
|
|
15
|
+
- 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.
|
|
16
|
+
- I do not invent screen layout, field labels, or API calls that are not present in the approved upstream artifacts.
|
|
17
|
+
|
|
18
|
+
## Outputs
|
|
19
|
+
- Frontend feature files under:
|
|
20
|
+
- `src/frontend/features/{feature}/` (pages, components)
|
|
21
|
+
- `src/frontend/services/{feature}/{feature}Service.js`
|
|
22
|
+
- `src/frontend/services/apiHook/{feature}.js`
|
|
23
|
+
|
|
24
|
+
## Required Inputs
|
|
25
|
+
- `docs/design/DESIGN_LAYOUT_[FEATURE_KEY].md` (screen layout and item tables)
|
|
26
|
+
- `docs/specs/[FEATURE_KEY]_FLOW_ACTION_SPEC.md` (UI actions and API mapping)
|
|
27
|
+
- `docs/api/[FEATURE_KEY]_ENDPOINTS.md` (API contracts for hook/service binding)
|
|
28
|
+
- Confirmation that this slice is within approved DEV scope
|
|
29
|
+
|
|
30
|
+
## When To Stop Or Escalate
|
|
31
|
+
- 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.
|
|
32
|
+
- Stop if the flow-action spec is missing or incomplete for the screens being implemented; surface as a blocker.
|
|
33
|
+
- Stop if an API endpoint required by the screen is not present in ENDPOINTS.md; do not invent API calls.
|
|
34
|
+
- Escalate to `sdtk-dev` if the implementation slice scope is unclear or if design decisions are required that go beyond the approved layout.
|
|
35
|
+
- Escalate to `@arch` or `sdtk-design-layout` if the existing layout file does not cover a screen required by the current slice.
|
|
36
|
+
|
|
37
|
+
## Core Process
|
|
38
|
+
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.
|
|
39
|
+
2. Read `docs/design/DESIGN_LAYOUT_[FEATURE_KEY].md` for screen structure and item tables.
|
|
40
|
+
3. Read `docs/specs/[FEATURE_KEY]_FLOW_ACTION_SPEC.md` for UI actions, API mapping, and flow context.
|
|
41
|
+
4. Read `docs/api/[FEATURE_KEY]_ENDPOINTS.md` for API contracts.
|
|
42
|
+
5. Check whether this repository already has a frontend reference module and follow its patterns exactly.
|
|
43
|
+
6. Follow structure:
|
|
44
|
+
- `src/frontend/features/{feature}/...`
|
|
45
|
+
- `src/frontend/services/{feature}/{feature}Service.js`
|
|
46
|
+
- `src/frontend/services/apiHook/{feature}.js`
|
|
47
|
+
7. Implement screens based on `DESIGN_LAYOUT_[FEATURE_KEY].md`; do not add or remove fields without a corresponding layout update.
|
|
48
|
+
8. Preserve patterns: React Query hooks, loading states, permission checks, consistent labels.
|
|
49
|
+
9. Verify the implemented screens satisfy the flow-action mappings before declaring the slice done.
|
|
50
|
+
|
|
51
|
+
## Validation / Quality Gates
|
|
52
|
+
- Every screen section in the layout spec has a matching page/component implemented.
|
|
53
|
+
- React Query hooks exist for every API call made by the feature.
|
|
54
|
+
- Loading and error states are handled consistently with existing patterns.
|
|
55
|
+
- Permission checks guard all protected actions.
|
|
56
|
+
- Field labels match the layout and flow-action spec exactly; no free-form label invention.
|
|
57
|
+
- No API call exists in the implementation that is not present in ENDPOINTS.md.
|
|
58
|
+
|
|
59
|
+
## Order-Critical Hard Gate
|
|
60
|
+
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.
|
|
61
|
+
|
|
62
|
+
Do not declare a slice done without verifying all implemented screens satisfy the API mappings in the flow-action spec.
|
|
63
|
+
|
|
64
|
+
## Common Mistakes
|
|
65
|
+
|
|
66
|
+
| Mistake | Why it is wrong | Do instead |
|
|
67
|
+
|---|---|---|
|
|
68
|
+
| Implement screens without reading DESIGN_LAYOUT | Introduces layout drift from spec | Always read the layout doc before implementing any screen |
|
|
69
|
+
| Invent API calls not in ENDPOINTS.md | Creates untracked contract dependencies | Only call APIs explicitly defined in the ENDPOINTS file |
|
|
70
|
+
| Skip permission checks on protected actions | Security gap that will fail review | Always guard protected actions with the existing permission pattern |
|
|
71
|
+
| Use a different structure than the existing frontend reference | Inconsistency maintainers must correct | Read the reference module and match its structure exactly |
|
|
72
|
+
| 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 |
|
|
73
|
+
| Add field labels from memory | Labels drift from the spec | Copy field label text exactly from the layout or flow-action doc |
|
|
@@ -1,73 +1,73 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: mailbox-dispatch
|
|
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
|
-
---
|
|
5
|
-
|
|
6
|
-
# SDTK Mailbox Dispatch
|
|
7
|
-
|
|
8
|
-
Use this skill only for controller-owned delegation. It is the shipped SDTK-SPEC mailbox flow for bounded PM or Orchestrator dispatch, not a generic autonomous worker platform.
|
|
9
|
-
|
|
10
|
-
## Critical Constraints
|
|
11
|
-
- I do not use mailbox dispatch for broad exploratory planning when the controller already has enough local context to plan safely.
|
|
12
|
-
- I do not mix transient runtime files under `governance/ai/agent-mailbox/runtime/` into feature commit boundaries.
|
|
13
|
-
- I do not widen include/exclude boundaries, fallback rules, or verification commands without an explicit controller decision.
|
|
14
|
-
- I do not leak internal backlog IDs into runtime-facing docs, templates, samples, or public guidance.
|
|
15
|
-
|
|
16
|
-
## Use When
|
|
17
|
-
- one bounded issue phase should be delegated through the mailbox runtime
|
|
18
|
-
- runtime choice between Claude and Codex matters
|
|
19
|
-
- the task needs exact include/exclude boundaries and a stable review packet
|
|
20
|
-
- the phase is implementation, review, QA, or controller acceptance
|
|
21
|
-
- you want the closeout loop to absorb new mailbox lessons automatically
|
|
22
|
-
|
|
23
|
-
## Do Not Use
|
|
24
|
-
- broad exploratory planning when the controller already has enough local context
|
|
25
|
-
- unbounded multi-issue orchestration or a generic worker platform
|
|
26
|
-
- tasks that require a direct external-CLI-to-chat-session bridge
|
|
27
|
-
|
|
28
|
-
## Required Inputs
|
|
29
|
-
Read these shipped toolkit surfaces before dispatching or reviewing a run:
|
|
30
|
-
- `toolkit/templates/mailbox/AGENT_TASK_TEMPLATE.md`
|
|
31
|
-
- `toolkit/templates/mailbox/AGENT_REPORT_TEMPLATE.md`
|
|
32
|
-
- `toolkit/scripts/agents/run-claude-task.ps1`
|
|
33
|
-
- `toolkit/scripts/agents/run-codex-task.ps1`
|
|
34
|
-
- current issue spec/plan/review artifacts for the bounded phase
|
|
35
|
-
- current git truth for the included surfaces
|
|
36
|
-
|
|
37
|
-
## Workflow
|
|
38
|
-
1. Decide whether the controller should plan locally first. Default to local planning when the codebase context is already strong.
|
|
39
|
-
2. Choose runtime:
|
|
40
|
-
- Claude for controller spec drafting, wording-heavy review, and SDTK-SPEC shaping
|
|
41
|
-
- Codex for code changes, tests, workflow/harness changes, and verification-heavy implementation
|
|
42
|
-
3. Write the task packet with exact boundary truth, boundary mode, carryover findings, formal artifact write expectation, explicit execution permission, a complete approval record for any writable implementation run, an explicit runtime-stall budget plus fallback trigger, and a clear closeout mode (`full-issue` or `phase-only`).
|
|
43
|
-
4. For implementation runs, list the exact authoritative input files needed to start the patch; do not rely on repo-wide example hunts as an unstated discovery step.`r`n5. Dispatch through the mailbox launcher into `governance/ai/agent-mailbox/runtime/...`.
|
|
44
|
-
6. Review the raw report against git truth and the formal artifact on disk. Prefer the formal artifact when console output is lossy. If an implementation run timed out or exited without a usable report, expect a launcher-authored partial-failure blocker report instead of a missing report file.
|
|
45
|
-
7. For `controller-dev-review`, `qa-review`, and `controller-acceptance`, keep the primary formal artifact on the canonical filename family and canonical verdict vocabulary for that phase. The launcher validates `toolkit/scripts/agents/validate-mailbox-formal-artifact.py` automatically when the artifact exists.
|
|
46
|
-
8. Promote only approved code/docs/tests/artifacts into tracked paths.
|
|
47
|
-
9. Run a default post-issue retrospective before the next mailbox-driven issue:
|
|
48
|
-
- update the mailbox contract/spec if a real new lesson appeared
|
|
49
|
-
- otherwise record `no new mailbox lessons` in the closeout summary
|
|
50
|
-
|
|
51
|
-
## Boundary Rules
|
|
52
|
-
- Treat runtime files under `governance/ai/agent-mailbox/runtime/` as transient.
|
|
53
|
-
- Do not mix mailbox runtime dirt into feature commit boundaries.
|
|
54
|
-
- State explicitly whether a batch is `canonical-only` or includes packaged distribution parity.
|
|
55
|
-
- Keep review, QA, and controller-acceptance phases read-only by default; writable implementation runs require explicit human-approved permission metadata in the task packet.
|
|
56
|
-
- Keep internal backlog IDs out of runtime-facing docs, templates, and public guidance.
|
|
57
|
-
- Treat listed Inputs: as the authoritative starting source set for implementation runs; broad repo-wide discovery is a fallback only when a direct dependency is missing.
|
|
58
|
-
|
|
59
|
-
## Fallback Rules
|
|
60
|
-
- If an external runtime stalls, use a bounded fallback path instead of blocking the issue. Long-running Codex implementation runs should now terminate within the declared stall budget and emit a launcher-authored partial-failure blocker report when a usable report is missing.
|
|
61
|
-
- For long implementation passes, one bounded external attempt is enough before controller-local or native fallback if the trigger defined in the task packet is reached.
|
|
62
|
-
- If quota or permission prevents the agent from writing the formal artifact, the controller may author it directly, but the artifact must state the fallback reason.
|
|
63
|
-
- QA and controller acceptance may inherit fresh controller verification only when the implementation scope is unchanged and the inheritance is declared explicitly.
|
|
64
|
-
- If the controller fixes a bounded hygiene defect between phases, later mailbox tasks must review current repo truth and treat the resolved defect as fixed instead of repeating stale findings from earlier raw reports.
|
|
65
|
-
|
|
66
|
-
## Default Phase Order
|
|
67
|
-
1. `controller-spec` or `plan`
|
|
68
|
-
2. `implementation`
|
|
69
|
-
3. `controller-dev-review`
|
|
70
|
-
4. `qa-review`
|
|
71
|
-
5. `controller-acceptance`
|
|
72
|
-
6. `commit/push`
|
|
73
|
-
7. `post-issue-retrospective`
|
|
1
|
+
---
|
|
2
|
+
name: mailbox-dispatch
|
|
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
|
+
---
|
|
5
|
+
|
|
6
|
+
# SDTK Mailbox Dispatch
|
|
7
|
+
|
|
8
|
+
Use this skill only for controller-owned delegation. It is the shipped SDTK-SPEC mailbox flow for bounded PM or Orchestrator dispatch, not a generic autonomous worker platform.
|
|
9
|
+
|
|
10
|
+
## Critical Constraints
|
|
11
|
+
- I do not use mailbox dispatch for broad exploratory planning when the controller already has enough local context to plan safely.
|
|
12
|
+
- I do not mix transient runtime files under `governance/ai/agent-mailbox/runtime/` into feature commit boundaries.
|
|
13
|
+
- I do not widen include/exclude boundaries, fallback rules, or verification commands without an explicit controller decision.
|
|
14
|
+
- I do not leak internal backlog IDs into runtime-facing docs, templates, samples, or public guidance.
|
|
15
|
+
|
|
16
|
+
## Use When
|
|
17
|
+
- one bounded issue phase should be delegated through the mailbox runtime
|
|
18
|
+
- runtime choice between Claude and Codex matters
|
|
19
|
+
- the task needs exact include/exclude boundaries and a stable review packet
|
|
20
|
+
- the phase is implementation, review, QA, or controller acceptance
|
|
21
|
+
- you want the closeout loop to absorb new mailbox lessons automatically
|
|
22
|
+
|
|
23
|
+
## Do Not Use
|
|
24
|
+
- broad exploratory planning when the controller already has enough local context
|
|
25
|
+
- unbounded multi-issue orchestration or a generic worker platform
|
|
26
|
+
- tasks that require a direct external-CLI-to-chat-session bridge
|
|
27
|
+
|
|
28
|
+
## Required Inputs
|
|
29
|
+
Read these shipped toolkit surfaces before dispatching or reviewing a run:
|
|
30
|
+
- `toolkit/templates/mailbox/AGENT_TASK_TEMPLATE.md`
|
|
31
|
+
- `toolkit/templates/mailbox/AGENT_REPORT_TEMPLATE.md`
|
|
32
|
+
- `toolkit/scripts/agents/run-claude-task.ps1`
|
|
33
|
+
- `toolkit/scripts/agents/run-codex-task.ps1`
|
|
34
|
+
- current issue spec/plan/review artifacts for the bounded phase
|
|
35
|
+
- current git truth for the included surfaces
|
|
36
|
+
|
|
37
|
+
## Workflow
|
|
38
|
+
1. Decide whether the controller should plan locally first. Default to local planning when the codebase context is already strong.
|
|
39
|
+
2. Choose runtime:
|
|
40
|
+
- Claude for controller spec drafting, wording-heavy review, and SDTK-SPEC shaping
|
|
41
|
+
- Codex for code changes, tests, workflow/harness changes, and verification-heavy implementation
|
|
42
|
+
3. Write the task packet with exact boundary truth, boundary mode, carryover findings, formal artifact write expectation, explicit execution permission, a complete approval record for any writable implementation run, an explicit runtime-stall budget plus fallback trigger, and a clear closeout mode (`full-issue` or `phase-only`).
|
|
43
|
+
4. For implementation runs, list the exact authoritative input files needed to start the patch; do not rely on repo-wide example hunts as an unstated discovery step.`r`n5. Dispatch through the mailbox launcher into `governance/ai/agent-mailbox/runtime/...`.
|
|
44
|
+
6. Review the raw report against git truth and the formal artifact on disk. Prefer the formal artifact when console output is lossy. If an implementation run timed out or exited without a usable report, expect a launcher-authored partial-failure blocker report instead of a missing report file.
|
|
45
|
+
7. For `controller-dev-review`, `qa-review`, and `controller-acceptance`, keep the primary formal artifact on the canonical filename family and canonical verdict vocabulary for that phase. The launcher validates `toolkit/scripts/agents/validate-mailbox-formal-artifact.py` automatically when the artifact exists.
|
|
46
|
+
8. Promote only approved code/docs/tests/artifacts into tracked paths.
|
|
47
|
+
9. Run a default post-issue retrospective before the next mailbox-driven issue:
|
|
48
|
+
- update the mailbox contract/spec if a real new lesson appeared
|
|
49
|
+
- otherwise record `no new mailbox lessons` in the closeout summary
|
|
50
|
+
|
|
51
|
+
## Boundary Rules
|
|
52
|
+
- Treat runtime files under `governance/ai/agent-mailbox/runtime/` as transient.
|
|
53
|
+
- Do not mix mailbox runtime dirt into feature commit boundaries.
|
|
54
|
+
- State explicitly whether a batch is `canonical-only` or includes packaged distribution parity.
|
|
55
|
+
- Keep review, QA, and controller-acceptance phases read-only by default; writable implementation runs require explicit human-approved permission metadata in the task packet.
|
|
56
|
+
- Keep internal backlog IDs out of runtime-facing docs, templates, and public guidance.
|
|
57
|
+
- Treat listed Inputs: as the authoritative starting source set for implementation runs; broad repo-wide discovery is a fallback only when a direct dependency is missing.
|
|
58
|
+
|
|
59
|
+
## Fallback Rules
|
|
60
|
+
- If an external runtime stalls, use a bounded fallback path instead of blocking the issue. Long-running Codex implementation runs should now terminate within the declared stall budget and emit a launcher-authored partial-failure blocker report when a usable report is missing.
|
|
61
|
+
- For long implementation passes, one bounded external attempt is enough before controller-local or native fallback if the trigger defined in the task packet is reached.
|
|
62
|
+
- If quota or permission prevents the agent from writing the formal artifact, the controller may author it directly, but the artifact must state the fallback reason.
|
|
63
|
+
- QA and controller acceptance may inherit fresh controller verification only when the implementation scope is unchanged and the inheritance is declared explicitly.
|
|
64
|
+
- If the controller fixes a bounded hygiene defect between phases, later mailbox tasks must review current repo truth and treat the resolved defect as fixed instead of repeating stale findings from earlier raw reports.
|
|
65
|
+
|
|
66
|
+
## Default Phase Order
|
|
67
|
+
1. `controller-spec` or `plan`
|
|
68
|
+
2. `implementation`
|
|
69
|
+
3. `controller-dev-review`
|
|
70
|
+
4. `qa-review`
|
|
71
|
+
5. `controller-acceptance`
|
|
72
|
+
6. `commit/push`
|
|
73
|
+
7. `post-issue-retrospective`
|
|
@@ -1,42 +1,88 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: orchestrator
|
|
3
|
-
description:
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
## Critical Constraints
|
|
7
|
-
- I do not skip mandatory phases or hand off without current-phase evidence.
|
|
8
|
-
- I do not treat visible-list presence as proof of a working direct invocation.
|
|
9
|
-
- I do not treat planned commands as equivalent to completed work.
|
|
10
|
-
- I preserve truthful fallback behavior and do not overclaim universal helper-dispatch or universal built-in exposure across every Claude surface.
|
|
11
|
-
|
|
12
|
-
## Claude Runtime Entrypoint Truth
|
|
13
|
-
- Visible-list presence of `orchestrator` does not prove `/orchestrator` or any other direct alias.
|
|
14
|
-
- `visible` and `working` are separate checks; `working` requires observable controller action from a bounded request.
|
|
15
|
-
- Until a Claude-specific direct syntax is validated, the supported controller path remains the repo-local orchestrator contract in the current session.
|
|
16
|
-
- Run `sdtk-spec generate --feature-key <KEY> --feature-name "<NAME>" --project-path .` to create skeleton artifacts before phase work begins.
|
|
17
|
-
|
|
18
|
-
##
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
-
|
|
40
|
-
-
|
|
41
|
-
-
|
|
42
|
-
-
|
|
1
|
+
---
|
|
2
|
+
name: orchestrator
|
|
3
|
+
description: Classify intent and route to the correct SDTK product workflow — SDTK-CODE start→plan→build→verify→ship, SDTK-SPEC PM→BA→ARCH→DEV→QA, or SDTK-OPS — using two-stage classify→registry routing with coarse-to-fine product selection.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
## Critical Constraints
|
|
7
|
+
- I do not skip mandatory phases or hand off without current-phase evidence.
|
|
8
|
+
- I do not treat visible-list presence as proof of a working direct invocation.
|
|
9
|
+
- I do not treat planned commands as equivalent to completed work.
|
|
10
|
+
- I preserve truthful fallback behavior and do not overclaim universal helper-dispatch or universal built-in exposure across every Claude surface.
|
|
11
|
+
|
|
12
|
+
## Claude Runtime Entrypoint Truth
|
|
13
|
+
- Visible-list presence of `orchestrator` does not prove `/orchestrator` or any other direct alias.
|
|
14
|
+
- `visible` and `working` are separate checks; `working` requires observable controller action from a bounded request.
|
|
15
|
+
- Until a Claude-specific direct syntax is validated, the supported controller path remains the repo-local orchestrator contract in the current session.
|
|
16
|
+
- Run `sdtk-spec generate --feature-key <KEY> --feature-name "<NAME>" --project-path .` to create skeleton artifacts before phase work begins.
|
|
17
|
+
|
|
18
|
+
## Stage 1 — Classify Intent
|
|
19
|
+
Before selecting any role or product lane, classify the incoming request:
|
|
20
|
+
|
|
21
|
+
| Request type | Classification |
|
|
22
|
+
|---|---|
|
|
23
|
+
| Raw / unclear idea | `brainstorm-discovery` |
|
|
24
|
+
| Analyze, clarify, or investigate an issue | `code-brainstorm` or `discovery` |
|
|
25
|
+
| Build a feature, fix a bug, or refactor | `sdtk-code` |
|
|
26
|
+
| Formal project spec or feature delivery pipeline | `sdtk-spec` |
|
|
27
|
+
| Deploy, infra, CI/CD, incident, monitoring | `sdtk-ops` |
|
|
28
|
+
| Code review or release decision | `review-qa` |
|
|
29
|
+
| Atlas / wiki graph or Ask | `atlas-wiki` |
|
|
30
|
+
| "What should we do next?" | `orchestrator-state-review` |
|
|
31
|
+
|
|
32
|
+
If the classification is ambiguous: **ask one focused question**, do not guess.
|
|
33
|
+
Cap re-routes at 2. If a third route would be needed, escalate to the user with an explicit summary.
|
|
34
|
+
|
|
35
|
+
## Stage 2 — Coarse-to-Fine Route
|
|
36
|
+
After classifying intent, pick the **product** first, then the **skill within** that product:
|
|
37
|
+
|
|
38
|
+
- `brainstorm-discovery` → create or update `docs/discovery/REQUIREMENT_[FEATURE_KEY].md`; PM initiation only after `READY_FOR_PM_INITIATION`
|
|
39
|
+
- `code-brainstorm` → `/code-brainstorm` skill before entering the CODE workflow
|
|
40
|
+
- `sdtk-code` → `start -> plan -> build -> verify -> ship` workflow
|
|
41
|
+
- `sdtk-spec` → PM → BA → ARCH → DEV (planning + `CODE_HANDOFF`) → SDTK-CODE → QA
|
|
42
|
+
- `sdtk-ops` → the relevant journey start skill → `ops-verify`
|
|
43
|
+
- `review-qa` → evidence-first review → QA → controller
|
|
44
|
+
|
|
45
|
+
## Few-Shot Routing Examples
|
|
46
|
+
|
|
47
|
+
| User request | Chosen route |
|
|
48
|
+
|---|---|
|
|
49
|
+
| "Analyze why the auth module is slow" | SDTK-CODE · `/code-brainstorm` |
|
|
50
|
+
| "Fix the login bug in issue BK-142" | SDTK-CODE · `start -> build -> verify -> ship` |
|
|
51
|
+
| "Design and spec the notification feature" | SDTK-SPEC · PM → BA → ARCH → DEV |
|
|
52
|
+
| "Deploy the v2 release to production" | SDTK-OPS · `ops-plan -> ops-deploy -> ops-verify` |
|
|
53
|
+
|
|
54
|
+
## Per-Route Handoff Line (P5)
|
|
55
|
+
On each routing decision, emit one explicit handoff line before starting work:
|
|
56
|
+
> Route: `<product>` · Reason: `<one-line rationale>` · Next: `<skill or workflow to invoke>`
|
|
57
|
+
|
|
58
|
+
## SDTK-SPEC Feature Bootstrap
|
|
59
|
+
Run from the project root to initialize skeleton artifacts:
|
|
60
|
+
```
|
|
61
|
+
sdtk-spec generate --feature-key YOUR_FEATURE --feature-name "Your Feature"
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
## Execute pipeline (one phase per turn)
|
|
65
|
+
- Default role: Orchestrator Intake. Select PM only when the request is ready for formal SDTK-SPEC product initiation.
|
|
66
|
+
- Respect role tags: `PM`, `BA`, `ARCH`, `DEV`, `QA`.
|
|
67
|
+
- For each SDTK-SPEC phase:
|
|
68
|
+
- Create or update the current-phase artifact in `docs/`.
|
|
69
|
+
- If phase is `ARCH` and API contract or flow is in scope, invoke `sdtk-api-doc`.
|
|
70
|
+
- If phase is `ARCH` and API detail spec is in scope, invoke `sdtk-api-design-spec`.
|
|
71
|
+
- If phase is `ARCH` and UI flow behavior is in scope, invoke `sdtk-screen-design-spec`.
|
|
72
|
+
- If phase is `DEV`, stop at `FEATURE_IMPL_PLAN + CODE_HANDOFF`; downstream implementation runs in SDTK-CODE, not here.
|
|
73
|
+
- If phase is `QA` and test-case specification is in scope, invoke `sdtk-test-case-spec`.
|
|
74
|
+
- Update `SHARED_PLANNING.md` and `QUALITY_CHECKLIST.md`.
|
|
75
|
+
- Hand off only after the current phase has fresh evidence.
|
|
76
|
+
|
|
77
|
+
## Optional: Mailbox Dispatch
|
|
78
|
+
- Use `mailbox-dispatch` when one bounded controller-owned phase should be delegated to Claude or Codex.
|
|
79
|
+
- Keep planning local when the controller already has enough repo context.
|
|
80
|
+
- Lock exact include/exclude boundaries, fallback triggers, and verification commands before dispatch.
|
|
81
|
+
- Keep mailbox runtime files transient under `governance/ai/agent-mailbox/runtime/`.
|
|
82
|
+
- Run the default post-issue mailbox retrospective after repo truth is closed and before the next mailbox-driven issue.
|
|
83
|
+
|
|
84
|
+
## Guardrails
|
|
85
|
+
- Keep traceability: `REQ -> BR/UC/AC -> design -> backlog -> FEATURE_IMPL_PLAN -> CODE_HANDOFF -> downstream implementation evidence -> QA report`.
|
|
86
|
+
- Preserve the repo-local orchestrator contract as the exact fallback when direct built-in exposure or invocation is absent or unvalidated.
|
|
87
|
+
- Do not claim that Claude visible-list presence proves `/orchestrator`.
|
|
88
|
+
- Do not claim built-in exposure parity across every Claude surface.
|
|
@@ -1,88 +1,88 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: pm
|
|
3
|
-
description: Product Manager + meta-orchestrator workflow for SDTK-SPEC. 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-SPEC Pipeline Rules (always apply)
|
|
7
|
-
1. Pipeline: PM Initiation 竊・BA Analysis 竊・PM Planning 竊・Architecture Design 竊・Development + Review 竊・QA Validation
|
|
8
|
-
2. After completing phase work: update SHARED_PLANNING.md + QUALITY_CHECKLIST.md
|
|
9
|
-
3. If unclear: log OQ-xx in artifact, escalate to PM (PM asks user if needed)
|
|
10
|
-
4. Traceability: REQ 竊・BR/UC/AC 竊・design 竊・backlog 竊・code/tests 竊・QA
|
|
11
|
-
5. Code review must be COMPLETE before QA phase can start
|
|
12
|
-
6. Do not skip phases. If inputs missing, ask focused questions.
|
|
13
|
-
|
|
14
|
-
## Prerequisites (verify before proceeding)
|
|
15
|
-
Read QUALITY_CHECKLIST.md and verify:
|
|
16
|
-
- Phase 1 (PM Init): No prerequisites required.
|
|
17
|
-
- Phase 2+ (PM Planning): BA Analysis gate must show all items [x] Done.
|
|
18
|
-
|
|
19
|
-
If prerequisites NOT met: report which gate is missing, suggest user run the prerequisite phase first.
|
|
20
|
-
|
|
21
|
-
## Current Context
|
|
22
|
-
- Config: !`node -e "try{process.stdout.write(require('fs').readFileSync('sdtk-spec.config.json','utf8'))}catch{process.stdout.write('{}')}"`
|
|
23
|
-
- Pipeline: !`node -e "try{process.stdout.write(require('fs').readFileSync('SHARED_PLANNING.md','utf8'))}catch{process.stdout.write('Not initialized')}"`
|
|
24
|
-
- Gates: !`node -e "try{process.stdout.write(require('fs').readFileSync('QUALITY_CHECKLIST.md','utf8'))}catch{process.stdout.write('Not initialized')}"`
|
|
25
|
-
- State: !`node -e "try{process.stdout.write(require('fs').readFileSync('.sdtk/orchestration-state.json','utf8'))}catch{process.stdout.write('{}')}"`
|
|
26
|
-
|
|
27
|
-
## Input
|
|
28
|
-
$ARGUMENTS
|
|
29
|
-
|
|
30
|
-
If no arguments provided, read current feature context from SHARED_PLANNING.md.
|
|
31
|
-
|
|
32
|
-
# SDTK-SPEC PM (Entry Point + Planning)
|
|
33
|
-
|
|
34
|
-
## Outputs
|
|
35
|
-
- Phase 1: `docs/product/PROJECT_INITIATION_[FEATURE_KEY].md`
|
|
36
|
-
- Phase 2+ (after BA spec): `docs/product/PRD_[FEATURE_KEY].md` + `docs/product/BACKLOG_[FEATURE_KEY].md`
|
|
37
|
-
|
|
38
|
-
## Process
|
|
39
|
-
1. Confirm `FEATURE_KEY` + `FEATURE_NAME` + Phase-1 scope in/out.
|
|
40
|
-
2. Create/update PM artifact(s).
|
|
41
|
-
3. Ensure REQ-xx list is clear and testable.
|
|
42
|
-
4. If requirements are provided in VI/JP: keep the original text in an appendix and add an EN translation (literal) for traceability.
|
|
43
|
-
5. Update `SHARED_PLANNING.md` + `QUALITY_CHECKLIST.md`.
|
|
44
|
-
6. Handoff:
|
|
45
|
-
- After Project Initiation -> suggest user run `/ba` to analyze requirements
|
|
46
|
-
- After PRD/Backlog -> suggest user run `/arch` to design architecture
|
|
47
|
-
|
|
48
|
-
## Optional: Condensed Upstream Input
|
|
49
|
-
|
|
50
|
-
If a basic product brief is provided before PM initiation, a condensed upstream
|
|
51
|
-
input package may be produced first using:
|
|
52
|
-
`toolkit/templates/docs/product/CONDENSED_UPSTREAM_INPUT_TEMPLATE.md`
|
|
53
|
-
|
|
54
|
-
The condensed output must carry the REQUIRES_HUMAN_REVIEW label (Gate H2) and
|
|
55
|
-
must be reviewed before the PM phase proceeds. Do not auto-advance to PM or BA
|
|
56
|
-
without explicit human confirmation. If the brief is outside the bounded domain,
|
|
57
|
-
stop and surface a boundary flag (Gate H1) rather than proceeding.
|
|
58
|
-
|
|
59
|
-
Deliver the condensed output as:
|
|
60
|
-
`docs/product/CONDENSED_UPSTREAM_INPUT_[FEATURE_KEY].md`
|
|
61
|
-
|
|
62
|
-
For approval/workflow domain briefs, apply the Approval/Workflow Domain
|
|
63
|
-
Extension defined in the template. The extended condensed package must include
|
|
64
|
-
the Role Matrix, State Set, State Transitions, and Policy And Approval Rules
|
|
65
|
-
sections, plus an Open Questions For Human Review section in place of the
|
|
66
|
-
standard Gaps section. Gate H3 (Policy Open Questions Review) applies to all
|
|
67
|
-
approval/workflow condensed outputs and requires explicit PM or maintainer review
|
|
68
|
-
of all open policy questions before the SPEC phase proceeds. Open questions must
|
|
69
|
-
not be silently dropped.
|
|
70
|
-
|
|
71
|
-
## Optional: Mailbox Delegation
|
|
72
|
-
|
|
73
|
-
Use `mailbox-dispatch` when PM needs bounded external-agent help without
|
|
74
|
-
opening a full orchestration platform loop.
|
|
75
|
-
|
|
76
|
-
Rules:
|
|
77
|
-
- keep PM planning local when the controller already has enough context
|
|
78
|
-
- delegate only one bounded phase at a time with exact include/exclude truth
|
|
79
|
-
- prefer Claude for controller-spec, wording-heavy review, and SDTK-SPEC shaping
|
|
80
|
-
- prefer Codex for code, tests, harness, or verification-heavy implementation
|
|
81
|
-
- review the formal artifact on disk before trusting raw console output
|
|
82
|
-
- keep governance/ai/agent-mailbox/runtime/ transient and out of feature commits
|
|
83
|
-
- run the post-issue mailbox retrospective before the next mailbox-driven issue
|
|
84
|
-
## Clarification And Decisions (PM responsibility)
|
|
85
|
-
- Collect OQ-xx items raised by BA/ARCH/DEV/QA in their respective artifacts.
|
|
86
|
-
- Try to resolve OQ-xx using existing docs and reasonable product/tech decisions.
|
|
87
|
-
- If still missing information from the original input: ask the user (final stakeholder) and record the answer as the resolution.
|
|
88
|
-
- Record decisions in PRD `Decision Log` and update OQ-xx `Resolution` fields in the originating docs.
|
|
1
|
+
---
|
|
2
|
+
name: pm
|
|
3
|
+
description: Product Manager + meta-orchestrator workflow for SDTK-SPEC. 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-SPEC Pipeline Rules (always apply)
|
|
7
|
+
1. Pipeline: PM Initiation 竊・BA Analysis 竊・PM Planning 竊・Architecture Design 竊・Development + Review 竊・QA Validation
|
|
8
|
+
2. After completing phase work: update SHARED_PLANNING.md + QUALITY_CHECKLIST.md
|
|
9
|
+
3. If unclear: log OQ-xx in artifact, escalate to PM (PM asks user if needed)
|
|
10
|
+
4. Traceability: REQ 竊・BR/UC/AC 竊・design 竊・backlog 竊・code/tests 竊・QA
|
|
11
|
+
5. Code review must be COMPLETE before QA phase can start
|
|
12
|
+
6. Do not skip phases. If inputs missing, ask focused questions.
|
|
13
|
+
|
|
14
|
+
## Prerequisites (verify before proceeding)
|
|
15
|
+
Read QUALITY_CHECKLIST.md and verify:
|
|
16
|
+
- Phase 1 (PM Init): No prerequisites required.
|
|
17
|
+
- Phase 2+ (PM Planning): BA Analysis gate must show all items [x] Done.
|
|
18
|
+
|
|
19
|
+
If prerequisites NOT met: report which gate is missing, suggest user run the prerequisite phase first.
|
|
20
|
+
|
|
21
|
+
## Current Context
|
|
22
|
+
- Config: !`node -e "try{process.stdout.write(require('fs').readFileSync('sdtk-spec.config.json','utf8'))}catch{process.stdout.write('{}')}"`
|
|
23
|
+
- Pipeline: !`node -e "try{process.stdout.write(require('fs').readFileSync('SHARED_PLANNING.md','utf8'))}catch{process.stdout.write('Not initialized')}"`
|
|
24
|
+
- Gates: !`node -e "try{process.stdout.write(require('fs').readFileSync('QUALITY_CHECKLIST.md','utf8'))}catch{process.stdout.write('Not initialized')}"`
|
|
25
|
+
- State: !`node -e "try{process.stdout.write(require('fs').readFileSync('.sdtk/orchestration-state.json','utf8'))}catch{process.stdout.write('{}')}"`
|
|
26
|
+
|
|
27
|
+
## Input
|
|
28
|
+
$ARGUMENTS
|
|
29
|
+
|
|
30
|
+
If no arguments provided, read current feature context from SHARED_PLANNING.md.
|
|
31
|
+
|
|
32
|
+
# SDTK-SPEC PM (Entry Point + Planning)
|
|
33
|
+
|
|
34
|
+
## Outputs
|
|
35
|
+
- Phase 1: `docs/product/PROJECT_INITIATION_[FEATURE_KEY].md`
|
|
36
|
+
- Phase 2+ (after BA spec): `docs/product/PRD_[FEATURE_KEY].md` + `docs/product/BACKLOG_[FEATURE_KEY].md`
|
|
37
|
+
|
|
38
|
+
## Process
|
|
39
|
+
1. Confirm `FEATURE_KEY` + `FEATURE_NAME` + Phase-1 scope in/out.
|
|
40
|
+
2. Create/update PM artifact(s).
|
|
41
|
+
3. Ensure REQ-xx list is clear and testable.
|
|
42
|
+
4. If requirements are provided in VI/JP: keep the original text in an appendix and add an EN translation (literal) for traceability.
|
|
43
|
+
5. Update `SHARED_PLANNING.md` + `QUALITY_CHECKLIST.md`.
|
|
44
|
+
6. Handoff:
|
|
45
|
+
- After Project Initiation -> suggest user run `/ba` to analyze requirements
|
|
46
|
+
- After PRD/Backlog -> suggest user run `/arch` to design architecture
|
|
47
|
+
|
|
48
|
+
## Optional: Condensed Upstream Input
|
|
49
|
+
|
|
50
|
+
If a basic product brief is provided before PM initiation, a condensed upstream
|
|
51
|
+
input package may be produced first using:
|
|
52
|
+
`toolkit/templates/docs/product/CONDENSED_UPSTREAM_INPUT_TEMPLATE.md`
|
|
53
|
+
|
|
54
|
+
The condensed output must carry the REQUIRES_HUMAN_REVIEW label (Gate H2) and
|
|
55
|
+
must be reviewed before the PM phase proceeds. Do not auto-advance to PM or BA
|
|
56
|
+
without explicit human confirmation. If the brief is outside the bounded domain,
|
|
57
|
+
stop and surface a boundary flag (Gate H1) rather than proceeding.
|
|
58
|
+
|
|
59
|
+
Deliver the condensed output as:
|
|
60
|
+
`docs/product/CONDENSED_UPSTREAM_INPUT_[FEATURE_KEY].md`
|
|
61
|
+
|
|
62
|
+
For approval/workflow domain briefs, apply the Approval/Workflow Domain
|
|
63
|
+
Extension defined in the template. The extended condensed package must include
|
|
64
|
+
the Role Matrix, State Set, State Transitions, and Policy And Approval Rules
|
|
65
|
+
sections, plus an Open Questions For Human Review section in place of the
|
|
66
|
+
standard Gaps section. Gate H3 (Policy Open Questions Review) applies to all
|
|
67
|
+
approval/workflow condensed outputs and requires explicit PM or maintainer review
|
|
68
|
+
of all open policy questions before the SPEC phase proceeds. Open questions must
|
|
69
|
+
not be silently dropped.
|
|
70
|
+
|
|
71
|
+
## Optional: Mailbox Delegation
|
|
72
|
+
|
|
73
|
+
Use `mailbox-dispatch` when PM needs bounded external-agent help without
|
|
74
|
+
opening a full orchestration platform loop.
|
|
75
|
+
|
|
76
|
+
Rules:
|
|
77
|
+
- keep PM planning local when the controller already has enough context
|
|
78
|
+
- delegate only one bounded phase at a time with exact include/exclude truth
|
|
79
|
+
- prefer Claude for controller-spec, wording-heavy review, and SDTK-SPEC shaping
|
|
80
|
+
- prefer Codex for code, tests, harness, or verification-heavy implementation
|
|
81
|
+
- review the formal artifact on disk before trusting raw console output
|
|
82
|
+
- keep governance/ai/agent-mailbox/runtime/ transient and out of feature commits
|
|
83
|
+
- run the post-issue mailbox retrospective before the next mailbox-driven issue
|
|
84
|
+
## Clarification And Decisions (PM responsibility)
|
|
85
|
+
- Collect OQ-xx items raised by BA/ARCH/DEV/QA in their respective artifacts.
|
|
86
|
+
- Try to resolve OQ-xx using existing docs and reasonable product/tech decisions.
|
|
87
|
+
- If still missing information from the original input: ask the user (final stakeholder) and record the answer as the resolution.
|
|
88
|
+
- Record decisions in PRD `Decision Log` and update OQ-xx `Resolution` fields in the originating docs.
|