@colin4k1024/tsp 2.4.5 → 2.4.7
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 +16 -20
- package/bin/lib/install-surface.js +3 -3
- package/bin/lib/source-installer.js +2 -2
- package/commands/team-help.md +2 -2
- package/commands/team-plan.md +1 -1
- package/commands/update-codemaps.md +3 -3
- package/manifests/install-components.json +1 -1
- package/manifests/install-modules.json +17 -3
- package/manifests/install-profiles.json +2 -0
- package/package.json +6 -3
- package/schemas/ecc-install-config.schema.json +6 -1
- package/schemas/install-modules.schema.json +4 -1
- package/scripts/codegraph-preflight.js +179 -0
- package/scripts/gitnexus-preflight.js +8 -0
- package/scripts/install-apply.js +10 -8
- package/scripts/install-codegraph.js +158 -0
- package/scripts/install-plan.js +28 -11
- package/scripts/lib/install/apply.js +256 -5
- package/scripts/lib/install/request.js +3 -2
- package/scripts/lib/install-audit-manifest.js +3 -0
- package/scripts/lib/install-executor.js +14 -5
- package/scripts/lib/install-lifecycle.js +2 -2
- package/scripts/lib/install-manifests.js +23 -4
- package/scripts/lib/install-targets/codex-home.js +187 -1
- package/scripts/lib/install-targets/opencode-home.js +135 -2
- package/scripts/lib/install-targets/registry.js +23 -1
- package/scripts/lib/release-health.js +19 -4
- package/scripts/lib/team-skills-data.json +6 -6
- package/scripts/release-health-summary.js +1 -1
- package/scripts/workflow-help.js +3 -3
- package/skills/codegraph/SKILL.md +57 -0
- package/skills/codegraph/agents/openai.yaml +4 -0
- package/docs/.vitepress/config.mts +0 -199
- package/docs/adr/ADR-001-doc-architecture-integration.md +0 -33
- package/docs/guides/README.md +0 -5
- package/docs/guides/installation.md +0 -33
- package/docs/guides/user-guide.md +0 -36
- package/docs/index.md +0 -65
- package/docs/memory/backlog.md +0 -10
- package/docs/memory/decisions.md +0 -43
- package/docs/memory/lessons-learned.md +0 -87
- package/docs/plans/2026-04-03-python-remnants-audit.md +0 -265
- package/docs/plans/2026-04-03-scripts-python-to-js-migration.md +0 -372
- package/docs/plans/2026-04-03-solo-delivery-execution-checklist.md +0 -413
- package/docs/plans/2026-04-03-solo-delivery-gap-plan.md +0 -377
- package/docs/plans/2026-04-03-team-skills-workflow-gates.md +0 -548
- package/docs/plans/2026-04-21-open-source-readiness-gap-plan.md +0 -217
- package/docs/plans/llm-surface-reduction-audit.md +0 -147
- package/docs/plans/llm-surface-reduction-execution-checklist.md +0 -217
- package/docs/plans/llm-surface-reduction-execution-history.md +0 -124
- package/docs/plans/team-skills-platform-migration.md +0 -54
- package/docs/presentation/README.md +0 -42
- package/docs/presentation/audience-presentation-route-map.md +0 -84
- package/docs/presentation/executive-briefing-talk-track.md +0 -50
- package/docs/presentation/generate_capability_matrix.py +0 -396
- package/docs/presentation/generate_ppt.py +0 -354
- package/docs/presentation/implementation-onboarding-brief.md +0 -38
- package/docs/presentation/presentation-talk-track.md +0 -97
- package/docs/presentation/vertical-scenario-route-map.md +0 -99
- package/docs/presentation/workshop-facilitator-guide.md +0 -47
- package/docs/runbooks/actionlint-workflow-gates.md +0 -80
- package/docs/runbooks/agent-governance.md +0 -131
- package/docs/runbooks/ai-eval-platform-demo-execution-log.md +0 -147
- package/docs/runbooks/ai-eval-platform-demo-script.md +0 -136
- package/docs/runbooks/ai-eval-platform-walkthrough.md +0 -113
- package/docs/runbooks/ai-pr-review-automation.md +0 -56
- package/docs/runbooks/api-breaking-change-gates.md +0 -58
- package/docs/runbooks/api-design-evolution-walkthrough.md +0 -42
- package/docs/runbooks/api-lint-gates.md +0 -57
- package/docs/runbooks/api-mocking-strategy-and-lifecycle-guide.md +0 -47
- package/docs/runbooks/architect-daily-operations.md +0 -63
- package/docs/runbooks/architect-design-conversation-example.md +0 -83
- package/docs/runbooks/artifact-attestation-gates.md +0 -75
- package/docs/runbooks/artifact-persistence.md +0 -257
- package/docs/runbooks/backend-engineer-daily-operations.md +0 -63
- package/docs/runbooks/batch-optimization-completion-checklist.md +0 -104
- package/docs/runbooks/biz-service-designer-end-to-end-conversation-example.md +0 -5
- package/docs/runbooks/biz-service-designer-toolkit.md +0 -5
- package/docs/runbooks/bug-fix-complete-walkthrough.md +0 -60
- package/docs/runbooks/build-failure-recovery-walkthrough.md +0 -40
- package/docs/runbooks/canary-decision-matrix.md +0 -41
- package/docs/runbooks/canary-staging-release-walkthrough.md +0 -46
- package/docs/runbooks/checkov-iac-gates.md +0 -104
- package/docs/runbooks/claude-code-review-workflow.md +0 -72
- package/docs/runbooks/claude-conversation-prompt-recipes.md +0 -132
- package/docs/runbooks/claude-end-to-end-conversation-example.md +0 -198
- package/docs/runbooks/claude-feature-development-guide.md +0 -112
- package/docs/runbooks/claude-quick-start.md +0 -227
- package/docs/runbooks/claude-usage-scenarios.md +0 -176
- package/docs/runbooks/code-review-collaboration-walkthrough.md +0 -65
- package/docs/runbooks/codeql-pr-security-gates.md +0 -64
- package/docs/runbooks/codex-end-to-end-conversation-example.md +0 -166
- package/docs/runbooks/codex-multi-agent-orchestration.md +0 -65
- package/docs/runbooks/codex-parallel-prompt-recipes.md +0 -131
- package/docs/runbooks/codex-quick-start.md +0 -223
- package/docs/runbooks/codex-usage-scenarios.md +0 -168
- package/docs/runbooks/codex-workflow-essentials.md +0 -88
- package/docs/runbooks/command-and-capability-matrix.md +0 -162
- package/docs/runbooks/conftest-policy-gates.md +0 -84
- package/docs/runbooks/consumer-driven-contract-testing-with-mock-alignment.md +0 -45
- package/docs/runbooks/contract-testing-playbook.md +0 -78
- package/docs/runbooks/cosign-signing-gates.md +0 -71
- package/docs/runbooks/cross-role-issue-triage-walkthrough.md +0 -47
- package/docs/runbooks/cursor-quick-start.md +0 -123
- package/docs/runbooks/custom-overlay.md +0 -115
- package/docs/runbooks/data-ml-pipeline-demo-execution-log.md +0 -141
- package/docs/runbooks/data-ml-pipeline-demo-script.md +0 -102
- package/docs/runbooks/data-ml-pipeline-walkthrough.md +0 -119
- package/docs/runbooks/data-observability-quality-demo-execution-log.md +0 -36
- package/docs/runbooks/data-observability-quality-demo-script.md +0 -42
- package/docs/runbooks/data-observability-quality-walkthrough.md +0 -86
- package/docs/runbooks/demo-deliverables-overview.md +0 -278
- package/docs/runbooks/demo-execution-log.md +0 -530
- package/docs/runbooks/demo-scenario.md +0 -129
- package/docs/runbooks/dependency-review-gates.md +0 -63
- package/docs/runbooks/dependency-update-automation.md +0 -83
- package/docs/runbooks/design-md-workflow.md +0 -185
- package/docs/runbooks/devops-engineer-daily-operations.md +0 -60
- package/docs/runbooks/devops-release-conversation-example.md +0 -88
- package/docs/runbooks/doc-architecture-integration.md +0 -59
- package/docs/runbooks/doc-architecture-quick-start.md +0 -122
- package/docs/runbooks/document-execution-audit.md +0 -32
- package/docs/runbooks/documentation-update-walkthrough.md +0 -37
- package/docs/runbooks/ecc-harness-usage.md +0 -93
- package/docs/runbooks/error-experience-usage.md +0 -116
- package/docs/runbooks/evolution-usage.md +0 -162
- package/docs/runbooks/executive-value-one-page.md +0 -55
- package/docs/runbooks/external-capability-approval-and-enablement-workflow.md +0 -39
- package/docs/runbooks/external-capability-intake.md +0 -160
- package/docs/runbooks/first-team-command-60-seconds.md +0 -96
- package/docs/runbooks/first-team-workflow-walkthrough.md +0 -245
- package/docs/runbooks/frontend-backend-integration-acceptance-checklist.md +0 -46
- package/docs/runbooks/frontend-backend-parallel-integration-walkthrough.md +0 -48
- package/docs/runbooks/frontend-bugfix-one-page.md +0 -82
- package/docs/runbooks/frontend-engineer-daily-operations.md +0 -60
- package/docs/runbooks/frontend-enterprise-style-profile.md +0 -5
- package/docs/runbooks/frontend-governance.md +0 -47
- package/docs/runbooks/frontend-refactor-walkthrough.md +0 -42
- package/docs/runbooks/git-pr-workflow.md +0 -63
- package/docs/runbooks/github-actions-supply-chain-demo-execution-log.md +0 -158
- package/docs/runbooks/github-actions-supply-chain-demo-script.md +0 -150
- package/docs/runbooks/github-actions-supply-chain-walkthrough.md +0 -117
- package/docs/runbooks/github-token-permissions-baseline.md +0 -92
- package/docs/runbooks/gitlab-manual-pipeline-release.md +0 -5
- package/docs/runbooks/gitlab-release-integration-playbook.md +0 -5
- package/docs/runbooks/gitnexus-code-intelligence-usage.md +0 -133
- package/docs/runbooks/graphify-knowledge-graph-usage.md +0 -88
- package/docs/runbooks/handoff-filling-guide-with-examples.md +0 -70
- package/docs/runbooks/handoff-governance.md +0 -250
- package/docs/runbooks/helm-unittest-playbook.md +0 -101
- package/docs/runbooks/hotfix-emergency-release-walkthrough.md +0 -60
- package/docs/runbooks/iac-kubernetes-platform-demo-execution-log.md +0 -144
- package/docs/runbooks/iac-kubernetes-platform-demo-script.md +0 -130
- package/docs/runbooks/iac-kubernetes-platform-walkthrough.md +0 -120
- package/docs/runbooks/implementation-onboarding-reading-path.md +0 -67
- package/docs/runbooks/in-toto-attestation-framework.md +0 -94
- package/docs/runbooks/incident-severity-triage-tree.md +0 -43
- package/docs/runbooks/incident-triage-one-page.md +0 -65
- package/docs/runbooks/internal-developer-platform-demo-execution-log.md +0 -36
- package/docs/runbooks/internal-developer-platform-demo-script.md +0 -42
- package/docs/runbooks/internal-developer-platform-walkthrough.md +0 -91
- package/docs/runbooks/karpathy-guidelines-usage.md +0 -27
- package/docs/runbooks/kubeconform-schema-gates.md +0 -100
- package/docs/runbooks/kubectl-server-dry-run-gates.md +0 -103
- package/docs/runbooks/kyverno-policy-gates.md +0 -90
- package/docs/runbooks/langfuse-and-observability-integration-guide.md +0 -43
- package/docs/runbooks/langfuse-coding-trace.md +0 -44
- package/docs/runbooks/mobile-miniapp-delivery-walkthrough.md +0 -112
- package/docs/runbooks/mobile-miniapp-demo-execution-log.md +0 -139
- package/docs/runbooks/mobile-miniapp-demo-script.md +0 -129
- package/docs/runbooks/multi-service-backend-integration-walkthrough.md +0 -61
- package/docs/runbooks/open-design-integration.md +0 -163
- package/docs/runbooks/open-source-release-checklist.md +0 -90
- package/docs/runbooks/opencode-quick-start.md +0 -128
- package/docs/runbooks/parallel-development-coordination-walkthrough.md +0 -47
- package/docs/runbooks/parallel-execution-usage.md +0 -179
- package/docs/runbooks/platform-capability-demo-execution-log.md +0 -184
- package/docs/runbooks/platform-capability-demo-script.md +0 -192
- package/docs/runbooks/plugin-extension-platform-demo-execution-log.md +0 -136
- package/docs/runbooks/plugin-extension-platform-demo-script.md +0 -102
- package/docs/runbooks/plugin-extension-platform-walkthrough.md +0 -111
- package/docs/runbooks/policy-controller-gates.md +0 -75
- package/docs/runbooks/post-rollback-verification-checklist.md +0 -37
- package/docs/runbooks/pre-release-checklist.md +0 -50
- package/docs/runbooks/product-manager-clarification-conversation-example.md +0 -90
- package/docs/runbooks/product-manager-daily-operations.md +0 -60
- package/docs/runbooks/production-incident-response-walkthrough.md +0 -50
- package/docs/runbooks/project-claude-design-rationale.md +0 -188
- package/docs/runbooks/project-manager-daily-operations.md +0 -61
- package/docs/runbooks/project-manager-planning-conversation-example.md +0 -82
- package/docs/runbooks/project-onboarding.md +0 -452
- package/docs/runbooks/qa-engineer-daily-operations.md +0 -63
- package/docs/runbooks/qa-review-conversation-example.md +0 -87
- package/docs/runbooks/release-closure-one-page.md +0 -65
- package/docs/runbooks/release-governance-reading-path.md +0 -56
- package/docs/runbooks/release-notes-automation.md +0 -48
- package/docs/runbooks/release-rollback-recovery-walkthrough.md +0 -47
- package/docs/runbooks/requirement-clarity-and-scope-walkthrough.md +0 -46
- package/docs/runbooks/reviewdog-pr-gates.md +0 -49
- package/docs/runbooks/role-prompt-recipes.md +0 -130
- package/docs/runbooks/rtk-integration-intake.md +0 -45
- package/docs/runbooks/rtk-token-optimization-usage.md +0 -107
- package/docs/runbooks/runner-egress-hardening.md +0 -81
- package/docs/runbooks/runtime-capabilities-overview.md +0 -113
- package/docs/runbooks/sbom-generation-gates.md +0 -71
- package/docs/runbooks/scorecard-supply-chain-gates.md +0 -82
- package/docs/runbooks/secret-scanning-gates.md +0 -85
- package/docs/runbooks/security-compliance-platform-demo-execution-log.md +0 -36
- package/docs/runbooks/security-compliance-platform-demo-script.md +0 -49
- package/docs/runbooks/security-compliance-platform-walkthrough.md +0 -98
- package/docs/runbooks/slsa-generator-patterns.md +0 -73
- package/docs/runbooks/slsa-verification-gates.md +0 -75
- package/docs/runbooks/solo-delivery-mode.md +0 -142
- package/docs/runbooks/solo-delivery-one-page.md +0 -111
- package/docs/runbooks/specialist-commands-playbook.md +0 -85
- package/docs/runbooks/sub-agent-invocation-map.md +0 -144
- package/docs/runbooks/system-architecture-design-walkthrough.md +0 -49
- package/docs/runbooks/team-closeout-example.md +0 -73
- package/docs/runbooks/team-command-output-contracts.md +0 -358
- package/docs/runbooks/team-commands-quick-prompts.md +0 -125
- package/docs/runbooks/team-execute-example.md +0 -63
- package/docs/runbooks/team-handoff-example.md +0 -49
- package/docs/runbooks/team-intake-example.md +0 -70
- package/docs/runbooks/team-plan-example.md +0 -62
- package/docs/runbooks/team-release-example.md +0 -63
- package/docs/runbooks/team-review-example.md +0 -61
- package/docs/runbooks/team-skills-test-run.md +0 -184
- package/docs/runbooks/team-skills-usage.md +0 -336
- package/docs/runbooks/team-training-reading-path.md +0 -64
- package/docs/runbooks/tech-lead-closure-conversation-example.md +0 -78
- package/docs/runbooks/tech-lead-daily-operations.md +0 -67
- package/docs/runbooks/trivy-security-gates.md +0 -79
- package/docs/runbooks/troubleshooting.md +0 -234
- package/docs/runbooks/vertical-scenario-capability-matrix.md +0 -107
- package/docs/runbooks/witness-policy-gates.md +0 -78
- package/docs/runbooks/zizmor-workflow-audits.md +0 -81
|
@@ -1,548 +0,0 @@
|
|
|
1
|
-
# Team Skills Workflow Gates Implementation Plan
|
|
2
|
-
|
|
3
|
-
> **For Claude:** REQUIRED SUB-SKILL: Use superpowers:executing-plans to implement this plan task-by-task.
|
|
4
|
-
> Historical snapshot: this plan records an earlier Python-first implementation path.
|
|
5
|
-
> Command mapping for current runtime:
|
|
6
|
-
> `python3 scripts/build_platform_artifacts.py` -> `node scripts/build-platform-artifacts.js`
|
|
7
|
-
> `python3 scripts/validate_library.py` -> `node scripts/validate-library.js`
|
|
8
|
-
|
|
9
|
-
**Goal:** Prevent Team Skills from entering `/team-plan` or `/team-execute` before requirement analysis, dynamic discussion, design convergence, and structured handoff are complete.
|
|
10
|
-
|
|
11
|
-
**Architecture:** Promote workflow governance from documentation-only guidance into executable gates. The canonical source stays in `roles/*/role.yaml` and runbooks, but generated commands, generated role prompts, and a new workflow validator will enforce stage transitions before planning and execution can continue.
|
|
12
|
-
|
|
13
|
-
**Tech Stack:** Python generation scripts (historical context), Markdown templates, role YAML, command docs, runbook docs, repository validation scripts.
|
|
14
|
-
|
|
15
|
-
---
|
|
16
|
-
|
|
17
|
-
### Task 1: Define the target workflow state machine
|
|
18
|
-
|
|
19
|
-
**Files:**
|
|
20
|
-
- Modify: `docs/runbooks/sub-agent-invocation-map.md`
|
|
21
|
-
- Modify: `docs/runbooks/team-command-output-contracts.md`
|
|
22
|
-
- Modify: `rules/team-operating-model.md`
|
|
23
|
-
- Reference: `roles/tech-lead/role.yaml`
|
|
24
|
-
|
|
25
|
-
**Step 1: Add explicit workflow phases**
|
|
26
|
-
|
|
27
|
-
Define the required phase sequence and transition rules:
|
|
28
|
-
|
|
29
|
-
- `intake`
|
|
30
|
-
- `requirement-challenge`
|
|
31
|
-
- `design-swarm`
|
|
32
|
-
- `design-review`
|
|
33
|
-
- `handoff-ready`
|
|
34
|
-
- `execute`
|
|
35
|
-
- `review`
|
|
36
|
-
- `release`
|
|
37
|
-
|
|
38
|
-
Each phase must list:
|
|
39
|
-
- required artifacts
|
|
40
|
-
- required participants
|
|
41
|
-
- required challenge records
|
|
42
|
-
- allowed next phases
|
|
43
|
-
- blocking conditions
|
|
44
|
-
|
|
45
|
-
**Step 2: Define transition blockers**
|
|
46
|
-
|
|
47
|
-
Document that these conditions block transition:
|
|
48
|
-
|
|
49
|
-
- no `Requirement Challenge Session Log`
|
|
50
|
-
- no dynamic discussion output
|
|
51
|
-
- no `Design Review Board` conclusion
|
|
52
|
-
- no `/handoff`
|
|
53
|
-
- no downstream challenge record
|
|
54
|
-
- missing required artifacts for current phase
|
|
55
|
-
|
|
56
|
-
**Step 3: Make `/team-plan` and `/team-execute` phase-aware**
|
|
57
|
-
|
|
58
|
-
Update the docs so:
|
|
59
|
-
|
|
60
|
-
- `/team-plan` produces planning artifacts but cannot mark work as implementation-ready until challenge and design review are complete
|
|
61
|
-
- `/team-execute` requires workflow state `handoff-ready`
|
|
62
|
-
|
|
63
|
-
**Step 4: Verify documentation consistency**
|
|
64
|
-
|
|
65
|
-
Run:
|
|
66
|
-
|
|
67
|
-
```bash
|
|
68
|
-
rg -n "Requirement Challenge Session|Design Review Board|handoff-ready|dynamic discussion|design-swarm" docs/runbooks rules
|
|
69
|
-
```
|
|
70
|
-
|
|
71
|
-
Expected:
|
|
72
|
-
- the new workflow phases and blockers appear in the main governance docs
|
|
73
|
-
|
|
74
|
-
**Step 5: Commit**
|
|
75
|
-
|
|
76
|
-
```bash
|
|
77
|
-
git add docs/runbooks/sub-agent-invocation-map.md docs/runbooks/team-command-output-contracts.md rules/team-operating-model.md
|
|
78
|
-
git commit -m "docs: define workflow gates for team skills"
|
|
79
|
-
```
|
|
80
|
-
|
|
81
|
-
### Task 2: Extend canonical role schema with enforceable gate metadata
|
|
82
|
-
|
|
83
|
-
**Files:**
|
|
84
|
-
- Modify: `roles/tech-lead/role.yaml`
|
|
85
|
-
- Modify: `roles/architect/role.yaml`
|
|
86
|
-
- Modify: `roles/backend-engineer/role.yaml`
|
|
87
|
-
- Modify: `roles/frontend-engineer/role.yaml`
|
|
88
|
-
- Modify: `roles/qa-engineer/role.yaml`
|
|
89
|
-
- Modify: `roles/project-manager/role.yaml`
|
|
90
|
-
- Modify: `roles/product-manager/role.yaml`
|
|
91
|
-
- Modify: `roles/devops-engineer/role.yaml`
|
|
92
|
-
- Modify: `scripts/team_skills_platform.py`
|
|
93
|
-
|
|
94
|
-
**Step 1: Add normalized gate fields to role YAML**
|
|
95
|
-
|
|
96
|
-
Introduce structured fields such as:
|
|
97
|
-
|
|
98
|
-
```json
|
|
99
|
-
"workflow_gates": {
|
|
100
|
-
"requires_input_artifacts": ["prd", "delivery-plan", "handoff"],
|
|
101
|
-
"requires_phase": "design-review",
|
|
102
|
-
"requires_handoff": true,
|
|
103
|
-
"requires_downstream_challenge": true,
|
|
104
|
-
"block_on_missing": [
|
|
105
|
-
"requirement_challenge_log",
|
|
106
|
-
"design_review_conclusion"
|
|
107
|
-
]
|
|
108
|
-
}
|
|
109
|
-
```
|
|
110
|
-
|
|
111
|
-
Use role-specific values instead of one shared default.
|
|
112
|
-
|
|
113
|
-
**Step 2: Normalize challenge metadata**
|
|
114
|
-
|
|
115
|
-
Keep `upstream_challenge`, but ensure every role has:
|
|
116
|
-
|
|
117
|
-
- trigger
|
|
118
|
-
- mandatory questions
|
|
119
|
-
- required output location
|
|
120
|
-
- blocking behavior
|
|
121
|
-
|
|
122
|
-
**Step 3: Update the Python loader**
|
|
123
|
-
|
|
124
|
-
Teach `scripts/team_skills_platform.py` to:
|
|
125
|
-
|
|
126
|
-
- validate the new schema
|
|
127
|
-
- fail generation when mandatory gate fields are absent
|
|
128
|
-
- expose normalized gate values to templates
|
|
129
|
-
|
|
130
|
-
**Step 4: Verify schema completeness**
|
|
131
|
-
|
|
132
|
-
Run:
|
|
133
|
-
|
|
134
|
-
```bash
|
|
135
|
-
python3 scripts/build_platform_artifacts.py (historical; current: node scripts/build-platform-artifacts.js) --check
|
|
136
|
-
```
|
|
137
|
-
|
|
138
|
-
Expected:
|
|
139
|
-
- generation check passes with the new schema
|
|
140
|
-
|
|
141
|
-
**Step 5: Commit**
|
|
142
|
-
|
|
143
|
-
```bash
|
|
144
|
-
git add roles scripts/team_skills_platform.py
|
|
145
|
-
git commit -m "feat: add enforceable workflow gate metadata to role schema"
|
|
146
|
-
```
|
|
147
|
-
|
|
148
|
-
### Task 3: Render hard gates into generated role prompts
|
|
149
|
-
|
|
150
|
-
**Files:**
|
|
151
|
-
- Modify: `templates/system/agent-role.md.tmpl`
|
|
152
|
-
- Modify: `scripts/team_skills_platform.py`
|
|
153
|
-
- Generated: `agents/roles/*.md`
|
|
154
|
-
|
|
155
|
-
**Step 1: Add a dedicated gate section to role prompts**
|
|
156
|
-
|
|
157
|
-
Render these blocks into every generated role prompt:
|
|
158
|
-
|
|
159
|
-
- workflow prerequisites
|
|
160
|
-
- mandatory challenge questions
|
|
161
|
-
- stop conditions
|
|
162
|
-
- escalation rules
|
|
163
|
-
- explicit “do not continue” instructions
|
|
164
|
-
|
|
165
|
-
**Step 2: Make stop conditions operational**
|
|
166
|
-
|
|
167
|
-
The generated prompt should contain language like:
|
|
168
|
-
|
|
169
|
-
- if required artifacts are missing, stop and request them
|
|
170
|
-
- if challenge log is missing, stop
|
|
171
|
-
- if design review is incomplete, stop
|
|
172
|
-
- if no handoff exists, stop
|
|
173
|
-
|
|
174
|
-
**Step 3: Preserve existing quality gates**
|
|
175
|
-
|
|
176
|
-
Do not replace `质量门禁`; add a stronger `执行前检查` or `硬门禁` section ahead of execution instructions.
|
|
177
|
-
|
|
178
|
-
**Step 4: Regenerate and inspect prompts**
|
|
179
|
-
|
|
180
|
-
Run:
|
|
181
|
-
|
|
182
|
-
```bash
|
|
183
|
-
python3 scripts/build_platform_artifacts.py (historical; current: node scripts/build-platform-artifacts.js)
|
|
184
|
-
rg -n "缺少|停止|handoff|Requirement Challenge Session|Design Review Board|下游质疑" agents/roles
|
|
185
|
-
```
|
|
186
|
-
|
|
187
|
-
Expected:
|
|
188
|
-
- generated role prompts now include explicit blocking language
|
|
189
|
-
|
|
190
|
-
**Step 5: Commit**
|
|
191
|
-
|
|
192
|
-
```bash
|
|
193
|
-
git add templates/system/agent-role.md.tmpl scripts/team_skills_platform.py agents/roles
|
|
194
|
-
git commit -m "feat: render workflow stop-gates into generated role prompts"
|
|
195
|
-
```
|
|
196
|
-
|
|
197
|
-
### Task 4: Rewrite `/team-plan` as a gated design-convergence command
|
|
198
|
-
|
|
199
|
-
**Files:**
|
|
200
|
-
- Modify: `commands/team-plan.md`
|
|
201
|
-
- Modify: command definition in `scripts/team_skills_platform.py`
|
|
202
|
-
- Generated: `commands/team-plan.md`
|
|
203
|
-
|
|
204
|
-
**Step 1: Change `/team-plan` output contract**
|
|
205
|
-
|
|
206
|
-
Make `/team-plan` produce these sections in order:
|
|
207
|
-
|
|
208
|
-
1. readiness check
|
|
209
|
-
2. dynamic discussion group
|
|
210
|
-
3. Requirement Challenge Session Log
|
|
211
|
-
4. parallel design outputs
|
|
212
|
-
5. Design Review Board conclusion
|
|
213
|
-
6. delivery plan
|
|
214
|
-
7. handoff requirements for execute
|
|
215
|
-
|
|
216
|
-
**Step 2: Make dynamic grouping explicit**
|
|
217
|
-
|
|
218
|
-
Add a required matrix like:
|
|
219
|
-
|
|
220
|
-
| Trigger | Required roles |
|
|
221
|
-
|---------|----------------|
|
|
222
|
-
| backend/data/integration | tech-lead + architect + backend-engineer + project-manager |
|
|
223
|
-
| UI/frontend | tech-lead + product-manager + ui-ux-designer + frontend-engineer |
|
|
224
|
-
| fullstack/core flow | tech-lead + product-manager + architect + frontend-engineer + backend-engineer + project-manager |
|
|
225
|
-
| release/env risk | add devops-engineer |
|
|
226
|
-
|
|
227
|
-
**Step 3: Require challenge completion before plan freeze**
|
|
228
|
-
|
|
229
|
-
State clearly that delivery planning cannot be marked complete until:
|
|
230
|
-
|
|
231
|
-
- at least 3 core assumptions are challenged
|
|
232
|
-
- every required role returns a challenge result
|
|
233
|
-
- tech-lead writes a convergence decision
|
|
234
|
-
|
|
235
|
-
**Step 4: Keep parallel design, but move it after challenge**
|
|
236
|
-
|
|
237
|
-
Parallel design stays, but only after discussion framing is complete.
|
|
238
|
-
|
|
239
|
-
**Step 5: Regenerate and inspect**
|
|
240
|
-
|
|
241
|
-
Run:
|
|
242
|
-
|
|
243
|
-
```bash
|
|
244
|
-
python3 scripts/build_platform_artifacts.py (historical; current: node scripts/build-platform-artifacts.js)
|
|
245
|
-
sed -n '1,220p' commands/team-plan.md
|
|
246
|
-
```
|
|
247
|
-
|
|
248
|
-
Expected:
|
|
249
|
-
- `/team-plan` now reads like a gated convergence workflow, not a direct planning shortcut
|
|
250
|
-
|
|
251
|
-
**Step 6: Commit**
|
|
252
|
-
|
|
253
|
-
```bash
|
|
254
|
-
git add commands/team-plan.md scripts/team_skills_platform.py
|
|
255
|
-
git commit -m "feat: gate team-plan with challenge and design convergence"
|
|
256
|
-
```
|
|
257
|
-
|
|
258
|
-
### Task 5: Rewrite `/team-execute` to require readiness proof
|
|
259
|
-
|
|
260
|
-
**Files:**
|
|
261
|
-
- Modify: `commands/team-execute.md`
|
|
262
|
-
- Modify: command definition in `scripts/team_skills_platform.py`
|
|
263
|
-
- Generated: `commands/team-execute.md`
|
|
264
|
-
|
|
265
|
-
**Step 1: Add prerequisite checklist**
|
|
266
|
-
|
|
267
|
-
Before implementation, require proof of:
|
|
268
|
-
|
|
269
|
-
- `prd.md`
|
|
270
|
-
- `delivery-plan.md`
|
|
271
|
-
- `arch-design.md` when applicable
|
|
272
|
-
- `Requirement Challenge Session Log`
|
|
273
|
-
- `Design Review Board` conclusion
|
|
274
|
-
- latest `/handoff`
|
|
275
|
-
- downstream challenge record
|
|
276
|
-
|
|
277
|
-
**Step 2: Refuse execution if prerequisites are missing**
|
|
278
|
-
|
|
279
|
-
Add explicit blocking instructions:
|
|
280
|
-
|
|
281
|
-
- do not start code changes
|
|
282
|
-
- do not produce implementation steps
|
|
283
|
-
- return missing prerequisites and next owner
|
|
284
|
-
|
|
285
|
-
**Step 3: Force execute to start from handoff review**
|
|
286
|
-
|
|
287
|
-
The first execution step should be:
|
|
288
|
-
|
|
289
|
-
- read handoff
|
|
290
|
-
- write downstream challenge
|
|
291
|
-
- confirm design acceptance or escalate
|
|
292
|
-
|
|
293
|
-
Only then can implementation begin.
|
|
294
|
-
|
|
295
|
-
**Step 4: Regenerate and inspect**
|
|
296
|
-
|
|
297
|
-
Run:
|
|
298
|
-
|
|
299
|
-
```bash
|
|
300
|
-
python3 scripts/build_platform_artifacts.py (historical; current: node scripts/build-platform-artifacts.js)
|
|
301
|
-
sed -n '1,220p' commands/team-execute.md
|
|
302
|
-
```
|
|
303
|
-
|
|
304
|
-
Expected:
|
|
305
|
-
- `/team-execute` now requires readiness proof instead of assuming readiness
|
|
306
|
-
|
|
307
|
-
**Step 5: Commit**
|
|
308
|
-
|
|
309
|
-
```bash
|
|
310
|
-
git add commands/team-execute.md scripts/team_skills_platform.py
|
|
311
|
-
git commit -m "feat: require readiness proof before team-execute"
|
|
312
|
-
```
|
|
313
|
-
|
|
314
|
-
### Task 6: Turn handoff into a formal phase-transition artifact
|
|
315
|
-
|
|
316
|
-
**Files:**
|
|
317
|
-
- Modify: `commands/handoff.md`
|
|
318
|
-
- Modify: `rules/handoff-contract.md`
|
|
319
|
-
- Modify: `docs/runbooks/handoff-governance.md`
|
|
320
|
-
- Modify: `docs/runbooks/team-command-output-contracts.md`
|
|
321
|
-
|
|
322
|
-
**Step 1: Add phase-transition semantics**
|
|
323
|
-
|
|
324
|
-
Document that `/handoff` is not just a summary. It is the required transition proof between role-owned phases.
|
|
325
|
-
|
|
326
|
-
**Step 2: Add readiness fields**
|
|
327
|
-
|
|
328
|
-
Require fields such as:
|
|
329
|
-
|
|
330
|
-
- `current_phase`
|
|
331
|
-
- `target_phase`
|
|
332
|
-
- `readiness_status`
|
|
333
|
-
- `blocking_items`
|
|
334
|
-
- `accepted_by`
|
|
335
|
-
- `downstream_challenge_record`
|
|
336
|
-
|
|
337
|
-
**Step 3: Add rejection behavior**
|
|
338
|
-
|
|
339
|
-
Document that downstream can:
|
|
340
|
-
|
|
341
|
-
- accept
|
|
342
|
-
- request clarification
|
|
343
|
-
- reject and return
|
|
344
|
-
- escalate to tech-lead
|
|
345
|
-
|
|
346
|
-
**Step 4: Verify consistency**
|
|
347
|
-
|
|
348
|
-
Run:
|
|
349
|
-
|
|
350
|
-
```bash
|
|
351
|
-
rg -n "readiness_status|target_phase|accepted_by|downstream_challenge_record" commands rules docs/runbooks
|
|
352
|
-
```
|
|
353
|
-
|
|
354
|
-
Expected:
|
|
355
|
-
- handoff docs consistently define the new transition semantics
|
|
356
|
-
|
|
357
|
-
**Step 5: Commit**
|
|
358
|
-
|
|
359
|
-
```bash
|
|
360
|
-
git add commands/handoff.md rules/handoff-contract.md docs/runbooks/handoff-governance.md docs/runbooks/team-command-output-contracts.md
|
|
361
|
-
git commit -m "feat: make handoff a formal workflow transition artifact"
|
|
362
|
-
```
|
|
363
|
-
|
|
364
|
-
### Task 7: Add a machine-checkable workflow validator
|
|
365
|
-
|
|
366
|
-
**Files:**
|
|
367
|
-
- Create: `scripts/validate_workflow_state.py`
|
|
368
|
-
- Create or Modify: `tests/` or `scripts/` validation tests matching repo conventions
|
|
369
|
-
- Modify: `scripts/validate_library.py` (historical; current path: `scripts/validate-library.js`)
|
|
370
|
-
- Modify: `docs/runbooks/team-skills-usage.md`
|
|
371
|
-
|
|
372
|
-
**Step 1: Implement validator inputs**
|
|
373
|
-
|
|
374
|
-
The validator should inspect:
|
|
375
|
-
|
|
376
|
-
- artifact directory contents
|
|
377
|
-
- handoff files
|
|
378
|
-
- required frontmatter
|
|
379
|
-
- presence of challenge/design-review sections
|
|
380
|
-
- phase transition legality
|
|
381
|
-
|
|
382
|
-
**Step 2: Implement failure modes**
|
|
383
|
-
|
|
384
|
-
Examples:
|
|
385
|
-
|
|
386
|
-
- execute requested without handoff
|
|
387
|
-
- design review missing for fullstack task
|
|
388
|
-
- downstream challenge missing
|
|
389
|
-
- plan marked ready while blockers remain
|
|
390
|
-
|
|
391
|
-
**Step 3: Integrate with repository validation**
|
|
392
|
-
|
|
393
|
-
Make `python3 scripts/validate_library.py (historical; current: node scripts/validate-library.js)` call the workflow validator against representative examples or fixtures.
|
|
394
|
-
|
|
395
|
-
**Step 4: Verify**
|
|
396
|
-
|
|
397
|
-
Run:
|
|
398
|
-
|
|
399
|
-
```bash
|
|
400
|
-
python3 scripts/validate_library.py (historical; current: node scripts/validate-library.js)
|
|
401
|
-
```
|
|
402
|
-
|
|
403
|
-
Expected:
|
|
404
|
-
- validator passes on valid examples
|
|
405
|
-
- validator fails on broken fixtures
|
|
406
|
-
|
|
407
|
-
**Step 5: Commit**
|
|
408
|
-
|
|
409
|
-
```bash
|
|
410
|
-
git add scripts/validate_workflow_state.py scripts/validate_library.py docs/runbooks/team-skills-usage.md
|
|
411
|
-
git commit -m "feat: add workflow-state validation for team skills"
|
|
412
|
-
```
|
|
413
|
-
|
|
414
|
-
### Task 8: Add fixtures and regression tests for legal and illegal flows
|
|
415
|
-
|
|
416
|
-
**Files:**
|
|
417
|
-
- Create: `tests/fixtures/workflow-valid/` or repo-appropriate fixture path
|
|
418
|
-
- Create: `tests/fixtures/workflow-invalid-missing-handoff/`
|
|
419
|
-
- Create: `tests/fixtures/workflow-invalid-missing-challenge/`
|
|
420
|
-
- Create: `tests/fixtures/workflow-invalid-missing-design-review/`
|
|
421
|
-
- Create: matching tests in repo test convention
|
|
422
|
-
|
|
423
|
-
**Step 1: Build a minimal valid fixture**
|
|
424
|
-
|
|
425
|
-
Include:
|
|
426
|
-
|
|
427
|
-
- `prd.md`
|
|
428
|
-
- `delivery-plan.md`
|
|
429
|
-
- `arch-design.md` where needed
|
|
430
|
-
- a valid handoff
|
|
431
|
-
- challenge log
|
|
432
|
-
- design review conclusion
|
|
433
|
-
|
|
434
|
-
**Step 2: Build invalid fixtures**
|
|
435
|
-
|
|
436
|
-
One fixture per broken condition:
|
|
437
|
-
|
|
438
|
-
- missing handoff
|
|
439
|
-
- missing challenge
|
|
440
|
-
- missing design review
|
|
441
|
-
- missing downstream challenge
|
|
442
|
-
|
|
443
|
-
**Step 3: Add tests**
|
|
444
|
-
|
|
445
|
-
Assert:
|
|
446
|
-
|
|
447
|
-
- valid fixture passes
|
|
448
|
-
- invalid fixtures fail with specific messages
|
|
449
|
-
|
|
450
|
-
**Step 4: Verify**
|
|
451
|
-
|
|
452
|
-
Run the repository test command that covers script validation.
|
|
453
|
-
|
|
454
|
-
Expected:
|
|
455
|
-
- clear pass/fail behavior for workflow governance regressions
|
|
456
|
-
|
|
457
|
-
**Step 5: Commit**
|
|
458
|
-
|
|
459
|
-
```bash
|
|
460
|
-
git add tests
|
|
461
|
-
git commit -m "test: add workflow gate regression coverage"
|
|
462
|
-
```
|
|
463
|
-
|
|
464
|
-
### Task 9: Add example artifacts that demonstrate the new flow
|
|
465
|
-
|
|
466
|
-
**Files:**
|
|
467
|
-
- Modify: `docs/runbooks/team-intake-example.md`
|
|
468
|
-
- Modify: `docs/runbooks/team-plan-example.md`
|
|
469
|
-
- Modify: `docs/runbooks/team-handoff-example.md`
|
|
470
|
-
- Modify: `docs/runbooks/team-execute-example.md`
|
|
471
|
-
- Modify: `docs/runbooks/first-team-workflow-walkthrough.md`
|
|
472
|
-
|
|
473
|
-
**Step 1: Update examples to show the new phases**
|
|
474
|
-
|
|
475
|
-
Make examples demonstrate:
|
|
476
|
-
|
|
477
|
-
- challenge before plan freeze
|
|
478
|
-
- dynamic group composition
|
|
479
|
-
- design review before execute
|
|
480
|
-
- downstream challenge after handoff
|
|
481
|
-
|
|
482
|
-
**Step 2: Add one “blocked flow” example**
|
|
483
|
-
|
|
484
|
-
Show what the system should output when someone tries to execute too early.
|
|
485
|
-
|
|
486
|
-
**Step 3: Verify**
|
|
487
|
-
|
|
488
|
-
Run:
|
|
489
|
-
|
|
490
|
-
```bash
|
|
491
|
-
rg -n "blocked|Requirement Challenge Session|Design Review Board|下游质疑" docs/runbooks
|
|
492
|
-
```
|
|
493
|
-
|
|
494
|
-
Expected:
|
|
495
|
-
- examples reinforce the desired behavior instead of the old shortcut flow
|
|
496
|
-
|
|
497
|
-
**Step 4: Commit**
|
|
498
|
-
|
|
499
|
-
```bash
|
|
500
|
-
git add docs/runbooks
|
|
501
|
-
git commit -m "docs: update examples for gated workflow behavior"
|
|
502
|
-
```
|
|
503
|
-
|
|
504
|
-
### Task 10: Final regeneration and full verification
|
|
505
|
-
|
|
506
|
-
**Files:**
|
|
507
|
-
- Modify: generated artifacts as needed
|
|
508
|
-
|
|
509
|
-
**Step 1: Rebuild generated artifacts**
|
|
510
|
-
|
|
511
|
-
Run:
|
|
512
|
-
|
|
513
|
-
```bash
|
|
514
|
-
python3 scripts/build_platform_artifacts.py (historical; current: node scripts/build-platform-artifacts.js)
|
|
515
|
-
```
|
|
516
|
-
|
|
517
|
-
Expected:
|
|
518
|
-
- generated commands and agents reflect the new gates
|
|
519
|
-
|
|
520
|
-
**Step 2: Run repository validation**
|
|
521
|
-
|
|
522
|
-
Run:
|
|
523
|
-
|
|
524
|
-
```bash
|
|
525
|
-
python3 scripts/validate_library.py (historical; current: node scripts/validate-library.js)
|
|
526
|
-
```
|
|
527
|
-
|
|
528
|
-
Expected:
|
|
529
|
-
- library validation passes
|
|
530
|
-
|
|
531
|
-
**Step 3: Review diff**
|
|
532
|
-
|
|
533
|
-
Run:
|
|
534
|
-
|
|
535
|
-
```bash
|
|
536
|
-
git diff --stat
|
|
537
|
-
git diff -- commands roles scripts templates docs/runbooks
|
|
538
|
-
```
|
|
539
|
-
|
|
540
|
-
Expected:
|
|
541
|
-
- all governance changes are coherent across canonical, generated, and docs layers
|
|
542
|
-
|
|
543
|
-
**Step 4: Final commit**
|
|
544
|
-
|
|
545
|
-
```bash
|
|
546
|
-
git add commands roles scripts templates docs/runbooks tests
|
|
547
|
-
git commit -m "feat: enforce gated team-skills workflow"
|
|
548
|
-
```
|