Content CreationRole Prompting + Structural Constraints

How to Write a Better Prompt for Blog Post Introductions

The difference between a generic AI-written intro and one that hooks real readers isn't the model โ€” it's the prompt. Here's exactly what to change.

Weak Prompt

Write a blog post introduction about productivity.

Why it underperforms:

  • โœ—No target audience defined โ€” AI defaults to generic 'everyone'
  • โœ—No word count โ€” output length is unpredictable
  • โœ—No tone or voice guidance โ€” defaults to formal and bland
  • โœ—No structural constraints โ€” no hook, no promise, no direction
  • โœ—No context about what the article will actually cover
Improved Prompt

You are a productivity coach writing for remote workers who struggle with focus during deep work sessions. Write a 120-word blog post introduction for the article 'Why Your 90-Minute Work Blocks Are Destroying Your Focus'. Open with a relatable scenario (not a statistic), acknowledge the frustration, then end with a one-sentence promise of what readers will learn. Tone: empathetic but direct.

What changed:

  • โœ“Role context establishes expertise and voice
  • โœ“Specific audience narrows the reader picture โ€” the model can now 'see' who it's writing for
  • โœ“Exact word count prevents padding and rambling
  • โœ“Structural template defines the arc: scenario โ†’ frustration โ†’ promise
  • โœ“Tone instruction eliminates generic corporate-speak

Output Comparison

Output from weak prompt

Productivity is important in today's fast-paced world. Many people struggle to get things done efficiently. In this article, we will explore some tips and strategies to help you become more productive in your daily life and achieve your goals.

Output from improved prompt

It's 2pm. You've blocked off two hours, silenced your phone, and finally opened the document โ€” but twenty minutes in, you're checking email again. Sound familiar? For remote workers, the 90-minute deep work block feels like the productivity holy grail. But for many people, it's exactly what's breaking their focus rather than protecting it. Here's what the research actually shows โ€” and what works instead.

Why It Works

The improved prompt gives the model a specific persona, a defined reader, a structural template, and a tonal constraint. Each constraint removes a degree of freedom and forces the output toward something useful. Role prompting activates relevant training patterns. The structural instructions act like a brief โ€” the model knows what the three beats are and fills them in. Word count prevents the AI from padding to fill space.

The Technique: Role Prompting + Structural Constraints

Role Prompting assigns the AI a specific identity ('You are a productivity coach') which shifts tone, vocabulary, and assumed knowledge. Structural Constraints provide a content blueprint โ€” a sequence of beats the output must follow. Together they replace vague intent with a precise brief.

Next step: use it in Claude Code

Prompts like this one are most useful when they are pinned into a CLAUDE.md or wrapped in a slash command. The Claude Code guide shows you how.

Read the Claude Code guide

Frequently Asked Questions

Does this technique work on Claude as well as ChatGPT?

Yes. Role prompting and structural constraints work across all major models โ€” ChatGPT, Claude, Gemini, and Llama. The response may vary in style slightly, but the technique of defining role, audience, structure, and tone improves output quality on all of them.

How specific does the role need to be?

Specific enough to imply expertise and voice. 'You are a writer' is too vague. 'You are a productivity coach writing for remote workers' is better. The role should tell the model two things: what expertise to draw on, and who the intended reader is.

What if I don't know my exact word count?

Give a range like '100-130 words' or use a structural constraint instead: 'Three sentences: hook, conflict, promise.' Either approach bounds the output and prevents filler.