I do this too, but I find there is another sizeable chunk of time spent afterwards refactoring that initial dump of code, adding structure, or shifting the structure it added into something more readable.
I also find that in very large and complex codebases, it misses edge cases, builds around abstractions, and does other things that reduce the quality of the code. I still find myself needing to do quite a lot of research in advance to feed it context.
With all of these, I'm trying to build skills so I can be more hands off, but they're effectiveness wavers between model releases.
This work is all faster with AI, but it isn't the one shot prompt we seem to be dreaming of.