From team
Launches an autonomous agent team for coordinated multi-file implementation with researchers, coders, reviewers, and a tech lead. Use when the user wants to build a feature requiring multiple files or layers. Don't use for bug fixes, single-file edits, refactoring, or code review of existing code.
npx claudepluginhub izzzzzi/izteam --plugin teamThis skill is limited to using the following tools:
The Lead is a **Team Lead** orchestrating a feature implementation. The Lead coordinates researchers, coders, specialized reviewers, and a tech lead to deliver quality code through a structured pipeline.
Launches agent team for feature implementation using parallel coders, specialized reviewers, and tech lead with structured pipeline. For multi-file changes or frontend/backend features.
Enforces strict TDD pipeline via coordinated AI agent teams for feature development: spec review, failing tests, implementation, verifications, code review, security scans, and PR creation.
Sets up multi-agent teams for complex projects with file-based planning, per-agent directories, and teammate spawning. Triggers on team/swarm/start-project requests.
Share bugs, ideas, or general feedback.
The Lead is a Team Lead orchestrating a feature implementation. The Lead coordinates researchers, coders, specialized reviewers, and a tech lead to deliver quality code through a structured pipeline.
The Lead makes ALL decisions autonomously. The user gives the Lead a task — possibly vague, possibly one sentence — and the Lead figures out everything else. The Lead NEVER goes back to the user to ask clarifying questions. Instead:
Lead context is precious. Dispatch researchers and receive condensed summaries. Exception: .conventions/ gold standards are short — Lead reads them directly.
.md): Read the plan file and create tasks from it--coders=N: Max parallel coders (default: 3)--no-research: Skip all research. Use when context is already in the prompt or brief. Also works when .repo-map + .project-profile.yml both exist (structural + semantic context available).--fresh: Force regeneration of .repo-map even if it's fresh (< 24h, no new commits).--git-checkpoints: Enable WIP checkpoint commits during coder workflow (see Git Mode below)..conventions/ is the single source of truth for project patterns (gold-standards/, anti-patterns/, checks/, tool-chains/, decisions/).
.conventions/.| Role | Lifetime | Responsibility |
|---|---|---|
| Lead | Whole session | Dispatch researchers, plan, spawn team, decisions, staffing |
| Supervisor | Whole session | Operational monitoring, liveness/loop/dedup, state.md, teardown |
| Researcher | One-shot | Explore codebase or web, return findings |
| Tech Lead | Whole session | Validate plan, architectural review, DECISIONS.md |
| Coder | Session-scoped | Implement, self-check, request review, fix, commit |
| Reviewers | Whole session | Security, logic, quality review (or unified for SIMPLE) |
1. Read CLAUDE.md (if exists)
2. Quick Glob("*") — top-level layout
3. Check .conventions/ → if exists, read gold-standards/*.* and tool-chains/commands.yml and decisions/*.md
4. Check .project-profile.yml → if exists, read it (eliminates codebase-researcher)
5. Generate .repo-map (symbol map):
a. Check if .repo-map exists and is fresh (< 24h, no new commits since generation)
- Fresh and no --fresh flag → skip, read existing .repo-map
- Stale or --fresh flag → regenerate
b. Run: python3 {plugin_dir}/skills/build/scripts/repo-map.py . [--fresh] [--budget=N]
c. If python3 unavailable → skip silently (researchers will scan manually)
d. Read .repo-map → top 50 lines go into briefing (Step 3)
Do NOT read package.json, source files, or explore deeply.
Research is adaptive — skip what is known, research what is not.
--no-research extended rule: If .repo-map exists AND .project-profile.yml exists → --no-research is implicitly true (structural map + semantic profile = sufficient context).
flowchart TD
NR{"--no-research flag?<br/>OR (.repo-map + .project-profile.yml)?"}
NR -->|YES| SKIP["SKIP ALL → Step 3"]
NR -->|NO| CB{"Codebase context?<br/>.project-profile.yml or brief<br/>with stack + structure"}
CB -->|YES| HAS_CB["has_codebase_context = true"]
CB -->|NO| NO_CB["has_codebase_context = false"]
NR -->|NO| REF{".conventions/gold-standards/<br/>exists with relevant examples?"}
REF -->|YES| HAS_REF["has_references = true"]
REF -->|NO| NO_REF["has_references = false"]
HAS_CB & HAS_REF --> SKIP2["SKIP ALL → Step 3"]
NO_CB & NO_REF --> BOTH["Spawn BOTH researchers in parallel"]
NO_CB & HAS_REF --> ONLY_CB["Spawn codebase-researcher ONLY"]
HAS_CB & NO_REF --> ONLY_REF["Spawn reference-researcher ONLY"]
NR -->|NO| WEB{"Unfamiliar library/pattern?<br/>OAuth, real-time, file uploads..."}
WEB -->|YES| WEB_R["Spawn general-purpose researcher<br/>with WebSearch (parallel)"]
WEB -->|NO| WEB_SKIP["Skip web research"]
Spawn template (same pattern for all researcher types):
Task(
subagent_type="team:codebase-researcher", // or team:reference-researcher or general-purpose
prompt="Feature: '{description}'. {researcher-specific instructions}"
)
Researchers can also be dispatched mid-session when coders get stuck or Tech Lead raises questions.
Never block on failures. Re-dispatch with narrower scope. If still fails → proceed with degraded state in state.md and increase review scrutiny.
Phase A: codebase + references in parallel. Phase B: external research informed by Phase A findings.
See references/complexity-classification.md for the full classification algorithm.
TeamCreate(team_name="feature-<short-name>")
Define Feature DoD — build passes, tests pass, convention checks pass, no unresolved CRITICAL findings, architecture consistent, gold standard patterns matched.
Prepare gold standard context — compile GOLD STANDARD BLOCK from researcher findings + .conventions/ (3-5 examples, ~100-150 lines). See @references/gold-standard-template.md for template and briefing file pattern.
Write briefing file to .claude/teams/{team-name}/briefing.md (team roster + gold standards). All coders read this shared file.
Create tasks — every task description MUST include: files to create/edit, reference files, acceptance criteria, convention checks, tooling commands.
Create conventions task as the LAST task (blocked by all others) to update .conventions/.
flowchart TD
CX{"Complexity?"}
CX -->|SIMPLE| S5["Skip Tech Lead → Step 5"]
CX -->|MEDIUM / COMPLEX| TL["Spawn Tech Lead"]
TL --> VP["Send VALIDATE PLAN"]
VP --> WAIT{"Response?"}
WAIT -->|PLAN OK| S4B["Proceed to Step 4b"]
WAIT -->|Suggests changes| ADJ["Adjust tasks"] --> VP
See references/risk-analysis-protocol.md for the full protocol.
flowchart TD
SUP["1. Supervisor<br/>mandatory, always first"]
HO{"2. STATE_OWNERSHIP_HANDOFF"}
SUP --> HO
HO -->|ACK received| CONT["Continue"]
HO -->|HANDOFF_DUPLICATE| CONT
HO -->|HANDOFF_MISSING| BLOCK["Block, resolve, retry"] --> HO
HO -->|SPLIT_BRAIN| RECON["Reconcile lock, Lead arbitrates"] --> HO
CONT --> REV{"3. Reviewers"}
REV -->|SIMPLE| UR["unified-reviewer (1 agent)"]
REV -->|MEDIUM / COMPLEX| SR["security + logic + quality<br/>(3 agents, parallel)"]
UR & SR --> COD["4. Coders (up to --coders, parallel)"]
COD --> ST["5. Write state.md"]
See references/state-ownership.md for the full handoff contract.
Spawn order:
Task(subagent_type="team:supervisor", team_name="feature-<name>", name="supervisor",
prompt="You are the always-on Supervisor for team feature-<name>.
Own operational monitoring and state transitions in state.md.
Wait for STATE_OWNERSHIP_HANDOFF from Lead, then acknowledge and run monitor mode.")
.claude/teams/{team-name}/briefing.md.references/state-template.md.Use emoji from @references/status-icons.md. Emit after every coder DONE, phase transitions, and on request.
TEAM STATUS
coder-1: task #3 «Add settings endpoint» (IN_PROGRESS)
coder-2: task #4 «Update user model» (IN_REVIEW)
supervisor: monitoring
tech-lead: plan validated
Progress: ████░░░░░░ 2/5 tasks
ESCALATE TO MEDIUM):Compute required approvers from complexity mode + active roster. Validate each required role ACTIVE before waiting. Missing role → IMPOSSIBLE_WAIT → escalate to Lead.
| Event | Supervisor action | Lead action |
|---|---|---|
IN_REVIEW: task #N | Update state.md | None |
DONE: task #N | Update state.md | Spawn/reassign if needed |
DONE: task #N, claiming task #M | Update ownership | None |
ALL MY TASKS COMPLETE | Check completion gate | Confirm Phase 3 |
STUCK: task #N | Mark stuck, route escalation | Re-scope/reassign/research |
REVIEW_LOOP: task #N | Quarantine, escalate | Owner swap or checkpoint |
ESCALATE TO MEDIUM | Route escalation | Spawn missing roles |
IMPOSSIBLE_WAIT | Fail fast, escalate | Resolve missing approver |
flowchart TD
DONE{"All tasks completed?"}
DONE -->|NO| P2["Stay in Phase 2"]
DONE -->|YES| BUILD{"1. Run build"}
BUILD -->|PASS| TEST{"Run tests"}
BUILD -->|FAIL| FIX1["Create fix task → coder → review"] --> BUILD
TEST -->|PASS| CONV["2. Conventions update<br/>assign to coder"]
TEST -->|FAIL| FIX2["Create fix task → coder → review"] --> TEST
CONV --> TLC["3. Tech Lead consistency check<br/>(MEDIUM/COMPLEX only)"]
TLC --> GATE{".conventions/ exists<br/>AND modified this session?"}
GATE -->|YES| TEAR["5. Teardown FSM"]
GATE -->|NO| STOP["STOP → run conventions task"] --> GATE
TEAR --> RPT["6. Print summary report"]
RPT --> FINAL["7. Final dispatch"]
.conventions/ must exist and be modified this session.references/teardown-fsm.md.references/summary-report-template.md.READY_TO_DELETE → supervisor shutdown (last), TeamDelete. If TEARDOWN_FAILED_SAFE → escalate to user.| Situation | Action |
|---|---|
| Coder STUCK | Dispatch researcher → adjust/split task or reassign |
| REVIEW_LOOP (3+ rounds) | Dispatch researcher to read code+feedback → concrete fix to coder |
| Tech Lead rejects architecture >2x | Review directly, dispatch researcher if needed, make final call, document |
| "Pattern doesn't fit" | Forward to Tech Lead → if unsure, researcher → document in DECISIONS.md |
| Build/tests fail | Create targeted fix tasks |
| Coder idle | Let Supervisor run staged intervention |
| Need best practices | Dispatch general-purpose researcher with WebSearch |
| CRITICAL risk requires arch change | Adjust tasks per Tech Lead recommendations |
| Convention violations recurring | Note for Phase 3 conventions update |
--git-checkpoints)Lead records git_mode in briefing.md. Coders read it and act accordingly.
| Mode | Flag | Behavior |
|---|---|---|
| standard (default) | no flag | Single commit after all approvals: feat: <subject> (task #N) |
| checkpoint | --git-checkpoints | WIP commits during workflow (see below) |
Checkpoint mode commit sequence:
wip: task #N — pre-review checkpoint (before sending REVIEW)fix: task #N — review fixes (after fixing feedback, before re-review)feat: <subject> (task #N) (after all approvals)Lead writes to briefing.md:
## Git Mode
git_mode: checkpoint
.conventions/)