
将宏直观转化为经过验证的 Dynare .mod 文件——这是 DSGE 建模的编码代理技能。
概览
这是一个Claude代码技能,将你的宏观经济直觉——“我想要一个带有金融加速器的新凯恩斯模型”,“复制Smets-Wouters 2007”——转化为一个可工作、经过验证的Dynare .mod文件,稳态问题解决,且手中有IRF。其核心任务是强制执行有经验建模者所遵循的工作流程:——这样时序错误、命名冲突和稳态代数错误能在变成错误结果之前被发现。具体来说,它提供:- ——内置的双参考库(149个MMB经济结构复制模型+89个Dynare语法的Pfeifer示例),意味着每个模型都从工作代码开始。- ——你完成的每个模型都会被归档并在未来任务中咨询;你遇到的每个错误都会被修复后被记录,因此同一个陷阱不会被调试两次。
概述(AI 翻译)
英语 |中文 |日本語
一项Claude Code技能,将你的宏观经济直觉——“我想要一个带金融加速器的新凯恩斯主义模型”、“复制Smets-Wouters 2007”——转化为一个可运行、经过验证的Dynare
.mod文件,稳态已解决,手持IRF。它的核心工作是强制执行有经验的建模人员本来就遵循的工作流:先推导,后翻译,增量验证——这样时序错误、命名冲突和稳态代数错误能在变成错误结果之前被发现。具体来说,它能给你:
- 经过验证的起点,绝非空白页 — 内置的双重参考库(149 MMB经济结构复制模型+89个Dynare语法Pfeifer示例)意味着每个模型都从工作代码开始。
- 一个随着使用而锐利的工具 — 你完成的每个模型都会被归档并在未来任务中咨询;你遇到的每个bug都会被修复并记录下来,这样同一个陷阱就不会被调试两次。
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
dynare-copilot
A Claude Code skill that takes your macroeconomic intuition — “I want a New Keynesian model with a financial accelerator,” “replicate Smets-Wouters 2007” — and turns it into a working, validated Dynare
.modfile with steady state solved and IRFs in hand.Its core job is to enforce the workflow experienced modelers follow anyway: derive first, translate second, validate incrementally — so timing errors, naming conflicts, and steady-state algebra mistakes get caught before they become wrong results. Concretely, it gives you:
- A vetted starting point, never a blank page — a built-in dual reference library (149 MMB replication models for economic structure + 89 Pfeifer examples for Dynare syntax) means every model starts from working code.
- A tool that sharpens with use — every model you finish is archived and consulted on future tasks; every bug you hit is logged with its fix, so the same trap is never debugged twice.
- Faithful replication, never a guessed model — when a paper hands part of its model off to another paper (“the financial block is identical to Gertler-Karadi 2011”), it stops and asks you for that source instead of silently reconstructing the missing block from memory.
- Paper-ready output — every IRF is delivered as a publication-quality vector figure, ready to drop into your manuscript.
No timing pitfalls. No silent errors. No blank page.
Enjoy the world of macroeconomics.
Contents
- Requirements
- Installation
- Update
- Uninstall
- Use with OpenAI Codex
- Quick Start
- Supported Tasks
- How It Works
- Output Structure
- Repository Structure
- Advanced
- Join the Project
- Acknowledgements
- License
Requirements
| What you want to do | What you need |
|---|---|
Let it write / edit / inspect .mod files |
A coding agent: Claude Code or OpenAI Codex |
Run the generated .mod files yourself |
Also install Dynare 7.1 + MATLAB or Octave |
| Let it run automatically and iterate on errors | Also install a MATLAB MCP server in VSCode |
推荐工具
换一个关键词,或者移除筛选条件。
安装
npx skillfish add econsolider/dynare-copilot