reinventing the wheel
That's what game engines are for. And libraries.
Using ai is not avoiding to reinvent the wheel. It is letting a tool reinvent the wheel for you. And the result might be hilarious, horrible or not work in reality at all. Or just be the essence of all the other wheels out there. If there is enough precedence, chances are, an ai knows how to replicate this. But if there is enough precedence, chances are also, that there is a library out there. Or a textbook example.
Since you ask how to use ai, why not ask the ai, if the thing you want to do is already in a library or a common feature in an engine. You can use it to teach you how to do things. Chatbots are very good at analyzing language. They might not have insights, but they can analzye grammar. If you study computer science, you might be familiar with compilers. Analyzing grammar is something procedural compilers can do. AI can do this with natural language.
For games, the things that are not coding are rather important. Story, idea, gameplay and such. The mechanical part of translating this into code might be boring at times. Unless you really do this from scratch without an engine.