construct-counterfactual

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

A method for creating a version of a situation in which a specified factor is changed while other stated conditions remain fixed. It traces both direct and downstream effects of that change.

In plain words
What is it for?
Use it to test interventions, compare an altered scenario with a baseline, and update hypotheses about causes and outcomes.
Why use it?
It helps answer “what if” questions without accidentally changing factors that were meant to stay constant. It also distinguishes clear changes from uncertain or inconsistent results.

Skill for Claude CodeCodex

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

Good fit Use it to test interventions, compare an altered scenario with a baseline, and update hypotheses about causes and outcomes.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/yogsoth-ai/de-anthropocentric-research-engine/construct-counterfactual
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 construct-counterfactual
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 construct-counterfactual

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/yogsoth-ai/de-anthropocentric-research-engine/construct-counterfactual"><img src="https://agentmods.dev/badge/skills/yogsoth-ai/de-anthropocentric-research-engine/construct-counterfactual.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 22 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 309 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.00022 $0.00309
Opus 5.5 $0.00009 $0.00124
Sonnet 5.5 $0.00004 $0.00062
Haiku 4.5 $0.00002 $0.00031

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

Security

Grade A, and why

construct-counterfactual 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/construct-counterfactual/SKILL.md · 44 lines

What it actually says

construct-counterfactual

Purpose

Construct the minimally or explicitly intervened counterfactual world required by the parent analysis.

Input contract

required: [baseline_artifact, intervention_target, intervention_specification]
optional: [structural_model, invariants, outcome_query]
constraints: [alter only declared factors; preserve stated invariants]

Procedure

  1. Freeze the baseline artifact and enumerate the target factor's dependencies.
  2. Apply the intervention specification while holding declared invariants fixed.
  3. Propagate direct and cascading effects through the structural model.
  4. Compare queried outcomes and classify hold, weaken, flip, or indeterminate.

Output contract

produces: [counterfactual_world, changed_factors, cascading_effects, conclusion_status, consistency_check]
delta_fields: [findings, hypothesis_updates, uncertainties, open_questions]

Quality gates

  • The intervention is minimal or explicitly justified as non-minimal.
  • Every changed downstream variable has a propagation explanation.
  • Internal consistency and conclusion status are separately reported.

Parameterization

Caller supplies artifact schema, intervention grammar, invariants, propagation model, outcome query, and status vocabulary.

Failure and counterexamples

Reject worlds that silently alter non-target factors or violate declared structural constraints.

Provenance map

  • resolved: counterfactual-scenario-construction
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 · 44 lines · 22 tokens per session scan A 6d96f2e0b97a

Subscribe to this mod's changes

construct-counterfactual 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 22 tokens to every session and 309 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

construct-counterfactual compared with skills from other repositories

construct-counterfactual next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
construct-counterfactualyogsoth-ai/de-anthropocentric-research-engineSkill5361mo agoApache-2.0A22Claude 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