@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.
- package/README.md +296 -296
- package/dist/agents/history-shadow.js +30 -30
- package/dist/build/github-dist.js +42 -42
- package/dist/config/init.js +173 -173
- package/dist/sharing/consult.js +78 -78
- package/package.json +1 -1
- package/templates/casting/Futurama.json +9 -9
- package/templates/casting-history.json +4 -4
- package/templates/casting-policy.json +37 -37
- package/templates/casting-reference.md +104 -104
- package/templates/casting-registry.json +3 -3
- package/templates/ceremonies.md +41 -41
- package/templates/charter.md +53 -53
- package/templates/constraint-tracking.md +38 -38
- package/templates/cooperative-rate-limiting.md +229 -229
- package/templates/copilot-instructions.md +46 -46
- package/templates/history.md +10 -10
- package/templates/identity/now.md +9 -9
- package/templates/identity/wisdom.md +15 -15
- package/templates/issue-lifecycle.md +412 -412
- package/templates/keda-scaler.md +164 -164
- package/templates/machine-capabilities.md +74 -74
- package/templates/mcp-config.md +90 -90
- package/templates/multi-agent-format.md +28 -28
- package/templates/plugin-marketplace.md +49 -49
- package/templates/ralph-circuit-breaker.md +313 -313
- package/templates/raw-agent-output.md +37 -37
- package/templates/roster.md +60 -60
- package/templates/routing.md +39 -39
- package/templates/run-output.md +50 -50
- package/templates/schedule.json +19 -19
- package/templates/scribe-charter.md +119 -119
- package/templates/skill.md +24 -24
- package/templates/skills/agent-collaboration/SKILL.md +42 -42
- package/templates/skills/agent-conduct/SKILL.md +24 -24
- package/templates/skills/architectural-proposals/SKILL.md +151 -151
- package/templates/skills/ci-validation-gates/SKILL.md +84 -84
- package/templates/skills/cli-wiring/SKILL.md +47 -47
- package/templates/skills/client-compatibility/SKILL.md +89 -89
- package/templates/skills/cross-squad/SKILL.md +114 -114
- package/templates/skills/distributed-mesh/SKILL.md +287 -287
- package/templates/skills/distributed-mesh/mesh.json.example +30 -30
- package/templates/skills/distributed-mesh/sync-mesh.ps1 +111 -111
- package/templates/skills/distributed-mesh/sync-mesh.sh +104 -104
- package/templates/skills/docs-standards/SKILL.md +71 -71
- package/templates/skills/economy-mode/SKILL.md +114 -114
- package/templates/skills/external-comms/SKILL.md +329 -329
- package/templates/skills/gh-auth-isolation/SKILL.md +183 -183
- package/templates/skills/git-workflow/SKILL.md +204 -204
- package/templates/skills/github-multi-account/SKILL.md +95 -95
- package/templates/skills/history-hygiene/SKILL.md +36 -36
- package/templates/skills/humanizer/SKILL.md +105 -105
- package/templates/skills/init-mode/SKILL.md +102 -102
- package/templates/skills/model-selection/SKILL.md +117 -117
- package/templates/skills/nap/SKILL.md +24 -24
- package/templates/skills/personal-squad/SKILL.md +57 -57
- package/templates/skills/project-conventions/SKILL.md +56 -56
- package/templates/skills/release-process/SKILL.md +423 -423
- package/templates/skills/reskill/SKILL.md +92 -92
- package/templates/skills/reviewer-protocol/SKILL.md +79 -79
- package/templates/skills/secret-handling/SKILL.md +200 -200
- package/templates/skills/session-recovery/SKILL.md +155 -155
- package/templates/skills/squad-conventions/SKILL.md +69 -69
- package/templates/skills/test-discipline/SKILL.md +37 -37
- package/templates/skills/windows-compatibility/SKILL.md +74 -74
- package/templates/workflows/squad-ci.yml +24 -24
- package/templates/workflows/squad-docs.yml +54 -54
- package/templates/workflows/squad-heartbeat.yml +171 -171
- package/templates/workflows/squad-insider-release.yml +61 -61
- package/templates/workflows/squad-issue-assign.yml +161 -161
- package/templates/workflows/squad-label-enforce.yml +181 -181
- package/templates/workflows/squad-preview.yml +55 -55
- package/templates/workflows/squad-promote.yml +120 -120
- package/templates/workflows/squad-release.yml +77 -77
- package/templates/workflows/squad-triage.yml +260 -260
- 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.
|