# Aetia Causal Core

> Formally verified causal inference engine for DAG identification, optimal adjustment, and DML estimation.

Aetia Causal Core is a free AI agent skill on Agensi by SlightlyHappy, in LLM Ops. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [SlightlyHappy](https://www.agensi.io/creators/slightlyhappy)
- Category: [LLM Ops](https://www.agensi.io/skills/llm-ops)
- Version: 1.0
- Last updated: 2026-11-26
- Security: scan passed (2026-11-26); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/aetia-causal-core
- Tags: llm-ops, python, data-science, causal-inference, statistics

## About this skill

Causal inference is notoriously fragile. LLMs frequently hallucinate d-separation, miss M-bias colliders, or suggest adjusting for post-treatment mediators that invalidate your results. This skill integrates your agent with the Aetia deterministic MCP engine to provide formally verified causal graph analysis and statistical estimation.

### What it does
- **Graphical identification** uses the Shpitser-Pearl ID algorithm to determine if a causal effect is identifiable from observational data.
- **Optimal adjustment** selects the Henckel et al. minimum-variance set to maximize precision while avoiding bias-amplifying instruments.
- **Sensitivity analysis** computes E-values and Cinelli-Hazlett robustness values to quantify how strong an unmeasured confounder must be to flip your conclusion.
- **Bias detection** flags Z-bias, M-bias, and selection bias ($S=1$) automatically within your DAG.
- **Automated auditing** runs cross-fitted Double Machine Learning (DML) or AIPW on local CSVs with propensity overlap diagnostics.

### How it works
1. **Define the DAG** by specifying exposures, outcomes, latent nodes, and selection indicators using standard causal notation.
2. **Verify identification** by calling the MCP tools to find valid adjustment sets or front-door paths.
3. **Audit data** by providing a CSV for the agent to run conditional independence tests and causal estimators.
4. **Interpret sensitivity** to evaluate the impact of potential hidden confounding on your point estimates.

### Frameworks & tools
Requires Python 3.10+ and the `aetia-causal-engine` MCP server. It utilizes libraries for cross-fitted Double Machine Learning, GCM independence tests, and formal do-calculus.

### Why this beats prompting it yourself
Prompting alone cannot solve d-separation or do-calculus reliably. This skill replaces LLM guesswork with a deterministic math engine, ensuring your adjustment sets are mathematically sound and your standard errors are minimized via optimal covariate selection.

### Use cases
- **Target trial emulation** for clinical real-world evidence.
- **Marketing mix modeling** to identify the true incremental impact of spend.
- **Product analytics** to estimate lift while controlling for self-selection bias.
- **Academic peer review** to stress-test the causal assumptions in a research paper.

### Known limitations
Requires a local Python environment with Aetia installed. It cannot verify the "truth" of your arrows, only the mathematical implications of the graph you provide.

## Requires

- Aetia MCP
- Python

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Aetia Causal Core skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### How does Aetia Causal Core prevent the 'hallucinated' causal logic often seen in standard LLMs?

Unlike standard prompting which relies on probabilistic patterns, this skill uses a deterministic MCP engine to perform formal do-calculus and d-separation, preventing common LLM errors like adjusting for colliders or mediators.

### Which AI agents or frameworks are compatible with this skill?

The skill requires a local Python 3.10+ environment and the `aetia-causal-engine` MCP server; it is compatible with any AI agent or IDE (like Claude Desktop or Cursor) that supports the Model Context Protocol.

### Can the skill automatically detect if my initial DAG (Directed Acyclic Graph) is missing an arrow?

No, the engine cannot verify if your underlying causal assumptions are true, but it mathematically guarantees whether your desired effect is 'identifiable' and provides the optimal adjustment set based on the graph you provide.

### Does this skill perform statistical estimation or only graphical path analysis?

Beyond graphical analysis, the skill includes tools for cross-fitted Double Machine Learning (DML) and sensitivity analysis (E-values) to quantify the impact of potential hidden confounders on your estimates.

### What exactly is included in the skill package?

Your purchase includes the skill definition files, access to the MCP server configuration, and documentation for integrating the Aetia deterministic engine into your agent's workflow.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
