Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsBlogPro
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Authors
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges
  • Chrome Extension
  • Skill Manager

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

ProTermsPrivacyRefunds
Back to skills

Dag Parallel Executor

ASecurity

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).

2 stars
0 votes
0 copies
1 views
Added 10/2/2026
toolsgonodeperformance

Works with

terminal

Security Analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned 10/2/2026

$npx -y skills add curiositech/port-daddy --skill dag-parallel-executor --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Dag Parallel Executor?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Dag Parallel Executor
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/curiositech-dag-parallel-executor-port-daddy/badge)](https://www.skillsdirectory.com/skills/curiositech-dag-parallel-executor-port-daddy)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
Files
SKILL.md
---
license: BSL-1.1
name: dag-parallel-executor
description: 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).
allowed-tools:
  - Read
  - Write
  - Edit
  - Glob
  - Grep
  - Task
  - TodoWrite
metadata:
  category: Agent & Orchestration
  tags:
    - dag
    - orchestration
    - parallel-execution
    - concurrency
    - task-tool
  pairs-with:
    - skill: dag-task-scheduler
      reason: Receives execution schedule
    - skill: dag-result-aggregator
      reason: Sends results for aggregation
    - skill: dag-context-bridger
      reason: Bridges context between agents
---

You are a DAG Parallel Executor, proposing and supervising bounded concurrent task execution when its executor supplies the required lifecycle receipts. Use [Structured Wave Lifecycle and Cancellation](references/structured-wave-lifecycle-and-cancellation.md): a planned wave is not evidence of dispatch, and cancellation acknowledgement is not proof that an external effect was rolled back.

## Decision Points

```mermaid
flowchart TD
    A[Declared wave and execution policy] --> B{Prerequisite receipts and authority present?}
    B -->|No| C[Hold affected node with missing evidence]
    B -->|Yes| D[Check scarce resources and mutable/effect boundaries]
    D --> E{Eligible siblings can coexist under policy?}
    E -->|Yes| F[Dispatch bounded attempts and record identifiers]
    E -->|No| G[Queue or serialize with reason]
    F --> H[Join every terminal or unknown attempt state]
```

```mermaid
stateDiagram-v2
    [*] --> Ready
    Ready --> Dispatched: executor receipt
    Dispatched --> Running: start witness
    Dispatched --> Unknown: no start or terminal witness
    Running --> Succeeded: terminal result receipt
    Running --> Failed: terminal failure receipt
    Running --> Unknown: connection lost
    Running --> CancellationRequested: policy action
    CancellationRequested --> CancellationAcknowledged: request acknowledged
    CancellationRequested --> Succeeded: completion won race
    CancellationRequested --> Failed: failure won race
    CancellationAcknowledged --> Succeeded: terminal success won race
    CancellationAcknowledged --> Failed: terminal failure won race
    CancellationAcknowledged --> JoinedCancelled: terminal cancellation witness
    CancellationAcknowledged --> Unknown: no terminal witness
    Unknown --> Reconciled: authoritative lifecycle readback
    Succeeded --> [*]
    Failed --> [*]
    JoinedCancelled --> [*]
    Reconciled --> [*]
```

This diagram records attempt lifecycle only. A terminal child state does not settle an external effect; join policy must separately record and reconcile effect status before releasing dependents or reusing capacity whose external use remains uncertain.


```mermaid
flowchart LR
    A[Attempt failure or timeout] --> B{Effect reconciled and retry-safe condition established?}
    B -->|No| C[Contain dependents and reconcile]
    B -->|Yes| D{Current conditions and policy justify a bounded retry?}
    D -->|Yes| E[Propose bounded retry]
    D -->|No| F[Return failure or partial result under join policy]
```

## Failure Modes

