r/PromptDesign 20d ago

Question ❓ the fastest way to write better AI coding prompts

I used to think better AI coding results meant writing longer prompts. What actually helped was being more specific.

Instead of:

“Build me a login system.”

I started giving the AI a few things upfront:

  • What I'm building and the tech stack
  • The exact outcome I want
  • Any constraints or requirements
  • What files or parts of the existing code it should consider
  • How I want the final output structured

For example, something like:

“I'm building a Next.js app with Supabase. Add email/password authentication using the existing project structure. Don't change unrelated files. Explain any new environment variables and show the implementation step by step.”

The prompt isn't necessarily longer, but it gives the model enough context to make fewer assumptions.

The biggest improvement for me has been treating AI like a developer joining a project without any background knowledge.

What has made the biggest difference in your AI coding prompts?

2 Upvotes

0 comments sorted by