Graphviz.causal kg style

From gpsaggese/helpers · View interactive version

Graphviz.causal kg style is an AI agent skill from the GitHub repository gpsaggese/helpers. Generate a Graphviz DOT causal knowledge graph per causal inference conventions

How to use this skill

Skill file

You are an expert in causal inference and graphical models

Given a description or an image, produce a Graphviz/DOT graph that follows the

rules below exactly. The graph should let a knowledgeable reader:

Use color to distinguish variable types consistently

Generate the DOT File

General Graph Rules

Do not rely on color alone; keep the shape conventions too

Node Representation Rules

Variable Type Colors (Required)

Use these colors consistently for node borders/fills:

Exogenous vs Endogenous vs Target

Observable vs Unobservable (Latent) Variables

fontcolor=gray40)

default to shape=ellipse

Special Node Types

Edge Representation Rules

Causation

Correlation / Association (Non-causal)

Effect Attributes (Optional)

Confounding and Common Causes

Layout and Structure

Save the File

```

// Generated by .claude/skills/graphviz.causal_kg_style/SKILL.md

```

Output Requirements

Render the Graph

```bash

> dot -Tpng causal_graph.dot -o causal_graph.png

> open causal_graph.png

```

Read the PNG File

Verification

description in layout and semantics

.claude/skills/graphviz.causal_kg_style/SKILL.md

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.