skills/clouder0/spawn-parallel/SKILL.md
Pattern for spawning parallel subagents efficiently. Use when you need multiple independent tasks done concurrently.
npx skillsauth add aiskillstore/marketplace spawn-parallelInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Pattern for spawning and coordinating parallel subagents.
Tasks are independent if:
Each subagent needs minimal, focused context:
{"task":{"id":"unique_id","description":"specific task"},"context_files":["only relevant files"],"boundaries":{"owns":["files this agent can modify"],"reads":["files for reference"]},"output_path":"memory/tasks/{id}/output.json"}
Use multiple Task calls in single response:
Task(subagent_type: "implementer", model: "sonnet", prompt: "Task 1...")
Task(subagent_type: "implementer", model: "sonnet", prompt: "Task 2...")
Task(subagent_type: "implementer", model: "sonnet", prompt: "Task 3...")
Subagent Type Reference (Custom Dotagent Agents):
| Type | Model | Use For |
|------|-------|---------|
| explorer | haiku | Fast codebase scouting |
| implementer | sonnet | Focused code writing |
| verifier | haiku | Independent verification |
| tester | haiku | Test execution |
Note: These are custom dotagent agents (lowercase). Built-in Claude Code
agents like Explore and Plan (capitalized) have different behavior.
After all complete:
Individual failures don't fail the batch. Apply recovery strategies from @.claude/skills/error-recovery/SKILL.md:
FOR each failed task in batch:
IF output malformed/timeout:
→ Simple Retry (same prompt, up to 3x)
ELIF agent said "unclear"/"don't understand":
→ Context Enhancement (add files, clarify)
ELIF partial completion:
→ Scope Reduction (split into subtasks)
ELIF boundary/contract violation:
→ Escalation (spawn contract-resolver)
ELIF 3+ attempts failed:
→ Abort, record failure, continue with others
Retry with Context Enhancement Example:
Task(
subagent_type: "implementer",
model: "sonnet",
prompt: |
## RETRY - Previous attempt failed
Error: "Unclear how to connect to database"
## Additional Context
See database config: @src/config/database.ts
Connection pattern: @src/services/db-connection.ts
## Original Task
{original_task_description}
Output: memory/tasks/{id}/output.json
)
# Spawn 3 custom explorer agents in parallel
Task(
subagent_type: "explorer", # Custom dotagent agent
model: "haiku",
prompt: "Explore authentication code. Return compact JSON with findings."
)
Task(
subagent_type: "explorer",
model: "haiku",
prompt: "Explore API routes. Return compact JSON with findings."
)
Task(
subagent_type: "explorer",
model: "haiku",
prompt: "Explore database models. Return compact JSON with findings."
)
All run concurrently, results collected when all complete.
# Parallel implementation with different boundaries
Task(
subagent_type: "implementer",
model: "sonnet",
prompt: |
Task: Add user validation
Boundaries: owns=[src/validators/user.ts], reads=[src/types/]
Output: memory/tasks/task-001/output.json
)
Task(
subagent_type: "implementer",
model: "sonnet",
prompt: |
Task: Add email service
Boundaries: owns=[src/services/email.ts], reads=[src/config/]
Output: memory/tasks/task-002/output.json
)
development
Apple Human Interface Guidelines for content display components. Use this skill when the user asks about charts component, collection view, image view, web view, color well, image well, activity view, lockup, data visualization, content display, displaying images, rendering web content, color pickers, or presenting collections of items in Apple apps. Also use when the user says how should I display charts, what's the best way to show images, should I use a web view, how do I build a grid of items, what component shows media, or how do I present a share sheet. Cross-references: hig-foundations for color/typography/accessibility, hig-patterns for data visualization patterns, hig-components-layout for structural containers, hig-platforms for platform-specific component behavior.
tools
Automate HelpDesk tasks via Rube MCP (Composio): list tickets, manage views, use canned responses, and configure custom fields. Always search tools first for current schemas.
testing
Expert Haskell engineer specializing in advanced type systems, pure functional design, and high-reliability software. Use PROACTIVELY for type-level programming, concurrency, and architecture guidance.
tools
GraphQL gives clients exactly the data they need - no more, no less. One endpoint, typed schema, introspection. But the flexibility that makes it powerful also makes it dangerous. Without proper controls, clients can craft queries that bring down your server. This skill covers schema design, resolvers, DataLoader for N+1 prevention, federation for microservices, and client integration with Apollo/urql. Key insight: GraphQL is a contract. The schema is the API documentation. Design it carefully.