@bradygaster/squad-sdk 0.8.17 → 0.8.18

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 (64) hide show
  1. package/dist/adapter/client.d.ts.map +1 -1
  2. package/dist/adapter/client.js +2 -0
  3. package/dist/adapter/client.js.map +1 -1
  4. package/dist/config/init.d.ts +43 -2
  5. package/dist/config/init.d.ts.map +1 -1
  6. package/dist/config/init.js +389 -46
  7. package/dist/config/init.js.map +1 -1
  8. package/dist/index.d.ts +8 -13
  9. package/dist/index.d.ts.map +1 -1
  10. package/dist/index.js +6 -9
  11. package/dist/index.js.map +1 -1
  12. package/dist/ralph/index.js +5 -5
  13. package/dist/ralph/index.js.map +1 -1
  14. package/dist/remote/bridge.d.ts +2 -0
  15. package/dist/remote/bridge.d.ts.map +1 -1
  16. package/dist/remote/bridge.js +34 -4
  17. package/dist/remote/bridge.js.map +1 -1
  18. package/dist/resolution.d.ts +13 -0
  19. package/dist/resolution.d.ts.map +1 -1
  20. package/dist/resolution.js +9 -1
  21. package/dist/resolution.js.map +1 -1
  22. package/dist/sharing/consult.d.ts +226 -0
  23. package/dist/sharing/consult.d.ts.map +1 -0
  24. package/dist/sharing/consult.js +818 -0
  25. package/dist/sharing/consult.js.map +1 -0
  26. package/dist/sharing/index.d.ts +2 -1
  27. package/dist/sharing/index.d.ts.map +1 -1
  28. package/dist/sharing/index.js +2 -1
  29. package/dist/sharing/index.js.map +1 -1
  30. package/package.json +4 -2
  31. package/templates/casting-history.json +4 -0
  32. package/templates/casting-policy.json +35 -0
  33. package/templates/casting-registry.json +3 -0
  34. package/templates/ceremonies.md +41 -0
  35. package/templates/charter.md +53 -0
  36. package/templates/constraint-tracking.md +38 -0
  37. package/templates/copilot-instructions.md +46 -0
  38. package/templates/history.md +10 -0
  39. package/templates/identity/now.md +9 -0
  40. package/templates/identity/wisdom.md +15 -0
  41. package/templates/mcp-config.md +98 -0
  42. package/templates/multi-agent-format.md +28 -0
  43. package/templates/orchestration-log.md +27 -0
  44. package/templates/plugin-marketplace.md +49 -0
  45. package/templates/raw-agent-output.md +37 -0
  46. package/templates/roster.md +60 -0
  47. package/templates/routing.md +54 -0
  48. package/templates/run-output.md +50 -0
  49. package/templates/scribe-charter.md +119 -0
  50. package/templates/skill.md +24 -0
  51. package/templates/skills/project-conventions/SKILL.md +56 -0
  52. package/templates/squad.agent.md +1146 -0
  53. package/templates/workflows/squad-ci.yml +24 -0
  54. package/templates/workflows/squad-docs.yml +50 -0
  55. package/templates/workflows/squad-heartbeat.yml +316 -0
  56. package/templates/workflows/squad-insider-release.yml +61 -0
  57. package/templates/workflows/squad-issue-assign.yml +161 -0
  58. package/templates/workflows/squad-label-enforce.yml +181 -0
  59. package/templates/workflows/squad-main-guard.yml +129 -0
  60. package/templates/workflows/squad-preview.yml +55 -0
  61. package/templates/workflows/squad-promote.yml +121 -0
  62. package/templates/workflows/squad-release.yml +77 -0
  63. package/templates/workflows/squad-triage.yml +260 -0
  64. package/templates/workflows/sync-squad-labels.yml +169 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"consult.js","sourceRoot":"","sources":["../../src/sharing/consult.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAE9C,OAAO,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAK1D,+EAA+E;AAC/E,eAAe;AACf,+EAA+E;AAE/E;;;GAGG;AACH,MAAM,OAAO,0BAA2B,SAAQ,KAAK;IACnD;QACE,KAAK,CAAC,yFAAyF,CAAC,CAAC;QACjG,IAAI,CAAC,IAAI,GAAG,4BAA4B,CAAC;IAC3C,CAAC;CACF;AAED;;;GAGG;AACH,MAAM,OAAO,u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,KAAK,CAAC,OAAO,CAAC,CAAC;gBACrD,IAAI,gBAAgB,IAAI,gBAAgB,CAAC,KAAK,KAAK,SAAS,EAAE,CAAC;oBAC7D,6BAA6B;oBAC7B,MAAM,cAAc,GAAG,YAAY,CAAC,KAAK,CAAC,CAAC,EAAE,gBAAgB,CAAC,KAAK,CAAC,CAAC;oBACrE,MAAM,IAAI,GAAG,YAAY,CAAC,KAAK,CAAC,gBAAgB,CAAC,KAAK,CAAC,CAAC;oBACxD,EAAE,CAAC,aAAa,CACd,aAAa,EACb,aAAa;wBACX,iCAAiC;wBACjC,cAAc,CAAC,OAAO,EAAE;wBACxB,MAAM;wBACN,UAAU;wBACV,IAAI;wBACJ,IAAI,EACN,OAAO,CACR,CAAC;gBACJ,CAAC;qBAAM,CAAC;oBACN,kCAAkC;oBAClC,EAAE,CAAC,aAAa,CACd,aAAa,EACb,QAAQ,CAAC,OAAO,EAAE,GAAG,MAAM,GAAG,UAAU,GAAG,IAAI,EAC/C,OAAO,CACR,CAAC;gBACJ,CAAC;YACH,CAAC;iBAAM,CAAC;gBACN,yCAAyC;gBACzC,EAAE,CAAC,aAAa,CACd,aAAa,EACb,QAAQ,CAAC,OAAO,EAAE,GAAG,yCAAyC,GAAG,UAAU,GAAG,IAAI,EAClF,OAAO,CACR,CAAC;YACJ,CAAC;QACH,CAAC;aAAM,CAAC;YACN,4BAA4B;YAC5B,EAAE,CAAC,aAAa,CACd,aAAa,EACb,2DAA2D,UAAU,IAAI,EACzE,OAAO,CACR,CAAC;QACJ,CAAC;QACD,cAAc,GAAG,SAAS,CAAC,MAAM,CAAC;IACpC,CAAC;IAED,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,EAAE,WAAW,EAAE,CAAC;AAC5D,CAAC"}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Sharing module exports — export, import, history splitting, versioning, caching, conflicts
