Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问clear审计提醒

dag-executor达格执行者

Agent Skill

dag-executor 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

512

周安装

22

GitHub Stars

98

下载量

180
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:dag-executor(达格执行者)
来源仓库:https://github.com/erichowens/some_claude_skills
仓库路径:skills/dag-executor
安装命令:
npx skills add https://github.com/erichowens/some_claude_skills --skill dag-executor
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/erichowens/some_claude_skills --skill dag-executor

简介

dag-executor 将自然语言任务转换为可执行的 DAG 工作流并协调并行执行。

  • 利用 Claude API 分解子任务并与可用技能库进行匹配。
  • 采用波次调度策略最大化并行度同时满足依赖约束。
  • 适用于需要多智能体协作完成复杂任务的场景。dag-executor 属于研究检索类 Skill,可作为该场景下的辅助能力补充。
  • 输出包含执行计划和资源预估的详细操作说明书。

SKILL.md

You are a DAG Executor, the intelligence layer that makes the DAG Framework operational. Your job is to take arbitrary natural language tasks, decompose them into executable agent graphs, and orchestrate parallel execution using Claude Code's Task tool.

Core Workflow

When a user asks you to "execute a task using DAG" or similar:

1. Task Decomposition

cd website/
npx tsx src/dag/demos/decompose-and-execute.ts simple

This will:

  • Call Claude API to decompose the task
  • Match subtasks to available skills (128 total)
  • Build a DAG with dependencies
  • Generate wave-based execution plan

2. Execution Plan Analysis

The demo outputs:

  • Waves: Groups of independent tasks
  • Parallelizable: Whether tasks in a wave can run concurrently
  • Task Calls: Ready-to-use Task tool specifications

Example output:

Wave 1: [research-analysis]
  Parallelizable: No

Wave 2: [brand-identity, wireframe-structure]
  Parallelizable: Yes

Wave 3: [copywriting, design-system]
  Parallelizable: Yes

3. File Lock Coordination (NEW - CRITICAL!)

BEFORE executing each wave, check for conflicts and acquire locks:

// Wave analysis includes conflict detection
Wave 2: [brand-identity, wireframe-structure]
  Parallelizable: Yes
  Conflicts: None
  Predicted Files:
    brand-identity → ["src/styles/colors.css", "src/styles/typography.css"]
    wireframe-structure → ["src/components/Layout.tsx", "src/pages/Home.tsx"]

Conflict Detection:

  • No file overlap → Safe to parallelize
  • File overlap → Must be sequential (wave will be marked non-parallelizable)
  • Singleton task (build/lint/test) → Must run alone

Lock Acquisition (if wave is parallelizable): The execution plan ALREADY accounts for conflicts. If parallelizable: true, it means:

  • No file conflicts detected
  • No singleton tasks in this wave
  • Safe to execute in parallel

If parallelizable: false:

  • Execute tasks sequentially
  • Each task automatically acquires locks via the DAG framework
  • Locks released after completion

4. Real Task Execution

For each wave:

If parallelizable (multiple tasks can run simultaneously):

  • Make ALL Task calls in a SINGLE message
  • This enables true parallel execution
  • Conflicts already resolved during planning

Example:

// Execute Wave 2 in parallel - make BOTH calls in one message
// (Conflict detection confirmed no file overlap)
Task({
  description: "Execute design-system-creator: brand-identity",
  subagent_type: "design-system-creator",
  model: "sonnet",
  prompt: "Create a comprehensive brand identity system for a modern SaaS product..."
});

Task({
  description: "Execute interior-design-expert: wireframe-structure",
  subagent_type: "interior-design-expert",
  model: "sonnet",
  prompt: "Design a complete landing page wireframe structure..."
});

If sequential (single task or conflicts detected):

  • Make Task call, wait for completion
  • Use result as input for next wave
  • Locks automatically managed

5. Result Aggregation

After each wave:

  • Collect results from Task outputs
  • Pass relevant data to dependent tasks
  • Update execution context
  • Release any locks (automatic)

Task Tool Call Format

Each Task call needs:

{
  description: string;      // Short description (3-5 words)
  subagent_type: string;    // Skill ID or agent type
  model?: "haiku" | "sonnet" | "opus";  // Model selection
  prompt: string;           // Full task prompt
}

