By practice. It requires some skill too, to constantly remove slop and keep the project from deteriorating. Usually by suggesting good architecture, asking for tests, and rewriting / cleaning up some bad code endlessly. Still much faster than manual development.
But how exactly !
1. Download Cursor
2. Tell it to make you something
3. Get frustrated when it doesn't work
4. Think about how to revise your prompt
5. Repeat from step #2
I prefer Aider, but that's a matter of taste.
Any free versions of Cursor or Aider?
Aider is free and open source, Cursor is free. You can connect Aider to various free models on OpenRouter, some of them state of the art.