Agent skill · Content & Marketing

dag-development

Develop causal diagrams (DAGs) from social-science research questions and literature, then render publication-ready figures using Mermaid, R, or Python.

majiayu000github.com/majiayu000GitHub ↗
claude-codeMIT
Install
npx skills add majiayu000/claude-skill-registry --skill dag-development --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 4 KB
Bundled scripts: none
Path: skills/analysis/dag-development/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# DAG Development 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**. ## When to Use This Skill Use this skill when users want to: - Translate a research question or paper into a DAG - Clarify mechanisms, confounders, and selection/measurement structures - Turn a DAG into a figure for papers or slides - Choose a rendering stack (Mermaid vs R vs Python) - Export SVG/PNG/PDF consistently ## Core Principles 1. **Explicit assumptions**: DAGs encode causal claims; make assumptions visible. 2. **Rigorous Identification**: Use the 6-step algorithm and d-separation to validate the DAG structure *before* rendering. 3. **Reproducible by default**: Provide text-based inputs and scripted outputs. 4. **Exportable assets**: Produce SVG/PNG (and PDF where possible). 5. **Tool choice**: Offer three rendering paths with tradeoffs. 6. **Minimal styling**: Keep figures simple and journal‑friendly. ## Workflow Phases ### Phase 0: Theory → DAG Translation **Goal**:

What's inside
Steps it walks through
  1. When to Use This Skill
  2. Core Principles
  3. Workflow Phases
  4. Phase 0: Theory → DAG Translation
  5. Phase 1: Critique & Identification
  6. Phase 2: Inputs & Format
  7. Phase 3: Mermaid Rendering
  8. Phase 4: R Rendering (ggdag)
  9. Phase 5: Python Rendering (networkx)
  10. Output Expectations
  11. Invoking Phase Agents
Ships with 1 file
  • metadata.json
More from claude-skill-registry
All skills →
About this skill
What does the dag-development skill do?

Develop causal diagrams (DAGs) from social-science research questions and literature, then render publication-ready figures using Mermaid, R, or Python.

How do I install it?

Run `npx skills add majiayu000/claude-skill-registry --skill dag-development --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going