A skill your agent uses when designing or writing the mechanism analysis for an Economic-Research empirical manuscript.

MITAuto-check passedLegal & Compliance

Install Er Mechanism

skills CLI
$ npx skills add brycewang-stanford/Awesome-Journal-Skills --skill er-mechanism -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install brycewang-stanford/Awesome-Journal-Skills er-mechanism --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/brycewang-stanford/Awesome-Journal-Skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/Economic-Research-Journal-Skills/skills/er-mechanism .claude/skills/er-mechanism && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
er-mechanism
GitHub stars
1.2k
Token cost
~641 tokens
SKILL.md length
137 words
Files
1
Skills in repo
2,387
Repo updated
First seen
Licence
MIT

At a glance

A skill your agent uses when designing or writing the mechanism analysis for an Economic-Research empirical manuscript.

  • Works in 2 steps: 实证上,只估计 D→M:把机制变量 M 当作被解释变量,沿用与主回归 D→Y… → 理论上,论证 M→Y:用经济学理论、制度背景、已有文献说明"M 为什么会影响…
  • Writing the mechanism analysis for an Economic-Research empirical manuscript
  • SKILL.md covers 触发时机, ⚠ 范式转向:不要再用中介效应逐步法, 正确做法:D→M + 理论论证 M→Y and 机制设计三原则, plus 5 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Er Mechanism is an agent skill from brycewang-stanford/Awesome-Journal-Skills. Use when designing or writing the mechanism analysis for an Economic-Research empirical manuscript. Enforces the post-江艇(2022) paradigm — estimate D→M with the main identification strategy and argue M→Y from theory, instead of running mediation step-wise / Sobel tests.

Its SKILL.md is about 640 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Legal & Compliance, covering Dispute resolution. The repository describes itself as: Journal-specific Claude Code/Codex skill packs covering mainstream journals — AER, QJE, Nature, Cell, 管理世界, 经济研究 & 200+ more — your fast track to getting published. | 覆盖主流期刊的… The licence is MIT.

When your agent uses it

  • Writing the mechanism analysis for an Economic-Research empirical manuscript
  • Tasks that involve Dispute resolution

Example prompts

  • “/er-mechanism”

Workflow steps

2 steps, taken from the first numbered list in SKILL.md.

  1. 实证上,只估计 D→M:把机制变量 M 当作被解释变量,沿用与主回归 D→Y 完全相同的识别策略(同样的 DID / IV / RDD、同样的固定效应与聚类)。这一环是被可信识别的因果关系——"处理确实改变了机制变量"。
  2. 理论上,论证 M→Y:用经济学理论、制度背景、已有文献说明"M 为什么会影响 Y"。这一环不跑回归,靠论证。

What it can do on your machine

Read from SKILL.md and the folder at commit 932eb23. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Er Mechanism loads about 641 tokens when it runs. Until then it costs about 71 tokens; SKILL.md has 137 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~71
When it runs · the whole SKILL.md, loaded when a task matches
~641

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from brycewang-stanford/Awesome-Journal-Skills at commit 932eb23, republished under its MIT licence (© brycewang-stanford). 137 words, ~641 tokens.

