How to Write Better Prompts

Get better results from AI with clearer instructions

Why Prompts Matter

The quality of what you get from AI depends on what you ask for. Vague questions give vague answers. Clear questions give useful results.

Writing good prompts is a skill. Like any skill, it gets better with practice. Here are the basics to get you started.

The Basics

1. Be Specific

Don't say "build me a website." Say "build me a landing page for a fitness app with a hero section, three features, and a signup form."

Bad:

"Make me a button"

Good:

"Make me a blue button with white text that says Subscribe and has rounded corners"

2. Give Context

Tell the AI what you're building, who it's for, and what you've already done. The more it knows, the better it can help.

Bad:

"Fix this error"

Good:

"I'm building a React app. When I click the submit button, I get this error: [error]. Here's my code: [code]"

3. Show Examples

If you want something to look or work a certain way, show the AI what you mean. Share screenshots, links, or describe what you like about other products.

Bad:

"Make it look modern"

Good:

"Make it look like Linear's dashboard: clean, lots of white space, subtle shadows"

4. Break It Down

Big tasks are hard. Small tasks are easy. Instead of asking for a whole app at once, ask for one piece at a time.

Bad:

"Build me a full e-commerce site"

Good:

"Let's start with the product listing page. Show 6 products in a grid with image, name, and price"

5. Iterate

Your first prompt won't be perfect. That's fine. Look at what the AI gives you, then ask for changes. Keep going until it's right.

Example flow:
  1. "Build a navbar with logo and three links"
  2. "Make the navbar sticky at the top"
  3. "Add a mobile menu that shows on small screens"
  4. "Change the background color when I scroll down"

Common Mistakes

  • Being too vague: "Make it better" doesn't help. Say what "better" means to you.
  • Asking for too much: One thing at a time works better than everything at once.
  • Not checking the output: Always read what the AI gives you. It makes mistakes.
  • Giving up too fast: If the first result isn't right, try again with different words.

The Only Way to Get Better

Practice. That's it. The more you use AI tools, the better you'll get at talking to them.

Start with small projects. Build a personal website. Make a simple tool you'd use. Each project teaches you something new about how to ask for what you want.

Put it into practice

Start learning and building today.

Get Started Free