Run parallel agents feature build

From ulpi-io/browse · View interactive version

Run parallel agents feature build is an AI agent skill from the GitHub repository ulpi-io/browse. Orchestrate multiple specialized agents working in parallel when building independent features. Use when the task list contains 3+ unrelated tasks that don't share state or files. Matches each task to the right expert agent and launches them concurrently via the Agent tool with worktree isolation. S

How to use this skill

Skill file

<EXTREMELY-IMPORTANT>

Before launching parallel agents, you ABSOLUTELY MUST:

  1. Verify tasks are truly independent (no shared files, no data flow between them)
  2. Match each task to the correct specialized agent
  3. Create complete briefs with scope, files, output, and success criteria
  4. Launch ALL agents in a SINGLE message with multiple Agent tool calls

Launching agents without verification = conflicts, wasted work, merge hell

This is not optional. Parallel execution requires independence verification.

</EXTREMELY-IMPORTANT>

Run Parallel Agents Feature Build

MANDATORY FIRST RESPONSE PROTOCOL

Before launching ANY parallel agents, you MUST complete this checklist:

  1. ☐ Count tasks — are there 3+ independent tasks?
  2. ☐ Check dependencies — do any tasks depend on others?
  3. ☐ Check file overlap — do tasks modify the same files?
  4. ☐ Match agents — assign correct agent type per task
  5. ☐ Prepare briefs — scope, files, output, success criteria for each
  6. ☐ Announce to user — "Launching N agents in parallel for [tasks]"

Launching agents WITHOUT completing this checklist = conflicts and failures.

Overview

Automatically detect opportunities for parallel execution and orchestrate multiple specialized agents working concurrently on independent features, modules, or investigations. Match each task to the appropriate domain expert and coordinate their work to deliver faster results without sacrificing quality.

When to Use This Skill

Use this skill automatically when:

Task List Indicators:

User Triggers:

Common Scenarios:

When NOT to Use This Skill

Do NOT use parallel agents when:

Dependencies Exist:

Problem Not Decomposed:

Single Cohesive Task:

Core Workflow

Step 1: Analyze the Task List or Request

Examine the current task list or user request to identify:

  1. Number of independent work streams - Are there 3+ separate features/tasks?
  2. Dependencies - Can each task be completed without waiting for others?
  3. Shared state - Do tasks modify the same files or data structures?
  4. Scope clarity - Is each task clearly defined with known requirements?

If all conditions for parallelization are met, proceed to Step 2.

Step 2: Match Features to Specialized Agents

For each independent task, determine the best agent type based on:

Technology Stack Detection:

File Pattern Analysis:

*.php + /app/ + /routes/ → Laravel
*.tsx + /app/ or /pages/ + next.config.* → Next.js
*.tsx + vite.config.* + tailwind.config.* → React/Vite/Tailwind
*.ts + express imports → Express
*.ts + commander/inquirer imports → Node CLI
*.py + fastapi imports → FastAPI
*.py + django/flask/general → Python
*.go + go.mod → Go
*.swift + Package.swift or *.xcodeproj → iOS/macOS
*.tsx + app.json (Expo) → Expo React Native
Dockerfile + docker-compose.* → Docker
CDK, CloudFormation, Terraform → AWS DevOps

Step 3: Prepare Agent Briefs

For each agent, create a clear, focused brief containing:

Required Elements:

  1. Scope of work - Exactly what to build/analyze/fix
  2. Expected output - What deliverables to produce
  3. Context - Relevant file paths, existing patterns, constraints
  4. Success criteria - How to verify completion

Brief Template:

Build [feature name]:
- Scope: [specific feature boundaries]
- Files: [relevant paths or patterns]
- Requirements: [bullet points]
- Output: [expected deliverables]
- Patterns: [existing code patterns to follow]

Step 4: Launch Agents in Parallel

Execute all agents simultaneously using a single message with multiple Agent tool calls:

Use the Agent tool with these parameters for each task:
- prompt: Complete brief (scope, files, output, success criteria)
- subagent_type: Matched agent from the Agent Table
- isolation: "worktree" (MANDATORY for parallel file modifications)
- run_in_background: true (for concurrent execution)
- model: "opus" for complex tasks, "sonnet" for straightforward tasks

Critical Requirements:

Step 5: Monitor and Aggregate Results

After agents complete:

  1. Collect outputs from each agent
  2. Verify deliverables match expected outputs
  3. Check for conflicts (e.g., overlapping file changes)
  4. Merge results into a coherent summary
  5. Report to user with consolidated findings