Download SKILL.mdSave it as .claude/skills/er-mechanism/SKILL.md (or your agent's skills folder).
name
er-mechanism
description
Use when designing or writing the mechanism analysis for an Economic-Research empirical manuscript. Enforces the post-江艇(2022) paradigm — estimate D→M with the main identification strategy and argue M→Y from theory, instead of running mediation step-wise / Sobel tests.

机制分析(er-mechanism)

机制分析是《经济研究》实证文章的近乎必备环节。但它的方法论近年发生了根本转向——本 skill 按转向后的口径写。

触发时机

  • 主回归结果已稳健,但缺机制分析
  • 机制只有"我们认为可能是因为……"的口头说明
  • 审稿人问"为什么会有这个效应?"
  • 你正打算(或已经)跑中介效应三步法 / Sobel 检验 —— 请先读下一节

⚠ 范式转向:不要再用中介效应逐步法

江艇(2022)《因果推断经验研究中的中介效应与调节效应》,《中国工业经济》第 5 期,第 100–120 页——已成为四大刊(《经济研究》《管理世界》《中国工业经济》《经济学(季刊)》)机制分析的准规范。核心结论:

  • 建议停止使用中介效应逐步法(Baron-Kenny 三步法)与 Sobel 检验。 在因果框架下,处理 D 可借识别策略视为外生,但中介变量 M 几乎从不是随机的。
  • 在 Y 对 (D, M) 的回归里,M 的系数(即"M→Y 那一步")混入了 M 与 Y 之间的遗漏变量偏误和反向因果,不具因果含义;据此分解出的"中介效应""间接效应占比"也不可信。
  • 三步法还隐含"无未观测的处理后混杂"这一极强且不可检验的假设。

一句话:别用一个内生回归去"证明"机制。

正确做法:D→M + 理论论证 M→Y

机制检验 = 两件事:

  1. 实证上,只估计 D→M:把机制变量 M 当作被解释变量,沿用与主回归 D→Y 完全相同的识别策略(同样的 DID / IV / RDD、同样的固定效应与聚类)。这一环是被可信识别的因果关系——"处理确实改变了机制变量"。
  2. 理论上,论证 M→Y:用经济学理论、制度背景、已有文献说明"M 为什么会影响 Y"。这一环不跑回归,靠论证。

配套代码:resources/code/stata/07_mechanism.do。

机制写作三段式
本文进一步从[机制名]角度提供证据。
第一,理论上,[机制变量 M] 应通过[路径]影响[结果 Y]——[引理论/制度/文献,著者-出版年制,如(江艇,2022)]。
第二,实证上,本文以 [M] 为被解释变量,沿用基准识别策略估计 D→M,结果见表 X:
       处理使 [M] [上升/下降] [量级],与上述理论预期一致。
第三,结合 [理论/文献],[M] 的变化进而通过[路径]作用于 [Y],构成本文主效应的机制。

注意第三步只做逻辑闭合,不报告"间接效应=0.0X、占比 Y%"这类来自中介分解的数字。

机制设计三原则

  1. 理论指引:机制变量必须能挂上某支理论,不是凭空想。
  2. 时间一致:M 的测量时点在处理 D 之后、结果 Y 之前;构造 M 不得使用未来信息。
  3. 可证伪:能写出"若机制成立 → 应观察到 D 改变 M;若不成立 → 不应观察到"。

用异质性侧证机制(推荐替代"中介"的思路)

比中介分解更可信的机制证据,是理论驱动的异质性:若机制是 M,则在"M 渠道更畅通/更受约束"的子样本中,主效应应更强/更弱。

例:若效应来自"融资约束缓解",则在融资约束更紧的企业中效应应更大。在该子样本验证,比跑一个 M 的内生中介回归更有说服力。

这把机制(为什么有效应)与异质性(什么条件下更强)打通——详见 er-heterogeneity。

范文对标(确属《经济研究》)

  • 张勋、万广华、张佳佳、何宗樾《数字经济、普惠金融与包容性增长》,《经济研究》2019 年第 8 期——机制分析范本:数字金融→收入,逐层拆解"创业 + 金融可得性"渠道并配合群体异质性。

必查清单

  • 至少 1 个机制(理想 2–3 个互补机制)
  • 机制变量来源于理论 / 文献,不是凭空想
  • 机制检验只跑 D→M,与主回归同一识别策略
  • M→Y 由理论 / 制度 / 文献论证,而非内生回归
  • 机制变量构造的时间逻辑正确(不使用未来信息)
  • 机制部分至少 1 张独立回归表
  • (如适用)用理论驱动的异质性侧证机制
  • 机制结果与主回归方向一致(不一致则解释)

反模式

  • 用"我们认为可能是因为……"一句话代替机制分析
  • 跑中介三步法 / Sobel / Bootstrap 间接效应占比——已被四大刊普遍弃用
  • 把 Y 对 M 的内生回归当作"M 影响 Y 的证据"
  • 机制变量构造时使用了未来信息
  • 机制结果方向与主效应相反却不解释
  • 机制变量与处理变量本质是同一个东西的不同度量(同义反复,不算机制)

输出格式

【机制数】X 个
【机制变量】[M1, M2, ...]
【D→M 识别策略】与主回归一致 / 不一致(需修)
【M→Y 论证方式】理论 / 制度 / 文献(不跑内生回归)
【中介三步法 / Sobel 命中】无 / 有(必须移除)
【时间一致性】通过 / 待修
【异质性侧证】有 / 无
【下一步】er-heterogeneity

© brycewang-stanford, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in Economic-Research-Journal-Skills/skills/er-mechanism of brycewang-stanford/Awesome-Journal-Skills.

Open the folder on GitHubat commit 932eb23

Compare with similar skills

Er Mechanism next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Er Mechanism compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Er Mechanism this skillbrycewang-stanford/Awesome-Journal-Skills1.2k—~641Automated safety check: PassMIT
Litigation Deadline Calendarlawve-ai/awesome-legal-skills847—~4.3kAutomated safety check: PassMIT
Moot Court Simulation Buildercat-xierluo/legal-skills721—~1.4kAutomated safety check: PassCC-BY-NC-4.0
Intake To Draftstella/stella259—~537Automated safety check: PassApache-2.0
Nla Arbitrateinternet-court/internet-court-skill6.6k1 repos~866Automated safety check: PassMIT
Nla Createinternet-court/internet-court-skill6.6k1 repos~915Automated safety check: PassMIT

Similar skills

  • Litigation Deadline Calendar

    lawve-ai/awesome-legal-skills

    Calendar litigation and arbitration deadlines from a scheduling order.

    847 GitHub stars~4.3k tokensUpdated 8 days ago
    Legal & ComplianceAuto-check passed
  • Moot Court Simulation Builder

    cat-xierluo/legal-skills

    Chinese-language skill that organizes a case file into a multi-role mock trial with judge, parties and clerk, producing a transcript, issue review and a to-strengthen list.

    721 GitHub stars~1.4k tokensUpdated yesterday
    Legal & ComplianceAuto-check passed
  • Intake To Draft

    stella/stella

    Collects the facts of an unpaid invoice, then drafts a payment demand letter.

    259 GitHub stars~537 tokensUpdated today
    Legal & ComplianceAuto-check passed
  • Nla Arbitrate

    internet-court/internet-court-skill

    Manually arbitrate NLA escrow fulfillments as an alternative to the automated oracle.

    6.6k GitHub starsUsed in 1 repo~866 tokens
    Legal & ComplianceAuto-check passed
  • Nla Create

    internet-court/internet-court-skill

    Create a Natural Language Agreement escrow on-chain. An agent skill from internet-court/internet-court-skill.

    6.6k GitHub starsUsed in 1 repo~915 tokens
    Legal & ComplianceAuto-check passed
  • Nla Fulfill

    internet-court/internet-court-skill

    Fulfill an existing NLA escrow and collect tokens. An agent skill from internet-court/internet-court-skill.

    6.6k GitHub starsUsed in 1 repo~854 tokens
    Legal & ComplianceAuto-check passed

More from brycewang-stanford/Awesome-Journal-Skills

All 2,387 skills in this repo
  • Aaag Data Analysis

    brycewang-stanford/Awesome-Journal-Skills

    A skill your agent uses when running and reporting the analysis for an Annals of the American Association of Geographers manuscript — spatial statistics and modeling, remote-sensing accuracy, or…

    1.2k GitHub stars~1.3k tokensUpdated 14 days ago
    Auto-check passed
  • Aaag Literature Positioning

    brycewang-stanford/Awesome-Journal-Skills

    A skill your agent uses when positioning an Annals of the American Association of Geographers manuscript in the literature — engaging geographic scholarship across the relevant area and the…

    1.2k GitHub stars~1.3k tokensUpdated 14 days ago
    Auto-check passed
  • Aaag Rebuttal

    brycewang-stanford/Awesome-Journal-Skills

    A skill your agent uses when responding to an Annals of the American Association of Geographers decision letter (major/minor revision) — building a point-by-point response to the subject editor and…

    1.2k GitHub stars~1.4k tokensUpdated 14 days ago
    Auto-check passed
  • Aaag Research Design

    brycewang-stanford/Awesome-Journal-Skills

    A skill your agent uses when defending the research design of an Annals of the American Association of Geographers manuscript — spatial/quantitative analysis and GIScience, remote-sensing and…

    1.2k GitHub stars~1.4k tokensUpdated 14 days ago
    Auto-check passed
  • Aaag Review Process

    brycewang-stanford/Awesome-Journal-Skills

    A skill your agent uses when you need to understand how the Annals of the American Association of Geographers evaluates a manuscript — double-anonymous review routed through a subject editor by…

    1.2k GitHub stars~1.3k tokensUpdated 14 days ago
    Auto-check passed
  • Aaag Submission

    brycewang-stanford/Awesome-Journal-Skills

    A skill your agent uses when running the final pre-submission preflight for the Annals of the American Association of Geographers via ScholarOne Manuscripts — area/article-type selection…

    1.2k GitHub stars~1.6k tokensUpdated 14 days ago
    Auto-check passed

Questions about Er Mechanism

What does Er Mechanism do?

A skill your agent uses when designing or writing the mechanism analysis for an Economic-Research empirical manuscript. Er Mechanism is an agent skill from brycewang-stanford/Awesome-Journal-Skills. Use when designing or writing the mechanism analysis for an Economic-Research empirical manuscript.

When should I use Er Mechanism?

Er Mechanism fits situations like: writing the mechanism analysis for an Economic-Research empirical manuscript; tasks that involve Dispute resolution.

How do I install Er Mechanism in Claude Code?

Run `npx skills add brycewang-stanford/Awesome-Journal-Skills --skill er-mechanism -a claude-code`. Or copy the skill folder (Economic-Research-Journal-Skills/skills/er-mechanism in brycewang-stanford/Awesome-Journal-Skills) into .claude/skills/er-mechanism in your project. Claude Code loads it when a task matches its description.

How do I install Er Mechanism in Codex?

Run `npx skills add brycewang-stanford/Awesome-Journal-Skills --skill er-mechanism -a codex`. Or copy the skill folder (Economic-Research-Journal-Skills/skills/er-mechanism in brycewang-stanford/Awesome-Journal-Skills) into .agents/skills/er-mechanism in your project. Codex loads it when a task matches its description.

Can I use Er Mechanism in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add brycewang-stanford/Awesome-Journal-Skills --skill er-mechanism -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/er-mechanism, .gemini/skills/er-mechanism, .github/skills/er-mechanism and .opencode/skills/er-mechanism in your project.

What does Er Mechanism need to run?

SKILL.md names no scripts, command-line tools or credentials: Er Mechanism is instructions for the agent only.

Does Er Mechanism access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Er Mechanism safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Er Mechanism use?

Er Mechanism is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Er Mechanism use?

About 641 tokens (SKILL.md is roughly 2.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Er Mechanism?

Skills that share tags, products or a category with Er Mechanism: Litigation Deadline Calendar (lawve-ai/awesome-legal-skills, 847 stars), Moot Court Simulation Builder (cat-xierluo/legal-skills, 721 stars), Intake To Draft (stella/stella, 259 stars) and Nla Arbitrate (internet-court/internet-court-skill, 6.6k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Er Mechanism?

brycewang-stanford (a GitHub user) maintains it in brycewang-stanford/Awesome-Journal-Skills, which has 1,231 GitHub stars. The repository holds 2,387 skills in this directory. The repository was last updated on September 27, 2026.

Source: brycewang-stanford/Awesome-Journal-Skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.