Excel econ model guardrails

From XuShuwenn/RedAct · View interactive version

Excel econ model guardrails is an AI agent skill from the GitHub repository XuShuwenn/RedAct. Build source-linked, Excel-only Cobb–Douglas shock models with HP filter, avoiding hardcoding, unit mismatches, and Solver misconfiguration.

How to use this skill

Skill file

Excel Economic Modeling Guardrails (Cobb–Douglas + HP Filter)

A reusable workflow to construct an Excel-only potential output model with a Cobb–Douglas production function, HP-filtered productivity trend, and an investment shock. It focuses on preventing the failure modes observed in prior attempts: tool-constraint violations, hardcoded values, unit inconsistencies, broken links, and incorrect HP Solver setup.

When to Use

Use this skill when you must:

Core Workflow

Phase 0: Respect constraints and plan

Phase 1: Data acquisition and interpretation

Phase 2: Sheet structure and linking (in Excel)

Phase 3: Depreciation rate calculation

Phase 4: Cobb–Douglas and HP filter setup

Phase 5: K/Y anchor and projections

Phase 6: Investment shock and potential output

Verification

Perform these checks before finalizing:

Success criteria: No hardcoded constants in computed cells, no unit/base mismatches, all links working, Solver objective properly specified and minimized, projections extend as specified, and documentation of sources/definitions is present in-sheet.

Common Pitfalls and How to Avoid Them

1) Violating Excel-only constraint

2) Hardcoding key values

3) Unit and base-year mismatches

4) Misinterpreting real vs nominal series

5) Broken links and incorrect lookups

6) HP filter mis-specification

7) Growth-rate extension errors

8) Timeline misalignment

9) Sheet name inconsistencies

Optional Script Usage

You can use the included text template to copy-paste robust HP filter formula patterns into Excel and adapt ranges to your sheet. This does not compute for you; it standardizes formulas and reduces indexing mistakes.

Keep all computations inside Excel and verify each formula after pasting by adjusting ranges to your actual row indices.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.