| Anti-Pattern | Symptoms | Diagnosis | Fix |
|-------------|----------|-----------|-----|
| **Stampeding Herd** | Many concurrent attempts fail on a shared dependency | Compare the failures, resource boundary, and dependency evidence | Contain new dispatches; select a policy-governed recovery after diagnosis. |
| **Resource Starvation** | Tasks remain queued without a state transition | Capacity receipts show a sustained resource or lease constraint | Reconcile the constraint, narrow work, or escalate; do not raise limits by default. |
| **Retry Storm** | Repeated attempts preserve the same failure conditions | Attempt lineage shows no changed factor or idempotency/effect witness | Stop and escalate or propose one authorized discriminating experiment. |
| **Unbounded tracking** | Retained task state grows beyond its declared lifecycle | Compare retained records and memory with the retention policy | Persist required receipts before evicting completed in-memory records; preserve unsettled work. |
| **Silent Failures** | A completion status lacks the artifact or effect evidence required by its contract | Receipt and required acceptance evidence disagree | Mark status incomplete/unknown and block dependent release under policy. |

## Worked Examples

**Example: Research Pipeline with an Illustrative Wave Contract**

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

```
STEP 1: Initialize execution context
- dagId: research-pipeline
- capacity: two worker leases, recorded by the executor
- results: Map(), errors: Map()

STEP 2: Execute Wave 0
- Tasks: [fetch-papers]
- Decision: the task contract permits one read-only fetch attempt; record its executor identifier and source-access limits
- Capability selection: select an approved profile from the task policy, not prompt length or a fixed model name
- Result: retain the fetch receipt and artifact identity; count/source quality remain acceptance inputs, not completion proof

STEP 3: Execute Wave 1  
- Tasks: [validate-papers, extract-metadata]
- Decision: validation and extraction may run together only after they receive the same permitted input revision and no shared mutable/effect boundary is declared
- Join: collect a receipt for each attempt. A fail-fast policy may request sibling cancellation; a supervisor policy may retain an independent artifact. Neither result is inferred from a parent return.

STEP 4: Execute Wave 2
- Tasks: [summarize] 
- Dependencies check: fetch-papers ✓, validate-papers ✓, extract-metadata ✓
- Release summarization only if the declared join condition accepts the validation/extraction receipts.
- Final result: record the summary artifact and its acceptance disposition; a generated string alone is not success.

EXPERT INSIGHT: Novice would execute all tasks in single wave, missing dependency constraints. Expert uses wave boundaries to respect declared ordering, then checks contracts and acceptance separately; ordering does not prove data correctness.
```

## Quality Gates

- [ ] All wave dependencies satisfied before execution
- [ ] Concurrent attempts fit a declared capacity/effect policy with executor evidence
- [ ] Failed, cancelled, and unknown tasks follow an explicit retry, containment, and join policy
- [ ] Each spawned agent receives properly formatted prompt and context
- [ ] Task results stored in results Map with nodeId key
- [ ] Permission/authority failures are contained and routed according to the declared policy; they do not imply a universal DAG abort
- [ ] Resource limits enforced (token budget, concurrent limits)
- [ ] Dependent release follows the declared AND/OR/partial join condition after terminal or reconciled-unknown states are recorded
- [ ] Error handling strategy applied consistently across all failures
- [ ] Required receipts are durable before bounded in-memory cleanup; unresolved effects retain their reconciliation records

## 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`

Attribution

curiositechcuriositech
View sourceSee grades on GitHubMore from curiositech →
SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Related Skills

ucoz-landing-skill

Create and edit uCoz homepage landing pages via MCP: custom templates, hero sections, lead forms, navigation menus, SEO, and responsive layout. Includes a visual design system (style selection, layout/grid, section recipes, typography/spacing, color tokens, component states, icons, modern CSS/JS, motion, imagery, social proof, copy/voice, accessibility). Uses ucoz-mcp tools for templates, site file uploads, and site modules.

107 votes

Paperclip

Interact with the Paperclip control plane API for task coordination and governance. Use when checking assignments, updating issue status, posting comments, delegating work, managing routines, or calling Paperclip API endpoints.

953191 votes

Pptx

Presentation toolkit (.pptx). Create/edit slides, layouts, content, speaker notes, comments, for programmatic presentation creation and modification.

471861 votes

Daw Music

Digital Audio Workstation usage, music composition, interactive music systems, and game audio implementation for immersive soundscapes.

761 votes

Instantly Rdsthomas Mission Control

Instantly.ai cold email outreach API - manage campaigns, leads, accounts, and analytics. Use for cold email automation, lead management, campaign creation/monitoring, and email account warmup.

761 votes
View all in tools →