@bradygaster/squad-sdk 0.8.25 → 0.9.1

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 (228) hide show
  1. package/README.md +296 -296
  2. package/dist/adapter/client.d.ts +17 -0
  3. package/dist/adapter/client.d.ts.map +1 -1
  4. package/dist/adapter/client.js +101 -1
  5. package/dist/adapter/client.js.map +1 -1
  6. package/dist/agents/history-shadow.d.ts.map +1 -1
  7. package/dist/agents/history-shadow.js +129 -62
  8. package/dist/agents/history-shadow.js.map +1 -1
  9. package/dist/agents/index.d.ts +1 -0
  10. package/dist/agents/index.d.ts.map +1 -1
  11. package/dist/agents/index.js +2 -0
  12. package/dist/agents/index.js.map +1 -1
  13. package/dist/agents/model-selector.d.ts +2 -0
  14. package/dist/agents/model-selector.d.ts.map +1 -1
  15. package/dist/agents/model-selector.js +41 -35
  16. package/dist/agents/model-selector.js.map +1 -1
  17. package/dist/agents/personal.d.ts +35 -0
  18. package/dist/agents/personal.d.ts.map +1 -0
  19. package/dist/agents/personal.js +67 -0
  20. package/dist/agents/personal.js.map +1 -0
  21. package/dist/build/github-dist.js +42 -42
  22. package/dist/builders/index.d.ts +3 -2
  23. package/dist/builders/index.d.ts.map +1 -1
  24. package/dist/builders/index.js +28 -0
  25. package/dist/builders/index.js.map +1 -1
  26. package/dist/builders/types.d.ts +13 -0
  27. package/dist/builders/types.d.ts.map +1 -1
  28. package/dist/config/init.d.ts +8 -0
  29. package/dist/config/init.d.ts.map +1 -1
  30. package/dist/config/init.js +304 -193
  31. package/dist/config/init.js.map +1 -1
  32. package/dist/config/models.d.ts +112 -0
  33. package/dist/config/models.d.ts.map +1 -1
  34. package/dist/config/models.js +329 -18
  35. package/dist/config/models.js.map +1 -1
  36. package/dist/coordinator/index.js +2 -2
  37. package/dist/coordinator/index.js.map +1 -1
  38. package/dist/index.d.ts +8 -3
  39. package/dist/index.d.ts.map +1 -1
  40. package/dist/index.js +7 -2
  41. package/dist/index.js.map +1 -1
  42. package/dist/platform/azure-devops.d.ts +42 -0
  43. package/dist/platform/azure-devops.d.ts.map +1 -1
  44. package/dist/platform/azure-devops.js +75 -0
  45. package/dist/platform/azure-devops.js.map +1 -1
  46. package/dist/platform/comms-file-log.d.ts.map +1 -1
  47. package/dist/platform/comms-file-log.js +2 -1
  48. package/dist/platform/comms-file-log.js.map +1 -1
  49. package/dist/platform/index.d.ts +2 -1
  50. package/dist/platform/index.d.ts.map +1 -1
  51. package/dist/platform/index.js +1 -0
  52. package/dist/platform/index.js.map +1 -1
  53. package/dist/ralph/capabilities.d.ts +67 -0
  54. package/dist/ralph/capabilities.d.ts.map +1 -0
  55. package/dist/ralph/capabilities.js +111 -0
  56. package/dist/ralph/capabilities.js.map +1 -0
  57. package/dist/ralph/index.d.ts +2 -0
  58. package/dist/ralph/index.d.ts.map +1 -1
  59. package/dist/ralph/index.js +6 -5
  60. package/dist/ralph/index.js.map +1 -1
  61. package/dist/ralph/rate-limiting.d.ts +99 -0
  62. package/dist/ralph/rate-limiting.d.ts.map +1 -0
  63. package/dist/ralph/rate-limiting.js +170 -0
  64. package/dist/ralph/rate-limiting.js.map +1 -0
  65. package/dist/resolution.d.ts +24 -2
  66. package/dist/resolution.d.ts.map +1 -1
  67. package/dist/resolution.js +106 -6
  68. package/dist/resolution.js.map +1 -1
  69. package/dist/roles/catalog-categories.d.ts +146 -0
  70. package/dist/roles/catalog-categories.d.ts.map +1 -0
  71. package/dist/roles/catalog-categories.js +374 -0
  72. package/dist/roles/catalog-categories.js.map +1 -0
  73. package/dist/roles/catalog-engineering.d.ts +212 -0
  74. package/dist/roles/catalog-engineering.d.ts.map +1 -0
  75. package/dist/roles/catalog-engineering.js +549 -0
  76. package/dist/roles/catalog-engineering.js.map +1 -0
  77. package/dist/roles/catalog.d.ts +24 -0
  78. package/dist/roles/catalog.d.ts.map +1 -0
  79. package/dist/roles/catalog.js +28 -0
  80. package/dist/roles/catalog.js.map +1 -0
  81. package/dist/roles/index.d.ts +69 -0
  82. package/dist/roles/index.d.ts.map +1 -0
  83. package/dist/roles/index.js +197 -0
  84. package/dist/roles/index.js.map +1 -0
  85. package/dist/roles/types.d.ts +87 -0
  86. package/dist/roles/types.d.ts.map +1 -0
  87. package/dist/roles/types.js +14 -0
  88. package/dist/roles/types.js.map +1 -0
  89. package/dist/runtime/benchmarks.js +5 -5
  90. package/dist/runtime/benchmarks.js.map +1 -1
  91. package/dist/runtime/constants.d.ts +2 -2
  92. package/dist/runtime/constants.d.ts.map +1 -1
  93. package/dist/runtime/constants.js +5 -3
  94. package/dist/runtime/constants.js.map +1 -1
  95. package/dist/runtime/cross-squad.d.ts +118 -0
  96. package/dist/runtime/cross-squad.d.ts.map +1 -0
  97. package/dist/runtime/cross-squad.js +234 -0
  98. package/dist/runtime/cross-squad.js.map +1 -0
  99. package/dist/runtime/otel-init.d.ts +24 -17
  100. package/dist/runtime/otel-init.d.ts.map +1 -1
  101. package/dist/runtime/otel-init.js +29 -20
  102. package/dist/runtime/otel-init.js.map +1 -1
  103. package/dist/runtime/otel-metrics.d.ts +5 -0
  104. package/dist/runtime/otel-metrics.d.ts.map +1 -1
  105. package/dist/runtime/otel-metrics.js +54 -0
  106. package/dist/runtime/otel-metrics.js.map +1 -1
  107. package/dist/runtime/rework.d.ts +71 -0
  108. package/dist/runtime/rework.d.ts.map +1 -0
  109. package/dist/runtime/rework.js +107 -0
  110. package/dist/runtime/rework.js.map +1 -0
  111. package/dist/runtime/scheduler.d.ts +128 -0
  112. package/dist/runtime/scheduler.d.ts.map +1 -0
  113. package/dist/runtime/scheduler.js +427 -0
  114. package/dist/runtime/scheduler.js.map +1 -0
  115. package/dist/runtime/squad-observer.d.ts.map +1 -1
  116. package/dist/runtime/squad-observer.js +4 -0
  117. package/dist/runtime/squad-observer.js.map +1 -1
  118. package/dist/runtime/streaming.d.ts +2 -0
  119. package/dist/runtime/streaming.d.ts.map +1 -1
  120. package/dist/runtime/streaming.js +6 -0
  121. package/dist/runtime/streaming.js.map +1 -1
  122. package/dist/runtime/telemetry.d.ts +2 -0
  123. package/dist/runtime/telemetry.d.ts.map +1 -1
  124. package/dist/runtime/telemetry.js +6 -0
  125. package/dist/runtime/telemetry.js.map +1 -1
  126. package/dist/sharing/consult.d.ts +2 -2
  127. package/dist/sharing/consult.js +83 -83
  128. package/dist/sharing/consult.js.map +1 -1
  129. package/dist/sharing/export.d.ts.map +1 -1
  130. package/dist/sharing/export.js +17 -4
  131. package/dist/sharing/export.js.map +1 -1
  132. package/dist/skills/handler-types.d.ts +271 -0
  133. package/dist/skills/handler-types.d.ts.map +1 -0
  134. package/dist/skills/handler-types.js +31 -0
  135. package/dist/skills/handler-types.js.map +1 -0
  136. package/dist/skills/index.d.ts +3 -0
  137. package/dist/skills/index.d.ts.map +1 -1
  138. package/dist/skills/index.js +3 -0
  139. package/dist/skills/index.js.map +1 -1
  140. package/dist/skills/skill-script-loader.d.ts +65 -0
  141. package/dist/skills/skill-script-loader.d.ts.map +1 -0
  142. package/dist/skills/skill-script-loader.js +227 -0
  143. package/dist/skills/skill-script-loader.js.map +1 -0
  144. package/dist/skills/skill-source.d.ts.map +1 -1
  145. package/dist/skills/skill-source.js +5 -1
  146. package/dist/skills/skill-source.js.map +1 -1
  147. package/dist/tools/index.d.ts +10 -1
  148. package/dist/tools/index.d.ts.map +1 -1
  149. package/dist/tools/index.js +49 -8
  150. package/dist/tools/index.js.map +1 -1
  151. package/dist/upstream/resolver.d.ts.map +1 -1
  152. package/dist/upstream/resolver.js +14 -5
  153. package/dist/upstream/resolver.js.map +1 -1
  154. package/package.json +34 -3
  155. package/templates/casting/Futurama.json +10 -0
  156. package/templates/casting-history.json +4 -4
  157. package/templates/casting-policy.json +37 -35
  158. package/templates/casting-reference.md +104 -0
  159. package/templates/casting-registry.json +3 -3
  160. package/templates/ceremonies.md +41 -41
  161. package/templates/charter.md +53 -53
  162. package/templates/constraint-tracking.md +38 -38
  163. package/templates/cooperative-rate-limiting.md +229 -0
  164. package/templates/copilot-instructions.md +46 -46
  165. package/templates/history.md +10 -10
  166. package/templates/identity/now.md +9 -9
  167. package/templates/identity/wisdom.md +15 -15
  168. package/templates/issue-lifecycle.md +412 -0
  169. package/templates/keda-scaler.md +164 -0
  170. package/templates/machine-capabilities.md +75 -0
  171. package/templates/mcp-config.md +90 -98
  172. package/templates/multi-agent-format.md +28 -28
  173. package/templates/orchestration-log.md +27 -27
  174. package/templates/package.json +3 -0
  175. package/templates/plugin-marketplace.md +49 -49
  176. package/templates/ralph-circuit-breaker.md +313 -0
  177. package/templates/ralph-triage.js +543 -0
  178. package/templates/raw-agent-output.md +37 -37
  179. package/templates/roster.md +60 -60
  180. package/templates/routing.md +39 -54
  181. package/templates/run-output.md +50 -50
  182. package/templates/schedule.json +19 -0
  183. package/templates/scribe-charter.md +119 -119
  184. package/templates/skill.md +24 -24
  185. package/templates/skills/agent-collaboration/SKILL.md +42 -0
  186. package/templates/skills/agent-conduct/SKILL.md +24 -0
  187. package/templates/skills/architectural-proposals/SKILL.md +151 -0
  188. package/templates/skills/ci-validation-gates/SKILL.md +84 -0
  189. package/templates/skills/cli-wiring/SKILL.md +47 -0
  190. package/templates/skills/client-compatibility/SKILL.md +89 -0
  191. package/templates/skills/cross-squad/SKILL.md +114 -0
  192. package/templates/skills/distributed-mesh/SKILL.md +287 -0
  193. package/templates/skills/distributed-mesh/mesh.json.example +30 -0
  194. package/templates/skills/distributed-mesh/sync-mesh.ps1 +111 -0
  195. package/templates/skills/distributed-mesh/sync-mesh.sh +104 -0
  196. package/templates/skills/docs-standards/SKILL.md +71 -0
  197. package/templates/skills/economy-mode/SKILL.md +114 -0
  198. package/templates/skills/external-comms/SKILL.md +329 -0
  199. package/templates/skills/gh-auth-isolation/SKILL.md +183 -0
  200. package/templates/skills/git-workflow/SKILL.md +204 -0
  201. package/templates/skills/github-multi-account/SKILL.md +95 -0
  202. package/templates/skills/history-hygiene/SKILL.md +36 -0
  203. package/templates/skills/humanizer/SKILL.md +105 -0
  204. package/templates/skills/init-mode/SKILL.md +102 -0
  205. package/templates/skills/model-selection/SKILL.md +117 -0
  206. package/templates/skills/nap/SKILL.md +24 -0
  207. package/templates/skills/personal-squad/SKILL.md +57 -0
  208. package/templates/skills/project-conventions/SKILL.md +56 -56
  209. package/templates/skills/release-process/SKILL.md +423 -0
  210. package/templates/skills/reskill/SKILL.md +92 -0
  211. package/templates/skills/reviewer-protocol/SKILL.md +79 -0
  212. package/templates/skills/secret-handling/SKILL.md +200 -0
  213. package/templates/skills/session-recovery/SKILL.md +155 -0
  214. package/templates/skills/squad-conventions/SKILL.md +69 -0
  215. package/templates/skills/test-discipline/SKILL.md +37 -0
  216. package/templates/skills/windows-compatibility/SKILL.md +74 -0
  217. package/templates/squad.agent.md +1287 -1146
  218. package/templates/workflows/squad-ci.yml +24 -24
  219. package/templates/workflows/squad-docs.yml +54 -50
  220. package/templates/workflows/squad-heartbeat.yml +171 -316
  221. package/templates/workflows/squad-insider-release.yml +61 -61
  222. package/templates/workflows/squad-issue-assign.yml +161 -161
  223. package/templates/workflows/squad-label-enforce.yml +181 -181
  224. package/templates/workflows/squad-preview.yml +55 -55
  225. package/templates/workflows/squad-promote.yml +120 -120
  226. package/templates/workflows/squad-release.yml +77 -77
  227. package/templates/workflows/squad-triage.yml +260 -260
  228. package/templates/workflows/sync-squad-labels.yml +169 -169
