graphviz.causal_kg_style

Solid

Represent a causal knowledge graph in Graphviz DOT format following visual conventions for causal inference

Code & Development 144 stars 135 forks Updated today Apache-2.0

Install

View on GitHub

Quality Score: 71/100

Stars 20%
72
Recency 20%
100
Frontmatter 20%
40
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

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 - distinguish causation from correlation at a glance - identify exogenous vs endogenous variables - identify latent vs observable variables - recognize interventions and counterfactuals Use color to distinguish variable types consistently. # Step 1: Generate DOT file ## General Graph Rules - Use Graphviz DOT syntax - Use a directed graph (`digraph`) - Set `rankdir=LR` for left-to-right causal flow - Prefer readability over compactness - Use both `color` (border) and `fillcolor` + `style=filled` to encode variable 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 variable: color=#408AB0, fillcolor=#EAF3F8 - Endogenous variable: color=#62D4A4, fillcolor=#EAF9F3 - Target variable: color=#F8D476, fillcolor=#FFF6DA - Latent (unobservable) variable: color=#183B4A, fillcolor=#E6EEF1 - Intervened variable (do(X)): color=#DE5470, fillcolor=#FBE6EC - Counterfactual variable: color=#183B4A, fillcolor=#E6EEF1 ### Exogenous vs Endogenous vs Target - Exogenous variable (no causal parents) - `shape=ellipse` - `penwidth=2` - Must be colored using the exogenous palet...

Details

Author
causify-ai
Repository
causify-ai/helpers
Created
1 years ago
Last Updated
today
Language
Python
License
Apache-2.0

Similar Skills

Semantically similar based on skill content — not just same category

Data & Documents Solid

ontology

Typed knowledge graph for structured agent memory and composable skills. Use when creating/querying entities (Person, Project, Task, Event, Document), linking related objects, enforcing constraints, planning multi-step actions as graph transformations, or when skills need to share state. Trigger on "remember", "what do I know about", "link X to Y", "show dependencies", entity CRUD, or cross-skill data access.

37 Updated 1 months ago
1mancompany
AI & Automation Solid

visualize

Render rich interactive visuals — SVG diagrams, HTML widgets, Chart.js charts, interactive explainers — directly inline in chat using the render_visualization tool. Use whenever the user asks to visualize, diagram, chart, draw, map out, or illustrate something, or when a topic has spatial, sequential, or systemic relationships a diagram would clarify better than prose. Also use proactively for data comparisons, metrics, architecture, processes, or mechanisms that benefit from a visual.

367 Updated 4 days ago
Classic298
Web & Frontend Solid

codeck-design

Designer role. Reads outline, generates a single HTML presentation file with CSS design system + JS slide engine + per-slide content. Accepts visual references (URLs, screenshots, design specs) and extracts design signals to inform the isomorphic mapping. Use whenever the user says "design slides", "generate deck", "generate the deck", "build slides", "visual style", "reference this style", "like this design", "design", "generate slides", "visual style", "reference this style", or wants to turn an outline into actual slides.

208 Updated 2 weeks ago
hiyeshu
AI & Automation Featured

academic-plotting

Generates publication-quality figures for ML papers from research context. Given a paper section or description, extracts system components and relationships to generate architecture diagrams via Gemini. Given experiment results or data, auto-selects chart type and generates data-driven figures via matplotlib/seaborn. Use when creating any figure for a conference paper.

728 Updated 1 months ago
OpenRaiser