Skip to content
Automation
Command

/implement-team

Implement from conversation context with Agent Teams

From plugin
essentials-claude-code
9025 skills8 agents25 commands
> /plugin marketplace add GantisStorm/essentials-claude-code
> /plugin install essentials@essentials-claude-code

Command definition

implement-team.md
description: "Implement from conversation context with Agent Teams"
argument-hint: "<task description> [--agents N]"
allowed-tools: ["Read", "TaskCreate", "TaskUpdate", "TaskList", "TaskGet", "Bash", "Glob", "Grep"]
model: opus

Implement Team Command

Execute implementation from conversation context using Agent Teams — full Claude Code instances coordinated through contracts in tmux split panes. All agents complete → done.

**Note:** Team, swarm, and loop are all execution modes. Use teams when components need to integrate and agents need to agree on interfaces (frontend + backend + database). Use swarms for independent parallel tasks. Use loops for sequential work.

**Source:** Conversation context + argument input + mentioned files.

Uses Claude Code's built-in Task Management System for dependency tracking and visual progress (`ctrl+t`).

Arguments

  • `<task description>` (required): What to implement
  • `--agents N` (optional): Number of agents (if omitted, determined automatically from scope complexity)

Instructions

Step 1: Check Prerequisites

Verify before proceeding:

1. **tmux installed**: Run `which tmux` — if not found, tell the user to install it (`brew install tmux` on macOS, `sudo apt install tmux` on Linux) and exit 2. **Agent Teams enabled**: Run `echo $CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS` — if not `1`, tell the user to enable it in `~/.claude/settings.json` under `"env": {"CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS": "1"}` or export it in their shell profile, and exit

Step 2: Analyze Context and Define Scope

**ONLY use what's already available:**

  • The user's argument input
  • Conversation history (already in context)

**DO NOT:**

  • Read files unless the user explicitly asks you to
  • Grep or explore the codebase
  • Use Glob to find files

Understand from context:

  • What are we building?
  • What are the major components/layers?
  • What technologies are involved?
  • What are the dependencies between components?

**If the conversation context doesn't provide enough information to define integration contracts** (exact API shapes, shared types, database schemas), **ask the user for clarification** before proceeding. You need enough detail to write exact contracts — without them, agents will diverge on interfaces.

Step 3: Determine Team Structure

If `--agents N` is specified, use that number. Otherwise, analyze the scope and determine optimal team size:

  • **2 agents**: Simple projects with clear frontend/backend split
  • **3 agents**: Full-stack apps (frontend, backend, database/infra)
  • **4 agents**: Complex systems with additional concerns (testing, DevOps, docs)
  • **5+ agents**: Large systems with many independent modules

For each agent, define: 1. **Name**: Short, descriptive (e.g., "frontend", "backend", "database") 2. **Ownership**: What files/directories they own exclusively 3. **Does NOT touch**: What's off-limits (prevents conflicts) 4. **Key responsibilities**: What they're building

Step 4: Define Contracts

Before spawning agents, define the integration contracts between layers. This focused upfront work is what enables all agents to spawn in parallel without diverging on interfaces. Agents that build in parallel will diverge on endpoint URLs, response shapes, trailing slashes, and data storage semantics unless they start with agreed-upon contracts.

**Map the contract chain** — identify which layers need to agree on interfaces:

Database → function signatures, data shapes → Backend
Backend → API contract (URLs, response shapes, SSE format) → Frontend

**Author each contract** with enough specificity that agents can build to it independently:

  • **Database → Backend**: Function signatures (CRUD), model definitions, data shapes and types
  • **Backend → Frontend**: Exact endpoint URLs (including trailing slash conventions), request/response JSON shapes (exact structures, not prose), status codes for success and error cases, SSE event types with exact JSON format, response envelopes (flat vs nested)

**Identify cross-cutting concerns** — behaviors that span multiple agents and will fall through the cracks unless explicitly assigned. Assign ownership to one agent:

  • **Streaming data storage**: Chunks stored individually or accumulated into one row?
  • **URL conventions**: Trailing slashes, path parameters, query params — both sides must match exactly
  • **Response envelopes**: Flat objects vs nested wrappers — both sides must agree
  • **Error shapes**: Status codes and error body format
  • **UI accessibility**: Interactive elements need aria-labels for automated testing

**Contract quality checklist** — before including a contract in agent prompts, verify:

  • Are URLs exact, including trailing slashes? (`POST /api/sessions/` vs `POST /api/sessions`)
  • Are response shapes explicit JSON, not prose? (`{"session": {...}}` not "returns session")
  • Are all SSE event types documented with exact JSON?
  • Are error responses specified? (404 body, 422 body, etc.)
  • Are storage semantics clear? (accumulated vs per-chunk)

Step 5: Create Task Graph

Create a shared task list. Since contracts are defined upfront, agents can start building immediately — no inter-agent blocking for initial implementation work. Only block tasks that genuinely require another agent's output (like integration testing).

TaskCreate({
  "subject": "Agent 1: [role]",
  "description": "Full scope + contracts owned + contracts consumed",
  "activeForm": "Agent 1 building [component]"
})
// Integration/validation blocked by all agent tasks
TaskUpdate({ "taskId": "N", "addBlockedBy": ["1", "2", "3"] })

**Task types:**

  • Agent work scopes → one task per agent
  • Contract validation + integration testing → blocked by all agent tasks
  • Final validation → blocked by integration

Step 6: Spawn Agents

**You are the lead. You do NOT implement code — your role is coordination.** Enter **Delegate Mode** (Shift+Tab) before spawning. Enable tmux split panes

Read more
@gantisstorm
Ships withessentials-claude-code

Loops, swarms, and teams powered by Claude Code's built-in Task System. Loop, swarm, and team are three execution modes. Loop runs sequentially. Swarm runs parallel subagents. Team spawns full Claude Code instances with shared contracts via Agent Teams.

905 skills8 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
90
Star history of GantisStorm/essentials-claude-code on GitHub, a chart by star-history.com

Other commands on essentials-claude-code.

More commands from other plugins.

plan

plan

Command

Plan n8n Linear ticket implementation

n8n11d209k
@n8n-io@n8n-ioInstall Command
setup

setup

Command

One-time setup after installing ARIS as a Claude Code plugin — registers the Codex reviewer MCP server from the plugin directory…

aris12d18k
@wanshuiyin@wanshuiyinInstall Command
agent
Auto-invoked

agent

Command

name: sc:agent description: SC Agent — session controller that orchestrates investigation, implementation, and review category:…

@galaxy-dawn@galaxy-dawnInstall Command