/dag:planfrom DAG Engineering
The planning door — reads Atlas and chart state from GitHub, resolves destination fog when necessary, and runs the next move through to the pre-flight signature that hands one expedition to execution.
Ships in DAG Engineering. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Run /dag:plan in Claude Code or $dag:plan in Codex from any context window before a DAG is signed.
It finds the Atlas or chart, reads its state from GitHub, and performs the next planning move in
this turn. Terms are defined in ../../GLOSSARY.md; response rules are in
../../RESPONSE-RULES.md.
Planning ends at the pre-flight signature. Past it the chart belongs to
/dag:execute.
The tracker is the memory. An Atlas persists its decisions and expedition charts. A chart persists its nodes, readiness labels, edges, proof contracts and signature. Never depend on a prior conversation.
gh label list --json name --jq '.[].name'
gh issue list --label dag:atlas --state open --json number,title
gh issue list --label dag:map --state open --json number,title
If any required label, including dag:atlas, is missing, hand over /dag:setup. Querying issues by a
missing label returns an empty list rather than an error, so check the label vocabulary first. That is
the only setup exception to the two-door flow.
For an Atlas, read its body, open child decision issues and child dag:map issues. The body must make
the North star, Decisions so far, Open decisions, Expeditions, Not yet specified and Out of scope
visible.
For a chart, read:
dag:needs-grilling / dag:needs-research /
dag:needs-prototype labels;dag:preflighted and dag:halted on the map;R=<owner>/<repo>
gh api --paginate repos/$R/issues/<parent-number>/sub_issues \
--jq '.[] | {number,title,state,labels:[.labels[].name]}'
gh api --paginate repos/$R/issues/<n>/dependencies/blocked_by \
--jq '.[] | {number,state}'
--paginate is mandatory: a truncated graph looks like a valid smaller graph.
When an Atlas owns several active maps, also read cross-map blockers before selecting a move. Classify the maps as:
Parallel roots and dependent maps form one portfolio. Alternatives trigger the decision protocol.
Read the matching rows top-down and perform the first move that applies:
| State | Move | Read and follow |
|---|---|---|
| No artifact; destination/system shape is foggy | create or advance an Atlas | wayfind.md |
| No artifact; one destination is known | grill, then chart the expedition | ../grill/SKILL.md, then ../chart/SKILL.md |
| Atlas has an open decision, relevant unspecified territory, or newly chartable region | advance Wayfinding once | wayfind.md |
Map has dag:halted | classify and repair the returned chart | ../replan/SKILL.md |
Chart frontier has dag:needs-grilling | settle that decision | ../grill/SKILL.md, or ../grill-deep/SKILL.md when ADRs are warranted |
Chart frontier has dag:needs-research | dispatch research | the model-invoked research skill |
Chart frontier has dag:needs-prototype | run the spike | the model-invoked prototype skill |
Map has a Not yet specified entry whose decision has landed | graduate it into nodes | ../chart/SKILL.md |
| Chart complete and unsigned | pre-flight and sign it | ../preflight/SKILL.md |
Map has dag:preflighted | planning is done | tell the user to run /dag:execute |
/dag:plan is a door, not a signpost. Planning skills are internal moves: read their SKILL.md and
follow it here. /dag:execute is the only workflow command handed back to the user.
An Atlas does not make every child map active. Ignore completed, abandoned, superseded and explicitly deferred maps. When several required maps remain, apply the rows across the portfolio:
/dag:execute when every required active map is signed.Root-before-dependent is the reporting order, not an execution promise. A signed dependent map remains
blocked until its native edges close.
dag:halted is read before a chart's de-fog state because the stop must first be classified as
node-wrong, method-wrong or destination-wrong.
Chart complete means no open de-fog issue and no unresolved Not yet specified entry remains under the map. Every such entry must be graduated, moved to Out of scope, or still point at an open de-fog issue. A clear-looking frontier does not excuse uncertainty buried elsewhere.
Planning is human-in-the-loop and advances one move per turn. A portfolio pre-flight batch is one move: it may sign several complete maps because they are independent artifacts at the same planning phase.
When a decision lands:
That close advances the durable frontier. A result left only in chat did not happen.
When the move needs user input, ground the question through
../../RESPONSE-RULES.md, ask it, and continue the move in the same turn.
Do not ask the user whether something is “an Atlas”; show the concrete destination uncertainty and
recommend the matching level.
If two decision issues answer the same underlying question, name the possible nest and route to diagnosis rather than multiplying decisions.
If execution stopped but crashed before writing durable state, reconstruct the stop from its PR/issue evidence:
dag:preflighted, create a separate de-fog issue, attach it as a map
sub-issue, then make it block the stopped node;dag:preflighted with dag:halted and record
Class: method-wrong or Class: destination-wrong on the map.Never put a dag:needs-* label on the build node. Planning closes readiness-labelled issues when their
answer lands; labelling the build node would close it unbuilt.
Read ../../RESPONSE-RULES.md before the closing message. State the selected
Atlas or chart, the move completed, the durable state written, and what comes next. Re-running
/dag:plan resumes planning; only a signed chart hands over /dag:execute.
The pipeline:
WAYFIND ──► GRILL / PROTOTYPE ──► CHART ──► PRE-FLIGHT ──► EXECUTE ──► done-clean
if the settle one one sign it walk it
destination expedition map
is foggy
└──────────────────── /dag:plan ────────────────────┘ └─ /dag:execute ─┘
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub aaronabuusama/dag-engineering --plugin dag13 skills in this plugin
/chartInternal planning move reached through dag:plan — turn a grilled or specced plan into a DAG of GitHub issues with native blocking edges. Do not invoke directly outside the planning router./diagnoseFind the one design gap behind a cluster of review findings and return a consolidating fix or a pre-validated escalation. Use when a bug-class recurs, or when a fix needs a new mechanism rather than a tightened check./executeThe execution door — walks a pre-flight-signed DAG or required Atlas portfolio, dispatching each node behind the merge gate, climbing the escalation ladder on findings, and driving every node to done-clean, wave by wave./feedbackCapture a DAG Engineering workflow failure, wrong route, lost state, or contradicted contract with reproducible evidence and return it to the dag-plugin source repository. Use when the user asks to record feedback or an observed DAG failure should become an actionable upstream report./grillInternal planning move reached through dag:plan — sharpen a plan through a batched, code-grounded interview. Do not invoke directly outside the planning router./grill-deepInternal planning move reached through dag:plan — run the batched, code-grounded interview and record durable ADRs and glossary entries. Do not invoke directly outside the planning router.