Maybe we’re talking past each other. But my main point is that the framework you proposed should be more geared towards a thinking model instead of a recipe to blindly to produce code. Code are highly contextual of the data you have to process.
So you can get AI to produce code, but you should refine your mental model alongside it and not try to build a scaffold as that would always be too generic and wrong. As a scaffold good enough is already code. So exoskeletons mindset, more than hive mindset.