/install complex-causal-analysis
Complex Causal Analysis
An interactive causal network visualization skill for analyzing cause-and-effect relationships in complex systems. Creates beautiful D3.js-based Sankey-style diagrams showing how factors connect and propagate through systems.
Features
- Hierarchical Layout: Top-to-bottom flow from root causes to final outcomes
- Interactive Nodes: Click nodes to see details (causes, results, evidence)
- Draggable Elements: Drag any node to reposition; connections follow automatically
- Color-coded Strength: Green = strong (8-10), Yellow = medium (5-7) causal relationships
- Directional Arrows: Small arrows in the middle of each link showing causation direction
- Evidence Support: Each node can include historical or factual evidence
- Fixed Sidebar: Stays on screen while zooming/panning the graph
- Zoom & Pan: Mouse wheel to zoom, drag canvas to pan
Use Cases
- Historical event analysis (dynasty collapses, wars, revolutions)
- Business cause-and-effect mapping
- Scientific phenomenon chains
- Problem root cause analysis
- Decision tree visualization
Input Format
Provide JSON with this structure:
{
"title": "Topic Name",
"nodes": [
{ "id": "Node Name", "layer": 3, "type": "Category", "desc": "Description", "color": "#hex" }
],
"links": [
{ "source": "Cause", "target": "Effect", "strength": 8 }
]
}
Layer Conventions
- Layer 3: Root causes / Deep factors
- Layer 2: Intermediate factors
- Layer 1: Direct causes
- Layer 0: Final outcomes
Strength Guidelines
- 8-10: Strong causal relationship
- 5-7: Medium causal relationship
- 1-4: Weak (exclude)
Example Prompt
Create a causal network visualization for [TOPIC].
Nodes:
- [list with id, layer, type, description]
Links:
- [list source → target with strength 1-10]
Requirements:
- Top-to-bottom layout
- Only medium (5-7) and strong (8-10) relationships
- Add small arrow in middle of each link
- Node details show causes and results
- Include evidence/support for each node
Output
Generates a standalone HTML file with:
- Embedded D3.js (via CDN)
- No external dependencies
- Works in any modern browser
- Mobile-responsive
Skill Activation
When you activate this skill, provide:
- Your topic/theme
- List of causal factors (nodes)
- Relationships between factors (links)
The skill will generate the JSON and produce a clickable HTML file you can open in your browser.
Technical Details
- Built with D3.js v7
- Bezier curves for smooth link paths
- Force-directed initial positioning with manual adjustment
- SVG-based rendering for crisp graphics
- Dark theme with gradient background
Tags: visualization, d3, causal-network, history, analysis, interactive
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install complex-causal-analysis - 安装完成后,直接呼叫该 Skill 的名称或使用
/complex-causal-analysis触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
complex-causal-analysis 是什么?
Generates interactive D3.js Sankey-style causal network diagrams showing hierarchical cause-effect relationships with evidence and adjustable nodes. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 178 次。
如何安装 complex-causal-analysis?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install complex-causal-analysis」即可一键安装,无需额外配置。
complex-causal-analysis 是免费的吗?
是的,complex-causal-analysis 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
complex-causal-analysis 支持哪些平台?
complex-causal-analysis 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 complex-causal-analysis?
由 zmqnk(@zmqnk)开发并维护,当前版本 v1.0.0。