claude-code-workflow 7.2.23 → 7.2.24

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 (181) hide show
  1. package/.codex/skills/team-arch-opt/SKILL.md +242 -175
  2. package/.codex/skills/team-arch-opt/roles/analyzer/role.md +78 -78
  3. package/.codex/skills/team-arch-opt/roles/coordinator/commands/analyze.md +57 -57
  4. package/.codex/skills/team-arch-opt/roles/coordinator/commands/monitor.md +246 -204
  5. package/.codex/skills/team-arch-opt/roles/coordinator/role.md +196 -184
  6. package/.codex/skills/team-arch-opt/roles/designer/role.md +115 -115
  7. package/.codex/skills/team-arch-opt/roles/refactorer/role.md +102 -102
  8. package/.codex/skills/team-arch-opt/roles/reviewer/role.md +111 -111
  9. package/.codex/skills/team-arch-opt/roles/validator/role.md +115 -115
  10. package/.codex/skills/team-arch-opt/specs/pipelines.md +102 -102
  11. package/.codex/skills/team-brainstorm/SKILL.md +72 -4
  12. package/.codex/skills/team-brainstorm/roles/challenger/role.md +61 -61
  13. package/.codex/skills/team-brainstorm/roles/coordinator/commands/analyze.md +58 -58
  14. package/.codex/skills/team-brainstorm/roles/coordinator/commands/monitor.md +212 -171
  15. package/.codex/skills/team-brainstorm/roles/coordinator/role.md +172 -160
  16. package/.codex/skills/team-brainstorm/roles/evaluator/role.md +56 -56
  17. package/.codex/skills/team-brainstorm/roles/ideator/role.md +69 -69
  18. package/.codex/skills/team-brainstorm/roles/synthesizer/role.md +57 -57
  19. package/.codex/skills/team-brainstorm/specs/pipelines.md +72 -72
  20. package/.codex/skills/team-coordinate/SKILL.md +71 -3
  21. package/.codex/skills/team-coordinate/roles/coordinator/commands/monitor.md +45 -5
  22. package/.codex/skills/team-coordinate/roles/coordinator/role.md +402 -389
  23. package/.codex/skills/team-coordinate/specs/knowledge-transfer.md +111 -111
  24. package/.codex/skills/team-coordinate/specs/pipelines.md +97 -97
  25. package/.codex/skills/team-coordinate/specs/quality-gates.md +112 -112
  26. package/.codex/skills/team-designer/SKILL.md +153 -153
  27. package/.codex/skills/team-designer/phases/01-requirements-analysis.md +250 -250
  28. package/.codex/skills/team-designer/phases/02-scaffold-generation.md +228 -228
  29. package/.codex/skills/team-designer/phases/03-content-generation.md +330 -330
  30. package/.codex/skills/team-designer/phases/04-validation.md +320 -320
  31. package/.codex/skills/team-executor/SKILL.md +29 -2
  32. package/.codex/skills/team-executor/roles/executor/commands/monitor.md +23 -15
  33. package/.codex/skills/team-frontend/SKILL.md +77 -3
  34. package/.codex/skills/team-frontend/roles/analyst/role.md +92 -92
  35. package/.codex/skills/team-frontend/roles/architect/role.md +86 -86
  36. package/.codex/skills/team-frontend/roles/coordinator/commands/analyze.md +52 -52
  37. package/.codex/skills/team-frontend/roles/coordinator/commands/monitor.md +222 -188
  38. package/.codex/skills/team-frontend/roles/coordinator/role.md +189 -177
  39. package/.codex/skills/team-frontend/roles/developer/role.md +93 -93
  40. package/.codex/skills/team-frontend/roles/qa/role.md +79 -79
  41. package/.codex/skills/team-frontend/specs/pipelines.md +76 -76
  42. package/.codex/skills/team-frontend-debug/SKILL.md +66 -3
  43. package/.codex/skills/team-frontend-debug/roles/analyzer/role.md +208 -208
  44. package/.codex/skills/team-frontend-debug/roles/coordinator/commands/analyze.md +174 -174
  45. package/.codex/skills/team-frontend-debug/roles/coordinator/commands/dispatch.md +198 -198
  46. package/.codex/skills/team-frontend-debug/roles/coordinator/commands/monitor.md +177 -143
  47. package/.codex/skills/team-frontend-debug/roles/coordinator/role.md +164 -152
  48. package/.codex/skills/team-frontend-debug/roles/fixer/role.md +147 -147
  49. package/.codex/skills/team-frontend-debug/roles/reproducer/role.md +147 -147
  50. package/.codex/skills/team-frontend-debug/roles/tester/role.md +231 -231
  51. package/.codex/skills/team-frontend-debug/roles/verifier/role.md +172 -172
  52. package/.codex/skills/team-frontend-debug/specs/debug-tools.md +215 -215
  53. package/.codex/skills/team-frontend-debug/specs/pipelines.md +94 -94
  54. package/.codex/skills/team-issue/SKILL.md +83 -4
  55. package/.codex/skills/team-issue/roles/coordinator/commands/analyze.md +64 -64
  56. package/.codex/skills/team-issue/roles/coordinator/commands/dispatch.md +273 -273
  57. package/.codex/skills/team-issue/roles/coordinator/commands/monitor.md +235 -194
  58. package/.codex/skills/team-issue/roles/coordinator/role.md +206 -194
  59. package/.codex/skills/team-issue/roles/explorer/role.md +94 -94
  60. package/.codex/skills/team-issue/roles/implementer/role.md +87 -87
  61. package/.codex/skills/team-issue/roles/integrator/role.md +84 -84
  62. package/.codex/skills/team-issue/roles/planner/role.md +81 -81
  63. package/.codex/skills/team-issue/roles/reviewer/role.md +86 -86
  64. package/.codex/skills/team-issue/specs/pipelines.md +124 -124
  65. package/.codex/skills/team-iterdev/SKILL.md +64 -3
  66. package/.codex/skills/team-iterdev/roles/architect/role.md +65 -65
  67. package/.codex/skills/team-iterdev/roles/coordinator/commands/analyze.md +62 -62
  68. package/.codex/skills/team-iterdev/roles/coordinator/commands/monitor.md +227 -186
  69. package/.codex/skills/team-iterdev/roles/coordinator/role.md +193 -181
  70. package/.codex/skills/team-iterdev/roles/developer/role.md +74 -74
  71. package/.codex/skills/team-iterdev/roles/reviewer/role.md +66 -66
  72. package/.codex/skills/team-iterdev/roles/tester/role.md +88 -88
  73. package/.codex/skills/team-iterdev/specs/pipelines.md +94 -94
  74. package/.codex/skills/team-lifecycle-v4/MIGRATION-PLAN.md +6 -6
  75. package/.codex/skills/team-lifecycle-v4/SKILL.md +305 -242
  76. package/.codex/skills/team-lifecycle-v4/roles/coordinator/commands/dispatch.md +1 -1
  77. package/.codex/skills/team-lifecycle-v4/roles/coordinator/commands/monitor.md +66 -24
  78. package/.codex/skills/team-lifecycle-v4/roles/coordinator/role.md +13 -1
  79. package/.codex/skills/team-lifecycle-v4/roles/supervisor/role.md +1 -1
  80. package/.codex/skills/team-lifecycle-v4/templates/architecture.md +254 -254
  81. package/.codex/skills/team-lifecycle-v4/templates/epics.md +196 -196
  82. package/.codex/skills/team-lifecycle-v4/templates/product-brief.md +133 -133
  83. package/.codex/skills/team-lifecycle-v4/templates/requirements.md +224 -224
  84. package/.codex/skills/team-perf-opt/SKILL.md +68 -3
  85. package/.codex/skills/team-perf-opt/roles/benchmarker/role.md +89 -89
  86. package/.codex/skills/team-perf-opt/roles/coordinator/commands/analyze.md +61 -61
  87. package/.codex/skills/team-perf-opt/roles/coordinator/commands/monitor.md +35 -1
  88. package/.codex/skills/team-perf-opt/roles/coordinator/role.md +179 -167
  89. package/.codex/skills/team-perf-opt/roles/optimizer/role.md +97 -97
  90. package/.codex/skills/team-perf-opt/roles/profiler/role.md +73 -73
  91. package/.codex/skills/team-perf-opt/roles/reviewer/role.md +75 -75
  92. package/.codex/skills/team-perf-opt/roles/strategist/role.md +94 -94
  93. package/.codex/skills/team-perf-opt/specs/pipelines.md +65 -65
  94. package/.codex/skills/team-planex/SKILL.md +65 -3
  95. package/.codex/skills/team-planex/roles/coordinator/commands/analyze.md +52 -52
  96. package/.codex/skills/team-planex/roles/coordinator/commands/monitor.md +210 -164
  97. package/.codex/skills/team-planex/roles/coordinator/role.md +171 -159
  98. package/.codex/skills/team-planex/roles/executor/role.md +91 -91
  99. package/.codex/skills/team-planex/roles/planner/role.md +112 -112
  100. package/.codex/skills/team-planex/specs/pipelines.md +93 -93
  101. package/.codex/skills/team-quality-assurance/SKILL.md +60 -3
  102. package/.codex/skills/team-quality-assurance/roles/analyst/role.md +80 -80
  103. package/.codex/skills/team-quality-assurance/roles/coordinator/commands/analyze.md +72 -72
  104. package/.codex/skills/team-quality-assurance/roles/coordinator/commands/dispatch.md +108 -108
  105. package/.codex/skills/team-quality-assurance/roles/coordinator/commands/monitor.md +243 -209
  106. package/.codex/skills/team-quality-assurance/roles/coordinator/role.md +176 -164
  107. package/.codex/skills/team-quality-assurance/roles/executor/role.md +66 -66
  108. package/.codex/skills/team-quality-assurance/roles/generator/role.md +68 -68
  109. package/.codex/skills/team-quality-assurance/roles/scout/role.md +67 -67
  110. package/.codex/skills/team-quality-assurance/roles/strategist/role.md +71 -71
  111. package/.codex/skills/team-quality-assurance/specs/pipelines.md +115 -115
  112. package/.codex/skills/team-review/SKILL.md +58 -3
  113. package/.codex/skills/team-review/roles/coordinator/commands/analyze.md +71 -71
  114. package/.codex/skills/team-review/roles/coordinator/commands/dispatch.md +90 -90
  115. package/.codex/skills/team-review/roles/coordinator/commands/monitor.md +225 -185
  116. package/.codex/skills/team-review/roles/coordinator/role.md +175 -163
  117. package/.codex/skills/team-review/roles/fixer/role.md +76 -76
  118. package/.codex/skills/team-review/roles/reviewer/role.md +68 -68
  119. package/.codex/skills/team-review/roles/scanner/role.md +71 -71
  120. package/.codex/skills/team-review/specs/pipelines.md +102 -102
  121. package/.codex/skills/team-roadmap-dev/SKILL.md +55 -3
  122. package/.codex/skills/team-roadmap-dev/roles/coordinator/commands/analyze.md +61 -61
  123. package/.codex/skills/team-roadmap-dev/roles/coordinator/commands/monitor.md +502 -468
  124. package/.codex/skills/team-roadmap-dev/roles/coordinator/role.md +335 -322
  125. package/.codex/skills/team-roadmap-dev/roles/executor/role.md +71 -71
  126. package/.codex/skills/team-roadmap-dev/roles/planner/role.md +76 -76
  127. package/.codex/skills/team-roadmap-dev/roles/verifier/role.md +74 -74
  128. package/.codex/skills/team-roadmap-dev/specs/pipelines.md +93 -93
  129. package/.codex/skills/team-tech-debt/SKILL.md +56 -3
  130. package/.codex/skills/team-tech-debt/roles/assessor/role.md +69 -69
  131. package/.codex/skills/team-tech-debt/roles/coordinator/commands/analyze.md +47 -47
  132. package/.codex/skills/team-tech-debt/roles/coordinator/commands/monitor.md +272 -231
  133. package/.codex/skills/team-tech-debt/roles/coordinator/role.md +172 -160
  134. package/.codex/skills/team-tech-debt/roles/executor/role.md +76 -76
  135. package/.codex/skills/team-tech-debt/roles/planner/role.md +69 -69
  136. package/.codex/skills/team-tech-debt/roles/scanner/role.md +82 -82
  137. package/.codex/skills/team-tech-debt/roles/validator/role.md +75 -75
  138. package/.codex/skills/team-tech-debt/specs/pipelines.md +47 -47
  139. package/.codex/skills/team-testing/SKILL.md +72 -3
  140. package/.codex/skills/team-testing/roles/analyst/role.md +95 -95
  141. package/.codex/skills/team-testing/roles/coordinator/commands/analyze.md +70 -70
  142. package/.codex/skills/team-testing/roles/coordinator/commands/dispatch.md +106 -106
  143. package/.codex/skills/team-testing/roles/coordinator/commands/monitor.md +283 -242
  144. package/.codex/skills/team-testing/roles/coordinator/role.md +184 -172
  145. package/.codex/skills/team-testing/roles/executor/role.md +96 -96
  146. package/.codex/skills/team-testing/roles/generator/role.md +95 -95
  147. package/.codex/skills/team-testing/roles/strategist/role.md +83 -83
  148. package/.codex/skills/team-testing/specs/pipelines.md +101 -101
  149. package/.codex/skills/team-uidesign/SKILL.md +65 -3
  150. package/.codex/skills/team-uidesign/roles/coordinator/commands/analyze.md +59 -59
  151. package/.codex/skills/team-uidesign/roles/coordinator/commands/dispatch.md +156 -156
  152. package/.codex/skills/team-uidesign/roles/coordinator/commands/monitor.md +234 -194
  153. package/.codex/skills/team-uidesign/roles/coordinator/role.md +211 -199
  154. package/.codex/skills/team-uidesign/roles/designer/role.md +69 -69
  155. package/.codex/skills/team-uidesign/roles/implementer/role.md +72 -72
  156. package/.codex/skills/team-uidesign/roles/researcher/role.md +82 -82
  157. package/.codex/skills/team-uidesign/roles/reviewer/role.md +67 -67
  158. package/.codex/skills/team-uidesign/specs/pipelines.md +76 -76
  159. package/.codex/skills/team-ultra-analyze/SKILL.md +73 -3
  160. package/.codex/skills/team-ultra-analyze/roles/analyst/role.md +90 -90
  161. package/.codex/skills/team-ultra-analyze/roles/coordinator/commands/analyze.md +73 -73
  162. package/.codex/skills/team-ultra-analyze/roles/coordinator/commands/monitor.md +50 -9
  163. package/.codex/skills/team-ultra-analyze/roles/coordinator/role.md +255 -243
  164. package/.codex/skills/team-ultra-analyze/roles/discussant/role.md +104 -104
  165. package/.codex/skills/team-ultra-analyze/roles/explorer/role.md +74 -74
  166. package/.codex/skills/team-ultra-analyze/roles/synthesizer/role.md +78 -78
  167. package/.codex/skills/team-ultra-analyze/specs/pipelines.md +64 -64
  168. package/.codex/skills/team-ux-improve/SKILL.md +64 -3
  169. package/.codex/skills/team-ux-improve/roles/coordinator/commands/analyze.md +62 -62
  170. package/.codex/skills/team-ux-improve/roles/coordinator/commands/dispatch.md +233 -233
  171. package/.codex/skills/team-ux-improve/roles/coordinator/commands/monitor.md +195 -160
  172. package/.codex/skills/team-ux-improve/roles/coordinator/role.md +170 -158
  173. package/.codex/skills/team-ux-improve/roles/designer/role.md +122 -122
  174. package/.codex/skills/team-ux-improve/roles/diagnoser/role.md +93 -93
  175. package/.codex/skills/team-ux-improve/roles/explorer/role.md +77 -77
  176. package/.codex/skills/team-ux-improve/roles/implementer/role.md +102 -102
  177. package/.codex/skills/team-ux-improve/roles/scanner/role.md +93 -93
  178. package/.codex/skills/team-ux-improve/roles/tester/role.md +84 -84
  179. package/.codex/skills/team-ux-improve/specs/pipelines.md +54 -54
  180. package/README.md +1 -0
  181. package/package.json +1 -1