2
+ * Sharing module exports — export, import, history splitting, versioning, caching, conflicts, consult
3
3
  */
4
4
  export * from './export.js';
5
5
  export * from './import.js';
@@ -8,4 +8,5 @@ export * from './versioning.js';
8
8
  export * from './agent-repo.js';
9
9
  export * from './cache.js';
10
10
  export * from './conflicts.js';
11
+ export * from './consult.js';
11
12
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/sharing/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/sharing/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC"}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Sharing module exports — export, import, history splitting, versioning, caching, conflicts
2
+ * Sharing module exports — export, import, history splitting, versioning, caching, conflicts, consult
3
3
  */
4
4
  export * from './export.js';
5
5
  export * from './import.js';
@@ -8,4 +8,5 @@ export * from './versioning.js';
8
8
  export * from './agent-repo.js';
9
9
  export * from './cache.js';
10
10
  export * from './conflicts.js';
11
+ export * from './consult.js';
11
12
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/sharing/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/sharing/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bradygaster/squad-sdk",
3
- "version": "0.8.17",
3
+ "version": "0.8.18",
4
4
  "description": "Squad SDK — Programmable multi-agent runtime for GitHub Copilot",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -149,9 +149,11 @@
149
149
  },
150
150
  "files": [
151
151
  "dist",
152
+ "templates",
152
153
  "README.md"
153
154
  ],
154
155
  "scripts": {
156
+ "prepare": "npm run build",
155
157
  "prepublishOnly": "npm run build",
156
158
  "build": "tsc -p tsconfig.json"
157
159
  },
@@ -159,7 +161,7 @@
159
161
  "node": ">=20"
160
162
  },
