choosing-swarm-patterns SKILL.md skillA
choosing-swarm-patterns from agentworkforce/relay is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add agentworkforce/relay/choosing-swarm-patterns@git:20260919.270f08cPins git:20260919.270f08c in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- agentworkforce/relay
- Path
.claude/skills/choosing-swarm-patterns/SKILL.md- Versions recorded
- 6
- Latest version
- git:20260919.270f08c, committed Sep 19, 2026
- First version recorded
- Mar 31, 2026
- Size
- 24,069 bytes
- Repository stars
- 1,087
- License
- Apache-2.0
Use when coordinating multiple AI agents with Agent Relay's workflow engine and need to pick the right orchestration pattern - covers the 10 core patterns (fan-out, pipeline, hub-spoke, consensus, mesh, handoff, cascade, dag, debate, hierarchical) plus 14 specialized ones, with decision framework and accurate SDK/YAML examples.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
### Overview
The Agent Relay SDK (`@agent-relay/sdk`) supports 24 swarm patterns via a single `swarm.pattern` field. Patterns are configured declaratively in YAML — there are no standalone `fanOut(...)` / `hubAndSpoke(...)` helpers. Pick the simplest pattern that solves the problem; add complexity only when the system proves it's insufficient.
### Run a pattern
#### TypeScript SDK runner
```ts
import { runWorkflow } from '@agent-relay/sdk/workflows';
const run = await runWorkflow('workflows/feature-dev.yaml', {
vars: { task: 'Add OAuth login' },
});
```
### Quick Decision Framework
```text
Is the task independent per agent?
YES → fan-out (parallel workers, hub collects)
Does each step need the previous step's output?
YES → Is it strictly linear?
YES → pipeline
NO → dag (parallel where possible, `dependsOn` edges)
Does a coordinator need to stay alive and adapt?
YES → hub-spoke (single-level hub + workers)
hierarchical (structurally identical in current impl; use for naming/intent)
Is the task about making a decision?
YES → Do agents need to argue opposing sides?
YES → debate (adversarial, full mesh)
…Read the whole file at its exact version.
How to install
mdr add agentworkforce/relay/choosing-swarm-patterns@sha256:11040537524eb8e4The line at the top of this page pins the label git:20260919.270f08c, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_tiwshnxgur67vchk)
6 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 6 versions of this file, between Mar 31, 2026 and Sep 19, 2026, about one every 34 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20260919.270f08c latest | 2026-09-19 | 270f08c | 24,069 B | A | view · diff |
| git:20260814.67b52ca | 2026-08-14 | 67b52ca | 30,540 B | A | view · diff |
| git:20260610.2c174d7 | 2026-06-10 | 2c174d7 | 30,472 B | A | view · diff |
| git:20260518.cdd78c8 | 2026-05-18 | cdd78c8 | 30,769 B | A | view · diff |
| git:20260504.ff3e8c9 | 2026-05-04 | ff3e8c9 | 28,528 B | A | view · diff |
| git:20260331.ec0ff18 | 2026-03-31 | ec0ff18 | 12,955 B | A | view |
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (24069 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
agentworkforce/relay · 1,087 stars · license Apache-2.0 · pushed 2026-11-01 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_tiwshnxgur67vchk GET https://markdownregistry.com/api/v1/resolve?ref=agentworkforce/relay/choosing-swarm-patterns GET https://markdownregistry.com/api/v1/blob/11040537524eb8e410a7527dc573c751b17f10f858dd3700c11d8067071877a3
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.
More from agentworkforce/relay
Every file in agentworkforce/relay