did-causal

did-causal is a skill for Claude Code, Codex from xjtulyc/awesome-rosetta-skills. It costs 75 tokens per session (5,206 once invoked), scanned A, original, no licence file.

A guide to difference-in-differences, a research method for estimating whether a treatment or policy caused a change by comparing groups over time. It covers fixed-effects models, pre-treatment trend checks, staggered adoption, and treatment-effect decompositions.

In plain words
What is it for?
Use it to estimate policy or treatment effects, test whether groups followed similar trends beforehand, analyze different adoption dates, and break down the contribution of individual comparisons.
Why use it?
It helps separate a possible treatment effect from changes that would have happened over time anyway.

Skill for Claude CodeCodex

Which agent this was written for is unclear — body not stored (licence); the path alone says nothing.

Good fit Use it to estimate policy or treatment effects, test whether groups followed similar trends beforehand, analyze different adoption dates, and break down the contribution of individual comparisons.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/xjtulyc/awesome-rosetta-skills/did-causal
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 xjtulyc/awesome-rosetta-skills --skill did-causal
Clone the repo
git clone --depth 1 https://github.com/xjtulyc/awesome-rosetta-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 did-causal

README.md
[![agentmods](https://agentmods.dev/badge/skills/xjtulyc/awesome-rosetta-skills/did-causal/github.svg)](https://agentmods.dev/skills/xjtulyc/awesome-rosetta-skills/did-causal)
Your own site
<a href="https://agentmods.dev/skills/xjtulyc/awesome-rosetta-skills/did-causal"><img src="https://agentmods.dev/badge/skills/xjtulyc/awesome-rosetta-skills/did-causal/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 did-causal

Your own site · 80×15
<a href="https://agentmods.dev/skills/xjtulyc/awesome-rosetta-skills/did-causal"><img src="https://agentmods.dev/badge/skills/xjtulyc/awesome-rosetta-skills/did-causal.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 75 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,206 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.00075 $0.05206
Opus 5 $0.00037 $0.02603
Sonnet 5 $0.00015 $0.01041
Haiku 4.5 $0.00007 $0.00521

Measured 8d ago against content hash 93000f429150, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

did-causal 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 8d 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/07-economics/did-causal/SKILL.md · 585 lines

The source is not reproduced here

A licence we could not identify

The repository carries a LICENSE file, but it is custom or dual enough that GitHub cannot name it and neither can this catalogue. Unknown terms are not permission, so the body is not copied here. Read the licence at the source and decide for yourself.

Read it on GitHub

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. 8d ago First seen · 585 lines · 75 tokens per session scan A 93000f429150

Subscribe to this mod's changes

did-causal is a skill published in the GitHub repository xjtulyc/awesome-rosetta-skills (34 stars, last pushed 5mo ago), with no licence file. It adds 75 tokens to every session and 5,206 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-09-03.

Related

Other skills, from other repositories

audit-reproducibility

Enforce the replication-protocol.md rule by cross-checking numeric claims in a manuscript against the actual R / Stata / Python outputs. Report PASS/FAIL per claim against tolerance thresholds. Use before submission and before releasing a replication package.

pedrohcgs/claude-code-my-workflow · 54 tokens

review-paper

Comprehensive manuscript review with three modes: single-pass (default), --adversarial critic-fixer loop, and --peer [journal] simulated peer-review pipeline (editor + 2 dispositioned referees + editorial decision, calibrated to a target journal). R&R continuation via --peer --r2/--r3; hostile-editor stress test via…

pedrohcgs/claude-code-my-workflow · 114 tokens

diagnose

Root-cause a failing or wrong empirical result with a disciplined reproduce → minimise → hypothesise → instrument → fix loop, instead of guessing-and-poking. Use when the user says "why is my regression wrong", "this number changed", "my script errors out", "the result won't reproduce", "debug this", "this estimate…

pedrohcgs/claude-code-my-workflow · 0 tokens

grant-proposal

Scaffold a research grant proposal (NSF, NIH, ERC, or foundation) by composing existing primitives — pulls identification strategy from an /interview-me spec, delegates the data-management plan to /data-management-plan and the facilities statement to /capture-environment, and emits a funder-requirements checklist. Use…

pedrohcgs/claude-code-my-workflow · 131 tokens

preregister

Draft a structured preregistration document (OSF, AsPredicted, or AEA RCT Registry style) from a research spec or free-form study description. Output is a Markdown file with hypotheses, design, sampling plan, analysis plan, exclusions, and inference criteria — annotated with MUST / SHOULD / MAY clarity flags. Use when…

pedrohcgs/claude-code-my-workflow · 153 tokens

capture-environment

Snapshot the computational environment for a replication package — detects the analysis stack (R / Stata / Python) and emits the right lockfiles (renv.lock + sessionInfo.txt, requirements.txt / environment.yml / uv.lock, Stata version + ado package list), records seeds and RNG kind, optionally writes a pinning…

pedrohcgs/claude-code-my-workflow · 139 tokens