161
163
  "dependencies": {
162
- "@github/copilot-sdk": "^0.1.25"
164
+ "@github/copilot-sdk": "^0.1.29"
163
165
  },
164
166
  "peerDependencies": {
165
167
  "@opentelemetry/api": "^1.9.0"
@@ -0,0 +1,4 @@
1
+ {
2
+ "universe_usage_history": [],
3
+ "assignment_cast_snapshots": {}
4
+ }
@@ -0,0 +1,35 @@
1
+ {
2
+ "casting_policy_version": "1.1",
3
+ "allowlist_universes": [
4
+ "The Usual Suspects",
5
+ "Reservoir Dogs",
6
+ "Alien",
7
+ "Ocean's Eleven",
8
+ "Arrested Development",
9
+ "Star Wars",
10
+ "The Matrix",
11
+ "Firefly",
12
+ "The Goonies",
13
+ "The Simpsons",
14
+ "Breaking Bad",
15
+ "Lost",
16
+ "Marvel Cinematic Universe",
17
+ "DC Universe"
18
+ ],
19
+ "universe_capacity": {
20
+ "The Usual Suspects": 6,
21
+ "Reservoir Dogs": 8,
22
+ "Alien": 8,
23
+ "Ocean's Eleven": 14,
24
+ "Arrested Development": 15,
25
+ "Star Wars": 12,
26
+ "The Matrix": 10,
27
+ "Firefly": 10,
28
+ "The Goonies": 8,
29
+ "The Simpsons": 20,
30
+ "Breaking Bad": 12,
31
+ "Lost": 18,
32
+ "Marvel Cinematic Universe": 25,
33
+ "DC Universe": 18
34
+ }
35
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "agents": {}
3
+ }
@@ -0,0 +1,41 @@
1
+ # Ceremonies
2
+
3
+ > Team meetings that happen before or after work. Each squad configures their own.
4
+
5
+ ## Design Review
6
+
7
+ | Field | Value |
8
+ |-------|-------|
9
+ | **Trigger** | auto |
10
+ | **When** | before |
11
+ | **Condition** | multi-agent task involving 2+ agents modifying shared systems |
12
+ | **Facilitator** | lead |
13
+ | **Participants** | all-relevant |
14
+ | **Time budget** | focused |
15
+ | **Enabled** | ✅ yes |
16
+
17
+ **Agenda:**
18
+ 1. Review the task and requirements
19
+ 2. Agree on interfaces and contracts between components
20
+ 3. Identify risks and edge cases
21
+ 4. Assign action items
22
+
23
+ ---
24
+
25
+ ## Retrospective
26
+
27
+ | Field | Value |
28
+ |-------|-------|
29
+ | **Trigger** | auto |
30
+ | **When** | after |
31
+ | **Condition** | build failure, test failure, or reviewer rejection |
32
+ | **Facilitator** | lead |
33
+ | **Participants** | all-involved |
34
+ | **Time budget** | focused |
35
+ | **Enabled** | ✅ yes |
36
+
37
+ **Agenda:**
38
+ 1. What happened? (facts only)
39
+ 2. Root cause analysis
40
+ 3. What should change?
41
+ 4. Action items for next iteration
@@ -0,0 +1,53 @@
1
+ # {Name} — {Role}
2
+
3
+ > {One-line personality statement — what makes this person tick}
4
+
5
+ ## Identity
6
+
7
+ - **Name:** {Name}
8
+ - **Role:** {Role title}
9
+ - **Expertise:** {2-3 specific skills relevant to the project}
10
+ - **Style:** {How they communicate — direct? thorough? opinionated?}
11
+
12
+ ## What I Own
13
+
14
+ - {Area of responsibility 1}
15
+ - {Area of responsibility 2}
16
+ - {Area of responsibility 3}
17
+
18
+ ## How I Work
19
+
20
+ - {Key approach or principle 1}
21
+ - {Key approach or principle 2}
22
+ - {Pattern or convention I follow}
23
+
24
+ ## Boundaries
25
+
26
+ **I handle:** {types of work this agent does}
27
+
28
+ **I don't handle:** {types of work that belong to other team members}
29
+
30
+ **When I'm unsure:** I say so and suggest who might know.
31
+
32
+ **If I review others' work:** On rejection, I may require a different agent to revise (not the original author) or request a new specialist be spawned. The Coordinator enforces this.
33
+
34
+ ## Model
35
+
36
+ - **Preferred:** auto
37
+ - **Rationale:** Coordinator selects the best model based on task type — cost first unless writing code
38
+ - **Fallback:** Standard chain — the coordinator handles fallback automatically
39
+
40
+ ## Collaboration
41
+
42
+ Before starting work, run `git rev-parse --show-toplevel` to find the repo root, or use the `TEAM ROOT` provided in the spawn prompt. All `.squad/` paths must be resolved relative to this root — do not assume CWD is the repo root (you may be in a worktree or subdirectory).
43
+
44
+ Before starting work, read `.squad/decisions.md` for team decisions that affect me.
45
+ After making a decision others should know, write it to `.squad/decisions/inbox/{my-name}-{brief-slug}.md` — the Scribe will merge it.
46
+ If I need another team member's input, say so — the coordinator will bring them in.
47
+
48
+ ## Voice
49
+
50
+ {1-2 sentences describing personality. Not generic — specific. This agent has OPINIONS.
51
+ They have preferences. They push back. They have a style that's distinctly theirs.
52
+ Example: "Opinionated about test coverage. Will push back if tests are skipped.
53
+ Prefers integration tests over mocks. Thinks 80% coverage is the floor, not the ceiling."}
@@ -0,0 +1,38 @@
1
+ # Constraint Budget Tracking
2
+
3
+ When the user or system imposes constraints (question limits, revision limits, time budgets), maintain a visible counter in your responses and in the artifact.
4
+
5
+ ## Format
6
+
7
+ ```
8
+ 📊 Clarifying questions used: 2 / 3
9
+ ```
10
+
11
+ ## Rules
12
+
13
+ - Update the counter each time the constraint is consumed
14
+ - When a constraint is exhausted, state it: `📊 Question budget exhausted (3/3). Proceeding with current information.`
15
+ - If no constraints are active, do not display counters
16
+ - Include the final constraint status in multi-agent artifacts
17
+
18
+ ## Example Session
19
+
20
+ ```
21
+ Coordinator: Spawning agents to analyze requirements...
22
+ 📊 Clarifying questions used: 0 / 3
23
+
24
+ Agent asks clarification: "Should we support OAuth?"
25
+ Coordinator: Checking with user...
26
+ 📊 Clarifying questions used: 1 / 3
27
+
28
+ Agent asks clarification: "What's the rate limit?"
29
+ Coordinator: Checking with user...
30
+ 📊 Clarifying questions used: 2 / 3
31
+
32
+ Agent asks clarification: "Do we need RBAC?"
33
+ Coordinator: Checking with user...
34
+ 📊 Clarifying questions used: 3 / 3
35
+
36
+ Agent asks clarification: "Should we cache responses?"
37
+ Coordinator: 📊 Question budget exhausted (3/3). Proceeding without clarification.
38
+ ```
@@ -0,0 +1,46 @@
1
+ # Copilot Coding Agent — Squad Instructions
2
+
3
+ You are working on a project that uses **Squad**, an AI team framework. When picking up issues autonomously, follow these guidelines.
4
+
5
+ ## Team Context
6
+
7
+ Before starting work on any issue:
8
+
9
+ 1. Read `.squad/team.md` for the team roster, member roles, and your capability profile.
10
+ 2. Read `.squad/routing.md` for work routing rules.
11
+ 3. If the issue has a `squad:{member}` label, read that member's charter at `.squad/agents/{member}/charter.md` to understand their domain expertise and coding style — work in their voice.
12
+
13
+ ## Capability Self-Check
14
+
15
+ Before starting work, check your capability profile in `.squad/team.md` under the **Coding Agent → Capabilities** section.
16
+
17
+ - **🟢 Good fit** — proceed autonomously.
18
+ - **🟡 Needs review** — proceed, but note in the PR description that a squad member should review.
19
+ - **🔴 Not suitable** — do NOT start work. Instead, comment on the issue:
20
+ ```
21
+ 🤖 This issue doesn't match my capability profile (reason: {why}). Suggesting reassignment to a squad member.
22
+ ```
23
+
24
+ ## Branch Naming
25
+
26
+ Use the squad branch convention:
27
+ ```
28
+ squad/{issue-number}-{kebab-case-slug}
29
+ ```
30
+ Example: `squad/42-fix-login-validation`
31
+
32
+ ## PR Guidelines
33
+
34
+ When opening a PR:
35
+ - Reference the issue: `Closes #{issue-number}`
36
+ - If the issue had a `squad:{member}` label, mention the member: `Working as {member} ({role})`
37
+ - If this is a 🟡 needs-review task, add to the PR description: `⚠️ This task was flagged as "needs review" — please have a squad member review before merging.`
38
+ - Follow any project conventions in `.squad/decisions.md`
39
+
40
+ ## Decisions
41
+
42
+ If you make a decision that affects other team members, write it to:
43
+ ```
44
+ .squad/decisions/inbox/copilot-{brief-slug}.md
45
+ ```
46
+ The Scribe will merge it into the shared decisions file.
@@ -0,0 +1,10 @@
1
+ # Project Context
2
+
3
+ - **Owner:** {user name}
4
+ - **Project:** {project description}
5
+ - **Stack:** {languages, frameworks, tools}
6
+ - **Created:** {timestamp}
7
+
8
+ ## Learnings
9
+
10
+ <!-- Append new learnings below. Each entry is something lasting about the project. -->
@@ -0,0 +1,9 @@
1
+ ---
2
+ updated_at: {timestamp}
3
+ focus_area: {brief description}
4
+ active_issues: []
5
+ ---
6
+
7
+ # What We're Focused On
8
+
9
+ {Narrative description of current focus — 1-3 sentences. Updated by coordinator at session start.}
@@ -0,0 +1,15 @@
1
+ ---
2
+ last_updated: {timestamp}
3
+ ---
4
+
5
+ # Team Wisdom
6
+
7
+ Reusable patterns and heuristics learned through work. NOT transcripts — each entry is a distilled, actionable insight.
8
+
9
+ ## Patterns
10
+
11
+ <!-- Append entries below. Format: **Pattern:** description. **Context:** when it applies. -->
12
+
13
+ ## Anti-Patterns
14
+
15
+ <!-- Things we tried that didn't work. **Avoid:** description. **Why:** reason. -->
@@ -0,0 +1,98 @@
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.
@@ -0,0 +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.
@@ -0,0 +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.
@@ -0,0 +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.
@@ -0,0 +1,37 @@
1
+ # Raw Agent Output — Appendix Format
2
+
3
+ > This template defines the format for the `## APPENDIX: RAW AGENT OUTPUTS` section
4
+ > in any multi-agent artifact.
5
+
6
+ ## Rules
7
+
8
+ 1. **Verbatim only.** Paste the agent's response exactly as returned. No edits.
9
+ 2. **No summarizing.** Do not condense, paraphrase, or rephrase any part of the output.
10
+ 3. **No rewriting.** Do not fix typos, grammar, formatting, or style.
11
+ 4. **No code fences around the entire output.** The raw output is pasted as-is, not wrapped in ``` blocks.
12
+ 5. **One section per agent.** Each agent that contributed gets its own heading.
13
+ 6. **Order matches work order.** List agents in the order they were spawned.
14
+ 7. **Include all outputs.** Even if an agent's work was rejected, include their output for diagnostic traceability.
15
+
16
+ ## Format
17
+
18
+ ```markdown
19
+ ## APPENDIX: RAW AGENT OUTPUTS
20
+
21
+ ### {Name} ({Role}) — Raw Output
22
+
23
+ {Paste agent's verbatim response here, unedited}
24
+
25
+ ### {Name} ({Role}) — Raw Output
26
+
27
+ {Paste agent's verbatim response here, unedited}
28
+ ```
29
+
30
+ ## Why This Exists
31
+
32
+ The appendix provides diagnostic integrity. It lets anyone verify:
33
+ - What each agent actually said (vs. what the Coordinator assembled)
34
+ - Whether the Coordinator faithfully represented agent work
35
+ - What was lost or changed in synthesis
36
+
37
+ Without raw outputs, multi-agent collaboration is unauditable.