How to Prompt an AI Coding Assistant: Lessons from Shipping Real Apps
The same AI coding assistant can feel like a senior engineer or like a confused intern, and most of the difference is how you talk to it. After shipping a stack of apps this way, these are the prompting habits that consistently get good code instead of plausible-looking garbage. None of them are clever tricks. They are just good delegation. Describe the outcome, not the implementation Amateur prompt: “add a useState and a button that calls saveDraft.” Better prompt: “users should be able to save a draft and come back to it later.” Tell it what should be true for the user, and let it propose the implementation. You will often get a cleaner approach than the one you would have dictated, because you stopped constraining it to your first idea, and you stay focused on the product instead of the syntax. ...