Supply-Side Shock Analysis Skill
Overview
This skill implements a complete workflow for estimating the impact of an investment spending shock on a small open economy using:
- Data collection from PWT (capital stock), IMF WEO (GDP), and ECB (CFC)
- HP filter for trend extraction in Excel
- Cobb-Douglas production function for potential GDP estimation
- Investment shock modeling
Usage
pythonimport sys sys.path.insert(0, '/app/environment/skills/evo-supply-shock/scripts') from data_collection import collect_pwt_data, collect_weo_data, collect_ecb_cfc_data from excel_builder import build_supply_model from validator import validate_workbook # End-to-end entry point build_supply_model( template_path='/root/test-supply.xlsx', output_path='/root/test-supply.xlsx' ) # Validate validate_workbook('/root/test-supply.xlsx')
Workflow Steps
- Data Collection: Download PWT, WEO, ECB data programmatically
- Populate PWT Sheet: Fill rnna and rgdpna columns
- Populate WEO Sheet: Fill real GDP level and growth rate, extend to 2043
- Populate CFC Sheet: Fill CFC data, link capital stock, calculate depreciation
- Production Sheet: Set up HP filter formulas, production function
- Run LibreOffice Solver: Optimize HP filter via macro
- Validate: Check formulas and results


