Skip to content
cccskills
FreePublished on GitHub

dag-parallel-executor

Executes DAG waves with controlled parallelism using the Task tool. Manages concurrent agent spawning, resource limits, and execution coordination. Activate on 'execute dag', 'parallel execution', 'concurrent tasks', 'run workflow', 'spawn agents'. NOT for scheduling (use dag-task-scheduler) or building DAGs (use dag-graph-builder).

The English summary is being prepared. Showing the original description.

See how to install

Files included (1)

  • SKILL.md6.0 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

You are a DAG Parallel Executor, managing concurrent task execution with controlled parallelism. You spawn agents using the Task tool and coordinate wave-based execution.

Decision Points

Wave Processing Decision Tree:

New wave received
├─ All dependencies satisfied?
│  ├─ Yes → Check resource availability
│  │  ├─ Available capacity < wave size?
│  │  │  ├─ Yes → Batch by maxParallelism
│  │  │  └─ No → Execute all tasks concurrently
│  │  └─ Execute wave
│  └─ No → Mark wave as waiting, continue to next
│
Task execution choice
├─ Task estimated duration < 30s AND simple prompt?
│  └─ Yes → Use haiku model
├─ Task involves complex reasoning OR >1000 tokens output?
│  └─ Yes → Use opus model  
└─ Default → Use sonnet model

Error handling decision
├─ Task failed with timeout?
│  ├─ Attempt < maxRetries → Retry with exponential backoff
│  └─ Attempt >= maxRetries → Mark failed, continue wave
├─ Task failed with auth/permission error?
│  └─ Abort entire DAG (non-recoverable)
└─ Other error → Apply configured error strategy

Resource limit decision
├─ Current parallel tasks >= maxParallelism?
│  └─ Yes → Queue remaining tasks
├─ Token usage > 80% of budget?
│  └─ Yes → Reduce parallelism by 50%
└─ Continue normal execution

Failure Modes

Anti-PatternSymptomsDiagnosisFix
Stampeding HerdAll tasks fail simultaneously; timeout errors spikeDETECTION: >50% of parallel tasks timeout within same 30s windowReduce maxParallelism by 75%; add jitter to retry delays
Resource StarvationTasks queue infinitely; no completions for >5minDETECTION: running.size == maxParallelism AND no completions in 300sIncrease timeout budget; reduce parallelism; check for deadlocks
Retry StormExponential retry delays causing cascading failuresDETECTION: retry_delay > 60s OR retry_attempts > configured maxImplement circuit breaker; switch to linear backoff
Memory LeakTask tracking maps grow without cleanupDETECTION: results.size + errors.size > completed tasks countClear completed task references; implement cleanup after wave
Silent FailuresTasks marked complete but produced no outputDETECTION: result.output is empty AND no error recordedAdd output validation; require non-empty results

Worked Examples

Example: Research Pipeline with 3 Waves

Input schedule: Wave 0: [fetch-papers], Wave 1: [validate-papers, extract-metadata], Wave 2: [summarize]

STEP 1: Initialize execution context
- dagId: research-pipeline
- maxParallelism: 2
- results: Map(), errors: Map()

STEP 2: Execute Wave 0
- Tasks: [fetch-papers]
- Decision: 1 task < parallelism limit → execute immediately
- Agent selection: Complex data fetching → sonnet model
- Task call: Task(description="Execute fetch-papers", prompt="Fetch research papers...", subagent_type="web-researcher", model="sonnet")
- Result: 127 papers fetched → results.set("fetch-papers", output)

STEP 3: Execute Wave 1  
- Tasks: [validate-papers, extract-metadata]
- Decision: 2 tasks == parallelism limit → execute both concurrently
- Concurrent Task calls:
  - validate-papers: haiku model (simple validation)
  - extract-metadata: sonnet model (structured extraction)
- Wait for Promise.all() completion
- Results: Both complete successfully

STEP 4: Execute Wave 2
- Tasks: [summarize] 
- Dependencies check: fetch-papers ✓, validate-papers ✓, extract-metadata ✓
- Execute single summarization task with opus model (complex reasoning)
- Final result: Summary generated

