counterfactual-causal-analysis

counterfactual-causal-analysis is a skill for Claude Code, Codex from yogsoth-ai/de-anthropocentric-research-engine. It costs 31 tokens per session (572 once invoked), scanned A, original, Apache-2.0.

A causal-analysis skill that asks what would happen if a factor were changed, removed, or introduced. It compares the resulting counterfactual worlds to test whether a factor is necessary, sufficient, or especially important to an outcome.

In plain words
What is it for?
Use it to test causal claims, model interventions, compare alternative outcomes, find load-bearing factors, and search for the smallest change that would reverse a conclusion.
Why use it?
It helps distinguish factors that merely occur alongside an outcome from factors that help cause it. This makes the reasoning behind causal claims and their most important dependencies clearer.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to test causal claims, model interventions, compare alternative outcomes, find load-bearing factors, and search for the smallest change that would reverse a conclusion.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/yogsoth-ai/de-anthropocentric-research-engine/counterfactual-causal-analysis
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 yogsoth-ai/de-anthropocentric-research-engine --skill counterfactual-causal-analysis
Clone the repo
git clone --depth 1 https://github.com/yogsoth-ai/de-anthropocentric-research-engine

Made for: Claude Code, Codex.

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 counterfactual-causal-analysis

README.md
[![agentmods](https://agentmods.dev/badge/skills/yogsoth-ai/de-anthropocentric-research-engine/counterfactual-causal-analysis/github.svg)](https://agentmods.dev/skills/yogsoth-ai/de-anthropocentric-research-engine/counterfactual-causal-analysis)
Your own site
<a href="https://agentmods.dev/skills/yogsoth-ai/de-anthropocentric-research-engine/counterfactual-causal-analysis"><img src="https://agentmods.dev/badge/skills/yogsoth-ai/de-anthropocentric-research-engine/counterfactual-causal-analysis/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 counterfactual-causal-analysis

Your own site · 80×15
<a href="https://agentmods.dev/skills/yogsoth-ai/de-anthropocentric-research-engine/counterfactual-causal-analysis"><img src="https://agentmods.dev/badge/skills/yogsoth-ai/de-anthropocentric-research-engine/counterfactual-causal-analysis.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 31 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 572 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.00031 $0.00572
Opus 5.5 $0.00012 $0.00229
Sonnet 5.5 $0.00006 $0.00114
Haiku 4.5 $0.00003 $0.00057

Measured 2mo ago against content hash c5a56315bcc0, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

counterfactual-causal-analysis 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 2mo 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/counterfactual-causal-analysis/SKILL.md · 46 lines

How it starts

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

counterfactual-causal-analysis

Purpose

Intervene on factors, construct counterfactual worlds, test necessity and sufficiency, and identify load-bearing causal factors.

Input contract

required: [causal_claim, variables, intervention_target]
optional: [mechanism_graph, baseline_world, comparison_conditions]
constraints: [intervention and outcome must be measurable or explicitly qualitative]

Execution protocol

Do not perform called SOP operations inline; each loaded SOP owns its contract and thresholds.

  1. You MUST load skill extract-causal-structure to extract the causal structure. You MUST load skill identify-variables to type its variables.
  2. You MUST load skill construct-counterfactual to construct the counterfactual. You MUST load skill identify-load-bearing-factors to identify load-bearing factors.
  3. You MUST load skill search-minimal-flip to search the minimal conclusion flip. You MUST load skill evaluate-necessity-sufficiency to test necessity and sufficiency. If the conclusion should instead be tested by contradiction and counterexample, consider reductio-counterexample-analysis as the next tactic. Deviation: use qualitative counterfactuals when intervention data are unavailable, but mark the inference uncertainty.

Output contract

produces: [causal_structure, counterfactual_map, load_bearing_factors, minimal_flip, necessity_sufficiency_report]
delta_fields: [findings, evidence_updates, hypothesis_updates, uncertainties, decisions]

Thresholds and quality gates

  • Every intervention must state changed variables, held-fixed conditions, predicted outcome, and evidence basis.
  • Necessity and sufficiency are separate judgments; do not collapse them.

Failure and counterexamples

Do not call a factor necessary when an untested substitute can produce the outcome. Mark counterfactuals underdetermined when held-fixed conditions are unspecified.

Provenance map

  • resolved: counterfactual-probing
  • resolved: structural-counterfactual
  • resolved: necessity-sufficiency
  • resolved: systematic-factor-ablation
  • resolved: causal-necessity-testing
  • resolved: minimal-change-search

Read the full file on GitHub · 46 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. 2mo ago First seen · 46 lines · 31 tokens per session scan A c5a56315bcc0

Subscribe to this mod's changes

counterfactual-causal-analysis is a skill published in the GitHub repository yogsoth-ai/de-anthropocentric-research-engine (536 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 31 tokens to every session and 572 once invoked, about $0.0001 per session on Opus 5.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-09-24.

Related

counterfactual-causal-analysis compared with skills from other repositories

counterfactual-causal-analysis next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
counterfactual-causal-analysisyogsoth-ai/de-anthropocentric-research-engineSkill5361mo agoApache-2.0A31Claude Code, Codex
imagegenopenai/codexSkill137ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill101ktodayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill395ktodayMITA36Claude Code
systematic-debuggingobra/superpowersSkill330k2d agoMITA21Claude Code
free-llm-apismnfst/awesome-free-llm-apisSkill14kyesterdayCC0-1.0A113Claude Code, Codex
next-cache-components-adoptionvercel/next.jsSkill144ktodayMITA95Claude Code