[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M781VFZ71Y9A2NYBHQFBC4B7":3,"skill-same:01M781VFZ71Y9A2NYBHQFBC4B7":49},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":26,"commitSha":27,"skillDirectory":28,"forksCount":29,"repositoryHtmlUrl":30,"repositoryHomepageUrl":31,"ownerHtmlUrl":32,"ownerBlogUrl":6,"ownerDescription":33,"updatedAt":34,"install":35,"resources":48},"01M781VFZ71Y9A2NYBHQFBC4B7","agent-teams",null,"Claude Code Agent Teams - default team-based development with strict TDD pipeline enforcement","Lord1Egypt\u002Fawesome-skill-forge","Lord1Egypt","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F99746359?v=4","01M7592YDNT0XK9WJ0T2MQVPDN","Mohamed Mounir Ali AL Keshita","01M75GRFNHC8VZNWEB8DKDE433",3,"MIT","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fskills_sh\u002Fs\u002Fskills-sh_alinaqi_claude-bootstrap_agent-teams\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: agent-teams\ndescription: Claude Code Agent Teams - default team-based development with strict TDD pipeline enforcement\nwhen-to-use: When spawning agent teams for parallel feature development with TDD pipeline\nuser-invocable: false\neffort: high\n---\n\n# Agent Teams Skill\n\n\n**Purpose:** Every project initialized with Maggy runs as a coordinated team of AI agents. This is the default workflow, not optional. Teams enforce a strict TDD pipeline where no step can be skipped.\n\n**Setup:** Agent definitions go in `.claude\u002Fagents\u002F` with proper frontmatter (name, description, model, tools, disallowedTools, maxTurns, effort). See agent files for the format.\n\n---\n\n## Core Principle\n\nEvery feature follows an immutable pipeline enforced by task dependencies:\n\n```\n┌─────────────────────────────────────────────────────────────────┐\n│  STRICT FEATURE PIPELINE (IMMUTABLE)                            │\n│  ──────────────────────────────────────────────────────────────  │\n│                                                                  │\n│  1. SPEC        Write feature specification                      │\n│       ↓         (Feature Agent)                                  │\n│  2. REVIEW      Quality Agent reviews spec completeness          │\n│       ↓         (Quality Agent)                                  │\n│  3. TESTS       Write failing tests for all acceptance criteria  │\n│       ↓         (Feature Agent)                                  │\n│  4. RED VERIFY  Quality Agent confirms ALL tests FAIL            │\n│       ↓         (Quality Agent)                                  │\n│  5. IMPLEMENT   Write minimum code to pass tests                 │\n│       ↓         (Feature Agent)                                  │\n│  6. GREEN VERIFY Quality Agent confirms ALL tests PASS + coverage│\n│       ↓         (Quality Agent)                                  │\n│  7. VALIDATE    Lint + type check + full test suite              │\n│       ↓         (Feature Agent)                                  │\n│  8. CODE REVIEW Multi-engine review, block on Critical\u002FHigh      │\n│       ↓         (Code Review Agent)                              │\n│  9. SECURITY    OWASP scan, secrets detection, dependency audit  │\n│       ↓         (Security Agent)                                 │\n│  10. BRANCH+PR  Create feature branch, stage files, create PR    │\n│                 (Merger Agent)                                    │\n│                                                                  │\n│  No step can be skipped. Task dependencies enforce ordering.     │\n│  Quality Agent verifies RED\u002FGREEN transitions.                   │\n│  Code Review + Security Agents gate the merge path.              │\n│  Merger Agent handles branching and PR creation.                 │\n└─────────────────────────────────────────────────────────────────┘\n```\n\n---\n\n## Default Agent Roster\n\nEvery project spawns 5 permanent agents + N feature agents:\n\n```\n┌─────────────────────────────────────────────────────────────────┐\n│  DEFAULT TEAM ROSTER                                             │\n│  ──────────────────────────────────────────────────────────────  │\n│                                                                  │\n│  PERMANENT AGENTS (always present)                               │\n│  ─────────────────────────────────                               │\n│  Team Lead        Orchestration, task breakdown, assignment      │\n│                   Uses delegate mode - NEVER writes code         │\n│                                                                  │\n│  Quality Agent    TDD verification (RED\u002FGREEN phases)            │\n│                   Coverage gates (>= 80%)                        │\n│                   Spec completeness review                       │\n│                                                                  │\n│  Security Agent   OWASP scanning, secrets detection              │\n│                   Dependency audit, .env validation               │\n│                   Blocks on Critical\u002FHigh                        │\n│                                                                  │\n│  Code Review Agent  Multi-engine code review                     │\n│                     Claude \u002F Codex \u002F Gemini \u002F All                │\n│                     Blocks on Critical\u002FHigh                      │\n│                                                                  │\n│  Merger Agent     Creates feature branches                       │\n│                   Stages feature-specific files only              │\n│                   Creates PRs via gh CLI                          │\n│                   NEVER merges - only creates PRs                │\n│                                                                  │\n│  DYNAMIC AGENTS (one per feature)                                │\n│  ────────────────────────────────                                │\n│  Feature Agent    Implements one feature end-to-end              │\n│  (x N features)   Follows strict pipeline above                  │\n│                   Uses Ralph loops for implementation             │\n│                                                                  │\n└─────────────────────────────────────────────────────────────────┘\n```\n\n| Agent | Role | Plan Mode | Can Edit Code |\n|-------|------|-----------|---------------|\n| team-lead | Orchestration, task breakdown, assignment | No (delegate mode) | No |\n| quality-agent | TDD verification, coverage gates | Yes | No (read-only) |\n| security-agent | OWASP scanning, secrets detection | Yes | No (read-only) |\n| review-agent | Multi-engine code review | Yes | No (read-only) |\n| merger-agent | Branch creation, PR management | No | No (git only) |\n| feature-{name} | Feature implementation (one per feature) | No | Yes |\n\n---\n\n## Team Lead Responsibilities\n\nThe Team Lead is the orchestrator. It NEVER writes code.\n\n1. Read `_project_specs\u002Ffeatures\u002F*.md` to identify all features\n2. Break each feature into the 10-task dependency chain (see below)\n3. Spawn one feature agent per feature\n4. Assign initial tasks (spec-writing) to feature agents\n5. Monitor TaskList continuously for progress and blockers\n6. Handle blocked tasks and reassignment\n7. Coordinate cross-feature dependencies\n8. Send `shutdown_request` to all agents when all PRs are created\n9. Clean up the team when done\n\n**Delegate mode is mandatory.** The team lead uses only:\n- TeamCreate, TaskCreate, TaskUpdate, TaskList, TaskGet\n- SendMessage (message, broadcast, shutdown_request)\n- Read, Glob, Grep (for monitoring)\n\n---\n\n## Feature Agent Workflow (MANDATORY)\n\nEach feature agent MUST follow this exact sequence. Task dependencies enforce ordering - a feature agent cannot start step N+1 until step N is marked complete and verified.\n\n### Step 1: Write Spec\n- Create `_project_specs\u002Ffeatures\u002F{feature-name}.md`\n- Include: description, acceptance criteria, test cases table, dependencies\n- Follow the atomic TODO format from base.md skill\n- Mark task complete -> Quality Agent reviews\n\n### Step 2: Write Tests (RED Phase)\n- Write test files based on spec's test cases table\n- Tests MUST cover ALL acceptance criteria\n- Import modules that don't exist yet (they will fail)\n- Mark task complete -> Quality Agent verifies tests EXIST and FAIL\n\n### Step 3: Wait for RED Verification\n- Quality Agent runs tests and verifies ALL new tests fail\n- If any test passes without implementation -> rewrite tests\n- Quality Agent marks verification complete -> unlocks implementation\n\n### Step 4: Implement (GREEN Phase)\n- Write minimum code to make all tests pass\n- Follow simplicity rules from base.md (20 lines\u002Ffunction, 200 lines\u002Ffile, 3 params)\n- Use Ralph loops (`\u002Fralph-loop`) for iterative implementation\n- Run tests after implementation - ALL must pass\n- Mark task complete -> Quality Agent verifies tests pass\n\n### Step 5: Wait for GREEN Verification\n- Quality Agent runs full test suite and checks coverage\n- Coverage must be >= 80%\n- If tests fail or coverage insufficient -> fix and re-request\n- Quality Agent marks verification complete -> unlocks validation\n\n### Step 6: Validate\n- Run linter (ESLint \u002F Ruff)\n- Run type checker (TypeScript \u002F mypy)\n- Run full test suite with coverage\n- Fix any issues\n- Mark task complete -> unlocks code review\n\n### Step 7: Wait for Code Review\n- Code Review Agent runs `\u002Fcode-review` on changed files\n- If Critical or High issues -> fix and re-request review\n- Code Review Agent marks complete -> unlocks security scan\n\n### Step 8: Wait for Security Scan\n- Security Agent runs security checks\n- If Critical or High issues -> fix and re-request scan\n- Security Agent marks complete -> unlocks merge\n\n### Step 9: Wait for Branch + PR\n- Merger Agent creates feature branch, stages files, creates PR\n- Feature is complete when PR is created\n\n---\n\n## Task Dependency Chain Model\n\nFor each feature \"X\", the team lead creates these 10 tasks with strict ordering:\n\n```\n┌────────────────────────────────────────────────────────────────┐\n│  TASK CHAIN FOR FEATURE \"X\"                                     │\n│                                                                  │\n│  Task 1:  X-spec                                                │\n│           owner: feature-X                                       │\n│           blockedBy: (none)                                      │\n│           ↓                                                      │\n│  Task 2:  X-spec-review                                         │\n│           owner: quality-agent                                   │\n│           blockedBy: X-spec                                      │\n│           ↓                                                      │\n│  Task 3:  X-tests                                               │\n│           owner: feature-X                                       │\n│           blockedBy: X-spec-review                               │\n│           ↓                                                      │\n│  Task 4:  X-tests-fail-verify                                   │\n│           owner: quality-agent                                   │\n│           blockedBy: X-tests                                     │\n│           ↓                                                      │\n│  Task 5:  X-implement                                           │\n│           owner: feature-X                                       │\n│           blockedBy: X-tests-fail-verify                         │\n│           ↓                                                      │\n│  Task 6:  X-tests-pass-verify                                   │\n│           owner: quality-agent                                   │\n│           blockedBy: X-implement                                 │\n│           ↓                                                      │\n│  Task 7:  X-validate                                            │\n│           owner: feature-X                                       │\n│           blockedBy: X-tests-pass-verify                         │\n│           ↓                                                      │\n│  Task 8:  X-code-review                                         │\n│           owner: review-agent                                    │\n│           blockedBy: X-validate                                  │\n│           ↓                                                      │\n│  Task 9:  X-security-scan                                       │\n│           owner: security-agent                                  │\n│           blockedBy: X-code-review                               │\n│           ↓                                                      │\n│  Task 10: X-branch-pr                                           │\n│           owner: merger-agent                                    │\n│           blockedBy: X-security-scan                             │\n└────────────────────────────────────────────────────────────────┘\n```\n\n### Parallel Feature Execution\n\nMultiple features run their chains in parallel. Shared agents process tasks as they unblock:\n\n```\nFeature: auth         Feature: dashboard      Feature: payments\n  auth-spec             dash-spec               pay-spec\n  auth-spec-review      dash-spec-review        pay-spec-review\n  auth-tests            dash-tests              pay-tests\n  auth-fail-verify      dash-fail-verify        pay-fail-verify\n  auth-implement        dash-implement          pay-implement\n  auth-pass-verify      dash-pass-verify        pay-pass-verify\n  auth-validate         dash-validate           pay-validate\n  auth-code-review      dash-code-review        pay-code-review\n  auth-security         dash-security           pay-security\n  auth-branch-pr        dash-branch-pr          pay-branch-pr\n       |                     |                       |\n       v                     v                       v\n   [All chains run simultaneously]\n   [Quality Agent handles all verify tasks as they unblock]\n   [Review Agent handles all review tasks as they unblock]\n   [Security Agent handles all scan tasks as they unblock]\n   [Merger Agent handles all branch-pr tasks as they unblock]\n```\n\n---\n\n## Inter-Agent Communication\n\n### Direct Messages (for targeted work)\n```\nFeature Agent -> Quality Agent:  \"Tests written for auth, ready for RED verify\"\nQuality Agent -> Feature Agent:  \"All 7 tests fail as expected. Proceed to implement\"\nFeature Agent -> Review Agent:   \"Implementation complete, ready for code review\"\nReview Agent  -> Feature Agent:  \"2 High issues found: [details]. Fix before proceeding\"\nSecurity Agent -> Merger Agent:  \"Security scan passed for auth feature\"\nMerger Agent  -> Team Lead:      \"PR #42 created for auth feature\"\n```\n\n### Task List (source of truth for state)\n- All agents check TaskList after completing work\n- Quality Agent claims verification tasks automatically\n- Review Agent claims code-review tasks automatically\n- Security Agent claims security-scan tasks automatically\n- Merger Agent claims branch-pr tasks automatically\n\n### Broadcast (rare - blocking issues only)\n- Team Lead -> All: \"Blocking dependency found between auth and dashboard\"\n- Security Agent -> All: \"Critical vulnerability in shared dependency\"\n\n---\n\n## Feature Agent Spawning\n\nThe team lead spawns one feature agent per feature:\n\n1. Read `_project_specs\u002Ffeatures\u002F*.md`\n2. For each feature spec, spawn a feature agent:\n   - name: `feature-{feature-name}`\n   - Uses `.claude\u002Fagents\u002Ffeature.md` definition\n   - Spawn prompt includes the feature name and spec location\n3. Create the full 10-task dependency chain for that feature\n4. Assign the spec-writing task to the feature agent\n\n### Example\nIf project has 3 features: auth, dashboard, payments\n- Spawn: `feature-auth`, `feature-dashboard`, `feature-payments`\n- Create 30 tasks total (10 per feature)\n- Each feature agent starts with their spec task\n- All 3 work in parallel\n\n---\n\n## Branch and PR Strategy\n\n**One branch per feature. One PR per feature.**\n\n```\nBranch naming:  feature\u002F{feature-name}\nPR title:       feat({feature-name}): {short description}\nPR body:        Generated from spec + test results + review + security results\n```\n\nThe Merger Agent:\n1. `git checkout main && git pull origin main`\n2. `git checkout -b feature\u002F{feature-name}`\n3. Stages ONLY files changed for this feature (never `git add -A`)\n4. Commits with descriptive message including verification results\n5. `git push -u origin feature\u002F{feature-name}`\n6. `gh pr create` with full template including:\n   - Summary from feature spec\n   - Test results from quality verification\n   - Code review summary from review agent\n   - Security scan results from security agent\n   - Checklist of all pipeline steps completed\n\n---\n\n## Quality Gates\n\n### Workflow Enforcement (via task dependencies)\n- Task dependencies make it **structurally impossible** to skip steps\n- A feature agent cannot see \"implement\" until quality agent completes \"tests-fail-verify\"\n- This is the primary enforcement mechanism\n\n### Cross-Agent Verification (trust but verify)\n- Quality agent independently runs tests (doesn't trust feature agent's report)\n- Security agent independently scans (doesn't trust review agent)\n- Merger agent verifies all predecessor tasks are complete before branching\n\n### Blocking Rules\n- Quality Agent: blocks if tests don't fail (RED) or don't pass (GREEN) or coverage \u003C 80%\n- Code Review Agent: blocks on Critical or High severity issues\n- Security Agent: blocks on Critical or High severity findings\n- Merger Agent: refuses to branch if any predecessor task is incomplete\n\n---\n\n## Integration with Existing Skills\n\n| Existing Skill | How Agent Teams Uses It |\n|----------------|------------------------|\n| base.md | TDD workflow, atomic todos, simplicity rules - all agents follow |\n| code-review.md | Review Agent executes `\u002Fcode-review` per this skill |\n| security.md | Security Agent follows OWASP patterns from this skill |\n| session-management.md | Each agent maintains its own session state |\n| iterative-development.md | Feature agents use Stop hook TDD loops for implementation |\n| project-tooling.md | Merger Agent uses `gh` CLI for branches and PRs |\n| team-coordination.md | Superseded by agent-teams for automated coordination |\n| **icpg.md** | **Team lead creates ReasonNodes. Feature agents query constraints\u002Frisk. Quality agent checks drift. PreToolUse hook injects context. Stop hook auto-records symbols.** |\n| code-graph.md | Feature agents use graph for symbol lookup alongside iCPG for intent context |\n\n---\n\n## Environment Setup\n\n### Required Setting\n```json\n\u002F\u002F settings.json or environment\n{\n  \"env\": {\n    \"agent teams (via .claude\u002Fagents\u002F definitions)\": \"1\"\n  }\n}\n```\n\n### Project Structure (created by \u002Finitialize-project)\n```\n.claude\u002F\n  agents\u002F            # Agent definitions (from agent-teams skill)\n    team-lead.md\n    quality.md\n    security.md\n    code-review.md\n    merger.md\n    feature.md\n  skills\u002F\n    agent-teams\u002F     # This skill\n      SKILL.md\n      agents\u002F        # Agent definition templates\n    base\u002F\n    code-review\u002F\n    security\u002F\n    ...\n```\n\n---\n\n## Spawning the Team\n\n### Automatic (via \u002Finitialize-project)\nAfter project setup completes, Phase 6 asks for features and spawns the team automatically.\n\n### Manual (via \u002Fspawn-team)\nFor existing projects: run `\u002Fspawn-team` to spawn the team from existing feature specs.\n\n---\n\n## Container Isolation (Polyphony)\n\nWhen Docker\u002FOrbStack is available, feature agents run in Polyphony containers by default. The team lead and shared agents (quality, security, review, merger) still run natively — they only read and coordinate.\n\n### What changes with Polyphony\n\n| Aspect | Without Polyphony | With Polyphony |\n|--------|-------------------|----------------|\n| Feature agents | Shared filesystem | Own container + git branch |\n| File conflicts | Team lead must serialize | Impossible (isolated clones) |\n| Test execution | Shared, can interfere | Independent per container |\n| Branch strategy | Merger agent creates branches | Each container has its own branch |\n\n### How it works\n\n1. `\u002Fspawn-team` detects Docker + polyphony CLI\n2. For each feature, runs `polyphony spawn \"$FEATURE\" --type feature`\n3. Polyphony creates a container with its own git clone + branch\n4. Agent CLI starts inside the container\n5. On completion, changes are on a dedicated branch ready for PR\n\n### Fallback\n\nIf Docker is not available, `\u002Fspawn-team` falls back to the native Agent tool (shared filesystem). A note is printed:\n> \"Running without container isolation (Docker not found). Agents share the workspace.\"\n\n---\n\n## Limitations\n\n- **Experimental feature** - Agent teams require the experimental env var\n- **No nested teams** - Teammates cannot spawn sub-teams\n- **One team per session** - Clean up before starting a new team\n- **No session resumption** - If session dies, re-run `\u002Fspawn-team` (tasks persist)\n- **File conflicts** - Features sharing files must be serialized by team lead (unless using Polyphony containers)\n- **Token cost** - Each agent is a separate Claude instance (5 + N instances)\n","# Agent Teams Skill\n\n\n**Purpose:** Every project initialized with Maggy runs as a coordinated team of AI agents. This is the default workflow, not optional. Teams enforce a strict TDD pipeline where no step can be skipped.\n\n**Setup:** Agent definitions go in `.claude\u002Fagents\u002F` with proper frontmatter (name, description, model, tools, disallowedTools, maxTurns, effort). See agent files for the format.\n\n---\n\n## Core Principle\n\nEvery feature follows an immutable pipeline enforced by task dependencies:\n\n```\n┌─────────────────────────────────────────────────────────────────┐\n│  STRICT FEATURE PIPELINE (IMMUTABLE)                            │\n│  ──────────────────────────────────────────────────────────────  │\n│                                                                  │\n│  1. SPEC        Write feature specification                      │\n│       ↓         (Feature Agent)                                  │\n│  2. REVIEW      Quality Agent reviews spec completeness          │\n│       ↓         (Quality Agent)                                  │\n│  3. TESTS       Write failing tests for all acceptance criteria  │\n│       ↓         (Feature Agent)                                  │\n│  4. RED VERIFY  Quality Agent confirms ALL tests FAIL            │\n│       ↓         (Quality Agent)                                  │\n│  5. IMPLEMENT   Write minimum code to pass tests                 │\n│       ↓         (Feature Agent)                                  │\n│  6. GREEN VERIFY Quality Agent confirms ALL tests PASS + coverage│\n│       ↓         (Quality Agent)                                  │\n│  7. VALIDATE    Lint + type check + full test suite              │\n│       ↓         (Feature Agent)                                  │\n│  8. CODE REVIEW Multi-engine review, block on Critical\u002FHigh      │\n│       ↓         (Code Review Agent)                              │\n│  9. SECURITY    OWASP scan, secrets detection, dependency audit  │\n│       ↓         (Security Agent)                                 │\n│  10. BRANCH+PR  Create feature branch, stage files, create PR    │\n│                 (Merger Agent)                                    │\n│                                                                  │\n│  No step can be skipped. Task dependencies enforce ordering.     │\n│  Quality Agent verifies RED\u002FGREEN transitions.                   │\n│  Code Review + Security Agents gate the merge path.              │\n│  Merger Agent handles branching and PR creation.                 │\n└─────────────────────────────────────────────────────────────────┘\n```\n\n---\n\n## Default Agent Roster\n\nEvery project spawns 5 permanent agents + N feature agents:\n\n```\n┌─────────────────────────────────────────────────────────────────┐\n│  DEFAULT TEAM ROSTER                                             │\n│  ──────────────────────────────────────────────────────────────  │\n│                                                                  │\n│  PERMANENT AGENTS (always present)                               │\n│  ─────────────────────────────────                               │\n│  Team Lead        Orchestration, task breakdown, assignment      │\n│                   Uses delegate mode - NEVER writes code         │\n│                                                                  │\n│  Quality Agent    TDD verification (RED\u002FGREEN phases)            │\n│                   Coverage gates (>= 80%)                        │\n│                   Spec completeness review                       │\n│                                                                  │\n│  Security Agent   OWASP scanning, secrets detection              │\n│                   Dependency audit, .env validation               │\n│                   Blocks on Critical\u002FHigh                        │\n│                                                                  │\n│  Code Review Agent  Multi-engine code review                     │\n│                     Claude \u002F Codex \u002F Gemini \u002F All                │\n│                     Blocks on Critical\u002FHigh                      │\n│                                                                  │\n│  Merger Agent     Creates feature branches                       │\n│                   Stages feature-specific files only              │\n│                   Creates PRs via gh CLI                          │\n│                   NEVER merges - only creates PRs                │\n│                                                                  │\n│  DYNAMIC AGENTS (one per feature)                                │\n│  ────────────────────────────────                                │\n│  Feature Agent    Implements one feature end-to-end              │\n│  (x N features)   Follows strict pipeline above                  │\n│                   Uses Ralph loops for implementation             │\n│                                                                  │\n└─────────────────────────────────────────────────────────────────┘\n```\n\n| Agent | Role | Plan Mode | Can Edit Code |\n|-------|------|-----------|---------------|\n| team-lead | Orchestration, task breakdown, assignment | No (delegate mode) | No |\n| quality-agent | TDD verification, coverage gates | Yes | No (read-only) |\n| security-agent | OWASP scanning, secrets detection | Yes | No (read-only) |\n| review-agent | Multi-engine code review | Yes | No (read-only) |\n| merger-agent | Branch creation, PR management | No | No (git only) |\n| feature-{name} | Feature implementation (one per feature) | No | Yes |\n\n---\n\n## Team Lead Responsibilities\n\nThe Team Lead is the orchestrator. It NEVER writes code.\n\n1. Read `_project_specs\u002Ffeatures\u002F*.md` to identify all features\n2. Break each feature into the 10-task dependency chain (see below)\n3. Spawn one feature agent per feature\n4. Assign initial tasks (spec-writing) to feature agents\n5. Monitor TaskList continuously for progress and blockers\n6. Handle blocked tasks and reassignment\n7. Coordinate cross-feature dependencies\n8. Send `shutdown_request` to all agents when all PRs are created\n9. Clean up the team when done\n\n**Delegate mode is mandatory.** The team lead uses only:\n- TeamCreate, TaskCreate, TaskUpdate, TaskList, TaskGet\n- SendMessage (message, broadcast, shutdown_request)\n- Read, Glob, Grep (for monitoring)\n\n---\n\n## Feature Agent Workflow (MANDATORY)\n\nEach feature agent MUST follow this exact sequence. Task dependencies enforce ordering - a feature agent cannot start step N+1 until step N is marked complete and verified.\n\n### Step 1: Write Spec\n- Create `_project_specs\u002Ffeatures\u002F{feature-name}.md`\n- Include: description, acceptance criteria, test cases table, dependencies\n- Follow the atomic TODO format from base.md skill\n- Mark task complete -> Quality Agent reviews\n\n### Step 2: Write Tests (RED Phase)\n- Write test files based on spec's test cases table\n- Tests MUST cover ALL acceptance criteria\n- Import modules that don't exist yet (they will fail)\n- Mark task complete -> Quality Agent verifies tests EXIST and FAIL\n\n### Step 3: Wait for RED Verification\n- Quality Agent runs tests and verifies ALL new tests fail\n- If any test passes without implementation -> rewrite tests\n- Quality Agent marks verification complete -> unlocks implementation\n\n### Step 4: Implement (GREEN Phase)\n- Write minimum code to make all tests pass\n- Follow simplicity rules from base.md (20 lines\u002Ffunction, 200 lines\u002Ffile, 3 params)\n- Use Ralph loops (`\u002Fralph-loop`) for iterative implementation\n- Run tests after implementation - ALL must pass\n- Mark task complete -> Quality Agent verifies tests pass\n\n### Step 5: Wait for GREEN Verification\n- Quality Agent runs full test suite and checks coverage\n- Coverage must be >= 80%\n- If tests fail or coverage insufficient -> fix and re-request\n- Quality Agent marks verification complete -> unlocks validation\n\n### Step 6: Validate\n- Run linter (ESLint \u002F Ruff)\n- Run type checker (TypeScript \u002F mypy)\n- Run full test suite with coverage\n- Fix any issues\n- Mark task complete -> unlocks code review\n\n### Step 7: Wait for Code Review\n- Code Review Agent runs `\u002Fcode-review` on changed files\n- If Critical or High issues -> fix and re-request review\n- Code Review Agent marks complete -> unlocks security scan\n\n### Step 8: Wait for Security Scan\n- Security Agent runs security checks\n- If Critical or High issues -> fix and re-request scan\n- Security Agent marks complete -> unlocks merge\n\n### Step 9: Wait for Branch + PR\n- Merger Agent creates feature branch, stages files, creates PR\n- Feature is complete when PR is created\n\n---\n\n## Task Dependency Chain Model\n\nFor each feature \"X\", the team lead creates these 10 tasks with strict ordering:\n\n```\n┌────────────────────────────────────────────────────────────────┐\n│  TASK CHAIN FOR FEATURE \"X\"                                     │\n│                                                                  │\n│  Task 1:  X-spec                                                │\n│           owner: feature-X                                       │\n│           blockedBy: (none)                                      │\n│           ↓                                                      │\n│  Task 2:  X-spec-review                                         │\n│           owner: quality-agent                                   │\n│           blockedBy: X-spec                                      │\n│           ↓                                                      │\n│  Task 3:  X-tests                                               │\n│           owner: feature-X                                       │\n│           blockedBy: X-spec-review                               │\n│           ↓                                                      │\n│  Task 4:  X-tests-fail-verify                                   │\n│           owner: quality-agent                                   │\n│           blockedBy: X-tests                                     │\n│           ↓                                                      │\n│  Task 5:  X-implement                                           │\n│           owner: feature-X                                       │\n│           blockedBy: X-tests-fail-verify                         │\n│           ↓                                                      │\n│  Task 6:  X-tests-pass-verify                                   │\n│           owner: quality-agent                                   │\n│           blockedBy: X-implement                                 │\n│           ↓                                                      │\n│  Task 7:  X-validate                                            │\n│           owner: feature-X                                       │\n│           blockedBy: X-tests-pass-verify                         │\n│           ↓                                                      │\n│  Task 8:  X-code-review                                         │\n│           owner: review-agent                                    │\n│           blockedBy: X-validate                                  │\n│           ↓                                                      │\n│  Task 9:  X-security-scan                                       │\n│           owner: security-agent                                  │\n│           blockedBy: X-code-review                               │\n│           ↓                                                      │\n│  Task 10: X-branch-pr                                           │\n│           owner: merger-agent                                    │\n│           blockedBy: X-security-scan                             │\n└────────────────────────────────────────────────────────────────┘\n```\n\n### Parallel Feature Execution\n\nMultiple features run their chains in parallel. Shared agents process tasks as they unblock:\n\n```\nFeature: auth         Feature: dashboard      Feature: payments\n  auth-spec             dash-spec               pay-spec\n  auth-spec-review      dash-spec-review        pay-spec-review\n  auth-tests            dash-tests              pay-tests\n  auth-fail-verify      dash-fail-verify        pay-fail-verify\n  auth-implement        dash-implement          pay-implement\n  auth-pass-verify      dash-pass-verify        pay-pass-verify\n  auth-validate         dash-validate           pay-validate\n  auth-code-review      dash-code-review        pay-code-review\n  auth-security         dash-security           pay-security\n  auth-branch-pr        dash-branch-pr          pay-branch-pr\n       |                     |                       |\n       v                     v                       v\n   [All chains run simultaneously]\n   [Quality Agent handles all verify tasks as they unblock]\n   [Review Agent handles all review tasks as they unblock]\n   [Security Agent handles all scan tasks as they unblock]\n   [Merger Agent handles all branch-pr tasks as they unblock]\n```\n\n---\n\n## Inter-Agent Communication\n\n### Direct Messages (for targeted work)\n```\nFeature Agent -> Quality Agent:  \"Tests written for auth, ready for RED verify\"\nQuality Agent -> Feature Agent:  \"All 7 tests fail as expected. Proceed to implement\"\nFeature Agent -> Review Agent:   \"Implementation complete, ready for code review\"\nReview Agent  -> Feature Agent:  \"2 High issues found: [details]. Fix before proceeding\"\nSecurity Agent -> Merger Agent:  \"Security scan passed for auth feature\"\nMerger Agent  -> Team Lead:      \"PR #42 created for auth feature\"\n```\n\n### Task List (source of truth for state)\n- All agents check TaskList after completing work\n- Quality Agent claims verification tasks automatically\n- Review Agent claims code-review tasks automatically\n- Security Agent claims security-scan tasks automatically\n- Merger Agent claims branch-pr tasks automatically\n\n### Broadcast (rare - blocking issues only)\n- Team Lead -> All: \"Blocking dependency found between auth and dashboard\"\n- Security Agent -> All: \"Critical vulnerability in shared dependency\"\n\n---\n\n## Feature Agent Spawning\n\nThe team lead spawns one feature agent per feature:\n\n1. Read `_project_specs\u002Ffeatures\u002F*.md`\n2. For each feature spec, spawn a feature agent:\n   - name: `feature-{feature-name}`\n   - Uses `.claude\u002Fagents\u002Ffeature.md` definition\n   - Spawn prompt includes the feature name and spec location\n3. Create the full 10-task dependency chain for that feature\n4. Assign the spec-writing task to the feature agent\n\n### Example\nIf project has 3 features: auth, dashboard, payments\n- Spawn: `feature-auth`, `feature-dashboard`, `feature-payments`\n- Create 30 tasks total (10 per feature)\n- Each feature agent starts with their spec task\n- All 3 work in parallel\n\n---\n\n## Branch and PR Strategy\n\n**One branch per feature. One PR per feature.**\n\n```\nBranch naming:  feature\u002F{feature-name}\nPR title:       feat({feature-name}): {short description}\nPR body:        Generated from spec + test results + review + security results\n```\n\nThe Merger Agent:\n1. `git checkout main && git pull origin main`\n2. `git checkout -b feature\u002F{feature-name}`\n3. Stages ONLY files changed for this feature (never `git add -A`)\n4. Commits with descriptive message including verification results\n5. `git push -u origin feature\u002F{feature-name}`\n6. `gh pr create` with full template including:\n   - Summary from feature spec\n   - Test results from quality verification\n   - Code review summary from review agent\n   - Security scan results from security agent\n   - Checklist of all pipeline steps completed\n\n---\n\n## Quality Gates\n\n### Workflow Enforcement (via task dependencies)\n- Task dependencies make it **structurally impossible** to skip steps\n- A feature agent cannot see \"implement\" until quality agent completes \"tests-fail-verify\"\n- This is the primary enforcement mechanism\n\n### Cross-Agent Verification (trust but verify)\n- Quality agent independently runs tests (doesn't trust feature agent's report)\n- Security agent independently scans (doesn't trust review agent)\n- Merger agent verifies all predecessor tasks are complete before branching\n\n### Blocking Rules\n- Quality Agent: blocks if tests don't fail (RED) or don't pass (GREEN) or coverage \u003C 80%\n- Code Review Agent: blocks on Critical or High severity issues\n- Security Agent: blocks on Critical or High severity findings\n- Merger Agent: refuses to branch if any predecessor task is incomplete\n\n---\n\n## Integration with Existing Skills\n\n| Existing Skill | How Agent Teams Uses It |\n|----------------|------------------------|\n| base.md | TDD workflow, atomic todos, simplicity rules - all agents follow |\n| code-review.md | Review Agent executes `\u002Fcode-review` per this skill |\n| security.md | Security Agent follows OWASP patterns from this skill |\n| session-management.md | Each agent maintains its own session state |\n| iterative-development.md | Feature agents use Stop hook TDD loops for implementation |\n| project-tooling.md | Merger Agent uses `gh` CLI for branches and PRs |\n| team-coordination.md | Superseded by agent-teams for automated coordination |\n| **icpg.md** | **Team lead creates ReasonNodes. Feature agents query constraints\u002Frisk. Quality agent checks drift. PreToolUse hook injects context. Stop hook auto-records symbols.** |\n| code-graph.md | Feature agents use graph for symbol lookup alongside iCPG for intent context |\n\n---\n\n## Environment Setup\n\n### Required Setting\n```json\n\u002F\u002F settings.json or environment\n{\n  \"env\": {\n    \"agent teams (via .claude\u002Fagents\u002F definitions)\": \"1\"\n  }\n}\n```\n\n### Project Structure (created by \u002Finitialize-project)\n```\n.claude\u002F\n  agents\u002F            # Agent definitions (from agent-teams skill)\n    team-lead.md\n    quality.md\n    security.md\n    code-review.md\n    merger.md\n    feature.md\n  skills\u002F\n    agent-teams\u002F     # This skill\n      SKILL.md\n      agents\u002F        # Agent definition templates\n    base\u002F\n    code-review\u002F\n    security\u002F\n    ...\n```\n\n---\n\n## Spawning the Team\n\n### Automatic (via \u002Finitialize-project)\nAfter project setup completes, Phase 6 asks for features and spawns the team automatically.\n\n### Manual (via \u002Fspawn-team)\nFor existing projects: run `\u002Fspawn-team` to spawn the team from existing feature specs.\n\n---\n\n## Container Isolation (Polyphony)\n\nWhen Docker\u002FOrbStack is available, feature agents run in Polyphony containers by default. The team lead and shared agents (quality, security, review, merger) still run natively — they only read and coordinate.\n\n### What changes with Polyphony\n\n| Aspect | Without Polyphony | With Polyphony |\n|--------|-------------------|----------------|\n| Feature agents | Shared filesystem | Own container + git branch |\n| File conflicts | Team lead must serialize | Impossible (isolated clones) |\n| Test execution | Shared, can interfere | Independent per container |\n| Branch strategy | Merger agent creates branches | Each container has its own branch |\n\n### How it works\n\n1. `\u002Fspawn-team` detects Docker + polyphony CLI\n2. For each feature, runs `polyphony spawn \"$FEATURE\" --type feature`\n3. Polyphony creates a container with its own git clone + branch\n4. Agent CLI starts inside the container\n5. On completion, changes are on a dedicated branch ready for PR\n\n### Fallback\n\nIf Docker is not available, `\u002Fspawn-team` falls back to the native Agent tool (shared filesystem). A note is printed:\n> \"Running without container isolation (Docker not found). Agents share the workspace.\"\n\n---\n\n## Limitations\n\n- **Experimental feature** - Agent teams require the experimental env var\n- **No nested teams** - Teammates cannot spawn sub-teams\n- **One team per session** - Clean up before starting a new team\n- **No session resumption** - If session dies, re-run `\u002Fspawn-team` (tasks persist)\n- **File conflicts** - Features sharing files must be serialized by team lead (unless using Polyphony containers)\n- **Token cost** - Each agent is a separate Claude instance (5 + N instances)\n",{"name":5,"effort":24,"description":7,"when-to-use":25,"user-invocable":20},"high","When spawning agent teams for parallel feature development with TDD pipeline","master","4aa004da461d820f4ea5499e58eb8d196cf99016","community\u002Fskills_sh\u002Fs\u002Fskills-sh_alinaqi_claude-bootstrap_agent-teams",0,"https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge","https:\u002F\u002Fskill-explorer-rho.vercel.app","https:\u002F\u002Fgithub.com\u002FLord1Egypt","Unbreakable. Unstoppable. Unmatched⚡.\r\n Speaker of machine tongues 🤖  | World-builder of decentralized dreams 🌐 | Defender of the digital realm🛡️.","2026-06-10 08:21:01",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":47},[37,40,43],{"tool":38,"command":39},"npx","npx skills add Lord1Egypt\u002Fawesome-skill-forge --skill agent-teams",{"tool":41,"command":42},"bunx","bunx skills add Lord1Egypt\u002Fawesome-skill-forge --skill agent-teams",{"tool":44,"command":45},"pnpm","pnpm dlx skills add Lord1Egypt\u002Fawesome-skill-forge --skill agent-teams","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fskills_sh\u002Fs\u002Fskills-sh_alinaqi_claude-bootstrap_agent-teams\u002FSKILL.md",true,[],[50,57,64,71,78,85],{"skillNo":51,"name":52,"nameZh":6,"description":53,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":54,"categories":55,"keywords":56,"publishedAt":19},"01M785WKJB99G3STR1NF9NRTJW","youtube-content","YouTube transcripts to summaries, threads, blogs.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fyoutube-content\u002FSKILL.md",[],[],{"skillNo":58,"name":59,"nameZh":6,"description":60,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":19},"01M785WEFHB0G2S9YA6EPR3H0E","xurl","X\u002FTwitter via xurl CLI: post, search, DM, media, v2 API.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fxurl\u002FSKILL.md",[],[],{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":19},"01M785W98EDN4EFJXJPMQEHCRC","touchdesigner-mcp","Control a running TouchDesigner instance via twozero MCP — create operators, set parameters, wire connections, execute Python, build real-time visuals. 36 native tools.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftouchdesigner-mcp\u002FSKILL.md",[],[],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":19},"01M785W5S9FP3QBH2V191E025P","test-driven-development","TDD: enforce RED-GREEN-REFACTOR, tests before code.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftest-driven-development\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":19},"01M785W2AS08NSSH9YATCV6FJB","teams-meeting-pipeline","Operate the Teams meeting summary pipeline via Hermes CLI — summarize meetings, inspect pipeline status, replay jobs, manage Microsoft Graph subscriptions.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fteams-meeting-pipeline\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":19},"01M785VXKW4T34BTP1SCHW1R7F","systematic-debugging","4-phase root cause debugging: understand bugs before fixing.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fsystematic-debugging\u002FSKILL.md",[],[]]