Skip to content
Skills Library
AI & agents · Building & coding

multi-agent-skill

/multi-agent-skill

Build multi-agent teams for real work in this repo. Use when adding a team topology, a harness, or a workspace under agent/teams, or when extending the shared patterns in agent/workflows.

Licence
MIT
Last repository change
27.10.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
2
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 27.10.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Build multi-agent teams for real work in this repo. Use when adding a team topology, a harness, or a workspace under agent/teams, or when extending the shared patterns in agent/workflows.

Original author description

Build multi-agent teams for real work in this repo. Use when adding a team topology, a harness, or a workspace under agent/teams, or when extending the shared patterns in agent/workflows.

How it works

  1. core logic view
  2. rules
  3. adding a harness
  4. adding a team topology
  5. tests
Original SKILL.md headings · 64 lines, 463 words
SKILL.md preview
---
name: multi-agent-skill
description: Build multi-agent teams for real work in this repo. Use when adding a team topology, a harness, or a workspace under agent/teams, or when extending the shared patterns in agent/workflows.
---

# multi-agent-skill

This repo runs teams of coding agents and measures whether a team beats a solo agent.

## core logic view

```
CodingTask ──► Team (topology) ──► TeamResult(patch, runs, usage, duration_s, meta)
                 │
                 ├─ drives Harness   : one coding agent run to completion (external CLI or SDK agent)
                 └─ in a Workspace   : isolated checkout at the base commit (local worktree or sandbox)

Topologies reuse agent/workflows:
  SequentialWorkflow : A → B → C
  RefineLoop         : generate ⇄ evaluate (feedback) until accepted; returns the best draft
  BestOfN            : N × (generate → evaluate) concurrently, keep the best
  Router             : classify → hand off to one specialist workflow
```

Contracts: `agent/teams/types.py` (see `reference/protocol.md`). Harnesses and teams touch the
repository only through `Workspace.exec`, so one team runs locally and in benchmark sandboxes.

## rules

1. Never change the contracts in `agent/teams/types.py` without updating every implementation.
2. Patterns in `agent/workflows` never call the SDK directly; they call an injected
   `runner(agent, input_text) -> final_output`. Tests inject a fake runner.
3. Evaluators used by `RefineLoop` / `BestOfN` return an `agent.workflows.Verdict` subclass
   (`score`, `passed`, `feedback`, plus domain fields).
4. Cost honesty: a harness that cannot report or price a call returns `Usage.cost_usd=None`;
   never guess prices. Every harness call made by a team appears in `TeamResult.runs`.
5. Reviewers and judges must not mutate a worker's workspace; give them a fork.
6. The run budget (`--max-cost`, `agent/teams/budget.py`) is enforced by `build_team`, which wraps every
   harness except the `check` pseudo-harness in `BudgetedHarness`. Topologies never call the budget:
   a refused run raises `BudgetExceeded`, which they record like any failed run (`meta["failures"]`,
   not in `TeamResult.runs`). Runs already admitted finish, so spend can overshoot; unpriced runs
   block further runs unless `allow_unpriced`.
7. `plan` runs may carry the roles `coder`/`reviewer` inside subtasks (`reviewer=H`, a `ReviewTeam`
   per subtask in its own fork) and extra `planner` runs (`replans=N`); subtasks are numbered across
   rounds and replaced ones get status `replanned`.

## adding a harness

1. `agent/teams/harnesses/<name>.py`: implement `Harness.run` with `workspace.exec` only; parse
   the CLI's machine-readable output into `HarnessRun` (final message, session id, usage, cost).
   If the CLI reports cumulative usage on resume, subtract the session's previous total.
2. Register it in `agent/teams/spec.py` (`HARNESSES`, `build_harness`, `is_priced`).
3. Map `--permissions safe|bypass` to the CLI's own sandbox / bypass flags.
4. Capture real CLI output as sanitized fixtures in `tests/teams/fixtures/` and test parsing.

## adding a team topology

1. Implement it in `agent/teams/topologies.py` (or its own module, like `plan.py`) on top of an
   `agent/workflows` pattern.
2. Add its spec kind and keys to `agent/teams/spec.py`; `Team.name` must be the canonical spec.
3. Test with fake harnesses on a temp git repo (`tests/teams/`): selection, failures, cleanup.

## tests

Offline and deterministic: `tests/workflows/fakes.py` (`FakeAgent`, `fake_runner`,
`scripted_evaluator`) for patterns; fake harnesses and temp git repos for teams. Run
`make test`, then `make check` before a PR.
Files in this package (2)
  • SKILL.md 4 KB
  • reference/protocol.md 2 KB

Versions

The database has no other skills named multi-agent-skill.

Database snapshot: 13.11.2026 · package version 645ebe7e92fc (SHA-256 digest of the entire package)

Downloads in the last 30 days: 1 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 95agent-teams
    Use when forge or bob needs to split work across multiple parallel agent teams — topology selection, team sizing, cross-team dependencies, inbox/outbox coordination, and result aggregation.
  • 100agent-teams
    Create agent teams for parallel collaboration. Use when user mentions team, parallel, multi-agent, coordinate, collaborate, review team, multiple perspectives, or says "agent-teams".
  • 100teams
    Organize AI coding agents into teams that collaborate on a shared task. Create teams, add teammates, start them, monitor progress, and collect results. Use this skill when you need parallel agent execution. For single-agent dispatch, use `agents run` instead.
  • 100claude-code-agent-teams
    This skill should be used when the user asks to "create an agent team", "run a multi-agent team", "coordinate multiple Claude sessions", "use agent teams", or wants to parallelize work across multiple Claude Code instances.
  • 100claude-teams
    Guide for coordinating multiple Claude Code agents as teams. Use when setting up agent teams, configuring subagents, orchestrating multi-agent workflows, or building programmatic agent systems with the Claude Agent SDK.
  • 100agent-teams
    创建和管理 Agent Teams 并行任务团队。当用户说"建个团队"、"拉个队伍"、"并行跑"、"create team"、"spawn agents"、"组队"时触发。

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.