@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,98 +1,90 @@
1
- # MCP Integration — Configuration and Samples
2
-
3
- MCP (Model Context Protocol) servers extend Squad with tools for external services — Trello, Aspire dashboards, Azure, Notion, and more. The user configures MCP servers in their environment; Squad discovers and uses them.
4
-
5
- > **Full patterns:** Read `.squad/skills/mcp-tool-discovery/SKILL.md` for discovery patterns, domain-specific usage, and graceful degradation.
6
-
7
- ## Security Considerations
8
-
9
- > ⚠️ **Important:** The sample configs below use `npx -y` to run MCP server packages without version pinning. For production use:
10
- > - **Pin versions:** Use `npx -y @trello/mcp-server@1.2.3` instead of bare package names
11
- > - **Audit packages:** Review MCP server source code before granting access to credentials
12
- > - **Use least-privilege tokens:** Create tokens with minimal required scopes
13
- > - **Consider local installs:** Install packages locally (`npm install`) rather than fetching on each run
14
-
15
- ## Config File Locations
16
-
17
- Users configure MCP servers at these locations (checked in priority order):
18
- 1. **Repository-level:** `.copilot/mcp-config.json` (team-shared, committed to repo)
19
- 2. **Workspace-level:** `.vscode/mcp.json` (VS Code workspaces)
20
- 3. **User-level:** `~/.copilot/mcp-config.json` (personal)
21
- 4. **CLI override:** `--additional-mcp-config` flag (session-specific)
22
-
23
- ## Sample Config — Trello
24
-
25
- ```json
26
- {
27
- "mcpServers": {
28
- "trello": {
29
- "command": "npx",
30
- "args": ["-y", "@trello/mcp-server"],
31
- "env": {
32
- "TRELLO_API_KEY": "${TRELLO_API_KEY}",
33
- "TRELLO_TOKEN": "${TRELLO_TOKEN}"
34
- }
35
- }
36
- }
37
- }
38
- ```
39
-
40
- ## Sample Config — GitHub
41
-
42
- ```json
43
- {
44
- "mcpServers": {
45
- "github": {
46
- "command": "npx",
47
- "args": ["-y", "@modelcontextprotocol/server-github"],
48
- "env": {
49
- "GITHUB_TOKEN": "${GITHUB_TOKEN}"
50
- }
51
- }
52
- }
53
- }
54
- ```
55
-
56
- ## Sample Config — Azure
57
-
58
- ```json
59
- {
60
- "mcpServers": {
61
- "azure": {
62
- "command": "npx",
63
- "args": ["-y", "@azure/mcp-server"],
64
- "env": {
65
- "AZURE_SUBSCRIPTION_ID": "${AZURE_SUBSCRIPTION_ID}",
66
- "AZURE_CLIENT_ID": "${AZURE_CLIENT_ID}",
67
- "AZURE_CLIENT_SECRET": "${AZURE_CLIENT_SECRET}",
68
- "AZURE_TENANT_ID": "${AZURE_TENANT_ID}"
69
- }
70
- }
71
- }
72
- }
73
- ```
74
-
75
- ## Sample Config — Aspire
76
-
77
- ```json
78
- {
79
- "mcpServers": {
80
- "aspire": {
81
- "command": "npx",
82
- "args": ["-y", "@aspire/mcp-server"],
83
- "env": {
84
- "ASPIRE_DASHBOARD_URL": "${ASPIRE_DASHBOARD_URL}"
85
- }
86
- }
87
- }
88
- }
89
- ```
90
-
91
- ## Authentication Notes
92
-
93
- - **GitHub MCP requires a separate token** from the `gh` CLI auth. Generate at https://github.com/settings/tokens
94
- - **Trello requires API key + token** from https://trello.com/power-ups/admin
95
- - **Azure requires service principal credentials** — see Azure docs for setup
96
- - **Aspire uses the dashboard URL** — typically `http://localhost:18888` during local dev
97
-
98
- Auth is a real blocker for some MCP servers. Users need separate tokens for GitHub MCP, Azure MCP, Trello MCP, etc. This is a documentation problem, not a code problem.
1
+ # MCP Integration — Configuration and Samples
2
+
3
+ MCP (Model Context Protocol) servers extend Squad with tools for external services — Trello, Aspire dashboards, Azure, Notion, and more. The user configures MCP servers in their environment; Squad discovers and uses them.
4
+
5
+ > **Full patterns:** Read `.squad/skills/mcp-tool-discovery/SKILL.md` for discovery patterns, domain-specific usage, and graceful degradation.
6
+
7
+ ## Config File Locations
8
+
9
+ Users configure MCP servers at these locations (checked in priority order):
10
+ 1. **Repository-level:** `.copilot/mcp-config.json` (team-shared, committed to repo)
11
+ 2. **Workspace-level:** `.vscode/mcp.json` (VS Code workspaces)
12
+ 3. **User-level:** `~/.copilot/mcp-config.json` (personal)
13
+ 4. **CLI override:** `--additional-mcp-config` flag (session-specific)
14
+
15
+ ## Sample Config Trello
16
+
17
+ ```json
18
+ {
19
+ "mcpServers": {
20
+ "trello": {
21
+ "command": "npx",
22
+ "args": ["-y", "@trello/mcp-server"],
23
+ "env": {
24
+ "TRELLO_API_KEY": "${TRELLO_API_KEY}",
25
+ "TRELLO_TOKEN": "${TRELLO_TOKEN}"
26
+ }
27
+ }
28
+ }
29
+ }
30
+ ```
31
+
32
+ ## Sample Config — GitHub
33
+
34
+ ```json
35
+ {
36
+ "mcpServers": {
37
+ "github": {
38
+ "command": "npx",
39
+ "args": ["-y", "@modelcontextprotocol/server-github"],
40
+ "env": {
41
+ "GITHUB_TOKEN": "${GITHUB_TOKEN}"
42
+ }
43
+ }
44
+ }
45
+ }
46
+ ```
47
+
48
+ ## Sample Config — Azure
49
+
50
+ ```json
51
+ {
52
+ "mcpServers": {
53
+ "azure": {
54
+ "command": "npx",
55
+ "args": ["-y", "@azure/mcp-server"],
56
+ "env": {
57
+ "AZURE_SUBSCRIPTION_ID": "${AZURE_SUBSCRIPTION_ID}",
58
+ "AZURE_CLIENT_ID": "${AZURE_CLIENT_ID}",
59
+ "AZURE_CLIENT_SECRET": "${AZURE_CLIENT_SECRET}",
60
+ "AZURE_TENANT_ID": "${AZURE_TENANT_ID}"
61
+ }
62
+ }
63
+ }
64
+ }
65
+ ```
66
+
67
+ ## Sample Config — Aspire
68
+
69
+ ```json
70
+ {
71
+ "mcpServers": {
72
+ "aspire": {
73
+ "command": "npx",
74
+ "args": ["-y", "@aspire/mcp-server"],
75
+ "env": {
76
+ "ASPIRE_DASHBOARD_URL": "${ASPIRE_DASHBOARD_URL}"
77
+ }
78
+ }
79
+ }
80
+ }
81
+ ```
82
+
83
+ ## Authentication Notes
84
+
85
+ - **GitHub MCP requires a separate token** from the `gh` CLI auth. Generate at https://github.com/settings/tokens
86
+ - **Trello requires API key + token** from https://trello.com/power-ups/admin
87
+ - **Azure requires service principal credentials** — see Azure docs for setup
88
+ - **Aspire uses the dashboard URL** — typically `http://localhost:18888` during local dev
89
+
90
+ Auth is a real blocker for some MCP servers. Users need separate tokens for GitHub MCP, Azure MCP, Trello MCP, etc. This is a documentation problem, not a code problem.
@@ -1,28 +1,28 @@
1
- # Multi-Agent Artifact Format
2
-
3
- When multiple agents contribute to a final artifact (document, analysis, design), use this format. The assembled result must include:
4
-
5
- - Termination condition
6
- - Constraint budgets (if active)
7
- - Reviewer verdicts (if any)
8
- - Raw agent outputs appendix
9
-
10
- ## Assembly Structure
11
-
12
- The assembled result goes at the top. Below it, include:
13
-
14
- ```
15
- ## APPENDIX: RAW AGENT OUTPUTS
16
-
17
- ### {Name} ({Role}) — Raw Output
18
- {Paste agent's verbatim response here, unedited}
19
-
20
- ### {Name} ({Role}) — Raw Output
21
- {Paste agent's verbatim response here, unedited}
22
- ```
23
-
24
- ## Appendix Rules
25
-
26
- This appendix is for diagnostic integrity. Do not edit, summarize, or polish the raw outputs. The Coordinator may not rewrite raw agent outputs; it may only paste them verbatim and assemble the final artifact above.
27
-
28
- See `.squad/templates/run-output.md` for the complete output format template.
1
+ # Multi-Agent Artifact Format
2
+
3
+ When multiple agents contribute to a final artifact (document, analysis, design), use this format. The assembled result must include:
4
+
5
+ - Termination condition
6
+ - Constraint budgets (if active)
7
+ - Reviewer verdicts (if any)
8
+ - Raw agent outputs appendix
9
+
10
+ ## Assembly Structure
11
+
12
+ The assembled result goes at the top. Below it, include:
13
+
14
+ ```
15
+ ## APPENDIX: RAW AGENT OUTPUTS
16
+
17
+ ### {Name} ({Role}) — Raw Output
18
+ {Paste agent's verbatim response here, unedited}
19
+
20
+ ### {Name} ({Role}) — Raw Output
21
+ {Paste agent's verbatim response here, unedited}
22
+ ```
23
+
24
+ ## Appendix Rules
25
+
26
+ This appendix is for diagnostic integrity. Do not edit, summarize, or polish the raw outputs. The Coordinator may not rewrite raw agent outputs; it may only paste them verbatim and assemble the final artifact above.
27
+
28
+ See `.squad/templates/run-output.md` for the complete output format template.
@@ -1,27 +1,27 @@
1
- # Orchestration Log Entry
2
-
3
- > One file per agent spawn. Saved to `.squad/orchestration-log/{timestamp}-{agent-name}.md`
4
-
5
- ---
6
-
7
- ### {timestamp} — {task summary}
8
-
9
- | Field | Value |
10
- |-------|-------|
11
- | **Agent routed** | {Name} ({Role}) |
12
- | **Why chosen** | {Routing rationale — what in the request matched this agent} |
13
- | **Mode** | {`background` / `sync`} |
14
- | **Why this mode** | {Brief reason — e.g., "No hard data dependencies" or "User needs to approve architecture"} |
15
- | **Files authorized to read** | {Exact file paths the agent was told to read} |
16
- | **File(s) agent must produce** | {Exact file paths the agent is expected to create or modify} |
17
- | **Outcome** | {Completed / Rejected by {Reviewer} / Escalated} |
18
-
19
- ---
20
-
21
- ## Rules
22
-
23
- 1. **One file per agent spawn.** Named `{timestamp}-{agent-name}.md`.
24
- 2. **Log BEFORE spawning.** The entry must exist before the agent runs.
25
- 3. **Update outcome AFTER the agent completes.** Fill in the Outcome field.
26
- 4. **Never delete or edit past entries.** Append-only.
27
- 5. **If a reviewer rejects work,** log the rejection as a new entry with the revision agent.
1
+ # Orchestration Log Entry
2
+
3
+ > One file per agent spawn. Saved to `.squad/orchestration-log/{timestamp}-{agent-name}.md`
4
+
5
+ ---
6
+
7
+ ### {timestamp} — {task summary}
8
+
9
+ | Field | Value |
10
+ |-------|-------|
11
+ | **Agent routed** | {Name} ({Role}) |
12
+ | **Why chosen** | {Routing rationale — what in the request matched this agent} |
13
+ | **Mode** | {`background` / `sync`} |
14
+ | **Why this mode** | {Brief reason — e.g., "No hard data dependencies" or "User needs to approve architecture"} |
15
+ | **Files authorized to read** | {Exact file paths the agent was told to read} |
16
+ | **File(s) agent must produce** | {Exact file paths the agent is expected to create or modify} |
17
+ | **Outcome** | {Completed / Rejected by {Reviewer} / Escalated} |
18
+
19
+ ---
20
+
21
+ ## Rules
22
+
23
+ 1. **One file per agent spawn.** Named `{timestamp}-{agent-name}.md`.
24
+ 2. **Log BEFORE spawning.** The entry must exist before the agent runs.
25
+ 3. **Update outcome AFTER the agent completes.** Fill in the Outcome field.
26
+ 4. **Never delete or edit past entries.** Append-only.
27
+ 5. **If a reviewer rejects work,** log the rejection as a new entry with the revision agent.
@@ -0,0 +1,3 @@
1
+ {
2
+ "type": "commonjs"
3
+ }
@@ -1,49 +1,49 @@
1
- # Plugin Marketplace
2
-
3
- Plugins are curated agent templates, skills, instructions, and prompts shared by the community via GitHub repositories (e.g., `github/awesome-copilot`, `anthropics/skills`). They provide ready-made expertise for common domains — cloud platforms, frameworks, testing strategies, etc.
4
-
5
- ## Marketplace State
6
-
7
- Registered marketplace sources are stored in `.squad/plugins/marketplaces.json`:
8
-
9
- ```json
10
- {
11
- "marketplaces": [
12
- {
13
- "name": "awesome-copilot",
14
- "source": "github/awesome-copilot",
15
- "added_at": "2026-02-14T00:00:00Z"
16
- }
17
- ]
18
- }
19
- ```
20
-
21
- ## CLI Commands
22
-
23
- Users manage marketplaces via the CLI:
24
- - `squad plugin marketplace add {owner/repo}` — Register a GitHub repo as a marketplace source
25
- - `squad plugin marketplace remove {name}` — Remove a registered marketplace
26
- - `squad plugin marketplace list` — List registered marketplaces
27
- - `squad plugin marketplace browse {name}` — List available plugins in a marketplace
28
-
29
- ## When to Browse
30
-
31
- During the **Adding Team Members** flow, AFTER allocating a name but BEFORE generating the charter:
32
-
33
- 1. Read `.squad/plugins/marketplaces.json`. If the file doesn't exist or `marketplaces` is empty, skip silently.
34
- 2. For each registered marketplace, search for plugins whose name or description matches the new member's role or domain keywords.
35
- 3. Present matching plugins to the user: *"Found '{plugin-name}' in {marketplace} marketplace — want me to install it as a skill for {CastName}?"*
36
- 4. If the user accepts, install the plugin (see below). If they decline or skip, proceed without it.
37
-
38
- ## How to Install a Plugin
39
-
40
- 1. Read the plugin content from the marketplace repository (the plugin's `SKILL.md` or equivalent).
41
- 2. Copy it into the agent's skills directory: `.squad/skills/{plugin-name}/SKILL.md`
42
- 3. If the plugin includes charter-level instructions (role boundaries, tool preferences), merge those into the agent's `charter.md`.
43
- 4. Log the installation in the agent's `history.md`: *"📦 Plugin '{plugin-name}' installed from {marketplace}."*
44
-
45
- ## Graceful Degradation
46
-
47
- - **No marketplaces configured:** Skip the marketplace check entirely. No warning, no prompt.
48
- - **Marketplace unreachable:** Warn the user (*"⚠ Couldn't reach {marketplace} — continuing without it"*) and proceed with team member creation normally.
49
- - **No matching plugins:** Inform the user (*"No matching plugins found in configured marketplaces"*) and proceed.
1
+ # Plugin Marketplace
2
+
3
+ Plugins are curated agent templates, skills, instructions, and prompts shared by the community via GitHub repositories (e.g., `github/awesome-copilot`, `anthropics/skills`). They provide ready-made expertise for common domains — cloud platforms, frameworks, testing strategies, etc.
4
+
5
+ ## Marketplace State
6
+
7
+ Registered marketplace sources are stored in `.squad/plugins/marketplaces.json`:
8
+
9
+ ```json
10
+ {
11
+ "marketplaces": [
12
+ {
13
+ "name": "awesome-copilot",
14
+ "source": "github/awesome-copilot",
15
+ "added_at": "2026-02-14T00:00:00Z"
16
+ }
17
+ ]
18
+ }
19
+ ```
20
+
21
+ ## CLI Commands
22
+
23
+ Users manage marketplaces via the CLI:
24
+ - `squad plugin marketplace add {owner/repo}` — Register a GitHub repo as a marketplace source
25
+ - `squad plugin marketplace remove {name}` — Remove a registered marketplace
26
+ - `squad plugin marketplace list` — List registered marketplaces
27
+ - `squad plugin marketplace browse {name}` — List available plugins in a marketplace
28
+
29
+ ## When to Browse
30
+
31
+ During the **Adding Team Members** flow, AFTER allocating a name but BEFORE generating the charter:
32
+
33
+ 1. Read `.squad/plugins/marketplaces.json`. If the file doesn't exist or `marketplaces` is empty, skip silently.
34
+ 2. For each registered marketplace, search for plugins whose name or description matches the new member's role or domain keywords.
35
+ 3. Present matching plugins to the user: *"Found '{plugin-name}' in {marketplace} marketplace — want me to install it as a skill for {CastName}?"*
36
+ 4. If the user accepts, install the plugin (see below). If they decline or skip, proceed without it.
37
+
38
+ ## How to Install a Plugin
39
+
40
+ 1. Read the plugin content from the marketplace repository (the plugin's `SKILL.md` or equivalent).
41
+ 2. Copy it into the agent's skills directory: `.squad/skills/{plugin-name}/SKILL.md`
42
+ 3. If the plugin includes charter-level instructions (role boundaries, tool preferences), merge those into the agent's `charter.md`.
43
+ 4. Log the installation in the agent's `history.md`: *"📦 Plugin '{plugin-name}' installed from {marketplace}."*
44
+
45
+ ## Graceful Degradation
46
+
47
+ - **No marketplaces configured:** Skip the marketplace check entirely. No warning, no prompt.
48
+ - **Marketplace unreachable:** Warn the user (*"⚠ Couldn't reach {marketplace} — continuing without it"*) and proceed with team member creation normally.
49
+ - **No matching plugins:** Inform the user (*"No matching plugins found in configured marketplaces"*) and proceed.