@bradygaster/squad-sdk 0.9.0 → 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 (76) hide show
  1. package/README.md +296 -296
  2. package/dist/agents/history-shadow.js +30 -30
  3. package/dist/build/github-dist.js +42 -42
  4. package/dist/config/init.js +173 -173
  5. package/dist/sharing/consult.js +78 -78
  6. package/package.json +1 -1
  7. package/templates/casting/Futurama.json +9 -9
  8. package/templates/casting-history.json +4 -4
  9. package/templates/casting-policy.json +37 -37
  10. package/templates/casting-reference.md +104 -104
  11. package/templates/casting-registry.json +3 -3
  12. package/templates/ceremonies.md +41 -41
  13. package/templates/charter.md +53 -53
  14. package/templates/constraint-tracking.md +38 -38
  15. package/templates/cooperative-rate-limiting.md +229 -229
  16. package/templates/copilot-instructions.md +46 -46
  17. package/templates/history.md +10 -10
  18. package/templates/identity/now.md +9 -9
  19. package/templates/identity/wisdom.md +15 -15
  20. package/templates/issue-lifecycle.md +412 -412
  21. package/templates/keda-scaler.md +164 -164
  22. package/templates/machine-capabilities.md +74 -74
  23. package/templates/mcp-config.md +90 -90
  24. package/templates/multi-agent-format.md +28 -28
  25. package/templates/plugin-marketplace.md +49 -49
  26. package/templates/ralph-circuit-breaker.md +313 -313
  27. package/templates/raw-agent-output.md +37 -37
  28. package/templates/roster.md +60 -60
  29. package/templates/routing.md +39 -39
  30. package/templates/run-output.md +50 -50
  31. package/templates/schedule.json +19 -19
  32. package/templates/scribe-charter.md +119 -119
  33. package/templates/skill.md +24 -24
  34. package/templates/skills/agent-collaboration/SKILL.md +42 -42
  35. package/templates/skills/agent-conduct/SKILL.md +24 -24
  36. package/templates/skills/architectural-proposals/SKILL.md +151 -151
  37. package/templates/skills/ci-validation-gates/SKILL.md +84 -84
  38. package/templates/skills/cli-wiring/SKILL.md +47 -47
  39. package/templates/skills/client-compatibility/SKILL.md +89 -89
  40. package/templates/skills/cross-squad/SKILL.md +114 -114
  41. package/templates/skills/distributed-mesh/SKILL.md +287 -287
  42. package/templates/skills/distributed-mesh/mesh.json.example +30 -30
  43. package/templates/skills/distributed-mesh/sync-mesh.ps1 +111 -111
  44. package/templates/skills/distributed-mesh/sync-mesh.sh +104 -104
  45. package/templates/skills/docs-standards/SKILL.md +71 -71
  46. package/templates/skills/economy-mode/SKILL.md +114 -114
  47. package/templates/skills/external-comms/SKILL.md +329 -329
  48. package/templates/skills/gh-auth-isolation/SKILL.md +183 -183
  49. package/templates/skills/git-workflow/SKILL.md +204 -204
  50. package/templates/skills/github-multi-account/SKILL.md +95 -95
  51. package/templates/skills/history-hygiene/SKILL.md +36 -36
  52. package/templates/skills/humanizer/SKILL.md +105 -105
  53. package/templates/skills/init-mode/SKILL.md +102 -102
  54. package/templates/skills/model-selection/SKILL.md +117 -117
  55. package/templates/skills/nap/SKILL.md +24 -24
  56. package/templates/skills/personal-squad/SKILL.md +57 -57
  57. package/templates/skills/project-conventions/SKILL.md +56 -56
  58. package/templates/skills/release-process/SKILL.md +423 -423
  59. package/templates/skills/reskill/SKILL.md +92 -92
  60. package/templates/skills/reviewer-protocol/SKILL.md +79 -79
  61. package/templates/skills/secret-handling/SKILL.md +200 -200
  62. package/templates/skills/session-recovery/SKILL.md +155 -155
  63. package/templates/skills/squad-conventions/SKILL.md +69 -69
  64. package/templates/skills/test-discipline/SKILL.md +37 -37
  65. package/templates/skills/windows-compatibility/SKILL.md +74 -74
  66. package/templates/workflows/squad-ci.yml +24 -24
  67. package/templates/workflows/squad-docs.yml +54 -54
  68. package/templates/workflows/squad-heartbeat.yml +171 -171
  69. package/templates/workflows/squad-insider-release.yml +61 -61
  70. package/templates/workflows/squad-issue-assign.yml +161 -161
  71. package/templates/workflows/squad-label-enforce.yml +181 -181
  72. package/templates/workflows/squad-preview.yml +55 -55
  73. package/templates/workflows/squad-promote.yml +120 -120
  74. package/templates/workflows/squad-release.yml +77 -77
  75. package/templates/workflows/squad-triage.yml +260 -260
  76. package/templates/workflows/sync-squad-labels.yml +169 -169
