More screenshots

    Works with the AI Agents you already use

    Aetia Clinical Rwe Pro

    by SlightlyHappy

    1

    Automated Target Trial Emulation and RWE auditing for clinical EHR, claims, and registry studies.

    $5

    /mo

    Subscription · cancel anytime

    Secure checkout via Stripe

    • Always the latest version
    • Delivered live to your agent via MCP
    • Cancel anytime, access ends at period end
    Security scanned
    Aetia Clinical Rwe Pro

    Aetia Clinical Rwe Pro

    Example session with this skill installed

    Run a target trial emulation audit on cohort_statin_cvd.csv. Treatment is 'statin_init', outcome is 'mace_event', and baseline confounders are age, sex, ldl_baseline, and charlson_index.

    • Read your context and instructions
    • Compiled the aetia clinical rwe

    I have completed the Real-World Evidence (RWE) audit for the statin cohort using the Hernán-Robins Target Trial Emulation framework. The analysis includes covariate balancing, doubly-robust estimation, and sensitivity analysis.

    RWE Audit Results: Statin vs. Active Comparator

    1. Covariate Balance (IPTW)

    VariableUnweighted SMDWeighted (IPTW) SMDStatus
    Age0.240.04Balanced
    Sex (Male)0.120.02Balanced
    LDL Baseline0.450.07Balanced
    Charlson Index0.310.05Balanced

    Diagnostic: All variables achieved $|\text{SMD}| < 0.10$. Kish Effective Sample Size (ESS) is 82% of the original N, indicating no extreme weighting issues.

    2. Causal Effect Estimates

    EstimatorPoint Estimate (95% CI)Measure
    Adjusted OLS (HC3)0.88 (0.82, 0.94)Risk Ratio
    Stabilized IPTW0.85 (0.79, 0.91)Risk Ratio
    Cross-fitted AIPW0.84 (0.78, 0.90)Risk Ratio

    Result: The primary AIPW estimate shows a significant reduction in MACE (RR 0.84). NNT is 42 over the 5-year follow-up period.

    3. Quantitative Bias Analysis (Sensitivity)

    • E-value: 1.66 (Lower limit: 1.45). An unmeasured confounder would need a relative risk association of 1.66 with both treatment and outcome to nullify the effect.
    • Negative Control (Trauma): RR 1.02 (95% CI: 0.95, 1.09). The null result on the negative control outcome suggests no major residual healthy-user bias.
    • Cinelli-Hazlett RV: $RV_{q=1} = 12.4%$. The effect is robust to unmeasured confounding stronger than the observed effect of the Charlson Index.

    Next steps

    1. Review the generated rwe_dossier.md for STROBE-compliant reporting.
    2. Verify if the 18% loss in Effective Sample Size (ESS) warrants propensity score trimming.
    3. Perform a secondary Per-Protocol analysis to account for treatment discontinuation.
    $5/mo

    Subscription · always the latest version

    • Secure checkout via Stripe
    • Cancel anytime
    • Delivered live via MCP

    About this skill

    Observational studies using EHR and claims data often fail regulatory review due to time-zero misalignment, immortal-time bias, and residual confounding. This skill enforces the Hernan-Robins target trial emulation framework to ensure your Real-World Evidence (RWE) meets FDA and EMA standards for causal inference.

    What it does

    • Enforces Target Trial Emulation by aligning eligibility, treatment assignment, and follow-up to eliminate immortal-time and prevalent-user bias.
    • Automates Causal Diagnostics including covariate balance checks using Standardized Mean Differences (SMD) and Kish Effective Sample Size (ESS).
    • Runs Doubly-Robust Estimators like 5-fold cross-fitted Augmented Inverse Probability Weighting (AIPW) and Double Machine Learning (DML).
    • Quantifies Unmeasured Confounding through E-values, Cinelli-Hazlett robustness values, and Negative Control Outcome (NCO) falsification tests.
    • Generates Regulatory Dossiers by populating STROBE and RECORD-PE compliant templates with verified statistical outputs.

    How it works

    1. Define the Target Trial using the 7-component specification table to lock down eligibility, treatment strategies, and time-zero.
    2. Verify the Causal Graph to identify confounders, mediators, and colliders, ensuring no post-treatment variables are adjusted for.
    3. Execute the RWE Audit Script on your patient-level CSV to calculate stabilized IPTW, AIPW, and subgroup CATE.
    4. Review Sensitivity Metrics including E-values and benchmarks against observed clinical risk factors like age or Charlson index.

    Frameworks & tools

    Built for Python 3.10+ using numpy, scipy, pandas, and scikit-learn. Compatible with aetia-mcp for formal Shpitser-Pearl ID and S-admissibility proofs.

    Why this beats prompting it yourself

    Generic prompts often fail to detect subtle time-zero shifts or collider bias in clinical data. This skill forces a rigorous 5-gate protocol that mirrors the methodology used in professional pharmacoepidemiology and regulatory submissions.

    Use cases

    • Regulatory Submissions for FDA/EMA RWE dossiers using STROBE/RECORD-PE standards.
    • Pharmacoepidemiology Research comparing active drugs while suppressing healthy-user bias.
    • Post-Market Surveillance to monitor long-term outcomes and safety signals in real-world cohorts.
    • Subgroup Analysis using DR-Learners to identify heterogeneous treatment effects across clinical strata.

    Known limitations

    Requires patient-level data in CSV format with pre-defined exposure and outcome columns. It cannot fix fundamental data quality issues like non-differential outcome misclassification.

    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 8 days ago

    Software
    Aetia MCPPython

    Permissions

    Terminal / Shell
    Write Files
    Network Access
    Listed8 days ago

    What's inside

    Creator

    SlightlyHappy

    SlightlyHappy

    5 skills on Agensi

    Frequently Asked Questions

    Aetia Clinical RWE Pro automates the Hernan-Robins framework to eliminate common pitfalls like immortal-time bias and time-zero misalignment that often lead to regulatory rejection of observational studies. It provides the rigorous causal diagnostics—such as E-values and AIPW estimators—needed to transform raw EHR or claims data into FDA/EMA-standard evidence.

    The skill requires patient-level data in CSV format with clearly defined exposure, outcome, and covariate columns. It is built for Python 3.10+ environments and integrates seamlessly with any AI agent that supports the `aetia-mcp` protocol for formal causal identification proofs.

    Each purchase includes the core Target Trial Emulation logic, a suite of doubly-robust estimators (AIPW/DML), sensitivity analysis tools (E-values/NCO tests), and automated reporting templates compliant with STROBE and RECORD-PE standards. You also receive the configuration documentation for the 7-component specification table.

    Unlike generic prompts, this skill enforces a strict 5-gate protocol and checks for complex issues like collider bias and post-treatment variable adjustment. It uses verified statistical libraries to perform calculations that large language models cannot reliably execute through text generation alone.

    The skill can handle high-dimensional covariate sets, but it is limited by the quality of your underlying data. It cannot correct for fundamental issues like non-differential outcome misclassification or missing data that is not "Missing at Random" (MAR).

    Buyers receive lifetime access to the current version, including any minor patches or bug fixes. Major version updates that introduce new regulatory compliance modules or advanced machine learning estimators may be offered as separate upgrades or through a discounted maintenance plan.

    New in Agents & Orchestration

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Agents & Orchestration.