How to: make a DSGE model?

Dirk Krueger’s script and Mccandless’s “The ABCs of RBCs - An Introduction to Dynamic Macroeconomic Models” are good starting points.