causal-vs-predictive

causal-vs-predictive is a skill for Claude Code from StamKavid/last-ds-mile. It costs 85 tokens per session (1,153 once invoked), scanned A, original, MIT.

A review step that separates prediction from cause-and-effect claims. A predictive model can identify patterns that help forecast an outcome without showing that changing one factor will change it.

In plain words
What is it for?
Use it when explaining model features, SHAP results, or data relationships, especially when recommending an intervention or policy change based on them.
Why use it?
It prevents associations or feature-importance results from being described as proof that one thing causes another.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the last-ds-mile plugin — 29 skills, 17 commands, 3 agents, 4 hooks shipped together

Good fit Use it when explaining model features, SHAP results, or data relationships, especially when recommending an intervention or policy change based on them.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/stamkavid/last-ds-mile/causal-vs-predictive
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add StamKavid/last-ds-mile --skill causal-vs-predictive
Clone the repo
git clone --depth 1 https://github.com/StamKavid/last-ds-mile

Made for: Claude Code.

Or install last-ds-mile, the plugin that ships this one along with the rest of its 29 skills, 17 commands, 3 agents, 4 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for causal-vs-predictive

README.md
[![agentmods](https://agentmods.dev/badge/skills/stamkavid/last-ds-mile/causal-vs-predictive/github.svg)](https://agentmods.dev/skills/stamkavid/last-ds-mile/causal-vs-predictive)
Your own site
<a href="https://agentmods.dev/skills/stamkavid/last-ds-mile/causal-vs-predictive"><img src="https://agentmods.dev/badge/skills/stamkavid/last-ds-mile/causal-vs-predictive/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for causal-vs-predictive

Your own site · 80×15
<a href="https://agentmods.dev/skills/stamkavid/last-ds-mile/causal-vs-predictive"><img src="https://agentmods.dev/badge/skills/stamkavid/last-ds-mile/causal-vs-predictive.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 85 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,153 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00085 $0.01153
Opus 5 $0.00043 $0.00576
Sonnet 5 $0.00017 $0.00231
Haiku 4.5 $0.00009 $0.00115

Measured 10d ago against content hash 8399aedc0ac0, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

causal-vs-predictive scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/causal-vs-predictive/SKILL.md · 83 lines

How it starts

The opening of the file, as written. The whole thing — 83 lines — stays where its author put it; the contents beside it link to each section on GitHub.

causal-vs-predictive

Overview

A model can be an excellent predictor of an outcome while being silent on what causes it — and the two get conflated constantly, because the same word ("driver," "important feature") is used for both. This skill is the check that catches "X reduces/causes/drives Y, confirmed" language when only an associational comparison actually ran.

When to Use

  • Writing up feature importance, SHAP findings, or a bivariate/EDA relationship in /ds-explain or /ds-explore.
  • Writing a recommendation in /ds-report that implies intervening on a feature (targeting a segment for a changed offer, pushing customers toward an option, recommending a policy change) — as opposed to ranking or scoring individuals using that feature, which doesn't need this check.
  • NOT for: the model's predictive validity itself (that's /ds-evaluate) — a model can be a perfectly valid predictor and still say nothing about causal effects. Using a score to prioritize outreach or flag transactions needs the score to be predictively valid, not causally identified.

Core Process

  1. For every feature described as a "driver" of the target, ask which of two claims is actually being made:
    • Predictive/ranking claim: "this feature helps distinguish who is more likely to have outcome Y" — supported directly by permutation importance/SHAP/correlation. No further check needed.
    • Causal/interventional claim: "changing this feature (for a given individual) would change their outcome" — this is what "reduces," "causes," "drives" (in the active sense), or a recommendation to intervene actually asserts.
  2. If it's a causal claim, ask what would have to be true for the correlation to reflect a real causal effect rather than a confound. The single most common confound to check explicitly: self-selection — did the subject choose this feature's value themselves (a contract length, a plan tier, a loyalty program, an opt-in)? If so, the feature may be a symptom of the outcome's underlying propensity, not a cause of it.
  3. If no causal identification strategy is available or stated (a randomized experiment, a natural experiment, an instrument, or at minimum an explicit, defensible argument for why the obvious confound doesn't apply), reword the claim as an association: "X is associated with Y," not "X reduces/causes/ drives Y."
  4. Effect size is not evidence either way — a large, clean, monotonic correlation is exactly as consistent with a large confound as with a large causal effect. Don't let a dramatic effect size substitute for the identification argument.

Read the full file on GitHub · 83 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 83 lines · 85 tokens per session scan A 8399aedc0ac0

Subscribe to this mod's changes

causal-vs-predictive is a skill published in the GitHub repository StamKavid/last-ds-mile (3 stars, last pushed 1mo ago), licensed MIT. It adds 85 tokens to every session and 1,153 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

science-vibecoding

Structured AI-assisted scientific code generation. 6 safety guards, 8 principles, 11 prompt templates. Grounded in Nature (2026).

Liu-MingH/Scientific-research-SKILL · 35 tokens

metabolomics-analysis

Untargeted and targeted metabolomics data analysis using pyMZML, mzTab-M processing, and metabolite identification. Use for LC-MS/GC-MS feature detection, metabolite annotation, differential metabolite analysis, pathway mapping, and metabolic flux visualization. Covers XCMS-compatible workflows in Python.

Lord1Egypt/scientific-agent-toolkit · 65 tokens

ngs-pipeline-management

Next-generation sequencing pipeline management with Snakemake and Nextflow. Use for building, running, and debugging reproducible NGS workflows for RNA-seq, WGS, ChIP-seq, ATAC-seq, and amplicon sequencing. Covers pipeline design patterns, HPC/cloud execution, containerization, and workflow optimization.

Lord1Egypt/scientific-agent-toolkit · 72 tokens

omics-integration

Multi-omics data integration using MOFA+, DIABLO, and MixOmics for combining genomics, transcriptomics, proteomics, metabolomics, and epigenomics datasets. Use for identifying shared variation across omics layers, building integrative biomarker models, and discovering cross-modal biological patterns. Best for paired…

Lord1Egypt/scientific-agent-toolkit · 74 tokens

climate-data-analysis

Climate and Earth system data analysis using xarray, cartopy, cfgrib, and CMIP6/ERA5 datasets. Use for loading NetCDF/GRIB climate data, computing climatologies, spatial aggregation, anomaly detection, bias correction, and publication-quality climate maps. Best for atmospheric, oceanic, and land surface data analysis.

Lord1Egypt/scientific-agent-toolkit · 74 tokens

crispr-screen-analysis

CRISPR genetic screen analysis using MAGeCK, CRISPRclean, and crispy. Use for pooled CRISPR knockout/activation screens, sgRNA count normalization, gene essentiality scoring, hit calling, pathway enrichment, and QC of CRISPR screen data. Supports both positive and negative selection screens.

Lord1Egypt/scientific-agent-toolkit · 68 tokens