dag-planner
БесплатноБез исполняемых скриптовНе проверенBuild and validate task DAGs for Ralph parallel execution. Use when planning execution order, detecting cycles, or explaining why tasks are blocked. Triggers…
от frizynn★ 16 звёзд на GitHubОб этом скилле
DAG Planner
Build, validate, and explain task dependency graphs for parallel execution.
The Job
- Parse task dependencies into a DAG
- Detect cycles and report paths
- Compute topological order
- Explain blocking reasons
- Output ready queue and lock plan
Do NOT: author metadata, implement tasks, merge code, or review design.
DAG Validation
Cycle Detection
Use depth-first search with three states:
unvisited- Not yet processedvisiting- Currently in recursion stackvisited- Fully processed
If we encounter a visiting node, we have a cycle.
Cycle output format:
Cycle detected: US-002 → US-003 → US-004 → US-002
Execution Planning
Ready Queue Rules
A task is ready when:
- All tasks in
dependsOnaredone - None of its
mutexare currently locked
Blocking Reasons
When a task cannot run, explain why:
Task US-003 blocked:
- Waiting for: US-001, US-002 (not completed)
- Mutex locked: db-migrations (held by US-005)
Output Formats
Topological Order
Execution order (topological):
1. US-001 (no deps)
2. US-002 (no deps)
3. US-003 (after: US-001)
4. US-004 (after: US-002, US-003)
Ready Queue Snapshot
Ready queue (3 tasks can run now):
- US-001: mutex []
- US-002: mutex []
- US-005: mutex [lockfile]
Blocked (2 tasks waiting):
- US-003: waiting for US-001
- US-004: waiting for US-002, US-003
Mutex Lock Plan
Mutex usage plan:
db-migrations: US-001, US-006 (sequential)
lockfile: US-005 (exclusive)
contract:auth-api: US-003, US-004 (sequential after US-001)
Deadlock Detection
Deadlock occurs when:
- No tasks are running
- No tasks are ready
- Pending tasks exist
Deadlock output:
DEADLOCK: No progress possible
Pending tasks: US-003, US-004
All blocked by unmet dependencies or locked mutex
US-003 needs: US-001 (failed)
US-004 needs: US-003 (blocked)
Example Analysis
Input tasks.yaml:
tasks:
- id: A
dependsOn: []
mutex: [db-migrations]
- id: B
dependsOn: []
mutex: []
- id: C
dependsOn: [A]
mutex: [db-migrations]
- id: D
dependsOn: [B, C]
mutex: []
Output:
DAG Analysis:
Total tasks: 4
Max parallelism: 2 (A and B can run together)
Critical path: A → C → D (3 steps)
Mutex contention:
db-migrations: A, C must run sequentially
Recommended execution waves:
Wave 1: A, B (parallel)
Wave 2: C (after A)
Wave 3: D (after B, C)
Установить dag-planner в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл dag-planner?
Build and validate task DAGs for Ralph parallel execution. Use when planning execution order, detecting cycles, or explaining why tasks are blocked. Triggers on: plan dag, check dependencies, why is task blocked, execution order.
Как установить скилл dag-planner?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл dag-planner запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic