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.

Install it, pinned
mdr add agentworkforce/relay/choosing-swarm-patterns@git:20260919.270f08c

Pins 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

The exact contents, by fingerprint
mdr add agentworkforce/relay/choosing-swarm-patterns@sha256:11040537524eb8e4

The 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.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_tiwshnxgur67vchk.svg)](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.

versioncommittedcommitsizeaudit
git:20260919.270f08c latest2026-09-19 270f08c 24,069 BA view · diff
git:20260814.67b52ca2026-08-14 67b52ca 30,540 BA view · diff
git:20260610.2c174d72026-06-10 2c174d7 30,472 BA view · diff
git:20260518.cdd78c82026-05-18 cdd78c8 30,769 BA view · diff
git:20260504.ff3e8c92026-05-04 ff3e8c9 28,528 BA view · diff
git:20260331.ec0ff182026-03-31 ec0ff18 12,955 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • 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

GitHub

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

choosing-swarm-patterns SKILL.md skill
agentworkforce/relay · .agents/skills/choosing-swarm-patterns/SKILL.md · Use when coordinating multiple AI agents with Agent Relay's workflow engine and need to pick the right orchestration…
git:20260919.270f08c · audit A · 1,087 stars
creating-agent-skills SKILL.md skill
agentworkforce/relay · .agents/skills/creating-agent-skills-skill/SKILL.md · Use when creating Agent Skills packages (SKILL.md format) for Codex CLI, GitHub Copilot, or Amp - provides the…
git:20260919.270f08c · audit A · 1,087 stars
emil-design-eng SKILL.md skill
agentworkforce/relay · .agents/skills/emil-design-eng/SKILL.md · This skill encodes Emil Kowalski's philosophy on UI polish, component design, animation decisions, and the invisible…
git:20260619.f9a7ef7 · audit A · 1,087 stars
orchestrating-agent-relay SKILL.md skill
agentworkforce/relay · .agents/skills/orchestrating-agent-relay/SKILL.md · The canonical way to run agent-relay - self-bootstrap the local broker and autonomously spawn, monitor, and coordinate…
git:20260922.12ce647 · audit A · 1,087 stars
relay-80-100-workflow SKILL.md skill
agentworkforce/relay · .agents/skills/relay-80-100-workflow/SKILL.md · Use when writing agent-relay workflows that must fully validate features end-to-end before merging. Covers the…
git:20260919.270f08c · audit A · 1,087 stars
review-animations SKILL.md skill
agentworkforce/relay · .agents/skills/review-animations/SKILL.md · Reviews animation and motion code against a high craft bar derived from Emil Kowalski's design engineering philosophy…
git:20260619.f9a7ef7 · audit A · 1,087 stars
review-fix-signoff-loop SKILL.md skill
agentworkforce/relay · .agents/skills/review-fix-signoff-loop/SKILL.md · Use when writing Agent Relay or Ricky workflows that must loop review, fix, and validation with fresh agent context…
git:20260519.f5dd259 · audit A · 1,087 stars
setting-up-relayfile SKILL.md skill
agentworkforce/relay · .agents/skills/setting-up-relayfile/SKILL.md · Use when an agent or human needs to set up relayfile end-to-end so agents can read and write provider files through a…
git:20260919.270f08c · audit C · 1,087 stars
using-agent-relay SKILL.md skill
agentworkforce/relay · .agents/skills/using-agent-relay/SKILL.md · Use when you are a registered relay agent (a spawned worker, or a lead that called register_agent) coordinating with…
git:20261010.4722976 · audit A · 1,087 stars
writing-relayflows SKILL.md skill
agentworkforce/relay · .agents/skills/writing-relayflows/SKILL.md · Use when authoring a Relayflows flow (@relayflows/surface / @relayflows/sdk, the journal-based v2 engine — the CLI is…
git:20260919.270f08c · audit A · 1,087 stars
browser-testing-with-screenshots SKILL.md skill
agentworkforce/relay · .claude/skills/browser-testing-with-screenshots/SKILL.md · Use when testing web applications with visual verification - automates Chrome browser interactions, element selection…
git:20260525.164e16b · audit A · 1,087 stars
creating-claude-agents SKILL.md skill
agentworkforce/relay · .claude/skills/creating-claude-agents-skill/SKILL.md · Use when creating or improving Claude Code agents. Expert guidance on agent file structure, frontmatter, persona…
git:20260525.164e16b · audit A · 1,087 stars

Every file in agentworkforce/relay

Other files named choosing-swarm-patterns

choosing-swarm-patterns SKILL.md skill
agentworkforce/relay · .agents/skills/choosing-swarm-patterns/SKILL.md · Use when coordinating multiple AI agents with Agent Relay's workflow engine and need to pick the right orchestration…
git:20260919.270f08c · audit A · 1,087 stars

Browse by kind, by grade A, or by owner.