@@ -1,111 +1,111 @@
1
- # Knowledge Transfer Protocols
2
-
3
- ## 1. Transfer Channels
4
-
5
- | Channel | Scope | Mechanism | When to Use |
6
- |---------|-------|-----------|-------------|
7
- | **Artifacts** | Producer -> Consumer | Write to `<session>/artifacts/<name>.md`, consumer reads in Phase 2 | Structured deliverables (reports, plans, specs) |
8
- | **State Updates** | Cross-role | `team_msg(operation="log", type="state_update", data={...})` / `team_msg(operation="get_state", session_id=<session-id>)` | Key findings, decisions, metadata (small, structured data) |
9
- | **Wisdom** | Cross-task | Append to `<session>/wisdom/{learnings,decisions,conventions,issues}.md` | Patterns, conventions, risks discovered during execution |
10
- | **Context Accumulator** | Intra-role (inner loop) | In-memory array, passed to each subsequent task in same-prefix loop | Prior task summaries within same role's inner loop |
11
- | **Exploration Cache** | Cross-role | `<session>/explorations/cache-index.json` + per-angle JSON | Codebase discovery results, prevents duplicate exploration |
12
-
13
- ## 2. Context Loading Protocol (Phase 2)
14
-
15
- Every role MUST load context in this order before starting work.
16
-
17
- | Step | Action | Required |
18
- |------|--------|----------|
19
- | 1 | Extract session path from task description | Yes |
20
- | 2 | `team_msg(operation="get_state", session_id=<session-id>)` | Yes |
21
- | 3 | Read artifact files from upstream state's `ref` paths | Yes |
22
- | 4 | Read `<session>/wisdom/*.md` if exists | Yes |
23
- | 5 | Check `<session>/explorations/cache-index.json` before new exploration | If exploring |
24
- | 6 | For inner_loop roles: load context_accumulator from prior tasks | If inner_loop |
25
-
26
- **Loading rules**:
27
- - Never skip step 2 -- state contains key decisions and findings
28
- - If `ref` path in state does not exist, log warning and continue
29
- - Wisdom files are append-only -- read all entries, newest last
30
-
31
- ## 3. Context Publishing Protocol (Phase 4)
32
-
33
- | Step | Action | Required |
34
- |------|--------|----------|
35
- | 1 | Write deliverable to `<session>/artifacts/<task-id>-<name>.md` | Yes |
36
- | 2 | Send `team_msg(type="state_update")` with payload (see schema below) | Yes |
37
- | 3 | Append wisdom entries for learnings, decisions, issues found | If applicable |
38
-
39
- ## 4. State Update Schema
40
-
41
- Sent via `team_msg(type="state_update")` on task completion.
42
-
43
- ```json
44
- {
45
- "status": "task_complete",
46
- "task_id": "<TASK-NNN>",
47
- "ref": "<session>/artifacts/<filename>",
48
- "key_findings": [
49
- "Finding 1",
50
- "Finding 2"
51
- ],
52
- "decisions": [
53
- "Decision with rationale"
54
- ],
55
- "files_modified": [
56
- "path/to/file.ts"
57
- ],
58
- "verification": "self-validated | peer-reviewed | tested"
59
- }
60
- ```
61
-
62
- **Field rules**:
63
- - `ref`: Always an artifact path, never inline content
64
- - `key_findings`: Max 5 items, each under 100 chars
65
- - `decisions`: Include rationale, not just the choice
66
- - `files_modified`: Only for implementation tasks
67
- - `verification`: One of `self-validated`, `peer-reviewed`, `tested`
68
-
69
- **Write state** (namespaced by role):
70
- ```
71
- team_msg(operation="log", session_id=<session-id>, from=<role>, type="state_update", data={
72
- "<role_name>": { "key_findings": [...], "scope": "..." }
73
- })
74
- ```
75
-
76
- **Read state**:
77
- ```
78
- team_msg(operation="get_state", session_id=<session-id>)
79
- // Returns merged state from all state_update messages
80
- ```
81
-
82
- ## 5. Exploration Cache Protocol
83
-
84
- Prevents redundant research across tasks and discussion rounds.
85
-
86
- | Step | Action |
87
- |------|--------|
88
- | 1 | Read `<session>/explorations/cache-index.json` |
89
- | 2 | If angle already explored, read cached result from `explore-<angle>.json` |
90
- | 3 | If not cached, perform exploration |
91
- | 4 | Write result to `<session>/explorations/explore-<angle>.json` |
92
- | 5 | Update `cache-index.json` with new entry |
93
-
94
- **cache-index.json format**:
95
- ```json
96
- {
97
- "entries": [
98
- {
99
- "angle": "competitor-analysis",
100
- "file": "explore-competitor-analysis.json",
101
- "created_by": "RESEARCH-001",
102
- "timestamp": "2026-01-15T10:30:00Z"
103
- }
104
- ]
105
- }
106
- ```
107
-
108
- **Rules**:
109
- - Cache key is the exploration `angle` (normalized to kebab-case)
110
- - Cache entries never expire within a session
111
- - Any role can read cached explorations; only the creator updates them
1
+ # Knowledge Transfer Protocols
2
+
3
+ ## 1. Transfer Channels
4
+
5
+ | Channel | Scope | Mechanism | When to Use |
6
+ |---------|-------|-----------|-------------|
7
+ | **Artifacts** | Producer -> Consumer | Write to `<session>/artifacts/<name>.md`, consumer reads in Phase 2 | Structured deliverables (reports, plans, specs) |
8
+ | **State Updates** | Cross-role | `team_msg(operation="log", type="state_update", data={...})` / `team_msg(operation="get_state", session_id=<session-id>)` | Key findings, decisions, metadata (small, structured data) |
9
+ | **Wisdom** | Cross-task | Append to `<session>/wisdom/{learnings,decisions,conventions,issues}.md` | Patterns, conventions, risks discovered during execution |
10
+ | **Context Accumulator** | Intra-role (inner loop) | In-memory array, passed to each subsequent task in same-prefix loop | Prior task summaries within same role's inner loop |
11
+ | **Exploration Cache** | Cross-role | `<session>/explorations/cache-index.json` + per-angle JSON | Codebase discovery results, prevents duplicate exploration |
12
+
13
+ ## 2. Context Loading Protocol (Phase 2)
14
+
15
+ Every role MUST load context in this order before starting work.
16
+
17
+ | Step | Action | Required |
18
+ |------|--------|----------|
19
+ | 1 | Extract session path from task description | Yes |
20
+ | 2 | `team_msg(operation="get_state", session_id=<session-id>)` | Yes |
21
+ | 3 | Read artifact files from upstream state's `ref` paths | Yes |
22
+ | 4 | Read `<session>/wisdom/*.md` if exists | Yes |
23
+ | 5 | Check `<session>/explorations/cache-index.json` before new exploration | If exploring |
24
+ | 6 | For inner_loop roles: load context_accumulator from prior tasks | If inner_loop |
25
+
26
+ **Loading rules**:
27
+ - Never skip step 2 -- state contains key decisions and findings
28
+ - If `ref` path in state does not exist, log warning and continue
29
+ - Wisdom files are append-only -- read all entries, newest last
30
+
31
+ ## 3. Context Publishing Protocol (Phase 4)
32
+
33
+ | Step | Action | Required |
34
+ |------|--------|----------|
35
+ | 1 | Write deliverable to `<session>/artifacts/<task-id>-<name>.md` | Yes |
36
+ | 2 | Send `team_msg(type="state_update")` with payload (see schema below) | Yes |
37
+ | 3 | Append wisdom entries for learnings, decisions, issues found | If applicable |
38
+
39
+ ## 4. State Update Schema
40
+
41
+ Sent via `team_msg(type="state_update")` on task completion.
42
+
43
+ ```json
44
+ {
45
+ "status": "task_complete",
46
+ "task_id": "<TASK-NNN>",
47
+ "ref": "<session>/artifacts/<filename>",
48
+ "key_findings": [
49
+ "Finding 1",
50
+ "Finding 2"
51
+ ],
52
+ "decisions": [
53
+ "Decision with rationale"
54
+ ],
55
+ "files_modified": [
56
+ "path/to/file.ts"
57
+ ],
58
+ "verification": "self-validated | peer-reviewed | tested"
59
+ }
60
+ ```
61
+
62
+ **Field rules**:
63
+ - `ref`: Always an artifact path, never inline content
64
+ - `key_findings`: Max 5 items, each under 100 chars
65
+ - `decisions`: Include rationale, not just the choice
66
+ - `files_modified`: Only for implementation tasks
67
+ - `verification`: One of `self-validated`, `peer-reviewed`, `tested`
68
+
69
+ **Write state** (namespaced by role):
70
+ ```
71
+ team_msg(operation="log", session_id=<session-id>, from=<role>, type="state_update", data={
72
+ "<role_name>": { "key_findings": [...], "scope": "..." }
73
+ })
74
+ ```
75
+
76
+ **Read state**:
77
+ ```
78
+ team_msg(operation="get_state", session_id=<session-id>)
79
+ // Returns merged state from all state_update messages
80
+ ```
81
+
82
+ ## 5. Exploration Cache Protocol
83
+
84
+ Prevents redundant research across tasks and discussion rounds.
85
+
86
+ | Step | Action |
87
+ |------|--------|
88
+ | 1 | Read `<session>/explorations/cache-index.json` |
89
+ | 2 | If angle already explored, read cached result from `explore-<angle>.json` |
90
+ | 3 | If not cached, perform exploration |
91
+ | 4 | Write result to `<session>/explorations/explore-<angle>.json` |
92
+ | 5 | Update `cache-index.json` with new entry |
93
+
94
+ **cache-index.json format**:
95
+ ```json
96
+ {
97
+ "entries": [
98
+ {
99
+ "angle": "competitor-analysis",
100
+ "file": "explore-competitor-analysis.json",
101
+ "created_by": "RESEARCH-001",
102
+ "timestamp": "2026-01-15T10:30:00Z"
103
+ }
104
+ ]
105
+ }
106
+ ```
107
+
108
+ **Rules**:
109
+ - Cache key is the exploration `angle` (normalized to kebab-case)
110
+ - Cache entries never expire within a session
111
+ - Any role can read cached explorations; only the creator updates them
@@ -1,97 +1,97 @@
1
- # Pipeline Definitions — Team Coordinate
2
-
3
- ## Dynamic Pipeline Model
4
-
5
- team-coordinate does NOT have a static pipeline. All pipelines are generated at runtime from task-analysis.json based on the user's task description.
6
-
7
- ## Pipeline Generation Process
8
-
9
- ```
10
- Phase 1: analyze-task.md
11
- -> Signal detection -> capability mapping -> dependency graph
12
- -> Output: task-analysis.json
13
-
14
- Phase 2: dispatch.md
15
- -> Read task-analysis.json dependency graph
16
- -> Create tasks.json entries per dependency node
17
- -> Set deps chains from graph edges
18
- -> Output: tasks.json with correct DAG
19
-
20
- Phase 3-N: monitor.md
21
- -> handleSpawnNext: spawn ready tasks as team-worker agents
22
- -> handleCallback: mark completed, advance pipeline
23
- -> Repeat until all tasks done
24
- ```
25
-
26
- ## Dynamic Task Naming
27
-
28
- | Capability | Prefix | Example |
29
- |------------|--------|---------|
30
- | researcher | RESEARCH | RESEARCH-001 |
31
- | developer | IMPL | IMPL-001 |
32
- | analyst | ANALYSIS | ANALYSIS-001 |
33
- | designer | DESIGN | DESIGN-001 |
34
- | tester | TEST | TEST-001 |
35
- | writer | DRAFT | DRAFT-001 |
36
- | planner | PLAN | PLAN-001 |
37
- | (default) | TASK | TASK-001 |
38
-
39
- ## Dependency Graph Structure
40
-
41
- task-analysis.json encodes the pipeline:
42
-
43
- ```json
44
- {
45
- "dependency_graph": {
46
- "RESEARCH-001": { "role": "researcher", "blockedBy": [], "priority": "P0" },
47
- "IMPL-001": { "role": "developer", "blockedBy": ["RESEARCH-001"], "priority": "P1" },
48
- "TEST-001": { "role": "tester", "blockedBy": ["IMPL-001"], "priority": "P2" }
49
- }
50
- }
51
- ```
52
-
53
- ## Role-Worker Map
54
-
55
- Dynamic — loaded from session role-specs at runtime:
56
-
57
- ```
58
- <session>/role-specs/<role-name>.md -> team-worker agent
59
- ```
60
-
61
- Role-spec files contain YAML frontmatter:
62
- ```yaml
63
- ---
64
- role: <role-name>
65
- prefix: <PREFIX>
66
- inner_loop: <true|false>
67
- message_types:
68
- success: <type>
69
- error: error
70
- ---
71
- ```
72
-
73
- ## Checkpoint
74
-
75
- | Trigger | Behavior |
76
- |---------|----------|
77
- | capability_gap reported | handleAdapt: generate new role-spec, spawn new worker |
78
- | consensus_blocked HIGH | Create REVISION task or pause for user |
79
- | All tasks complete | handleComplete: interactive completion action |
80
-
81
- ## Specs Reference
82
-
83
- - [role-spec-template.md](role-spec-template.md) — Template for generating dynamic role-specs
84
- - [quality-gates.md](quality-gates.md) — Quality thresholds and scoring dimensions
85
- - [knowledge-transfer.md](knowledge-transfer.md) — Context transfer protocols between roles
86
-
87
- ## Quality Gate Integration
88
-
89
- Dynamic pipelines reference quality thresholds from [specs/quality-gates.md](quality-gates.md).
90
-
91
- | Gate Point | Trigger | Criteria Source |
92
- |------------|---------|----------------|
93
- | After artifact production | Producer role Phase 4 | Behavioral Traits in role-spec |
94
- | After validation tasks | Tester/analyst completion | quality-gates.md thresholds |
95
- | Pipeline completion | All tasks done | Aggregate scoring |
96
-
97
- Issue classification: Error (blocks) > Warning (proceed with justification) > Info (log for future).
1
+ # Pipeline Definitions — Team Coordinate
2
+
3
+ ## Dynamic Pipeline Model
4
+
5
+ team-coordinate does NOT have a static pipeline. All pipelines are generated at runtime from task-analysis.json based on the user's task description.
6
+
7
+ ## Pipeline Generation Process
8
+
9
+ ```
10
+ Phase 1: analyze-task.md
11
+ -> Signal detection -> capability mapping -> dependency graph
12
+ -> Output: task-analysis.json
13
+
14
+ Phase 2: dispatch.md
15
+ -> Read task-analysis.json dependency graph
16
+ -> Create tasks.json entries per dependency node
17
+ -> Set deps chains from graph edges
18
+ -> Output: tasks.json with correct DAG
19
+
20
+ Phase 3-N: monitor.md
21
+ -> handleSpawnNext: spawn ready tasks as team-worker agents
22
+ -> handleCallback: mark completed, advance pipeline
23
+ -> Repeat until all tasks done
24
+ ```
25
+
26
+ ## Dynamic Task Naming
27
+
28
+ | Capability | Prefix | Example |
29
+ |------------|--------|---------|
30
+ | researcher | RESEARCH | RESEARCH-001 |
31
+ | developer | IMPL | IMPL-001 |
32
+ | analyst | ANALYSIS | ANALYSIS-001 |
33
+ | designer | DESIGN | DESIGN-001 |
34
+ | tester | TEST | TEST-001 |
35
+ | writer | DRAFT | DRAFT-001 |
36
+ | planner | PLAN | PLAN-001 |
37
+ | (default) | TASK | TASK-001 |
38
+
39
+ ## Dependency Graph Structure
40
+
41
+ task-analysis.json encodes the pipeline:
42
+
43
+ ```json
44
+ {
45
+ "dependency_graph": {
46
+ "RESEARCH-001": { "role": "researcher", "blockedBy": [], "priority": "P0" },
47
+ "IMPL-001": { "role": "developer", "blockedBy": ["RESEARCH-001"], "priority": "P1" },
48
+ "TEST-001": { "role": "tester", "blockedBy": ["IMPL-001"], "priority": "P2" }
49
+ }
50
+ }
51
+ ```
52
+
53
+ ## Role-Worker Map
54
+
55
+ Dynamic — loaded from session role-specs at runtime:
56
+
57
+ ```
58
+ <session>/role-specs/<role-name>.md -> team-worker agent
59
+ ```
60
+
61
+ Role-spec files contain YAML frontmatter:
62
+ ```yaml
63
+ ---
64
+ role: <role-name>
65
+ prefix: <PREFIX>
66
+ inner_loop: <true|false>
67
+ message_types:
68
+ success: <type>
69
+ error: error
70
+ ---
71
+ ```
72
+
73
+ ## Checkpoint
74
+
75
+ | Trigger | Behavior |
76
+ |---------|----------|
77
+ | capability_gap reported | handleAdapt: generate new role-spec, spawn new worker |
78
+ | consensus_blocked HIGH | Create REVISION task or pause for user |
79
+ | All tasks complete | handleComplete: interactive completion action |
80
+
81
+ ## Specs Reference
82
+
83
+ - [role-spec-template.md](role-spec-template.md) — Template for generating dynamic role-specs
84
+ - [quality-gates.md](quality-gates.md) — Quality thresholds and scoring dimensions
85
+ - [knowledge-transfer.md](knowledge-transfer.md) — Context transfer protocols between roles
86
+
87
+ ## Quality Gate Integration
88
+
89
+ Dynamic pipelines reference quality thresholds from [specs/quality-gates.md](quality-gates.md).
90
+
91
+ | Gate Point | Trigger | Criteria Source |
92
+ |------------|---------|----------------|
93
+ | After artifact production | Producer role Phase 4 | Behavioral Traits in role-spec |
94
+ | After validation tasks | Tester/analyst completion | quality-gates.md thresholds |
95
+ | Pipeline completion | All tasks done | Aggregate scoring |
96
+
97
+ Issue classification: Error (blocks) > Warning (proceed with justification) > Info (log for future).
@@ -1,112 +1,112 @@
1
- # Quality Gates
2
-
3
- ## 1. Quality Thresholds
4
-
5
- | Result | Score | Action |
6
- |--------|-------|--------|
7
- | Pass | >= 80% | Report completed |
8
- | Review | 60-79% | Report completed with warnings |
9
- | Fail | < 60% | Retry Phase 3 (max 2 retries) |
10
-
11
- ## 2. Scoring Dimensions
12
-
13
- | Dimension | Weight | Criteria |
14
- |-----------|--------|----------|
15
- | Completeness | 25% | All required outputs present with substantive content |
16
- | Consistency | 25% | Terminology, formatting, cross-references are uniform |
17
- | Accuracy | 25% | Outputs are factually correct and verifiable against sources |
18
- | Depth | 25% | Sufficient detail for downstream consumers to act on deliverables |
19
-
20
- **Score** = weighted average of all dimensions (0-100 per dimension).
21
-
22
- ## 3. Dynamic Role Quality Checks
23
-
24
- Quality checks vary by `output_type` (from task-analysis.json role metadata).
25
-
26
- ### output_type: artifact
27
-
28
- | Check | Pass Criteria |
29
- |-------|---------------|
30
- | Artifact exists | File written to `<session>/artifacts/` |
31
- | Content non-empty | Substantive content, not just headers |
32
- | Format correct | Expected format (MD, JSON) matches deliverable |
33
- | Cross-references | All references to upstream artifacts resolve |
34
-
35
- ### output_type: codebase
36
-
37
- | Check | Pass Criteria |
38
- |-------|---------------|
39
- | Files modified | Claimed files actually changed (Read to confirm) |
40
- | Syntax valid | No syntax errors in modified files |
41
- | No regressions | Existing functionality preserved |
42
- | Summary artifact | Implementation summary written to artifacts/ |
43
-
44
- ### output_type: mixed
45
-
46
- All checks from both `artifact` and `codebase` apply.
47
-
48
- ## 4. Verification Protocol
49
-
50
- Derived from Behavioral Traits in [role-spec-template.md](role-spec-template.md).
51
-
52
- | Step | Action | Required |
53
- |------|--------|----------|
54
- | 1 | Verify all claimed files exist via Read | Yes |
55
- | 2 | Confirm artifact written to `<session>/artifacts/` | Yes |
56
- | 3 | Check verification summary fields present | Yes |
57
- | 4 | Score against quality dimensions | Yes |
58
- | 5 | Apply threshold -> Pass/Review/Fail | Yes |
59
-
60
- **On Fail**: Retry Phase 3 (max 2 retries). After 2 retries, report `partial_completion`.
61
-
62
- **On Review**: Proceed with warnings logged to `<session>/wisdom/issues.md`.
63
-
64
- ## 5. Code Review Dimensions
65
-
66
- For REVIEW-* or validation tasks during implementation pipelines.
67
-
68
- ### Quality
69
-
70
- | Check | Severity |
71
- |-------|----------|
72
- | Empty catch blocks | Error |
73
- | `as any` type casts | Warning |
74
- | `@ts-ignore` / `@ts-expect-error` | Warning |
75
- | `console.log` in production code | Warning |
76
- | Unused imports/variables | Info |
77
-
78
- ### Security
79
-
80
- | Check | Severity |
81
- |-------|----------|
82
- | Hardcoded secrets/credentials | Error |
83
- | SQL injection vectors | Error |
84
- | `eval()` or `Function()` usage | Error |
85
- | `innerHTML` assignment | Warning |
86
- | Missing input validation | Warning |
87
-
88
- ### Architecture
89
-
90
- | Check | Severity |
91
- |-------|----------|
92
- | Circular dependencies | Error |
93
- | Deep cross-boundary imports (3+ levels) | Warning |
94
- | Files > 500 lines | Warning |
95
- | Functions > 50 lines | Info |
96
-
97
- ### Requirements Coverage
98
-
99
- | Check | Severity |
100
- |-------|----------|
101
- | Core functionality implemented | Error if missing |
102
- | Acceptance criteria covered | Error if missing |
103
- | Edge cases handled | Warning |
104
- | Error states handled | Warning |
105
-
106
- ## 6. Issue Classification
107
-
108
- | Class | Label | Action |
109
- |-------|-------|--------|
110
- | Error | Must fix | Blocks progression, must resolve before proceeding |
111
- | Warning | Should fix | Should resolve, can proceed with justification |
112
- | Info | Nice to have | Optional improvement, log for future |
1
+ # Quality Gates
2
+
3
+ ## 1. Quality Thresholds
4
+
5
+ | Result | Score | Action |
6
+ |--------|-------|--------|
7
+ | Pass | >= 80% | Report completed |
8
+ | Review | 60-79% | Report completed with warnings |
9
+ | Fail | < 60% | Retry Phase 3 (max 2 retries) |
10
+
11
+ ## 2. Scoring Dimensions
12
+
13
+ | Dimension | Weight | Criteria |
14
+ |-----------|--------|----------|
15
+ | Completeness | 25% | All required outputs present with substantive content |
16
+ | Consistency | 25% | Terminology, formatting, cross-references are uniform |
17
+ | Accuracy | 25% | Outputs are factually correct and verifiable against sources |
18
+ | Depth | 25% | Sufficient detail for downstream consumers to act on deliverables |
19
+
20
+ **Score** = weighted average of all dimensions (0-100 per dimension).
21
+
22
+ ## 3. Dynamic Role Quality Checks
23
+
24
+ Quality checks vary by `output_type` (from task-analysis.json role metadata).
25
+
26
+ ### output_type: artifact
27
+
28
+ | Check | Pass Criteria |
29
+ |-------|---------------|
30
+ | Artifact exists | File written to `<session>/artifacts/` |
31
+ | Content non-empty | Substantive content, not just headers |
32
+ | Format correct | Expected format (MD, JSON) matches deliverable |
33
+ | Cross-references | All references to upstream artifacts resolve |
34
+
35
+ ### output_type: codebase
36
+
37
+ | Check | Pass Criteria |
38
+ |-------|---------------|
39
+ | Files modified | Claimed files actually changed (Read to confirm) |
40
+ | Syntax valid | No syntax errors in modified files |
41
+ | No regressions | Existing functionality preserved |
42
+ | Summary artifact | Implementation summary written to artifacts/ |
43
+
44
+ ### output_type: mixed
45
+
46
+ All checks from both `artifact` and `codebase` apply.
47
+
48
+ ## 4. Verification Protocol
49
+
50
+ Derived from Behavioral Traits in [role-spec-template.md](role-spec-template.md).
51
+
52
+ | Step | Action | Required |
53
+ |------|--------|----------|
54
+ | 1 | Verify all claimed files exist via Read | Yes |
55
+ | 2 | Confirm artifact written to `<session>/artifacts/` | Yes |
56
+ | 3 | Check verification summary fields present | Yes |
57
+ | 4 | Score against quality dimensions | Yes |
58
+ | 5 | Apply threshold -> Pass/Review/Fail | Yes |
59
+
60
+ **On Fail**: Retry Phase 3 (max 2 retries). After 2 retries, report `partial_completion`.
61
+
62
+ **On Review**: Proceed with warnings logged to `<session>/wisdom/issues.md`.
63
+
64
+ ## 5. Code Review Dimensions
65
+
66
+ For REVIEW-* or validation tasks during implementation pipelines.
67
+
68
+ ### Quality
69
+
70
+ | Check | Severity |
71
+ |-------|----------|
72
+ | Empty catch blocks | Error |
73
+ | `as any` type casts | Warning |
74
+ | `@ts-ignore` / `@ts-expect-error` | Warning |
75
+ | `console.log` in production code | Warning |
76
+ | Unused imports/variables | Info |
77
+
78
+ ### Security
79
+
80
+ | Check | Severity |
81
+ |-------|----------|
82
+ | Hardcoded secrets/credentials | Error |
83
+ | SQL injection vectors | Error |
84
+ | `eval()` or `Function()` usage | Error |
85
+ | `innerHTML` assignment | Warning |
86
+ | Missing input validation | Warning |
87
+
88
+ ### Architecture
89
+
90
+ | Check | Severity |
91
+ |-------|----------|
92
+ | Circular dependencies | Error |
93
+ | Deep cross-boundary imports (3+ levels) | Warning |
94
+ | Files > 500 lines | Warning |
95
+ | Functions > 50 lines | Info |
96
+
97
+ ### Requirements Coverage
98
+
99
+ | Check | Severity |
100
+ |-------|----------|
101
+ | Core functionality implemented | Error if missing |
102
+ | Acceptance criteria covered | Error if missing |
103
+ | Edge cases handled | Warning |
104
+ | Error states handled | Warning |
105
+
106
+ ## 6. Issue Classification
107
+
108
+ | Class | Label | Action |
109
+ |-------|-------|--------|
110
+ | Error | Must fix | Blocks progression, must resolve before proceeding |
111
+ | Warning | Should fix | Should resolve, can proceed with justification |
112
+ | Info | Nice to have | Optional improvement, log for future |