Aggregation Template:

Parallel execution complete. Results:

**[Feature 1]** (via [agent-type])
- Status: [completed/blocked/partial]
- Delivered: [summary]
- Files modified: [list]

**[Feature 2]** (via [agent-type])
- Status: [completed/blocked/partial]
- Delivered: [summary]
- Files modified: [list]

**Overall:** [X/Y features completed, any conflicts, next steps]

Step 5b: Review Dispatch (Mandatory When Plan Specifies Review)

After each task agent completes and before merging its worktree, check the task's review field from the plan JSON. If it is not none, invoke the corresponding review skill using the Skill tool:

| review value | Skill invocation | What it runs |

|---------------|-----------------|--------------|

| codex | Skill("codex-review") | OpenAI Codex CLI (codex review) — external binary, independent AI |

| claude | Skill("claude-review") | Separate Claude Code agent in isolated worktree |

| kiro | Skill("kiro-review") | Kiro CLI (kiro-cli chat) — external binary, independent AI |

| none | Skip review | No review needed |

CRITICAL: These are real external CLI tools, not prompts for a general-purpose agent. Do NOT substitute a Claude agent with "review this diff" in the prompt — that is a self-review, not an independent review. The entire point of specifying codex or kiro is to get a second opinion from a different AI system.

Review timing: Reviews can run in parallel with other task agents that don't depend on the reviewed task. For example, if TASK-001 and TASK-002 are both in Layer 0, you can review TASK-001 while TASK-002's agent is still running.

Review failures: If the review tool finds P0/P1 issues, fix them before merging the worktree and before launching dependent tasks. P2/P3 issues can be noted and fixed during merge.

Step 6: Verification (MANDATORY)

After aggregating results, verify the parallel execution was successful:

Check 1: All Agents Completed
Check 2: No File Conflicts
Check 3: Deliverables Match Briefs
Check 4: No Integration Issues
Check 5: User Informed

Gate: Do NOT mark task complete until all 5 checks pass.

Example Scenarios

Example A: Feature Build

User Says:

"Build the wishlist API, checkout summary, and user dashboard in parallel."

Execution:

  1. Detect three separate feature scopes
  2. Match agents:
  1. Launch all three in a single message with Agent tool
  2. Aggregate results into merged summary

Output:

Built 3 features in parallel:
- Wishlist API: Complete (app/Http/Controllers/WishlistController.php, routes/api.php)
- Checkout summary: Complete (app/checkout/summary/page.tsx)
- User dashboard: Complete (app/dashboard/page.tsx)

Example B: Debug Parallel Subsystems

User Says:

"Run parallel agents to debug these failing tests."

Execution:

  1. Cluster failures by subsystem:
  1. Spawn agents:
  1. Let each diagnose and fix independently
  2. Gather results, merge patches, re-run tests
  3. Output consolidated fix report

Example C: Code Analysis

User Says:

"Analyze these 5 code files in parallel for performance bottlenecks."

Execution:

  1. Split files across appropriate agents based on file type
  2. Run analysis concurrently (each agent gets 1-2 files)
  3. Merge findings into summarized report with:

Agent Type Reference

Quick reference for matching tasks to agents:

| Agent Type | Best For | Key Indicators |

| ----------------------------------- | ------------------------------------------------- | -------------------------------------------- |

| laravel-senior-engineer | Laravel backends, APIs, Eloquent models | *.php, /app/, Eloquent, Artisan |

| nextjs-senior-engineer | Next.js apps, React Server Components, App Router | *.tsx, /app/, /pages/, next.config.* |

| react-vite-tailwind-engineer | React + Vite + Tailwind TypeScript frontends | *.tsx, vite.config.*, tailwind.config.*|

