Loading...
Loading...
Parses complex problems into DAG (Directed Acyclic Graph) execution structures. Decomposes tasks into nodes with dependencies, identifies parallelization opportunities, and creates optimal execution plans. Activate on 'build dag', 'create workflow graph', 'decompose task', 'execution graph', 'task graph'. NOT for simple linear tasks or when an existing DAG structure is provided.
npx skill4agent add erichowens/some_claude_skills dag-graph-builderinterface DAGNode {
id: NodeId;
type: 'skill' | 'agent' | 'mcp-tool' | 'composite' | 'conditional';
skillId?: string; // For skill nodes
agentDefinition?: object; // For agent nodes
mcpTool?: string; // For mcp-tool nodes
dependencies: NodeId[]; // Nodes that must complete first
inputMappings: InputMapping[];
config: TaskConfig;
} ┌── Node B ──┐
Node A ├── Node C ──┼── Node F
└── Node D ──┘Node A ──┐
Node B ──┼── Node D (aggregator)
Node C ──┘ ┌── Node B ──┐
Node A ┤ ├── Node D
└── Node C ──┘Node A → Node B → Node C → Node D ┌── Node B (condition=true)
Node A ──┤
└── Node C (condition=false)validate-inputfetch-datadag:
id: <unique-dag-id>
name: <descriptive-name>
description: <what this DAG accomplishes>
nodes:
- id: node-1
type: skill
skillId: <skill-name>
dependencies: []
config:
timeoutMs: 30000
maxRetries: 3
- id: node-2
type: skill
skillId: <skill-name>
dependencies: [node-1]
inputMappings:
- from: node-1.output.data
to: input.data
config:
maxParallelism: 3
defaultTimeout: 30000
errorHandling: stop-on-failuredag:
id: research-analysis-pipeline
name: Research and Analysis Pipeline
nodes:
- id: gather-sources
type: skill
skillId: research-analyst
dependencies: []
- id: validate-sources
type: skill
skillId: dag-output-validator
dependencies: [gather-sources]
- id: extract-key-points
type: skill
skillId: research-analyst
dependencies: [validate-sources]
- id: identify-patterns
type: skill
skillId: dag-pattern-learner
dependencies: [extract-key-points]
- id: generate-insights
type: skill
skillId: research-analyst
dependencies: [extract-key-points, identify-patterns]
- id: format-report
type: skill
skillId: technical-writer
dependencies: [generate-insights]
config:
maxParallelism: 2
defaultTimeout: 60000
errorHandling: retry-then-skipdag-dependency-resolverdag-semantic-matcherdag-task-scheduler