cross-squad
Skill227 starsChanged 9 months agoApache-2.0View on GitHub
Coordinating work across multiple Squad instances — discovery, delegation, and disambiguation when the user says 'squad' (the product) vs casual English 'group of agents'.
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 5 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 31
When an organization runs multiple Squad instances (e.g., platform-squad, frontend-squad, data-squad), those squads need to discover each …
- Very specific: line 55
If the request could be either interpretation AND bootstrapping real squads is non-trivial (more than one or two squad init runs), you MUST …
- Distinctive: line 99
When delegating work, share only what the target squad needs:
- Distinctive: line 101
Relevant decisions: Only decisions that affect the target squad
- Distinctive: line 110
Check manifest: Verify the target squad accepts the work type (issues, PRs)
- Very specific: line 111
Create issue: Use gh issue create in the target repo with:
- Distinctive: line 121
Update originating issue with status changes
≈ “Common” is an estimate: at least 1 in 5 of the 308,232 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Context
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:
- A task requires capabilities owned by another squad
- An architectural decision affects multiple squads
- A feature spans multiple repositories with different squads
- A squad needs to request infrastructure, tooling, or support from another squad
Disambiguation: "squad" vs ad-hoc agents
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".
Default behaviour (apply unless explicitly told otherwise)
| 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 |
Ambiguous? ask_user, never silently downgrade
If 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.
Anti-patterns (every one of these is a real failure mode observed in production)
- Calling
tasksub-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. - Matching a prior session's ad-hoc pattern without re-checking current intent. If you see existing
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. - Silently choosing the cheaper interpretation because "bootstrapping two real squads for a 30-line app feels disproportionate". That's a judgment call for the USER to make, not the coordinator. Use
ask_user. - Loading the
cross-squadskill, reading it, then doingtaskfan-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.
Patterns
Discovery via Manifest
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 viasquad discoverand addressable viasquad delegate, but their skills/decisions/wisdom are NOT loaded into your coordinator. Manage withsquad 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 withsquad 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"]
}Context Sharing
When delegating work, share only what the target squad needs:
- Capability list: What this squad can do (from manifest)
- Relevant decisions: Only decisions that affect the target squad
- Handoff context: A concise description of why this work is being delegated
Do NOT share:
- Internal team state (casting history, session logs)
- Full decision archives (send only relevant excerpts)
- Authentication credentials or secrets
Work Handoff Protocol
- Check manifest: Verify the target squad accepts the work type (issues, PRs)
- Create issue: Use
gh issue createin the target repo with:- Title:
[cross-squad] <description> - Label:
squad:cross-squad(or the squad's configured label) - Body: Context, acceptance criteria, and link back to originating issue
- Title:
- Track: Record the cross-squad issue URL in the originating squad's orchestration log
- Poll: Periodically check if the delegated issue is closed/completed
Feedback Loop
Track delegated work completion:
- Poll target issue status via
gh issue view - Update originating issue with status changes
- Close the feedback loop when delegated work merges
Examples
Registering a peer squad (no inheritance)
# Friend's repo is checked out at ../friend-platform/
squad registry add platform-squad ../friend-platform
# Verify
squad registry list
squad discoverDiscovering squads
# 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)Delegating work
# 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 contextManifest in squad.config.ts
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'],
},
});Anti-Patterns
- Direct file writes across repos — Never modify another squad's
.squad/directory. Use issues and PRs as the communication protocol. - Tight coupling — Don't depend on another squad's internal structure. Use the manifest as the public API contract.
- Unbounded delegation — Always include acceptance criteria and a timeout. Don't create open-ended requests.
- Skipping discovery — Don't hardcode squad locations. Use manifests and the discovery protocol.
- Sharing secrets — Never include credentials, tokens, or internal URLs in cross-squad issues.
- Circular delegation — Track delegation chains. If squad A delegates to B which delegates back to A, something is wrong.
Other versions7 projects use a version of this.
Word for word · 6
- github/gh-aw★ 5.5k100% same
- microsoft/Generative-AI-for-beginners-dotnet★ 3.2k100% same
- microsoft/waza★ 1.5k100% same
- kubefleet-dev/kubefleet★ 162100% same
- microsoft/github-vteam-industry-demos★ 2100% same
- microsoft/fsi-banking-payments-dispute-resolution-accelerator★ 0100% same
Edited · 1
- Azure/apiops-cli★ 3287% same
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
Used alongsideProjects with it also use squad-commands, architectural-proposals and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
MicrosoftSkillsquad-commands
Categorized catalog of common Squad operations. Coordinator reads this file and presents it as an interactive menu when the user asks for available commands or help.
Also in 5 projects that use this
MicrosoftSkillarchitectural-proposals
How to write comprehensive architectural proposals that drive alignment before code is written
Also in 4 projects that use this
- +10 more from microsoft
In this repository21 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- agent-collaborationSkill
- coordinator-init-modeSkill
- coordinator-response-modeSkill
- coordinator-source-of-truthSkill
- cross-squad-communicationSkill
- error-recoverySkill
- git-workflowSkill
- iterative-retrievalSkill
- reflectSkill
- reviewer-protocolSkill
- secret-handlingSkill
- session-recoverySkill
- squad-conventionsSkill
- squad-helpSkill
- squadSkill
- squad-version-checkSkill
- test-disciplineSkill
- tiered-memorySkill
- humanizerSkill
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

