A good prompt. You don’t just ask it. You tell it how to behave and give it a shot load of context
At some point it's not really worth anymore creating the perfect prompt, just code it yourself. Also saves the time to carefully review the AI generated code.