executing-work-in-parallel

0
0
Source

Coordinate concurrent task execution through agent delegation. Plan independent work, manage dependencies, and execute multiple agents simultaneously. Use when handling multiple unrelated tasks, research investigations, or layer-based implementations that can run concurrently.

Install

mkdir -p .claude/skills/executing-work-in-parallel && curl -L -o skill.zip "https://mcp.directory/api/skills/download/4985" && unzip -o skill.zip -d .claude/skills/executing-work-in-parallel && rm skill.zip

Installs to .claude/skills/executing-work-in-parallel

About this skill

Executing Work in Parallel

Core Pattern

Parallel execution prevents context saturation and accelerates work through concurrent processing. Key principle: implement shared dependencies first, then launch independent agents simultaneously.

When to parallelize

  • 2+ independent tasks — Different files or modules without interactions
  • Research investigations — Multiple agents exploring different aspects
  • Layer-based work — Database → API → Frontend stages
  • Multi-file refactoring — Changes without interdependencies

When NOT to parallelize

  • Single file modification — Use direct tools
  • Sequential operations — Tasks building on each other
  • Shared resource conflicts — Multiple agents modifying same file
  • Complex interdependencies — Most tasks depend on others

Execution Framework

Phase 1: Task Analysis

  1. Map all tasks — Comprehensive list of everything needed
  2. Identify dependencies — Document what depends on what
  3. Group independent work — Find tasks running simultaneously
  4. Validate groupings — Confirm groups are truly independent

Phase 2: Implementation

Step 1: Shared Dependencies Implement first alone (shared types, interfaces, schemas, core utilities). Never parallelize these—they block other work.

Step 2: Parallel Execution Use single function_calls block with multiple Task invocations:

<function_calls>
  <invoke name="Task">
    <parameter name="description">First parallel task</parameter>
    <parameter name="subagent_type">appropriate-agent</parameter>
    <parameter name="prompt">Detailed context and instructions...</parameter>
  </invoke>
  <invoke name="Task">
    <parameter name="description">Second parallel task</parameter>
    <parameter name="subagent_type">appropriate-agent</parameter>
    <parameter name="prompt">Detailed context and instructions...</parameter>
  </invoke>
</function_calls>

Step 3: Wait and Reassess Let agents complete, then:

  • Review results
  • Identify newly unblocked work
  • Plan next batch

Step 4: Repeat Continue batching until complete.

Common Patterns

Layer-Based

Stage 1: Database schema + Type definitions + Core utilities
Stage 2: Service layer + API endpoints + Frontend components
Stage 3: Tests + Documentation + Configuration

Feature-Based

Stage 1: Independent feature implementations
Stage 2: Integration points between features
Stage 3: Cross-cutting concerns

Research-First

Stage 1: Multiple research agents investigating aspects
Stage 2: Consolidation and planning from findings
Stage 3: Parallel implementation of requirements

Agent Delegation Checklist

Provide complete context

  • Exact file paths to read for patterns
  • Target files to modify
  • Existing conventions to follow
  • Expected output format

Use appropriate agents

  • programmer — API, services, data layers, components, pages, styling
  • Explore — Semantic searches, flow tracing
  • senior-engineer — Testing and verification
  • orchestrator — Complex multi-agent work

Respect dependencies

  • Type dependencies (interfaces others use)
  • Core utilities and shared functions
  • Database schemas and migrations
  • API contracts and payloads
  • Never parallelize dependent tasks

Thresholds

MetricThreshold
Minimum tasks to parallelize2 independent tasks
Optimal group size3-5 independent tasks
Maximum concurrent agents7-8 (diminishing returns)

Critical Reminders

  1. Implement shared dependencies alone first — Types, interfaces, schemas, base utilities
  2. Single function_calls block per batch — All parallel invocations in one call
  3. Exact file paths — Agents need explicit guidance
  4. Think between batches — Reassess what's unblocked after each stage
  5. Monitor context limits — Split complex tasks rather than overload agents
  6. Quality over speed — Correctness and correctness always supersede parallelization

