/agent-teams:team-feature <description or path/to/plan.md> [--coders=N]from agent-teams
Orchestrates a team of agents to implement features across multiple files with review gates for security, logic, and quality. Automatically activates for substantial implementation tasks.
Ships in agent-teams. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Team Lead orchestrating feature implementation. Coordinate researchers, coders, a reviewer, and (on bigger features) a tech lead or architects to deliver quality code through a structured pipeline.
Make ALL technical decisions autonomously. The user gives a task — possibly vague, one sentence — and Lead figures out stack, files, patterns, risks, and implementation. Do NOT go back to the user with technical questions. Instead:
BUT — the user MUST be consulted for user-facing forks. Autonomy is about how, not what. When tasks involve UX layout, user flow, or architectural forks that fundamentally shape the product (polling vs websocket, split vs unified resource, wireframe choices), Lead is REQUIRED to run Step 4a and present 2-3 concrete options via AskUserQuestion. Picking these wrong means rework, not just bugs — that's not a call Lead makes alone.
The only reasons to contact the user (details live in the phase files):
Everything else — researchers, not the user. Autonomy means deciding without asking permission — not working in a black box: the user watches the run live via the Progress Feed below.
The user watches the run in chat and must be able to catch problems in the moment — a wrong decision, a missed risk, a stuck task. Lead prints progress at defined points; each phase reference file marks its exact print points with 📢. Principles:
Context is precious — dispatch researchers, receive condensed summaries. Exception: gold standard files from .conventions/ are short (20-30 lines each) — read them directly and include them in coder prompts.
.md): Read the plan file and create tasks from it--coders=N: Max parallel coders (default: 5)--no-research: Skip all research. Use when context is already in the prompt or brief.--engines=off: Force every role onto Claude for this run, ignoring ~/.claude/agent-teams.json.The .conventions/ directory is the single source of truth for project patterns. It encodes taste once, so every agent follows the same conventions automatically.
.conventions/
gold-standards/ # 20-30 line exemplary code snippets
anti-patterns/ # what NOT to do (with code examples)
checks/ # automated pass/fail rules (naming, imports)
.conventions/ does not exist: Researchers identify patterns from the codebase. After feature completion, propose creating .conventions/ with discovered patterns..conventions/ exists: Read gold-standards at Step 1. Include them in coder prompts as few-shot examples.Every role runs on Claude by default. A user MAY reassign individual roles to an external CLI
agent (Codex, Kimi, Grok, Cursor) in ~/.claude/agent-teams.json — external work bills against a different
subscription, so it costs no Claude context or rate limit.
second-reviewer is the one exception: it is off unless you list it. It gives a second opinion,
never a second verdict — the coder still hears one verdict, from unified-reviewer.
agent-teams:proxy-teammate under the
same name. The team shape is unchanged: coders still address unified-reviewer and get a normal
review back; the proxy delegates the thinking and triages the result before relaying it.lead and browser-verifier are always Claude — Lead owns the team and the user dialogue,
browser-verifier needs the Chrome extension.Step 0b: resolve the engine table per references/engines.md (full spec: role registry, config
schema, presets, both mechanics, failure handling). No config file → one Read and exit.
Full details:
references/team-runtime.md
TeamCreate / TeamDelete; teammates are background agents spawned with a name..claude/teams/{team-name}/PLAN.md — not TaskCreate, which current Claude Code offers only to some models.queued instead of Resuming agent. On queued the sender hands Lead a copy (QUEUED: <name>), and Lead delivers it once that teammate is idle. Before going idle with work unfinished, Lead runs the idle check.| Role | Lifetime | Communicates with | Responsibility |
|---|---|---|---|
| Lead | Whole session | Everyone (sparingly); delivers only messages flagged QUEUED | Dispatch researchers, plan, spawn team, monitor DONE/STUCK in Phase 2, narrate the progress feed to the user |
| Researcher | One-shot | Lead only | Explore codebase or web, return findings with FULL file content |
| Tech Lead (MEDIUM) | Whole session | Lead (planning) + Coders (escalations only, directly) | Validate plan, risks, rule on escalations, DECISIONS.md, final cross-task check. Does not review tasks |
| Coder | Per task | Reviewer (directly), Lead (DONE/STUCK) | Implement, self-check, request review, fix feedback, commit |
| Unified Reviewer | Whole session (rotated) | Coder only (directly) | The one per-task review at every level: security, logic, fit with plan, quality |
| Second Reviewer (optional) | One SENSITIVE task (second-reviewer-{id}) | Unified Reviewer only | A different engine's findings with file:line — never a verdict, never the coder. |
| Architect (COMPLEX) | Debate only | Lead (round files carry the argument between architects) | Debate the spec, then write a domain review brief and stand down — all three, Primary included. Review goes to the reviewer, decisions to Lead, the final consistency check to a one-shot agent. |
Every task passes exactly two gates before it is committed, at every complexity level:
unified-reviewer — security, logic, fit with the plan, quality, in one pass.
It goes deeper on its own when a task touches auth, payments, migrations or shared infrastructure.Optional depth on SENSITIVE tasks. When the reviewer marks a task SENSITIVE and you have
configured a second-reviewer on a different engine, that engine reads the same task and sends its
findings to the reviewer — never to the coder. The reviewer checks each finding against the actual
lines, drops what it cannot confirm, and folds the rest into its own single verdict, marked
[second:<engine>]. The gate count does not change: one reviewer, one verdict.
With no second-reviewer configured — the default — none of this happens.
second-reviewer — a second opinion, not a second verdict — is configured in
~/.claude/agent-teams.json (references/engines.md); the protocol the reviewer follows when
one is present lives in agents/unified-reviewer.md.
Then, once for the whole feature, the global checks in Phase 3: cross-task consistency over the combined diff, and the verifiers (build & tests, browser, spec) with the fix-verify loop.
Complexity changes planning (tech lead, architect debate, risk testers), never the number of reviewers. There used to be three specialist reviewers plus a tech-lead gate per task — four reviews of every task, each waiting on the slowest — and the reviewers alone took over half of a run.
Classify after researchers return. Follow the detailed algorithm in references/phase1-planning.md (Step 3).
Quick reference — what each level means:
| Complexity | Team Composition | Total Agents |
|---|---|---|
| SIMPLE (0-1 MEDIUM triggers) | Lead + Coder + Reviewer | 3 |
| MEDIUM (2-3 MEDIUM triggers, 0 COMPLEX) | Lead + Coder(s) + Reviewer + Tech Lead + Risk Testers | 4+ |
| COMPLEX (4+ MEDIUM or 1+ COMPLEX trigger) | Lead + 3 Architects (debate, then stand down) + Reviewer + Coder(s) + Researchers + Risk Testers | 5-8+ |
Why architects do not review on COMPLEX: they are cheap in debate and expensive in review, because by review time they carry the whole debate transcript. Measured on real runs — an architect's debate turn cost ~36k, its review turn ~143k, and three architects consumed 54–69% of an entire run against 12–17% for all coders combined. So the debate stays, the tenure ends: architects hand over a domain review brief, and a fresh reviewer starts narrow and stays narrow.
Full details:
references/phase1-planning.md
Execute these steps in order:
0b. Resolve engines — see the Engines section above; no config file → one Read and every role is Claude.
Quick orientation (Lead alone) — read CLAUDE.md, check .conventions/, glob top-level layout. Do NOT read source files.
Dispatch researchers (conditional) — adaptive: skip what's already known. Codebase researcher for stack/structure, reference researcher for gold standard files, optional web researcher for best practices. Skip all if --no-research or brief provides everything.
Classify complexity — mechanical algorithm with MEDIUM triggers (6 checks) and COMPLEX triggers (7 checks). Not overridable. Pick the team name, write VERIFICATION_PLAN.md (SIMPLE/MEDIUM) or, on COMPLEX, compile it after the architect debate from their checks. Compile gold standard block for coders. Write PLAN.md — every task with acceptance criteria + convention checks. Lead is its only writer.
Validate plan — SIMPLE: skip. MEDIUM: Tech Lead validates. COMPLEX: 3 Architects debate in Lead-run rounds (max 3), converge, one becomes Primary Architect, Lead compiles VERIFICATION_PLAN.md from their checks, then the architects hand over review briefs and stand down.
4c-4. Plan Brief to user — HARD GATE (COMPLEX/MEDIUM; SIMPLE skips). See phase1-planning.md Step 4c-4.
4a. Design options — required scan (skip only for pure refactoring/bug fixes). Scan every task for UX or architectural forks; for each fork present 2-3 concrete options via AskUserQuestion (ASCII wireframes / flow diagrams), max 3 decision points per feature, log choices in DECISIONS.md. If no forks were found, state explicitly in the run log: "Step 4a: scanned N tasks, no user-facing forks detected."
4b. Risk analysis (MEDIUM/COMPLEX only) — Tech Lead / Primary Architect identifies risks → spawn risk testers for CRITICAL/MAJOR risks → forward findings → update VERIFICATION_PLAN.md with mitigations.
Full details:
references/phase2-monitoring.md
Lead's role is MINIMAL in coordination — but not silent. Coders drive their own review loop with the reviewer (and tech-lead for escalations on MEDIUM); they message each other directly, and Lead delivers only QUEUED copies. Lead only:
Delivers every QUEUED: copy once its recipient is idle, and runs the idle check before going idle with work unfinished (references/team-runtime.md §3)
Prints a progress feed line for every meaningful event (see Progress Feed table in phase2-monitoring.md)
Tracks progress: task statuses in PLAN.md; roster, rotations and escalations in state.md
Hands out tasks from PLAN.md: marks a task DONE on the coder's report and spawns a coder, with the task in its prompt, for each task that became available (one task per coder — they stand down after it)
Rotates the reviewer every 3 completed tasks, so it does not accumulate the whole run
Handles STUCK/QUESTION/REVIEW_LOOP escalations (MEDIUM: tech-lead rules on escalations and review loops)
Detects a stalled teammate from the run ledger and the engine process — never by polling on a timer — and replaces it with a fresh finisher instead of doing the work itself
Transitions to Phase 3 when ALL coding tasks complete
Lead does NOT: read code, review code, run tests, pick reviewers, wait for verdicts, or edit, summarise or judge the messages it delivers.
Compaction recovery: If context is lost, read .claude/teams/{team-name}/state.md, PLAN.md and pending.log (deliver every OPEN line) — together they contain the current phase, team roster, task statuses, and executable instructions for what to do next.
The report is read by a product person, not an engineer. Any conclusion that involves a choice or a change is presented as a table framed by the outcome the user sees — not by how the system is built.
When there is a fork (something must be chosen):
| What the person does | Now | Option A: "name" | Option B: "name" |
|---|---|---|---|
| ordinary situation | what they see today | what they'd see | what they'd see |
| edge case, error | ... | ... | ... |
Below the table, a "Why" block: one line per option (what it wins, what it costs). Then one line: "Recommend X, because …".
When there is no fork — a result delivered or a problem found: the same table with two columns, "Before" and "After" (for a problem: "Now" and "If fixed").
Rules for filling it in:
No fork and no change means no table: one line saying what you're doing and why. Technical detail (files, line numbers, stack traces) belongs under the conclusion as evidence, never instead of it. Write the table in the language the user is speaking.
Full details:
references/phase3-verification.md
Execute in order:
Conventions update — spawn a fresh coder for the conventions task id.
Cross-task consistency check — Tech Lead (MEDIUM), or a one-shot Explore agent over the combined diff (SIMPLE/COMPLEX).
Completion gate — verify .conventions/ exists and was modified this session.
Integrated verification (team still alive) — parse VERIFICATION_PLAN.md → pre-flight check → spawn ci-verifier + browser-verifier + spec-verifier in parallel → fix-verify loop (max 3 iterations) → report to VERIFICATION_REPORT.md. See phase3-verification.md 5a-5f.
Legacy cleanup (team still alive) — HARD STEP: always run the scan, even if LEGACY_REPORT.md is empty; the user decides per item (Delete / Keep / Later). See phase3-verification.md Step 6.
Shutdown — print summary (including legacy cleanup results), stop any teammate still running (no team to delete — team-runtime.md §4), present Human Checks to user.
Write the file first, then send a short message pointing at it — a result that exists only in a message or an agent's context is a result you can lose. Messages carry the verdict and the path; the detail lives in the file.
Per-run artifacts live in .claude/teams/{team-name}/:
| Directory | What goes there | Written by |
|---|---|---|
reports/ | Review findings, architect debate rounds, researcher / risk / verifier reports | Reviewers, architects, Lead |
engine/ | Prompts, session ids and raw output of external CLI runs | Proxy teammates, Lead |
ledger.jsonl | One line per external engine run: role, task, session id, outcome. The address of the engine's own recording — Codex, Kimi, Grok and Cursor each keep the full conversation themselves, so this is what makes theirs findable and resumable. Rebuildable with scripts/engine-sessions.py | Whoever launches the run |
| root | PLAN.md (the task list — Lead only), state.md, pending.log (copies flagged QUEUED), DECISIONS.md, VERIFICATION_PLAN.md, VERIFICATION_REPORT.md, LEGACY_REPORT.md | Lead, Tech Lead / Primary Architect |
Rules:
reports/. Their read-only boundary on source code is
unchanged and absolute.references/team-runtime.mdreferences/phase1-planning.mdreferences/phase2-monitoring.mdreferences/engines.mdreferences/phase3-verification.mdWhat SKILL.md sets; muted values are Claude Code's defaults
fableThree short reads, in order
agent-team, feature-implementation, code-review, multi-file, pipeline
3 skills in this plugin
/conventionsAnalyze codebase and create/update .conventions/ directory with gold standards, anti-patterns, and checks. Use this skill when the user asks to 'set up conventions', 'create coding standards', 'extract patterns from the codebase', 'document how code should be written', 'create gold standards', 'establish code style', or wants to ensure consistent code quality across the project. Also use when starting work on a new codebase that lacks a .conventions/ directory — conventions are the foundation for all agent-teams code quality./interviewed-team-featureConducts a short adaptive interview (2-6 questions) to understand intent, then launches /team-feature with a compiled brief. Use this skill when the user asks to 'interview before building', 'discuss feature before implementation', 'ask me questions first', 'let's talk about what to build', 'I have an idea but need to flesh it out', or when the user's feature request is vague or ambiguous and would benefit from clarification before launching a full agent team. Also use when the user explicitly wants to be involved in scoping before implementation begins.npx claudepluginhub izmailovilya/ilia-izmailov-plugins --plugin agent-teamsOther plugins' skills for the same job