@@ -1,114 +1,114 @@
1
- ---
2
- name: "cross-squad"
3
- description: "Coordinating work across multiple Squad instances"
4
- domain: "orchestration"
5
- confidence: "medium"
6
- source: "manual"
7
- tools:
8
- - name: "squad-discover"
9
- description: "List known squads and their capabilities"
10
- when: "When you need to find which squad can handle a task"
11
- - name: "squad-delegate"
12
- description: "Create work in another squad's repository"
13
- when: "When a task belongs to another squad's domain"
14
- ---
15
-
16
- ## Context
17
- When an organization runs multiple Squad instances (e.g., platform-squad, frontend-squad, data-squad), those squads need to discover each other, share context, and hand off work across repository boundaries. This skill teaches agents how to coordinate across squads without creating tight coupling.
18
-
19
- Cross-squad orchestration applies when:
20
- - A task requires capabilities owned by another squad
21
- - An architectural decision affects multiple squads
22
- - A feature spans multiple repositories with different squads
23
- - A squad needs to request infrastructure, tooling, or support from another squad
24
-
25
- ## Patterns
26
-
27
- ### Discovery via Manifest
28
- Each squad publishes a `.squad/manifest.json` declaring its name, capabilities, and contact information. Squads discover each other through:
29
- 1. **Well-known paths**: Check `.squad/manifest.json` in known org repos
30
- 2. **Upstream config**: Squads already listed in `.squad/upstream.json` are checked for manifests
31
- 3. **Explicit registry**: A central `squad-registry.json` can list all squads in an org
32
-
33
- ```json
34
- {
35
- "name": "platform-squad",
36
- "version": "1.0.0",
37
- "description": "Platform infrastructure team",
38
- "capabilities": ["kubernetes", "helm", "monitoring", "ci-cd"],
39
- "contact": {
40
- "repo": "org/platform",
41
- "labels": ["squad:platform"]
42
- },
43
- "accepts": ["issues", "prs"],
44
- "skills": ["helm-developer", "operator-developer", "pipeline-engineer"]
45
- }
46
- ```
47
-
48
- ### Context Sharing
49
- When delegating work, share only what the target squad needs:
50
- - **Capability list**: What this squad can do (from manifest)
51
- - **Relevant decisions**: Only decisions that affect the target squad
52
- - **Handoff context**: A concise description of why this work is being delegated
53
-
54
- Do NOT share:
55
- - Internal team state (casting history, session logs)
56
- - Full decision archives (send only relevant excerpts)
57
- - Authentication credentials or secrets
58
-
59
- ### Work Handoff Protocol
60
- 1. **Check manifest**: Verify the target squad accepts the work type (issues, PRs)
61
- 2. **Create issue**: Use `gh issue create` in the target repo with:
62
- - Title: `[cross-squad] <description>`
63
- - Label: `squad:cross-squad` (or the squad's configured label)
64
- - Body: Context, acceptance criteria, and link back to originating issue
65
- 3. **Track**: Record the cross-squad issue URL in the originating squad's orchestration log
66
- 4. **Poll**: Periodically check if the delegated issue is closed/completed
67
-
68
- ### Feedback Loop
69
- Track delegated work completion:
70
- - Poll target issue status via `gh issue view`
71
- - Update originating issue with status changes
72
- - Close the feedback loop when delegated work merges
73
-
74
- ## Examples
75
-
76
- ### Discovering squads
77
- ```bash
78
- # List all squads discoverable from upstreams and known repos
79
- squad discover
80
-
81
- # Output:
82
- # platform-squad → org/platform (kubernetes, helm, monitoring)
83
- # frontend-squad → org/frontend (react, nextjs, storybook)
84
- # data-squad → org/data (spark, airflow, dbt)
85
- ```
86
-
87
- ### Delegating work
88
- ```bash
89
- # Delegate a task to the platform squad
90
- squad delegate platform-squad "Add Prometheus metrics endpoint for the auth service"
91
-
92
- # Creates issue in org/platform with cross-squad label and context
93
- ```
94
-
95
- ### Manifest in squad.config.ts
96
- ```typescript
97
- export default defineSquad({
98
- manifest: {
99
- name: 'platform-squad',
100
- capabilities: ['kubernetes', 'helm'],
101
- contact: { repo: 'org/platform', labels: ['squad:platform'] },
102
- accepts: ['issues', 'prs'],
103
- skills: ['helm-developer', 'operator-developer'],
104
- },
105
- });
106
- ```
107
-
108
- ## Anti-Patterns
109
- - **Direct file writes across repos** — Never modify another squad's `.squad/` directory. Use issues and PRs as the communication protocol.
110
- - **Tight coupling** — Don't depend on another squad's internal structure. Use the manifest as the public API contract.
111
- - **Unbounded delegation** — Always include acceptance criteria and a timeout. Don't create open-ended requests.
112
- - **Skipping discovery** — Don't hardcode squad locations. Use manifests and the discovery protocol.
113
- - **Sharing secrets** — Never include credentials, tokens, or internal URLs in cross-squad issues.
114
- - **Circular delegation** — Track delegation chains. If squad A delegates to B which delegates back to A, something is wrong.
1
+ ---
2
+ name: "cross-squad"
3
+ description: "Coordinating work across multiple Squad instances"
4
+ domain: "orchestration"
5
+ confidence: "medium"
6
+ source: "manual"
7
+ tools:
8
+ - name: "squad-discover"
9
+ description: "List known squads and their capabilities"
10
+ when: "When you need to find which squad can handle a task"
11
+ - name: "squad-delegate"
12
+ description: "Create work in another squad's repository"
13
+ when: "When a task belongs to another squad's domain"
14
+ ---
15
+
16
+ ## Context
17
+ When an organization runs multiple Squad instances (e.g., platform-squad, frontend-squad, data-squad), those squads need to discover each other, share context, and hand off work across repository boundaries. This skill teaches agents how to coordinate across squads without creating tight coupling.
18
+
19
+ Cross-squad orchestration applies when:
20
+ - A task requires capabilities owned by another squad
21
+ - An architectural decision affects multiple squads
22
+ - A feature spans multiple repositories with different squads
23
+ - A squad needs to request infrastructure, tooling, or support from another squad
24
+
25
+ ## Patterns
26
+
27
+ ### Discovery via Manifest
28
+ Each squad publishes a `.squad/manifest.json` declaring its name, capabilities, and contact information. Squads discover each other through:
29
+ 1. **Well-known paths**: Check `.squad/manifest.json` in known org repos
30
+ 2. **Upstream config**: Squads already listed in `.squad/upstream.json` are checked for manifests
31
+ 3. **Explicit registry**: A central `squad-registry.json` can list all squads in an org
32
+
33
+ ```json
34
+ {
35
+ "name": "platform-squad",
36
+ "version": "1.0.0",
37
+ "description": "Platform infrastructure team",
38
+ "capabilities": ["kubernetes", "helm", "monitoring", "ci-cd"],
39
+ "contact": {
40
+ "repo": "org/platform",
41
+ "labels": ["squad:platform"]
42
+ },
43
+ "accepts": ["issues", "prs"],
44
+ "skills": ["helm-developer", "operator-developer", "pipeline-engineer"]
45
+ }
46
+ ```
47
+
48
+ ### Context Sharing
49
+ When delegating work, share only what the target squad needs:
50
+ - **Capability list**: What this squad can do (from manifest)
51
+ - **Relevant decisions**: Only decisions that affect the target squad
52
+ - **Handoff context**: A concise description of why this work is being delegated
53
+
54
+ Do NOT share:
55
+ - Internal team state (casting history, session logs)
56
+ - Full decision archives (send only relevant excerpts)
57
+ - Authentication credentials or secrets
58
+
59
+ ### Work Handoff Protocol
60
+ 1. **Check manifest**: Verify the target squad accepts the work type (issues, PRs)
61
+ 2. **Create issue**: Use `gh issue create` in the target repo with:
62
+ - Title: `[cross-squad] <description>`
63
+ - Label: `squad:cross-squad` (or the squad's configured label)
64
+ - Body: Context, acceptance criteria, and link back to originating issue
65
+ 3. **Track**: Record the cross-squad issue URL in the originating squad's orchestration log
66
+ 4. **Poll**: Periodically check if the delegated issue is closed/completed
67
+
68
+ ### Feedback Loop
69
+ Track delegated work completion:
70
+ - Poll target issue status via `gh issue view`
71
+ - Update originating issue with status changes
72
+ - Close the feedback loop when delegated work merges
73
+
74
+ ## Examples
75
+
76
+ ### Discovering squads
77
+ ```bash
78
+ # List all squads discoverable from upstreams and known repos
79
+ squad discover
80
+
81
+ # Output:
82
+ # platform-squad → org/platform (kubernetes, helm, monitoring)
83
+ # frontend-squad → org/frontend (react, nextjs, storybook)
84
+ # data-squad → org/data (spark, airflow, dbt)
85
+ ```
86
+
87
+ ### Delegating work
88
+ ```bash
89
+ # Delegate a task to the platform squad
90
+ squad delegate platform-squad "Add Prometheus metrics endpoint for the auth service"
91
+
92
+ # Creates issue in org/platform with cross-squad label and context
93
+ ```
94
+
95
+ ### Manifest in squad.config.ts
96
+ ```typescript
97
+ export default defineSquad({
98
+ manifest: {
99
+ name: 'platform-squad',
100
+ capabilities: ['kubernetes', 'helm'],
101
+ contact: { repo: 'org/platform', labels: ['squad:platform'] },
102
+ accepts: ['issues', 'prs'],
103
+ skills: ['helm-developer', 'operator-developer'],
104
+ },
105
+ });
106
+ ```
107
+
108
+ ## Anti-Patterns
109
+ - **Direct file writes across repos** — Never modify another squad's `.squad/` directory. Use issues and PRs as the communication protocol.
110
+ - **Tight coupling** — Don't depend on another squad's internal structure. Use the manifest as the public API contract.
111
+ - **Unbounded delegation** — Always include acceptance criteria and a timeout. Don't create open-ended requests.
112
+ - **Skipping discovery** — Don't hardcode squad locations. Use manifests and the discovery protocol.
113
+ - **Sharing secrets** — Never include credentials, tokens, or internal URLs in cross-squad issues.
114
+ - **Circular delegation** — Track delegation chains. If squad A delegates to B which delegates back to A, something is wrong.