本文へ移動
cccskills
無料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).

インストール方法を見る

含まれるファイル(2)

  • SKILL.md7.9 KB
  • references/structured-wave-lifecycle-and-cancellation.md1.6 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

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: a planned wave is not evidence of dispatch, and cancellation acknowledgement is not proof that an external effect was rolled back.

Decision Points

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

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-PatternSymptomsDiagnosisFix
Stampeding HerdMany concurrent attempts fail on a shared dependencyCompare the failures, resource boundary, and dependency evidenceContain new dispatches; select a policy-governed recovery after diagnosis.
Resource StarvationTasks remain queued without a state transitionCapacity receipts show a sustained resource or lease constraintReconcile the constraint, narrow work, or escalate; do not raise limits by default.
Retry StormRepeated attempts preserve the same failure conditionsAttempt lineage shows no changed factor or idempotency/effect witnessStop and escalate or propose one authorized discriminating experiment.
Unbounded trackingRetained task state grows beyond its declared lifecycleCompare retained records and memory with the retention policyPersist required receipts before evicting completed in-memory records; preserve unsettled work.
Silent FailuresA completion status lacks the artifact or effect evidence required by its contractReceipt and required acceptance evidence disagreeMark 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

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

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.

日本語の概要は準備中です。原文の説明を表示しています。

curiositech/port-daddy22026年10月8日 更新

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

日本語の概要は準備中です。原文の説明を表示しています。

curiositech/port-daddy22026年10月8日 更新

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

日本語の概要は準備中です。原文の説明を表示しています。

curiositech/port-daddy22026年10月8日 更新

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.

日本語の概要は準備中です。原文の説明を表示しています。

curiositech/port-daddy22026年10月8日 更新

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.

日本語の概要は準備中です。原文の説明を表示しています。

curiositech/port-daddy22026年10月8日 更新

Apply cognitive task analysis to expert work that depends on perceptual cues, branching judgment, and recurring monitoring loops. Use when decomposing expert capability into agent structure, simulation design, or validation interviews. NOT for ordinary step-by-step SOP capture or simple pipelines with no tacit cue layer.

日本語の概要は準備中です。原文の説明を表示しています。

curiositech/port-daddy22026年10月8日 更新

curiositech のスキルをすべて見る

このスキルの問題を報告する