Spoilage is not the big problem ... since cooking will kill most of the bacteria that cause spoilage - and freezing will retard any remaining. The biggest problems will be nutrition loss and freezer burn - and those are related to the amount of air left in the packaging, and the type of packaging used.
High liquid content meals - such as chile, stews, soups, pasta sauces, etc. - can be placed in FREEZER zip-lock bags, the air expressed, then frozen ... good for at least a year.
Those and other things can be cooked, portioned to a meal size, frozen in a container if necessary for things that are too liquid to lay on a sheet pan to freeze (after freezing they can be knocked out of the container or not - depends on how you want to store it), and then vacuum packed - using something like a Tilia FoodSaver. That would last for a year or two.
If you're making something like chicken enchiladas or lasagna (just using freezer bags) - you could bake them, put them in a FREEZER bag, when frozen press out all of the air you can, seal - and then use in 1-3 months.