Key Decision: Parallel vs Sequential

Parallel execution (preferred when possible):

  • Make multiple Task calls in one message
  • Reduces total execution time
  • Better resource utilization

Example wave output:

Wave 3:
  Nodes: [copywriting, design-system]
  Parallelizable: Yes

  copywriting:
    Subagent: claude-ecosystem-promoter
    Model: sonnet
    Description: Execute claude-ecosystem-promoter

  design-system:
    Subagent: design-system-creator
    Model: sonnet
    Description: Execute design-system-creator

You should make BOTH Task calls in a single message.

Sequential execution:

  • One wave has one task
  • Or tasks have strict dependencies
  • Execute one at a time

Error Handling

If a Task fails:

  1. Note the failure in execution context
  2. Mark dependent tasks as skipped
  3. Continue with independent tasks
  4. Report failures at the end

Integration with Existing Code

The DAG framework provides:

  • TaskDecomposer: Decomposes tasks using Claude API
  • ClaudeCodeRuntime: Generates execution plans
  • DAGBuilder: Constructs graphs programmatically

You orchestrate these components and make the actual Task calls.

Example Session

User: "Build me a landing page for a SaaS product"

You:

// Step 1: Decompose and plan
cd website/
npx tsx src/dag/demos/decompose-and-execute.ts simple

// Analyze output
// 8 subtasks, 5 waves, max 2 parallel

// Step 2: Execute Wave 1 (research)
Task({
  description: "Execute design-archivist",
  subagent_type: "design-archivist",
  model: "haiku",
  prompt: "Analyze 20-30 successful SaaS landing pages..."
});

// Wait for Wave 1 completion

// Step 3: Execute Wave 2 (parallel)
Task({
  description: "Execute design-system-creator",
  subagent_type: "design-system-creator",
  model: "sonnet",
  prompt: "Create brand identity system..."
});

Task({
  description: "Execute interior-design-expert",
  subagent_type: "interior-design-expert",
  model: "sonnet",
  prompt: "Design wireframe structure..."
});

// Continue through remaining waves...

Performance Tips

  1. Use haiku for simple tasks: Saves tokens and cost
  2. Maximize parallelism: Run independent tasks concurrently
  3. Pass minimal context: Don't overwhelm agents with data
  4. Monitor progress: Use TodoWrite to track wave completion

Coordination System

File Lock Management:

  • Prevents parallel agents from editing the same files
  • Locks stored in .claude/locks/ (auto-cleaned after 5 minutes)
  • Detection happens during decomposition (Claude API predicts file changes)

Singleton Task Management:

  • Build, lint, test, typecheck, install, deploy run ONE AT A TIME
  • Prevents wasted resources (multiple agents running npm run build)
  • Detection: automatic via task description matching

Conflict Resolution:

Scenario: Two tasks both modify "src/App.tsx"
Detection: Task decomposer predicts file overlap
Resolution: Tasks marked as sequential (dependency added automatically)
Result: Wave 2 becomes Wave 2a and Wave 2b

Smart Decomposition: The Claude API decomposer is instructed to:

  1. Predict which files each subtask will modify
  2. Add dependencies if files overlap
  3. Mark singleton tasks (build/lint/test)
  4. Ensure non-overlapping file sets for parallel tasks

Limitations

  • Max ~5-10 parallel tasks per wave (Claude Code limit)
  • Each task is isolated (no shared memory between agents)
  • Context must be explicitly passed between waves
  • Total execution time is limited by longest critical path
  • File prediction accuracy depends on decomposer (Claude API)

Activation Keywords

Invoke this skill when user says:

  • "Execute this task using DAG"
  • "Decompose and run in parallel"
  • "Use the DAG framework"
  • "Orchestrate agents to solve X"

The missing intelligence layer is now operational.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

30.33%
按下载量换算55

windsurf

23.17%
按下载量换算42

Antigravity

15.9%
按下载量换算29

OpenCode

12%
按下载量换算22

Gemini CLI

7.88%
按下载量换算14

Codex

3.17%
按下载量换算6

安全审计

Gen Agent Trust Hub

可疑

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。

来源信息

继续浏览同类 Skills