think-causal-dag-adjustment-check

think-causal-dag-adjustment-check is a skill for Claude Code, Codex from product-on-purpose/thinking-framework-skills. It costs 142 tokens per session (4,125 once invoked), scanned A, original, Apache-2.0.

Audits an observational causal claim by drawing the user's stated causal graph as an edge list, giving each variable a role (confounder, mediator, collider), and deriving what the comparison must adjust for and what it must not, including a sample filtered on a collider. Use when a causal conclusion rests on data…

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions subagents.

Install with agentmods
npx agentmods add skills/product-on-purpose/thinking-framework-skills/think-causal-dag-adjustment-check
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 product-on-purpose/thinking-framework-skills --skill think-causal-dag-adjustment-check
Clone the repo
git clone --depth 1 https://github.com/product-on-purpose/thinking-framework-skills

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 think-causal-dag-adjustment-check

README.md
[![agentmods](https://agentmods.dev/badge/skills/product-on-purpose/thinking-framework-skills/think-causal-dag-adjustment-check/github.svg)](https://agentmods.dev/skills/product-on-purpose/thinking-framework-skills/think-causal-dag-adjustment-check)
Your own site
<a href="https://agentmods.dev/skills/product-on-purpose/thinking-framework-skills/think-causal-dag-adjustment-check"><img src="https://agentmods.dev/badge/skills/product-on-purpose/thinking-framework-skills/think-causal-dag-adjustment-check/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 think-causal-dag-adjustment-check

Your own site · 80×15
<a href="https://agentmods.dev/skills/product-on-purpose/thinking-framework-skills/think-causal-dag-adjustment-check"><img src="https://agentmods.dev/badge/skills/product-on-purpose/thinking-framework-skills/think-causal-dag-adjustment-check.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 142 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,125 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 unknown 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.00142 $0.04125
Opus 5.5 $0.00057 $0.01650
Sonnet 5.5 $0.00028 $0.00825
Haiku 4.5 $0.00014 $0.00413

Measured today against content hash 5fd4ffbb136a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

think-causal-dag-adjustment-check 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 today.

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/think-causal-dag-adjustment-check/SKILL.md · 88 lines

How it starts

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

Causal DAG Adjustment Check (causal adjustment audit)

Someone compares two groups nobody assigned and concludes that one thing caused the other: "accounts that used the feature churned less". The instinct is to control for everything available and to look only at the cases that are easy to see. Both habits can manufacture the result. This skill performs one distinct move: draw the assumed causal graph behind the comparison, give every variable its structural role on each path, and derive both what the comparison must adjust for and what it must not. A confounder (a common cause of the exposure and the outcome) opens a back-door path that must be blocked. A mediator (a variable on the path from the exposure to the outcome) must not be adjusted for when the target is the total effect, because that removes part of the effect itself. A collider is a variable where two arrows on one path meet head to head. Under the controls and filters actually used, a path is open only if every collider on it (or a descendant of that collider) is conditioned on and no non-collider on it is conditioned on. So conditioning on a collider, or keeping a sample selected on it, can open a path that was closed. Collider status belongs to a path, not to a variable, so one variable can be a confounder on one path and a collider on another. The skill reads the shape of the graph and stops at the adjustment set and the assumptions it rests on. It never computes an effect, a probability or a counterfactual, and it never certifies a causal claim. The output is a causal adjustment audit, a structured artifact, not prose.

When to Use

  • Someone draws a causal conclusion from data nobody randomized: "users who adopt X retain better", "regions with the program had fewer incidents", "teams on the tool had fewer outages".
  • An analysis "controls for" a list of variables and nobody has asked whether each one belongs in the model. Controlling for everything available is the default this skill corrects.
  • The sample was filtered. Only survivors, hires, renewers, respondents or "active" accounts were kept, and the filter may itself be a common effect of the exposure and the outcome.
  • Two people disagree about a causal claim, and drawing the graph would show which arrow they disagree about and whether that arrow changes what to adjust for.

Read the full file on GitHub · 88 lines

Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. today First seen · 88 lines · 142 tokens per session scan A 5fd4ffbb136a

Subscribe to this mod's changes

think-causal-dag-adjustment-check is a skill published in the GitHub repository product-on-purpose/thinking-framework-skills (29 stars, last pushed today), licensed Apache-2.0. It adds 142 tokens to every session and 4,125 once invoked, about $0.0006 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-12-01.

Related

think-causal-dag-adjustment-check compared with skills from other repositories

think-causal-dag-adjustment-check next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
think-causal-dag-adjustment-checkproduct-on-purpose/thinking-framework-skillsSkill29todayApache-2.0A142Claude Code, Codex
ketchupbacknotprop/pstackSkill5.6ktodayMITA49Claude Code, Codex, Cursor
interrogatebacknotprop/pstackSkill5.6ktodayMITA61Claude Code, Codex, Cursor
reframebacknotprop/pstackSkill5.6ktodayMITA38Claude Code, Codex, Cursor
principle-prove-it-worksbacknotprop/pstackSkill5.6ktodayMITA50Claude Code, Codex, Cursor
principle-sequence-verifiable-unitsbacknotprop/pstackSkill5.6ktodayMITA68Claude Code, Codex, Cursor
ops-demoSnowflake-Labs/cocoplusSkill72923d agoMITA46Claude Code