| express-senior-engineer | Express.js APIs, middleware, REST endpoints | *.js/*.ts, express imports |

| nodejs-cli-senior-engineer | Node.js CLI tools, commander.js, inquirer | commander, inquirer, ora, CLI patterns |

| python-senior-engineer | Python backends, Django, data pipelines | *.py, requirements.txt, pyproject.toml |

| fastapi-senior-engineer | FastAPI, async DB, JWT auth | *.py, fastapi imports, uvicorn |

| go-senior-engineer | Go backends, services, APIs | *.go, go.mod, go.sum |

| go-cli-senior-engineer | Go CLI tools, cobra, viper | *.go, cobra imports, CLI patterns |

| ios-macos-senior-engineer | Swift, SwiftUI, Xcode, SPM, StoreKit | *.swift, Package.swift, *.xcodeproj |

| expo-react-native-engineer | Expo mobile apps, cross-platform | *.tsx, app.json, Expo modules |

| devops-aws-senior-engineer | AWS infrastructure, CDK, CloudFormation | CDK, CloudFormation, Terraform, AWS |

| devops-docker-senior-engineer | Docker, Docker Compose, containerization | Dockerfile, docker-compose.* |

| general-purpose | Exploration, research, general tasks | Non-framework-specific work |

See references/agent_matching_logic.md for detailed matching rules and edge cases.

Best Practices

Scoping Tasks Effectively

Good Task Scopes:

Poor Task Scopes:

Handling Conflicts

If agents modify overlapping files:

  1. Review changes from each agent
  2. Identify conflicts (same lines modified)
  3. Merge intelligently or ask user for guidance
  4. Re-test affected areas

Communication Pattern

Always inform the user BEFORE launching parallel agents:

I've identified 3 independent features that can be built in parallel:
1. [Feature 1] - using [agent-type]
2. [Feature 2] - using [agent-type]
3. [Feature 3] - using [agent-type]

Launching agents now...

Handling Partial Success

If an agent fails or gets blocked:


Quality Checklist (Must Score 8/10)

Score yourself honestly before marking parallel execution complete:

Independence Verification (0-2 points)

Agent Matching (0-2 points)

Brief Quality (0-2 points)

Execution Correctness (0-2 points)

Result Aggregation (0-2 points)

Minimum passing score: 8/10


Common Rationalizations (All Wrong)

These are excuses. Don't fall for them:


Failure Modes

Failure Mode 1: Launching Dependent Tasks in Parallel

Symptom: Agents fail or produce conflicting output because Task B needed Task A's result

Fix: Run dependency checks. If Output(A) ∈ Input(B), execute sequentially.

Failure Mode 2: Wrong Agent Assignment

Symptom: Laravel work done by nextjs-senior-engineer, poor results

Fix: Use technology detection patterns. Match *.php → Laravel agent.

Failure Mode 3: Sequential Launch Instead of Parallel

Symptom: Sent multiple messages with Agent tool calls, agents ran one at a time

Fix: ALL Agent tool calls in a SINGLE message. This is critical for parallel execution.

Failure Mode 4: Incomplete Briefs

Symptom: Agents ask clarifying questions or deliver wrong output

Fix: Every brief must have Scope, Files, Output, Success criteria. No placeholders.

Failure Mode 5: No Conflict Check After Completion

Symptom: Agents modified same files, changes overwrite each other

Fix: After aggregation, check file overlap. If conflicts, merge intelligently.


Quick Workflow Summary

STEP 1: ANALYZE
├── Count tasks (need 3+)
├── Check dependencies
├── Check file overlap
└── Gate: Tasks are independent

STEP 2: MATCH AGENTS
├── Identify technology per task
├── Assign correct agent type
└── Document matching rationale

STEP 3: PREPARE BRIEFS
├── Scope, Files, Output, Success criteria
└── No placeholders allowed

STEP 4: LAUNCH PARALLEL
├── Single message with ALL Agent tool calls
├── Do NOT wait between launches
└── Gate: All agents launched

STEP 5: AGGREGATE RESULTS
├── Collect outputs
├── Check for conflicts
└── Merge into summary

STEP 6: VERIFICATION
├── All agents completed
├── No file conflicts
├── Deliverables match briefs
└── Gate: All 5 checks pass

Completion Announcement

When parallel execution is complete, announce:

Parallel execution complete.

**Quality Score: X/10**
- Independence Verification: X/2
- Agent Matching: X/2
- Brief Quality: X/2
- Execution Correctness: X/2
- Result Aggregation: X/2

**Results:**
- Features completed: X/Y
- Agents used: [list]
- Conflicts: [none/resolved/pending]

**Summary:**
[Brief description of what was delivered]

**Next steps:**
[Any remaining work or follow-up needed]

Integration with Other Skills

The run-parallel-agents-feature-build skill integrates with:

Workflow: start → plan-to-task-list-with-dag → plan-founder-review → run-parallel-agents-feature-build


Resources

references/

This skill does not require scripts or assets - it orchestrates existing Claude Code agent capabilities.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.