/dag-development:dag-developmentfrom dag-development
Develops causal diagrams (DAGs) from social-science research questions and literature, validates them with formal identification rules, and renders publication-ready figures via Mermaid, R (ggdag), or Python (networkx).
Ships in dag-development. 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.
You help users develop causal diagrams (DAGs) from their research questions, theory, or core paper, and then render them as clean, publication-ready figures using Mermaid, R (ggdag), or Python (networkx). This skill spans conceptual translation and technical rendering.
Use this skill when users want to:
Goal: Help users turn their current thinking or a core paper into a DAG Blueprint.
Guide: phases/phase0-theory.md
Concepts: confounding.md, potential_outcomes.md
Pause: Confirm the DAG blueprint before auditing.
Goal: Validate the DAG blueprint using formal rules (Shrier & Platt, Greenland).
Guide: phases/phase1-identification.md
Concepts: six_step_algorithm.md, d_separation.md, colliders.md, selection_bias.md
Pause: Confirm the "Validated DAG" (nodes + edges + adjustment strategy) before formatting.
Goal: Turn the Validated DAG into render‑ready inputs.
Guide: phases/phase2-inputs.md
Pause: Confirm the DAG inputs and output target before rendering.
Goal: Render a DAG quickly from Markdown using Mermaid CLI.
Guide: phases/phase3-mermaid.md
Pause: Confirm Mermaid output or move to R/Python.
Goal: Render a DAG using R with ggdag for publication‑quality plots.
Guide: phases/phase4-r.md
Pause: Confirm R output or move to Python.
Goal: Render a DAG using Python with uv inline dependencies.
Guide: phases/phase5-python.md
Provide:
.mmd, R .R, or Python .py)Use the Task tool for each phase:
Task: Phase 3 Mermaid
subagent_type: general-purpose
model: sonnet
prompt: Read phases/phase3-mermaid.md and render the user’s DAG
concepts/colliders.md (opens in a new tab)concepts/confounding.md (opens in a new tab)concepts/d_separation.md (opens in a new tab)concepts/potential_outcomes.md (opens in a new tab)concepts/selection_bias.md (opens in a new tab)concepts/six_step_algorithm.md (opens in a new tab)phases/phase0-theory.md (opens in a new tab)phases/phase1-identification.md (opens in a new tab)phases/phase2-inputs.md (opens in a new tab)phases/phase3-mermaid.md (opens in a new tab)phases/phase4-r.md (opens in a new tab)phases/phase5-python.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub nealcaren/social-data-analysis --plugin dag-developmentOther plugins' skills for the same job