More by CaptainCrouton89

View all →

reviewing-code

CaptainCrouton89

Systematically evaluate code changes for security, correctness, performance, and spec alignment. Use when reviewing PRs, assessing code quality, or verifying implementation against requirements.

899

railway-cli-management

CaptainCrouton89

Deploy, manage services, view logs, and configure Railway infrastructure. Use when deploying to Railway, managing environment variables, viewing deployment logs, scaling services, or managing volumes.

1173

gathering-requirements

CaptainCrouton89

Systematically clarify user needs, preferences, and constraints before planning or implementation. Classifies work type, investigates existing systems, discovers edge cases and integration points, resolves assumptions, and creates detailed specifications. Use when building features, enhancements, or integrations where requirements need clarification.

00

fixing-bugs-systematically

CaptainCrouton89

Diagnose and fix bugs through systematic investigation, root cause analysis, and targeted validation. Use when something is broken, errors occur, performance degrades, or unexpected behavior manifests.

00

writing-like-user

CaptainCrouton89

Emulate the user's personal writing voice and style patterns. Use when the user asks to write content in their voice, draft documents, compose messages, or requests "write this like me" or "in my style."

770

investigating-code-patterns

CaptainCrouton89

Systematically trace code flows, locate implementations, diagnose performance issues, and map system architecture. Use when understanding how existing systems work, researching concepts, exploring code structure, or answering "how/where/why is X implemented?" questions.

20

You might also like

flutter-development

aj-geddes

Build beautiful cross-platform mobile apps with Flutter and Dart. Covers widgets, state management with Provider/BLoC, navigation, API integration, and material design.

245776

drawio-diagrams-enhanced

jgtolentino

Create professional draw.io (diagrams.net) diagrams in XML format (.drawio files) with integrated PMP/PMBOK methodologies, extensive visual asset libraries, and industry-standard professional templates. Use this skill when users ask to create flowcharts, swimlane diagrams, cross-functional flowcharts, org charts, network diagrams, UML diagrams, BPMN, project management diagrams (WBS, Gantt, PERT, RACI), risk matrices, stakeholder maps, or any other visual diagram in draw.io format. This skill includes access to custom shape libraries for icons, clipart, and professional symbols.

188408

godot

bfollington

This skill should be used when working on Godot Engine projects. It provides specialized knowledge of Godot's file formats (.gd, .tscn, .tres), architecture patterns (component-based, signal-driven, resource-based), common pitfalls, validation tools, code templates, and CLI workflows. The `godot` command is available for running the game, validating scripts, importing resources, and exporting builds. Use this skill for tasks involving Godot game development, debugging scene/resource files, implementing game systems, or creating new Godot components.

172268

nano-banana-pro

garg-aayush

Generate and edit images using Google's Nano Banana Pro (Gemini 3 Pro Image) API. Use when the user asks to generate, create, edit, modify, change, alter, or update images. Also use when user references an existing image file and asks to modify it in any way (e.g., "modify this image", "change the background", "replace X with Y"). Supports both text-to-image generation and image-to-image editing with configurable resolution (1K default, 2K, or 4K for high resolution). DO NOT read the image file first - use this skill directly with the --input-image parameter.

199226

ui-ux-pro-max

nextlevelbuilder

"UI/UX design intelligence. 50 styles, 21 palettes, 50 font pairings, 20 charts, 8 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, mobile app, .html, .tsx, .vue, .svelte. Elements: button, modal, navbar, sidebar, card, table, form, chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, flat design. Topics: color palette, accessibility, animation, layout, typography, font pairing, spacing, hover, shadow, gradient."

156191

rust-coding-skill

UtakataKyosui

Guides Claude in writing idiomatic, efficient, well-structured Rust code using proper data modeling, traits, impl organization, macros, and build-speed best practices.

157171

Stay ahead of the MCP ecosystem

Get weekly updates on new skills and servers.