causal-explanation

causal-explanation is a skill for Claude Code, Codex from macintog/codex-spine. It costs 85 tokens per session (851 once invoked), scanned A, original, MIT.

A guide for explaining why an existing software behavior, design choice, regression, threshold, or trade-off exists, using evidence from the current code and relevant history.

In plain words
What is it for?
It is for writing evidence-based causal explanations, such as explaining a design decision, a performance threshold, or the reason behind a regression.
Why use it?
It helps separate confirmed facts from likely explanations and unknowns when someone asks how or why a system behaves a certain way.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/macintog/codex-spine/causal-explanation
Any agent
npx skills add macintog/codex-spine --skill causal-explanation
Clone the repo
git clone --depth 1 https://github.com/macintog/codex-spine

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 causal-explanation

README.md
[![agentmods](https://agentmods.dev/badge/skills/macintog/codex-spine/causal-explanation.svg)](https://agentmods.dev/skills/macintog/codex-spine/causal-explanation)
Your own site
<a href="https://agentmods.dev/skills/macintog/codex-spine/causal-explanation"><img src="https://agentmods.dev/badge/skills/macintog/codex-spine/causal-explanation.svg" alt="Measured on agentmods" 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 851 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00851
Opus 5 $0.00043 $0.00426
Sonnet 5 $0.00017 $0.00170
Haiku 4.5 $0.00009 $0.00085

Measured 5d ago against content hash 3b8056780dd9, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

causal-explanation 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 5d 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-explanation/SKILL.md · 79 lines

How it starts

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

Causal Explanation

Answer the selected causal question with evidence calibrated to the claim. Keep observed facts, source-backed inference, competing explanations, and unknowns distinct. Do not turn an explanation request into implementation work.

Route The Request

  • Bind the question to the exact behavior, decision, regression, threshold, or tradeoff. Infer the referent from current context only when the interpretation is safe; otherwise ask one targeted question.
  • Use jcode for a symbol lookup, file map, caller trace, or adjacent source context. Use the repo's QA intake or attribution lane for reproducing, diagnosing, or attributing an active failure, including a request to find an unknown root cause. Use this skill after the cause or regression finding is established, or when the selected job is to explain existing evidence.
  • Use the applicable architecture or performance skill when the requested outcome is a design review or benchmark judgment rather than an explanation.

Build A Proportionate Evidence Record

  1. Inspect the current code, runtime state, configuration, or artifact that establishes what exists now.
  2. Consult only sources likely to resolve the causal question. Use jcode for source structure and callers, jdocs for authored documentation or reference trees, direct QMD retrieval plus get or multi_get for exact prior wording or history, and jdata only when tabular evidence is material. Consult a relevant issue or review connector only when current evidence points there. Do not require an all-source sweep or enumerate and sweep connectors.
  3. Record each source actually consulted. Mark relevant searches that returned nothing, unavailable sources that leave a material gap, and deliberately omitted categories whose evidence could not affect the answer.
  4. For a regression, compare the closest defensible known-good state with the current state and inspect the exact intervening changes. Timing is a hypothesis, not proof of cause.

Read the full file on GitHub · 79 lines

Files

What ships with it

3 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. 5d ago First seen · 79 lines · 85 tokens per session scan A 3b8056780dd9

Subscribe to this mod's changes

causal-explanation is a skill published in the GitHub repository macintog/codex-spine (9 stars, last pushed 5d ago), licensed MIT. It adds 85 tokens to every session and 851 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

bensz-rmd-rules

规范 AI 开发 R Markdown 分析脚本的行为准则。当用户要求"写 Rmd 分析"、"开发 R 脚本"、"做数据分析"时触发。核心原则:遵循主业与副业分离架构(.R 保留完整数据,.Rmd 应用业务阈值),优先使用用户已有 R 包资源;图表默认按 Nature 级别可读性与出版质量生成;专家级解读兼顾弱背景读者,提供四层框架、指标导读与不常用指标首次解释协议;路径验证确保跨平台兼容性。前提:luckyBase 为硬依赖。.

huangwb8/skills · 157 tokens

auto-test-project

当用户明确要求"测试项目"、"运行 auto-test-project"或"进行项目级测试"时使用。对完整项目进行多轮 A 轮批判性测试 + B 轮质量检查,系统化发现、记录、修复问题。⚠️ 不适用:用户只是想优化功能(应直接修改)、只是询问项目问题(应直接回答)、没有明确"测试"意图。.

huangwb8/skills · 94 tokens

auto-test-skill

当用户明确要求"测试技能"、"运行 auto-test"或"进行批判性测试"时使用。通过多轮 A 轮批判性测试 + B 轮质量原则检查,系统化发现、记录、修复问题,并沉淀可追溯的 .bensz-api/task-{yyyymmdd-hhmm}-{简短描述}/auto-test-skill/output/plans/ 与 .bensz-api/task-{yyyymmdd-hhmm}-{简短描述}/auto-test-skill/output/tests/ 文档。⚠️ 不适用:用户只是想优化功能(应直接修改)、只是询问技能问题(应直接回答)、没有明确"测试"意图。.

huangwb8/skills · 158 tokens

git-commit

当用户明确要求"提交 Git 改动"、"生成 commit 信息"或"创建 git commit"时使用。仅用 Git 分析改动并自动生成 conventional commit 信息(可选 emoji);必要时建议拆分提交,默认运行本地 Git 钩子(可 --no-verify 跳过),提交后默认自动 push(可 --no-push 跳过)。.

huangwb8/skills · 88 tokens

git-pr-review

当用户明确要求“review 某个 GitHub PR”“评估某个 pull request 是否值得 merge”“帮我判断这个 PR 怎么处理”时使用。基于用户提供的 GitHub 仓库地址、PR 编号/链接和补充说明,进行只读、证据驱动的 PR 审查:理解 PR 解决的问题、评估方案优劣与局限、默认优先使用内置“好 PR”标准并在必要时联网补充、识别恶意或高风险改动,并输出是否建议 merge 的 Markdown 决策报告。⚠️ 不适用:用户要你直接修改 PR 代码、直接 merge PR、或在本地执行 PR 分支中的不可信代码。.

huangwb8/skills · 163 tokens

download-fulltext-pdf

当用户明确要求"下载文献全文"或"获取论文PDF"时使用。通过 DOI 号下载学术论文全文 PDF,支持 arXiv、Sci-Hub、Unpaywall、期刊官网等多源策略。⚠️ 不适用:用户只是想解析或处理已有的 PDF 文件(应使用 pdf skill)、只是想搜索论文信息而无需下载全文、没有提供 DOI/标题/BibTeX 任何标识符。.

huangwb8/skills · 105 tokens