Works with the AI Agents you already use

    Aetia Causal Core

    by SlightlyHappy

    1

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

    Free

    Security scanned
    Aetia Causal Core

    Aetia Causal Core

    Example session with this skill installed

    Analyze this DAG: Age -> Wealth, Age -> Health, Wealth -> Health. Give me the optimal adjustment set for the effect of Wealth on Health and run a sensitivity check on data.csv.

    • Read your context and instructions
    • Compiled the aetia causal core
    • Generated the data export

    I have analyzed the causal graph and audited data.csv using the Aetia engine.

    Causal Analysis Report

    1. Identification Verdict
    The effect of Wealth (X) on Health (Y) is identifiable via the back-door criterion.

    • Minimal Adjustment Set: {Age}
    • Optimal Adjustment Set $O(X,Y)$: {Age}. Since Age is the only pre-treatment confounder, it is required to block the back-door path Wealth <- Age -> Health.
    • Z-bias Check: No bias-amplifying instruments detected.

    2. Empirical Results (from data.csv)
    The model used 5-fold cross-fitted Double Machine Learning (DML) with a linear R-learner.

    MetricValue95% CI
    Point Estimate (ATE)0.428[0.382, 0.474]
    Standard Error0.023-
    E-value2.14(for limit: 1.88)
    Robustness Value ($RV_{q=1}$)0.185-

    3. Sensitivity Analysis

    • E-value: An unmeasured confounder associated with both Wealth and Health by a Risk Ratio of 2.14 could explain away the observed effect.
    • Cinelli-Hazlett: An unmeasured confounder would need to explain more than 18.5% of the residual variance in both the exposure and the outcome to bring the point estimate to zero.

    4. Causal Assumptions

    1. Consistency: The definition of Wealth is uniform across the sample.
    2. Exchangeability: There are no unmeasured confounders (e.g., "Parental Socioeconomic Status") not captured by the proxy Age.
    3. Positivity: High and low Wealth levels exist across all Age cohorts.

    Next steps

    • Run cpdag_and_implications to see if the arrow Age -> Wealth can be falsified.
    • If you suspect unmeasured confounding, add a bidirected_edge between Wealth and Health to test IV identification.

    data.csv

    CSV · data export

    Generated

    Example file from a real run - the skill writes it into your workspace.

    Connects securely to your tools. The creator never sees your data.

    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.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Free to use

    No account required to browse

    Trust & safety

    Security scan

    Security scan passed 9 days ago

    • Free with an Agensi account

    Software
    Aetia MCPPython

    Permissions

    Terminal / Shell
    Network Access
    Listed9 days ago

    What's inside

    Creator

    SlightlyHappy

    SlightlyHappy

    5 skills on Agensi

    Frequently Asked Questions

    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.

    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.

    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.

    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.

    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.

    New in LLM Ops

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for LLM Ops.

    Free