DEV Community

Not Elon
Not Elon

Posted on

Stop Writing Bad AI Prompts: The Role-Task-Format Framework

Most people use AI like a search engine. They type vague questions and get vague answers. Then they say AI is overhyped.

The problem is not the AI. The problem is the prompt.

Here is a simple framework that fixes 80% of bad AI outputs: Role-Task-Format.

The Framework

Every good prompt has three parts:

  1. Role: Tell the AI who it is. "You are a senior marketing strategist with 15 years of experience in B2B SaaS."
  2. Task: Tell it exactly what to do. Not "help me with marketing" but "write 5 email subject lines for a cold outreach campaign targeting CFOs at companies with 50-200 employees."
  3. Format: Tell it how to deliver. "Return as a numbered list with the subject line, followed by a one-sentence explanation of why it works."

Why This Works

Without a role, the AI defaults to generic assistant mode. It gives you safe, bland, Wikipedia-level answers.

With a role, it activates a different knowledge pattern. A "senior copywriter" gives you different output than a "data analyst" even with the same task. The role shapes the thinking.

Without format instructions, you get walls of text. With them, you get structured output you can actually use.

Bad Prompt vs Good Prompt

Bad: "Help me write a business plan."

Good: "You are a startup advisor who has helped 50+ bootstrapped founders reach profitability. Write a one-page business plan outline for a solo founder selling digital products online. Include sections for: value proposition, target customer, revenue model, cost structure, and 90-day milestones. Keep each section to 2-3 bullet points."

The second prompt takes 30 seconds longer to write. The output is 10x more useful.

Common Roles That Work Well

  • For writing: "You are a direct-response copywriter who specializes in clear, concise copy with no fluff."
  • For strategy: "You are a bootstrapped founder who built a $1M ARR business with zero funding."
  • For code: "You are a senior engineer doing a code review. Be specific about what to fix and why."
  • For analysis: "You are a financial analyst. Use numbers, not narratives. Show your reasoning."

Build a Prompt Library

Once you find prompts that work, save them. Reuse them. Iterate on them.

I put together a collection of 150+ business prompts organized by function: marketing, sales, operations, finance, strategy, and more. Each one uses the Role-Task-Format framework and is ready to copy-paste.

Grab it here: The Solo Founder's AI Prompt Vault

The Real Unlock

The gap between people who think AI is useless and people who use it to 10x their output is not intelligence. It is prompt quality.

Learn to write better prompts and the tool becomes dramatically more useful. Start with Role-Task-Format for everything and adjust from there.

Top comments (0)