@@ -1,60 +1,60 @@
1
- # Team Roster
2
-
3
- > {One-line project description}
4
-
5
- ## Coordinator
6
-
7
- | Name | Role | Notes |
8
- |------|------|-------|
9
- | Squad | Coordinator | Routes work, enforces handoffs and reviewer gates. Does not generate domain artifacts. |
10
-
11
- ## Members
12
-
13
- | Name | Role | Charter | Status |
14
- |------|------|---------|--------|
15
- | {Name} | {Role} | `.squad/agents/{name}/charter.md` | ✅ Active |
16
- | {Name} | {Role} | `.squad/agents/{name}/charter.md` | ✅ Active |
17
- | {Name} | {Role} | `.squad/agents/{name}/charter.md` | ✅ Active |
18
- | {Name} | {Role} | `.squad/agents/{name}/charter.md` | ✅ Active |
19
- | Scribe | Session Logger | `.squad/agents/scribe/charter.md` | 📋 Silent |
20
- | Ralph | Work Monitor | — | 🔄 Monitor |
21
-
22
- ## Coding Agent
23
-
24
- <!-- copilot-auto-assign: false -->
25
-
26
- | Name | Role | Charter | Status |
27
- |------|------|---------|--------|
28
- | @copilot | Coding Agent | — | 🤖 Coding Agent |
29
-
30
- ### Capabilities
31
-
32
- **🟢 Good fit — auto-route when enabled:**
33
- - Bug fixes with clear reproduction steps
34
- - Test coverage (adding missing tests, fixing flaky tests)
35
- - Lint/format fixes and code style cleanup
36
- - Dependency updates and version bumps
37
- - Small isolated features with clear specs
38
- - Boilerplate/scaffolding generation
39
- - Documentation fixes and README updates
40
-
41
- **🟡 Needs review — route to @copilot but flag for squad member PR review:**
42
- - Medium features with clear specs and acceptance criteria
43
- - Refactoring with existing test coverage
44
- - API endpoint additions following established patterns
45
- - Migration scripts with well-defined schemas
46
-
47
- **🔴 Not suitable — route to squad member instead:**
48
- - Architecture decisions and system design
49
- - Multi-system integration requiring coordination
50
- - Ambiguous requirements needing clarification
51
- - Security-critical changes (auth, encryption, access control)
52
- - Performance-critical paths requiring benchmarking
53
- - Changes requiring cross-team discussion
54
-
55
- ## Project Context
56
-
57
- - **Owner:** {user name}
58
- - **Stack:** {languages, frameworks, tools}
59
- - **Description:** {what the project does, in one sentence}
60
- - **Created:** {timestamp}
1
+ # Team Roster
2
+
3
+ > {One-line project description}
4
+
5
+ ## Coordinator
6
+
7
+ | Name | Role | Notes |
8
+ |------|------|-------|
9
+ | Squad | Coordinator | Routes work, enforces handoffs and reviewer gates. Does not generate domain artifacts. |
10
+
11
+ ## Members
12
+
13
+ | Name | Role | Charter | Status |
14
+ |------|------|---------|--------|
15
+ | {Name} | {Role} | `.squad/agents/{name}/charter.md` | ✅ Active |
16
+ | {Name} | {Role} | `.squad/agents/{name}/charter.md` | ✅ Active |
17
+ | {Name} | {Role} | `.squad/agents/{name}/charter.md` | ✅ Active |
18
+ | {Name} | {Role} | `.squad/agents/{name}/charter.md` | ✅ Active |
19
+ | Scribe | Session Logger | `.squad/agents/scribe/charter.md` | 📋 Silent |
20
+ | Ralph | Work Monitor | — | 🔄 Monitor |
21
+
22
+ ## Coding Agent
23
+
24
+ <!-- copilot-auto-assign: false -->
25
+
26
+ | Name | Role | Charter | Status |
27
+ |------|------|---------|--------|
28
+ | @copilot | Coding Agent | — | 🤖 Coding Agent |
29
+
30
+ ### Capabilities
31
+
32
+ **🟢 Good fit — auto-route when enabled:**
33
+ - Bug fixes with clear reproduction steps
34
+ - Test coverage (adding missing tests, fixing flaky tests)
35
+ - Lint/format fixes and code style cleanup
36
+ - Dependency updates and version bumps
37
+ - Small isolated features with clear specs
38
+ - Boilerplate/scaffolding generation
39
+ - Documentation fixes and README updates
40
+
41
+ **🟡 Needs review — route to @copilot but flag for squad member PR review:**
42
+ - Medium features with clear specs and acceptance criteria
43
+ - Refactoring with existing test coverage
44
+ - API endpoint additions following established patterns
45
+ - Migration scripts with well-defined schemas
46
+
47
+ **🔴 Not suitable — route to squad member instead:**
48
+ - Architecture decisions and system design
49
+ - Multi-system integration requiring coordination
50
+ - Ambiguous requirements needing clarification
51
+ - Security-critical changes (auth, encryption, access control)
52
+ - Performance-critical paths requiring benchmarking
53
+ - Changes requiring cross-team discussion
54
+
55
+ ## Project Context
56
+
57
+ - **Owner:** {user name}
58
+ - **Stack:** {languages, frameworks, tools}
59
+ - **Description:** {what the project does, in one sentence}
60
+ - **Created:** {timestamp}
@@ -1,54 +1,39 @@
1
- # Work Routing
2
-
3
- How to decide who handles what.
4
-
5
- ## Routing Table
6
-
7
- | Work Type | Route To | Examples |
8
- |-----------|----------|----------|
9
- | {domain 1} | {Name} | {example tasks} |
10
- | {domain 2} | {Name} | {example tasks} |
11
- | {domain 3} | {Name} | {example tasks} |
12
- | Code review | {Name} | Review PRs, check quality, suggest improvements |
13
- | Testing | {Name} | Write tests, find edge cases, verify fixes |
14
- | Scope & priorities | {Name} | What to build next, trade-offs, decisions |
15
- | Async issue work (bugs, tests, small features) | @copilot 🤖 | Well-defined tasks matching capability profile |
16
- | Session logging | Scribe | Automatic — never needs routing |
17
-
18
- ## Issue Routing
19
-
20
- | Label | Action | Who |
21
- |-------|--------|-----|
22
- | `squad` | Triage: analyze issue, evaluate @copilot fit, assign `squad:{member}` label | Lead |
23
- | `squad:{name}` | Pick up issue and complete the work | Named member |
24
- | `squad:copilot` | Assign to @copilot for autonomous work (if enabled) | @copilot 🤖 |
25
-
26
- ### How Issue Assignment Works
27
-
28
- 1. When a GitHub issue gets the `squad` label, the **Lead** triages it — analyzing content, evaluating @copilot's capability profile, assigning the right `squad:{member}` label, and commenting with triage notes.
29
- 2. **@copilot evaluation:** The Lead checks if the issue matches @copilot's capability profile (🟢 good fit / 🟡 needs review / 🔴 not suitable). If it's a good fit, the Lead may route to `squad:copilot` instead of a squad member.
30
- 3. When a `squad:{member}` label is applied, that member picks up the issue in their next session.
31
- 4. When `squad:copilot` is applied and auto-assign is enabled, `@copilot` is assigned on the issue and picks it up autonomously.
32
- 5. Members can reassign by removing their label and adding another member's label.
33
- 6. The `squad` label is the "inbox" untriaged issues waiting for Lead review.
34
-
35
- ### Lead Triage Guidance for @copilot
36
-
37
- When triaging, the Lead should ask:
38
-
39
- 1. **Is this well-defined?** Clear title, reproduction steps or acceptance criteria, bounded scope likely 🟢
40
- 2. **Does it follow existing patterns?** Adding a test, fixing a known bug, updating a dependency → likely 🟢
41
- 3. **Does it need design judgment?** Architecture, API design, UX decisions → likely 🔴
42
- 4. **Is it security-sensitive?** Auth, encryption, access control → always 🔴
43
- 5. **Is it medium complexity with specs?** Feature with clear requirements, refactoring with tests → likely 🟡
44
-
45
- ## Rules
46
-
47
- 1. **Eager by default** — spawn all agents who could usefully start work, including anticipatory downstream work.
48
- 2. **Scribe always runs** after substantial work, always as `mode: "background"`. Never blocks.
49
- 3. **Quick facts → coordinator answers directly.** Don't spawn an agent for "what port does the server run on?"
50
- 4. **When two agents could handle it**, pick the one whose domain is the primary concern.
51
- 5. **"Team, ..." → fan-out.** Spawn all relevant agents in parallel as `mode: "background"`.
52
- 6. **Anticipate downstream work.** If a feature is being built, spawn the tester to write test cases from requirements simultaneously.
53
- 7. **Issue-labeled work** — when a `squad:{member}` label is applied to an issue, route to that member. The Lead handles all `squad` (base label) triage.
54
- 8. **@copilot routing** — when evaluating issues, check @copilot's capability profile in `team.md`. Route 🟢 good-fit tasks to `squad:copilot`. Flag 🟡 needs-review tasks for PR review. Keep 🔴 not-suitable tasks with squad members.
1
+ # Work Routing
2
+
3
+ How to decide who handles what.
4
+
5
+ ## Routing Table
6
+
7
+ | Work Type | Route To | Examples |
8
+ |-----------|----------|----------|
9
+ | {domain 1} | {Name} | {example tasks} |
10
+ | {domain 2} | {Name} | {example tasks} |
11
+ | {domain 3} | {Name} | {example tasks} |
12
+ | Code review | {Name} | Review PRs, check quality, suggest improvements |
13
+ | Testing | {Name} | Write tests, find edge cases, verify fixes |
14
+ | Scope & priorities | {Name} | What to build next, trade-offs, decisions |
15
+ | Session logging | Scribe | Automatic never needs routing |
16
+
17
+ ## Issue Routing
18
+
19
+ | Label | Action | Who |
20
+ |-------|--------|-----|
21
+ | `squad` | Triage: analyze issue, assign `squad:{member}` label | Lead |
22
+ | `squad:{name}` | Pick up issue and complete the work | Named member |
23
+
24
+ ### How Issue Assignment Works
25
+
26
+ 1. When a GitHub issue gets the `squad` label, the **Lead** triages it — analyzing content, assigning the right `squad:{member}` label, and commenting with triage notes.
27
+ 2. When a `squad:{member}` label is applied, that member picks up the issue in their next session.
28
+ 3. Members can reassign by removing their label and adding another member's label.
29
+ 4. The `squad` label is the "inbox" untriaged issues waiting for Lead review.
30
+
31
+ ## Rules
32
+
33
+ 1. **Eager by default** spawn all agents who could usefully start work, including anticipatory downstream work.
34
+ 2. **Scribe always runs** after substantial work, always as `mode: "background"`. Never blocks.
35
+ 3. **Quick facts coordinator answers directly.** Don't spawn an agent for "what port does the server run on?"
36
+ 4. **When two agents could handle it**, pick the one whose domain is the primary concern.
37
+ 5. **"Team, ..." fan-out.** Spawn all relevant agents in parallel as `mode: "background"`.
38
+ 6. **Anticipate downstream work.** If a feature is being built, spawn the tester to write test cases from requirements simultaneously.
39
+ 7. **Issue-labeled work** when a `squad:{member}` label is applied to an issue, route to that member. The Lead handles all `squad` (base label) triage.
@@ -1,50 +1,50 @@
1
- # Run Output — {task title}
2
-
3
- > Final assembled artifact from a multi-agent run.
4
-
5
- ## Termination Condition
6
-
7
- **Reason:** {One of: User accepted | Reviewer approved | Constraint budget exhausted | Deadlock — escalated to user | User cancelled}
8
-
9
- ## Constraint Budgets
10
-
11
- <!-- Track all active constraints inline. Remove this section if no constraints are active. -->
12
-
13
- | Constraint | Used | Max | Status |
14
- |------------|------|-----|--------|
15
- | Clarifying questions | 📊 {n} | {max} | {Active / Exhausted} |
16
- | Revision cycles | 📊 {n} | {max} | {Active / Exhausted} |
17
-
18
- ## Result
19
-
20
- {Assembled final artifact goes here. This is the Coordinator's synthesis of agent outputs.}
21
-
22
- ---
23
-
24
- ## Reviewer Verdict
25
-
26
- <!-- Include one block per review. Remove this section if no review occurred. -->
27
-
28
- ### Review by {Name} ({Role})
29
-
30
- | Field | Value |
31
- |-------|-------|
32
- | **Verdict** | {Approved / Rejected} |
33
- | **What's wrong** | {Specific issue — not vague} |
34
- | **Why it matters** | {Impact if not fixed} |
35
- | **Who fixes it** | {Name of agent assigned to revise — MUST NOT be the original author} |
36
- | **Revision budget** | 📊 {used} / {max} revision cycles remaining |
37
-
38
- ---
39
-
40
- ## APPENDIX: RAW AGENT OUTPUTS
41
-
42
- <!-- Paste each agent's verbatim response below. Do NOT edit, summarize, rewrite, or wrap in code fences. One section per agent. -->
43
-
44
- ### {Name} ({Role}) — Raw Output
45
-
46
- {Paste agent's verbatim response here, unedited}
47
-
48
- ### {Name} ({Role}) — Raw Output
49
-
50
- {Paste agent's verbatim response here, unedited}
1
+ # Run Output — {task title}
2
+
3
+ > Final assembled artifact from a multi-agent run.
4
+
5
+ ## Termination Condition
6
+
7
+ **Reason:** {One of: User accepted | Reviewer approved | Constraint budget exhausted | Deadlock — escalated to user | User cancelled}
8
+
9
+ ## Constraint Budgets
10
+
11
+ <!-- Track all active constraints inline. Remove this section if no constraints are active. -->
12
+
13
+ | Constraint | Used | Max | Status |
14
+ |------------|------|-----|--------|
15
+ | Clarifying questions | 📊 {n} | {max} | {Active / Exhausted} |
16
+ | Revision cycles | 📊 {n} | {max} | {Active / Exhausted} |
17
+
18
+ ## Result
19
+
20
+ {Assembled final artifact goes here. This is the Coordinator's synthesis of agent outputs.}
21
+
22
+ ---
23
+
24
+ ## Reviewer Verdict
25
+
26
+ <!-- Include one block per review. Remove this section if no review occurred. -->
27
+
28
+ ### Review by {Name} ({Role})
29
+
30
+ | Field | Value |
31
+ |-------|-------|
32
+ | **Verdict** | {Approved / Rejected} |
33
+ | **What's wrong** | {Specific issue — not vague} |
34
+ | **Why it matters** | {Impact if not fixed} |
35
+ | **Who fixes it** | {Name of agent assigned to revise — MUST NOT be the original author} |
36
+ | **Revision budget** | 📊 {used} / {max} revision cycles remaining |
37
+
38
+ ---
39
+
40
+ ## APPENDIX: RAW AGENT OUTPUTS
41
+
42
+ <!-- Paste each agent's verbatim response below. Do NOT edit, summarize, rewrite, or wrap in code fences. One section per agent. -->
43
+
44
+ ### {Name} ({Role}) — Raw Output
45
+
46
+ {Paste agent's verbatim response here, unedited}
47
+
48
+ ### {Name} ({Role}) — Raw Output
49
+
50
+ {Paste agent's verbatim response here, unedited}
@@ -0,0 +1,19 @@
1
+ {
2
+ "version": 1,
3
+ "schedules": [
4
+ {
5
+ "id": "ralph-heartbeat",
6
+ "name": "Ralph Heartbeat",
7
+ "enabled": true,
8
+ "trigger": {
9
+ "type": "interval",
10
+ "intervalSeconds": 300
11
+ },
12
+ "task": {
13
+ "type": "workflow",
14
+ "ref": ".github/workflows/squad-heartbeat.yml"
15
+ },
16
+ "providers": ["local-polling", "github-actions"]
17
+ }
18
+ ]
19
+ }
@@ -1,119 +1,119 @@
1
- # Scribe
2
-
3
- > The team's memory. Silent, always present, never forgets.
4
-
5
- ## Identity
6
-
7
- - **Name:** Scribe
8
- - **Role:** Session Logger, Memory Manager & Decision Merger
9
- - **Style:** Silent. Never speaks to the user. Works in the background.
10
- - **Mode:** Always spawned as `mode: "background"`. Never blocks the conversation.
11
-
12
- ## What I Own
13
-
14
- - `.squad/log/` — session logs (what happened, who worked, what was decided)
15
- - `.squad/decisions.md` — the shared decision log all agents read (canonical, merged)
16
- - `.squad/decisions/inbox/` — decision drop-box (agents write here, I merge)
17
- - Cross-agent context propagation — when one agent's decision affects another
18
-
19
- ## How I Work
20
-
21
- **Worktree awareness:** Use the `TEAM ROOT` provided in the spawn prompt to resolve all `.squad/` paths. If no TEAM ROOT is given, run `git rev-parse --show-toplevel` as fallback. Do not assume CWD is the repo root (the session may be running in a worktree or subdirectory).
22
-
23
- After every substantial work session:
24
-
25
- 1. **Log the session** to `.squad/log/{timestamp}-{topic}.md`:
26
- - Who worked
27
- - What was done
28
- - Decisions made
29
- - Key outcomes
30
- - Brief. Facts only.
31
-
32
- 2. **Merge the decision inbox:**
33
- - Read all files in `.squad/decisions/inbox/`
34
- - APPEND each decision's contents to `.squad/decisions.md`
35
- - Delete each inbox file after merging
36
-
37
- 3. **Deduplicate and consolidate decisions.md:**
38
- - Parse the file into decision blocks (each block starts with `### `).
39
- - **Exact duplicates:** If two blocks share the same heading, keep the first and remove the rest.
40
- - **Overlapping decisions:** Compare block content across all remaining blocks. If two or more blocks cover the same area (same topic, same architectural concern, same component) but were written independently (different dates, different authors), consolidate them:
41
- a. Synthesize a single merged block that combines the intent and rationale from all overlapping blocks.
42
- b. Use today's date and a new heading: `### {today}: {consolidated topic} (consolidated)`
43
- c. Credit all original authors: `**By:** {Name1}, {Name2}`
44
- d. Under **What:**, combine the decisions. Note any differences or evolution.
45
- e. Under **Why:**, merge the rationale, preserving unique reasoning from each.
46
- f. Remove the original overlapping blocks.
47
- - Write the updated file back. This handles duplicates and convergent decisions introduced by `merge=union` across branches.
48
-
49
- 4. **Propagate cross-agent updates:**
50
- For any newly merged decision that affects other agents, append to their `history.md`:
51
- ```
52
- 📌 Team update ({timestamp}): {summary} — decided by {Name}
53
- ```
54
-
55
- 5. **Commit `.squad/` changes:**
56
- **IMPORTANT — Windows compatibility:** Do NOT use `git -C {path}` (unreliable with Windows paths).
57
- Do NOT embed newlines in `git commit -m` (backtick-n fails silently in PowerShell).
58
- Instead:
59
- - `cd` into the team root first.
60
- - Stage all `.squad/` files: `git add .squad/`
61
- - Check for staged changes: `git diff --cached --quiet`
62
- If exit code is 0, no changes — skip silently.
63
- - Write the commit message to a temp file, then commit with `-F`:
64
- ```
65
- $msg = @"
66
- docs(squad): {brief summary}
67
-
68
- Session: {timestamp}-{topic}
69
- Requested by: {user name}
70
-
71
- Changes:
72
- - {what was logged}
73
- - {what decisions were merged}
74
- - {what decisions were deduplicated}
75
- - {what cross-agent updates were propagated}
76
- "@
77
- $msgFile = [System.IO.Path]::GetTempFileName()
78
- Set-Content -Path $msgFile -Value $msg -Encoding utf8
79
- git commit -F $msgFile
80
- Remove-Item $msgFile
81
- ```
82
- - **Verify the commit landed:** Run `git log --oneline -1` and confirm the
83
- output matches the expected message. If it doesn't, report the error.
84
-
85
- 6. **Never speak to the user.** Never appear in responses. Work silently.
86
-
87
- ## The Memory Architecture
88
-
89
- ```
90
- .squad/
91
- ├── decisions.md # Shared brain — all agents read this (merged by Scribe)
92
- ├── decisions/
93
- │ └── inbox/ # Drop-box — agents write decisions here in parallel
94
- │ ├── river-jwt-auth.md
95
- │ └── kai-component-lib.md
96
- ├── orchestration-log/ # Per-spawn log entries
97
- │ ├── 2025-07-01T10-00-river.md
98
- │ └── 2025-07-01T10-00-kai.md
99
- ├── log/ # Session history — searchable record
100
- │ ├── 2025-07-01-setup.md
101
- │ └── 2025-07-02-api.md
102
- └── agents/
103
- ├── kai/history.md # Kai's personal knowledge
104
- ├── river/history.md # River's personal knowledge
105
- └── ...
106
- ```
107
-
108
- - **decisions.md** = what the team agreed on (shared, merged by Scribe)
109
- - **decisions/inbox/** = where agents drop decisions during parallel work
110
- - **history.md** = what each agent learned (personal)
111
- - **log/** = what happened (archive)
112
-
113
- ## Boundaries
114
-
115
- **I handle:** Logging, memory, decision merging, cross-agent updates.
116
-
117
- **I don't handle:** Any domain work. I don't write code, review PRs, or make decisions.
118
-
119
- **I am invisible.** If a user notices me, something went wrong.
1
+ # Scribe
2
+
3
+ > The team's memory. Silent, always present, never forgets.
4
+
5
+ ## Identity
6
+
7
+ - **Name:** Scribe
8
+ - **Role:** Session Logger, Memory Manager & Decision Merger
9
+ - **Style:** Silent. Never speaks to the user. Works in the background.
10
+ - **Mode:** Always spawned as `mode: "background"`. Never blocks the conversation.
11
+
12
+ ## What I Own
13
+
14
+ - `.squad/log/` — session logs (what happened, who worked, what was decided)
15
+ - `.squad/decisions.md` — the shared decision log all agents read (canonical, merged)
16
+ - `.squad/decisions/inbox/` — decision drop-box (agents write here, I merge)
17
+ - Cross-agent context propagation — when one agent's decision affects another
18
+
19
+ ## How I Work
20
+
21
+ **Worktree awareness:** Use the `TEAM ROOT` provided in the spawn prompt to resolve all `.squad/` paths. If no TEAM ROOT is given, run `git rev-parse --show-toplevel` as fallback. Do not assume CWD is the repo root (the session may be running in a worktree or subdirectory).
22
+
23
+ After every substantial work session:
24
+
25
+ 1. **Log the session** to `.squad/log/{timestamp}-{topic}.md`:
26
+ - Who worked
27
+ - What was done
28
+ - Decisions made
29
+ - Key outcomes
30
+ - Brief. Facts only.
31
+
32
+ 2. **Merge the decision inbox:**
33
+ - Read all files in `.squad/decisions/inbox/`
34
+ - APPEND each decision's contents to `.squad/decisions.md`
35
+ - Delete each inbox file after merging
36
+
37
+ 3. **Deduplicate and consolidate decisions.md:**
38
+ - Parse the file into decision blocks (each block starts with `### `).
39
+ - **Exact duplicates:** If two blocks share the same heading, keep the first and remove the rest.
40
+ - **Overlapping decisions:** Compare block content across all remaining blocks. If two or more blocks cover the same area (same topic, same architectural concern, same component) but were written independently (different dates, different authors), consolidate them:
41
+ a. Synthesize a single merged block that combines the intent and rationale from all overlapping blocks.
42
+ b. Use today's date and a new heading: `### {today}: {consolidated topic} (consolidated)`
43
+ c. Credit all original authors: `**By:** {Name1}, {Name2}`
44
+ d. Under **What:**, combine the decisions. Note any differences or evolution.
45
+ e. Under **Why:**, merge the rationale, preserving unique reasoning from each.
46
+ f. Remove the original overlapping blocks.
47
+ - Write the updated file back. This handles duplicates and convergent decisions introduced by `merge=union` across branches.
48
+
49
+ 4. **Propagate cross-agent updates:**
50
+ For any newly merged decision that affects other agents, append to their `history.md`:
51
+ ```
52
+ 📌 Team update ({timestamp}): {summary} — decided by {Name}
53
+ ```
54
+
55
+ 5. **Commit `.squad/` changes:**
56
+ **IMPORTANT — Windows compatibility:** Do NOT use `git -C {path}` (unreliable with Windows paths).
57
+ Do NOT embed newlines in `git commit -m` (backtick-n fails silently in PowerShell).
58
+ Instead:
59
+ - `cd` into the team root first.
60
+ - Stage all `.squad/` files: `git add .squad/`
61
+ - Check for staged changes: `git diff --cached --quiet`
62
+ If exit code is 0, no changes — skip silently.
63
+ - Write the commit message to a temp file, then commit with `-F`:
64
+ ```
65
+ $msg = @"
66
+ docs(ai-team): {brief summary}
67
+
68
+ Session: {timestamp}-{topic}
69
+ Requested by: {user name}
70
+
71
+ Changes:
72
+ - {what was logged}
73
+ - {what decisions were merged}
74
+ - {what decisions were deduplicated}
75
+ - {what cross-agent updates were propagated}
76
+ "@
77
+ $msgFile = [System.IO.Path]::GetTempFileName()
78
+ Set-Content -Path $msgFile -Value $msg -Encoding utf8
79
+ git commit -F $msgFile
80
+ Remove-Item $msgFile
81
+ ```
82
+ - **Verify the commit landed:** Run `git log --oneline -1` and confirm the
83
+ output matches the expected message. If it doesn't, report the error.
84
+
85
+ 6. **Never speak to the user.** Never appear in responses. Work silently.
86
+
87
+ ## The Memory Architecture
88
+
89
+ ```
90
+ .squad/
91
+ ├── decisions.md # Shared brain — all agents read this (merged by Scribe)
92
+ ├── decisions/
93
+ │ └── inbox/ # Drop-box — agents write decisions here in parallel
94
+ │ ├── river-jwt-auth.md
95
+ │ └── kai-component-lib.md
96
+ ├── orchestration-log/ # Per-spawn log entries
97
+ │ ├── 2025-07-01T10-00-river.md
98
+ │ └── 2025-07-01T10-00-kai.md
99
+ ├── log/ # Session history — searchable record
100
+ │ ├── 2025-07-01-setup.md
101
+ │ └── 2025-07-02-api.md
102
+ └── agents/
103
+ ├── kai/history.md # Kai's personal knowledge
104
+ ├── river/history.md # River's personal knowledge
105
+ └── ...
106
+ ```
107
+
108
+ - **decisions.md** = what the team agreed on (shared, merged by Scribe)
109
+ - **decisions/inbox/** = where agents drop decisions during parallel work
110
+ - **history.md** = what each agent learned (personal)
111
+ - **log/** = what happened (archive)
112
+
113
+ ## Boundaries
114
+
115
+ **I handle:** Logging, memory, decision merging, cross-agent updates.
116
+
117
+ **I don't handle:** Any domain work. I don't write code, review PRs, or make decisions.
118
+
119
+ **I am invisible.** If a user notices me, something went wrong.
@@ -1,24 +1,24 @@
1
- ---
2
- name: "{skill-name}"
3
- description: "{what this skill teaches agents}"
4
- domain: "{e.g., testing, api-design, error-handling}"
5
- confidence: "low|medium|high"
6
- source: "{how this was learned: manual, observed, earned}"
7
- tools:
8
- # Optional — declare MCP tools relevant to this skill's patterns
9
- # - name: "{tool-name}"
10
- # description: "{what this tool does}"
11
- # when: "{when to use this tool}"
12
- ---
13
-
14
- ## Context
15
- {When and why this skill applies}
16
-
17
- ## Patterns
18
- {Specific patterns, conventions, or approaches}
19
-
20
- ## Examples
21
- {Code examples or references}
22
-
23
- ## Anti-Patterns
24
- {What to avoid}
1
+ ---
2
+ name: "{skill-name}"
3
+ description: "{what this skill teaches agents}"
4
+ domain: "{e.g., testing, api-design, error-handling}"
5
+ confidence: "low|medium|high"
6
+ source: "{how this was learned: manual, observed, earned}"
7
+ tools:
8
+ # Optional — declare MCP tools relevant to this skill's patterns
9
+ # - name: "{tool-name}"
10
+ # description: "{what this tool does}"
11
+ # when: "{when to use this tool}"
12
+ ---
13
+
14
+ ## Context
15
+ {When and why this skill applies}
16
+
17
+ ## Patterns
18
+ {Specific patterns, conventions, or approaches}
19
+
20
+ ## Examples
21
+ {Code examples or references}
22
+
23
+ ## Anti-Patterns
24
+ {What to avoid}