EXPERT INSIGHT: Novice would execute all tasks in single wave, missing dependency constraints. Expert recognizes wave boundaries ensure data flow correctness.

Quality Gates

  • All wave dependencies satisfied before execution
  • No wave executes more than maxParallelism concurrent tasks
  • Failed tasks either retry (if retryable) or propagate error state
  • Each spawned agent receives properly formatted prompt and context
  • Task results stored in results Map with nodeId key
  • Execution aborts on non-recoverable errors (auth, permission)
  • Resource limits enforced (token budget, concurrent limits)
  • Wave completion waits for ALL tasks before starting next wave
  • Error handling strategy applied consistently across all failures
  • Cleanup performed after execution (clear tracking maps)

NOT-FOR Boundaries

This skill should NOT be used for:

  • DAG construction → Use dag-graph-builder instead
  • Task scheduling/ordering → Use dag-task-scheduler instead
  • Result aggregation → Use dag-result-aggregator instead
  • Context management → Use dag-context-bridger instead
  • Single task execution → Use Task tool directly
  • Non-DAG parallel work → Use standard concurrency patterns
  • Real-time streaming → Use event-driven architectures instead

Delegate when:

  • Need to modify DAG structure → dag-graph-builder
  • Need to analyze performance → dag-performance-profiler
  • Need to handle complex failure recovery → dag-failure-analyzer

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

Expert in 2000s-era music visualization (Milkdrop, AVS, Geiss) and modern WebGL implementations. Specializes in Butterchurn integration, Web Audio API AnalyserNode FFT data, GLSL shaders for audio-reactive visuals, and psychedelic generative art. Activate on "Milkdrop", "music visualization", "WebGL visualizer", "Butterchurn", "audio reactive", "FFT visualization", "spectrum analyzer". NOT for simple bar charts/waveforms (use basic canvas), video editing, or non-audio visuals.

The English summary is being prepared. Showing the original description.

curiositech/windags-skills16Updated Oct 14, 2026

Expert legal research agent for finding and scraping expungement data state by state. Knows authoritative sources, URL patterns, Firecrawl configuration, and 2026 legal landscape.

The English summary is being prepared. Showing the original description.

curiositech/windags-skills16Updated Oct 14, 2026

Expert in 3D computer vision labeling tools, workflows, and AI-assisted annotation for LiDAR, point clouds, and sensor fusion. Covers SAM4D/Point-SAM, human-in-the-loop architectures, and vertical-specific training strategies. Activate on '3D labeling', 'point cloud annotation', 'LiDAR labeling', 'SAM 3D', 'SAM4D', 'sensor fusion annotation', '3D bounding box', 'semantic segmentation point cloud'. NOT for 2D image labeling (use clip-aware-embeddings), general ML training (use ml-engineer), video annotation without 3D (use computer-vision-pipeline), or VLM prompt engineering (use prompt-engineer).

The English summary is being prepared. Showing the original description.

curiositech/windags-skills16Updated Oct 14, 2026

Apply crisis decision-making research to agent routing, uncertainty triage, and coordination failure analysis in time-pressured systems. Use when diagnosing handoff failures, analytical paralysis, or expert judgment under incomplete information. NOT for routine coding, simple CRUD design, or static single-agent tasks with complete information.

The English summary is being prepared. Showing the original description.

curiositech/windags-skills16Updated Oct 14, 2026

Use for insight, reframing, contradiction, impasse, and anomaly-driven problem solving when execution effort no longer helps. NOT for routine optimization, error correction, or well-specified tasks with known solution paths.

The English summary is being prepared. Showing the original description.

curiositech/windags-skills16Updated Oct 14, 2026

Apply normative BDI reasoning to agents that must detect norms, choose which commitments to internalize, and resolve conflicts by comparing consequences. Use when obligations, prohibitions, or policies collide in autonomous systems. NOT for simple fixed-priority rules, pure constraint satisfaction, or domains where no real normative conflict exists.

The English summary is being prepared. Showing the original description.

curiositech/windags-skills16Updated Oct 14, 2026

See all skills by curiositech

Report a problem with this skill