plan-to-dag

plan-to-dag is a skill for Claude Code from shubham0704/claude-skills. It costs 79 tokens per session (1,053 once invoked), scanned A, original, MIT.

A method for turning a large or vague implementation plan into a dependency graph, where each task is connected to the work that must come before it. It groups independent tasks into execution waves and defines ownership and checks.

In plain words
What is it for?
Use it for migrations, architecture work, roadmaps, and other multi-step projects involving dependencies or multiple coding agents.
Why use it?
It makes ordering, parallel work, shared files, blockers, and completion criteria explicit before implementation begins.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions subagents.

Part of the plan-to-dag plugin — 1 skill shipped together

Good fit Use it for migrations, architecture work, roadmaps, and other multi-step projects involving dependencies or multiple coding agents.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/shubham0704/claude-skills/plan-to-dag
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add shubham0704/claude-skills --skill plan-to-dag
Clone the repo
git clone --depth 1 https://github.com/shubham0704/claude-skills

Made for: Claude Code.

Or install plan-to-dag, the plugin that ships this one along with the rest of its 1 skill.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for plan-to-dag

README.md
[![agentmods](https://agentmods.dev/badge/skills/shubham0704/claude-skills/plan-to-dag/github.svg)](https://agentmods.dev/skills/shubham0704/claude-skills/plan-to-dag)
Your own site
<a href="https://agentmods.dev/skills/shubham0704/claude-skills/plan-to-dag"><img src="https://agentmods.dev/badge/skills/shubham0704/claude-skills/plan-to-dag/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for plan-to-dag

Your own site · 80×15
<a href="https://agentmods.dev/skills/shubham0704/claude-skills/plan-to-dag"><img src="https://agentmods.dev/badge/skills/shubham0704/claude-skills/plan-to-dag.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 79 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,053 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00079 $0.01053
Opus 5 $0.00039 $0.00526
Sonnet 5 $0.00016 $0.00211
Haiku 4.5 $0.00008 $0.00105

Measured 11d ago against content hash 843f6ccf0a6c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

plan-to-dag scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/validate_dag.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plan-to-dag/SKILL.md · 173 lines

How it starts

The opening of the file, as written. The whole thing — 173 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Plan To DAG

Core Rule

Turn the plan into an execution graph before implementation. Do not produce a flat task list for work that has dependencies, shared files, rollout gates, or multiple agents.

Workflow

  1. Extract concrete tasks.
  2. Mark blockers, dependencies, and shared write surfaces.
  3. Classify tasks by type and risk.
  4. Build a DAG.
  5. Compress the DAG into execution waves.
  6. Define validation gates for each wave.
  7. Produce subagent prompts only for tasks that can run independently.
  8. State what must stay local on the critical path.

Task Extraction

Convert prose into task nodes. Each node must have:

id:
title:
type: research | design | code | test | docs | migration | ops | review
owner: local | worker | explorer | human | external
write_scope:
inputs:
outputs:
depends_on:
parallel_with:
risk: low | medium | high
validation:
done_when:

Prefer small implementation nodes with clear write scopes. Avoid vague nodes such as “integrate platform” or “improve system”.

Dependency Rules

Use these dependency defaults unless the repo proves otherwise:

  • Contracts before producers and consumers.
  • Schemas before generated types.
  • DB migrations before stores and APIs.
  • Store methods before API handlers.
  • API handlers before UI integration.
  • Runtime registry before runtime execution.
  • Feature flags before behavior changes.
  • Dual-write before read-path switch.
  • Read-path switch before deleting compatibility paths.
  • Tests beside each behavior change, not only at the end.
  • Docs/ADRs before irreversible architecture changes.

Parallelization Rules

Parallelize only when write scopes do not overlap and the tasks do not depend on each other.

Good parallel splits:

  • schema/type work vs documentation
  • platform API tests vs vehicle runtime tests
  • UI handoff docs vs backend migration design
  • independent app handlers with separate files

Bad parallel splits:

  • two workers editing the same generated API file
  • implementation before schema is settled
  • tests for behavior not yet implemented
  • cleanup that touches files active workers are editing

Read the full file on GitHub · 173 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 173 lines · 79 tokens per session scan A 843f6ccf0a6c

Subscribe to this mod's changes

plan-to-dag is a skill published in the GitHub repository shubham0704/claude-skills (1 stars, last pushed 6d ago), licensed MIT. It adds 79 tokens to every session and 1,053 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

bug-report-writer

Converts rough notes, casual descriptions, console errors, or quick observations into professional, complete bug reports — exported as a formatted Excel (.xlsx) file ready for Excel, Google Sheets, Jira, or Azure DevOps. Use this skill whenever the user mentions: "write a bug report", "log a bug", "report this issue"…

ShreyasBh02/AI-Skills-Collection · 186 tokens

daily-planner-prioritizer

Creates a smart, time-blocked daily plan from a user's task dump, meetings, errands, habits, and goals — then outputs BOTH a clean text summary in chat AND a formatted Excel (.xlsx) schedule file. Covers work tasks, meetings, personal errands, health/exercise reminders, and QA-specific tasks (test runs, bug triage…

ShreyasBh02/AI-Skills-Collection · 187 tokens

recipe-grocery-list

Converts one or more recipes, a weekly meal plan, or even just dish names into a clean, categorized, deduplicated grocery shopping list — with quantities scaled to the number of servings needed. Also exports a formatted Excel (.xlsx) shopping list file. Use this skill whenever the user mentions: "make a grocery list"…

ShreyasBh02/AI-Skills-Collection · 167 tokens

test-case-generator

Generates comprehensive, structured test cases from feature descriptions, user stories, requirements, or acceptance criteria — and exports them as a formatted Excel (.xlsx) file ready for use in Excel or Google Sheets. Use this skill whenever the user mentions: "write test cases", "generate test cases", "create test…

ShreyasBh02/AI-Skills-Collection · 169 tokens

email-message-rewriter

Rewrites, polishes, or drafts emails and messages from rough notes, bullet points, or poorly worded drafts — in the right tone for the situation. Handles professional emails, Slack messages, WhatsApp texts, follow-ups, apologies, feedback, and more. Use this skill whenever the user says: "rewrite this email", "make…

ShreyasBh02/AI-Skills-Collection · 162 tokens

a11y-security-generator

Generates Selenium Java wrappers for axe-core accessibility testing and OWASP UI/API security checks.

ShreyasBh02/AI-Skills-Collection · 24 tokens