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.
npx skills add csmar432/finai-research --skill fin-experiment-designgit clone --depth 1 https://github.com/csmar432/finai-researchWrote 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.
[](https://agentmods.dev/skills/csmar432/finai-research/fin-experiment-design)<a href="https://agentmods.dev/skills/csmar432/finai-research/fin-experiment-design"><img src="https://agentmods.dev/badge/skills/csmar432/finai-research/fin-experiment-design/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.
<a href="https://agentmods.dev/skills/csmar432/finai-research/fin-experiment-design"><img src="https://agentmods.dev/badge/skills/csmar432/finai-research/fin-experiment-design.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00061 | $0.07941 |
| Opus 5 | $0.00030 | $0.03971 |
| Sonnet 5 | $0.00012 | $0.01588 |
| Haiku 4.5 | $0.00006 | $0.00794 |
Grade A, and why
fin-experiment-design 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 6d 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.
How it starts
The opening of the file, as written. The whole thing — 778 lines — stays where its author put it; the contents beside it link to each section on GitHub.
经济金融实证方法设计
将研究想法细化为完整、可执行的实证研究设计。
输出文件
所有文件输出到 output/fin-refinement/ 目录:
| 文件 | 说明 | 优先级 |
|---|---|---|
REFINED_DESIGN.md |
核心研究设计文档(最重要) | 必须 |
EXPERIMENT_PLAN.md |
详细实验执行计划 | 必须 |
VARIABLE_DEFINITIONS.md |
变量定义表 | 必须 |
ROBUSTNESS_PLAN.md |
稳健性检验方案 | 必须 |
ENDOGENEITY_PLAN.md |
内生性处理方案 | 必须 |
EXECUTION_CHECKLIST.md |
实验执行检查清单 | 必须 |
empirical_package.json |
实证包契约(表台阶 / 控制职务 / 机制 / 图门) | 必须 |
实证包(先问后填)
选控制、写机制前先走十问,不要抄例 JSON 的渠道名:
python -m scripts.core.empirical_package questions
python -m scripts.core.empirical_package scaffold --mode core --unit firm
python -m scripts.core.empirical_package audit output/fin-refinement/empirical_package.json
实证轨跑一遍就能把能算的格填上(结构事实 / 逐步 / 更紧 / 样本流;机制须自己点名渠道):
python -m scripts.research_framework.enhanced_pipeline --topic "..." --mechanism 渠道列名
empirical_package.json 最低要求:y_construct / x_construct、每件控制的 variable_jobs(中文 table_row + 接到本题 Y 的 job + 非贴纸 basis)、黄金八格(缺格写 dropped 理由)、政策 DID 还要独立于电池的 mechanism_channels(≥2 条且不是本题 Y)与 figure_gate。mechanism_methods 按推断家族计数(sobel+bootstrap 只算一种)。政策 DID 不得 dropped: mechanism。交稿是合取:主栏显著 ∧ 控制有职务 ∧ 活机制表 ∧ 图干净 ∧ 能复述的 story 页。H1 必须是主发现,禁止写「H1 被拒绝」。
前置条件
读取以下文件(按优先级):
output/fin-ideas/IDEA_REPORT.md— 选定研究想法output/fin-novelty/NOVELTY_REPORT.md— 新颖性验证output/fin-literature/LIT_REVIEW.md— 文献综述FIN_BRIEF.md— 研究简报output/fin-refinement/REFINED_DESIGN.md— 如已存在,读取并更新
核心模块依赖
# scripts/research_framework/modern_did.py
from modern_did import ModernDiDEngine, DiDEstimationResult
# scripts/research_framework/robustness_runner.py
from robustness_runner import RobustnessRunner, RobustnessReport
# scripts/research_framework/iv_panel.py
from iv_panel import IVPanel
# scripts/research_framework/rdd.py
from rdd import RDDEngine
阶段1:识别策略选择(决策树)
⚠️ Checkpoint: 策略选择后必须向用户展示决策树结果,解释为何选择该策略。
决策树
样本是否包含处理组/对照组?
│
├── 是 → 政策/处理时点是否单一?
│ ├── 是 → 经典 2×2 DID
│ │ ├── 单一处理队列 → 标准 DID (Angrist & Pischke 2009)
│ │ └── 多处理队列 → Callaway-SantAnna (QJE 2021) [推荐]
│ │ 或 Sun-Abraham (REStud 2021)
│ │ 或 Borusyak-Jaravel-Spinks (REStud 2024)
│ │ 或 Gardner (2022) shock-free
│ │
│ └── 否 → 合成控制法 (Abadie et al. 2010)
│ 或 合成 DID (Arkhangelsky et al. 2021)
│
└── 否 → 处理变量是否为连续型?
├── 是 → 断点回归 (RDD)
│ ├── 精确 RDD
│ └── 模糊 RDD (含 IV)
│
└── 否 → 工具变量法
├── 弱 IV 检验: Kleibergen-Paap rk F statistic
└── 面板 GMM: Arellano-Bond / Blundell-Bond
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.
- 6d ago Changed 8e9112e7d992
- 11d ago First seen · 778 lines · 61 tokens per session scan A 8522ea07b966
fin-experiment-design is a skill published in the GitHub repository csmar432/finai-research (100 stars, last pushed 2d ago), licensed MIT. It adds 61 tokens to every session and 7,941 once invoked, about $0.0003 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-30.
Other skills, from other repositories
r-econometrics
Run IV, DiD, and RDD analyses in R with proper diagnostics.
econometrics-phd-level
A guide to econometrics, the use of statistics to study relationships in data, based on a 12-part Korean lecture series. It routes questions to explanations of topics such as regression, panel data, instrumental variables, and causal comparisons.
did-causal
Use this Skill when the user needs to estimate causal treatment effects using difference-in-differences (DID) designs: two-way fixed effects (TWFE) regression, parallel trends pre-testing, Callaway-Sant'Anna staggered adoption estimator, and Goodman-Bacon decomposition. Covers both Python (linearmodels) and R (did…
r-econometrics
Generates rigorous, modern, reproducible R code for causal inference and panel econometrics with fixest, heterogeneity-robust DiD estimators (Callaway-Sant'Anna, Sun-Abraham, BJS, de Chaisemartin-D'Haultfoeuille), weak-IV-robust inference, optimal-bandwidth RDD via rdrobust, and wild cluster bootstrap. Use when the…
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.
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…