Graphviz.causal kg style

From causify-ai/helpers · View interactive version

Graphviz.causal kg style is an AI agent skill from the GitHub repository causify-ai/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

I will give you a description or an image and your task is to produce a

Graphviz/DOT representation of that graph that follows the rules below exactly

The resulting graph should allow a knowledgeable reader to

Use color to distinguish variable types consistently

Generate the DOT File

General Graph Rules

type (do not rely on color alone; keep 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

(exogenous/endogenous/target/etc.)

fontcolor=gray40)

otherwise 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

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

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.