Standard collaboration patterns for all squad agents — worktree awareness, decisions, cross-agent communication
日本語の概要は準備中です。原文の説明を表示しています。
Coordinating work across multiple Squad instances — discovery, delegation, and disambiguation when the user says 'squad' (the product) vs casual English 'group of agents'.
インストール方法を見るインストールする前に、エージェントに与えられる指示の中身を確認できます。
Read this FIRST any time the user says "squad" as a thing to spawn, delegate to, address, or fan out to — e.g., "spawn two squads of designers and devs", "ask the other squad", "delegate to a squad". In Squad-PRODUCT vocabulary, "squad" is a peer (an independent installation with its own
.squad/,team.md, MCP server, and agents) — NOT a generic English synonym for "team" or "group". Do not fan out rawtaskagents inside your own coordinator context when the user means "another squad". Use the discovery and communication patterns below (and the companioncross-squad-communicationskill for the actual protocols).
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.
Companion skill — for protocol details:
cross-squad-communication/SKILL.mdcovers the four communication patterns (synchronous CLI, read-only knowledge query, git-based async, and GitHub-issue-based delegation) once a peer squad is discovered via the registry below. This skill answers "who?" — the companion answers "how?".
Cross-squad orchestration applies when:
When the user uses the word "squad" / "squads" or asks to "spawn a team", the coordinator MUST treat it as a literal reference to a Squad install (a .squad/ directory with its own roster, casting, and coordinator) — NOT as a casual synonym for "a group of sub-agents".
| User says | Coordinator does |
|---|---|
| "spawn two squads of X and Y" / "set up squads for X, Y, Z" | Bootstrap N real Squad installs — separate folder + git init + squad init per squad — then use the cross-squad patterns below (.squad/manifest.json, squad registry add, squad delegate) and the protocols in the cross-squad-communication skill |
| "ask the other squad about X" / "delegate to the data squad" | Discover the peer via squad registry list (or by reading a known .squad/manifest.json), then use cross-squad-communication Pattern 0 / 1 / 2 / 3 — never re-implement the protocol with task |
| "spawn a few agents to do X" / "have some agents review X" / "in parallel, get sub-agents to..." | Ad-hoc task fan-out is fine — no .squad/ bootstrap needed. This is the only path where raw task is appropriate when the user mentioned a multi-agent activity |
ask_user, never silently downgradeIf the request could be either interpretation AND bootstrapping real squads is non-trivial (more than one or two squad init runs), you MUST use the ask_user tool with a 2-choice prompt before proceeding:
question: "Should I create separate Squad installs or just dispatch ad-hoc agents?"
choices:
- "Real squads — separate .squad/ per squad (heavier, persistent, can be re-engaged later)"
- "Ad-hoc agents — one-shot `task` dispatch (lighter, ephemeral, no .squad/ created)"
The cost of asking is one ask_user. The cost of getting it wrong is the user has to redo the work. Never silently pick the cheaper option just because it feels disproportionate for the task size — surface the trade-off and let the user pick.
task sub-agents "squad-alpha" / "squad-beta" and treating them as squads. Naming something a squad doesn't make it one — a squad has its own .squad/, team.md, MCP server, and coordinator. If those aren't there, it's not a squad.reviews/squad-alpha/ folders from a previous run, that's a hint, NOT a contract — the user may have meant something different this time. Re-evaluate from scratch.ask_user.cross-squad skill, reading it, then doing task fan-out anyway because the eager-execution / parallel-fan-out doctrine pulled you back. The disambiguation rule on this page OVERRIDES the generic fan-out doctrine when "squad" was the trigger.Each squad publishes a .squad/manifest.json declaring its name, capabilities, and contact information. Squads discover each other through two mechanisms:
.squad/squad-registry.json — discovery-only. Peer squads are findable via squad discover and addressable via squad delegate, but their skills/decisions/wisdom are NOT loaded into your coordinator. Manage with squad registry add/list/remove..squad/upstream.json — discovery + inheritance. Squads listed here are also discoverable, AND your coordinator inherits their skills/decisions/wisdom/routing at session start. Manage with squad upstream add/list/remove/sync.Both forms read the peer's manifest via the same code path. The path field is the repository root (e.g. ../friend-repo), and Squad appends .squad/manifest.json internally. Pointing at the .squad/ directory works too — Squad accepts both forms (readManifest strips a trailing .squad if present).
{
"name": "platform-squad",
"version": "1.0.0",
"description": "Platform infrastructure team",
"capabilities": ["kubernetes", "helm", "monitoring", "ci-cd"],
"contact": {
"repo": "org/platform",
"labels": ["squad:platform"]
},
"accepts": ["issues", "prs"],
"skills": ["helm-developer", "operator-developer", "pipeline-engineer"]
}
When delegating work, share only what the target squad needs:
Do NOT share:
gh issue create in the target repo with:
[cross-squad] <description>squad:cross-squad (or the squad's configured label)Track delegated work completion:
gh issue view# Friend's repo is checked out at ../friend-platform/
squad registry add platform-squad ../friend-platform
# Verify
squad registry list
squad discover
# List all squads discoverable from registry + upstreams
squad discover
# Output:
# platform-squad → org/platform (kubernetes, helm, monitoring)
# frontend-squad → org/frontend (react, nextjs, storybook)
# data-squad → org/data (spark, airflow, dbt)
# Delegate a task to the platform squad
squad delegate platform-squad "Add Prometheus metrics endpoint for the auth service"
# Creates issue in org/platform with cross-squad label and context
export default defineSquad({
manifest: {
name: 'platform-squad',
capabilities: ['kubernetes', 'helm'],
contact: { repo: 'org/platform', labels: ['squad:platform'] },
accepts: ['issues', 'prs'],
skills: ['helm-developer', 'operator-developer'],
},
});
.squad/ directory. Use issues and PRs as the communication protocol.まだレビューはありません。使ってみた感想をお寄せください。
概要と使いどころ
Standard collaboration patterns for all squad agents — worktree awareness, decisions, cross-agent communication
日本語の概要は準備中です。原文の説明を表示しています。
Shared hard rules enforced across all squad agents
日本語の概要は準備中です。原文の説明を表示しています。
Route gh-aw design, creation, diagnosis, patching, active debugging, and upgrade requests to the right strategies.
日本語の概要は準備中です。原文の説明を表示しています。
How to write comprehensive architectural proposals that drive alignment before code is written
日本語の概要は準備中です。原文の説明を表示しています。
Upgrade gh-aw to latest gh-aw-firewall release and identify follow-up spec tasks.
日本語の概要は準備中です。原文の説明を表示しています。
Review code that performs git or gh operations against repository checkouts in gh-aw, checking that the right credentials are available at the right time and that sparseness, shallowness and credential-free factors are properly considered.
日本語の概要は準備中です。原文の説明を表示しています。