Skip to content
DFXCommunity

A 7-part prompt-writing framework

A prompt skeleton built from role, task, context, format, constraints, examples, and a self-check, with a weak prompt rewritten step by step.

  • prompts
  • ai
  • framework
Type
Framework
Topic
AI
Time
12 minutes
Inside
3 copy-ready templates, 1 table, and 2 field notes
Added
October 14, 2026

Bad output usually comes from an incomplete prompt, not a weak model. Not every prompt needs all seven parts, but when one is missing from a prompt that matters, you can usually predict where the output will break.

PartQuestionExample
RoleWho should the model think like?"You are a health copywriter who writes content for dental clinics in Istanbul."
TaskWhat exactly should it produce?"Write copy for 3 Instagram carousels."
ContextWhat does the model need to know?Clinic, treatment, audience, brand voice, approved information
FormatWhat should the output look like?"6 slides per carousel, 20 words max per slide, delivered as a table."
ConstraintsWhat must it avoid?No guarantees, no before-and-after, no 'painless/best'; no prices; no medical advice
ExamplesWhat does good output look like?1-2 previously approved posts
Self-checkWhat should it verify before delivering?"Before you deliver, check each carousel against the constraints and fix any violations."

The rest is for members

The rest of this item includes 3 copy-ready templates and 2 field notes. Members see the full version and can copy any template in one click.

Locked sections

  1. Before: a weak prompt
  2. After: the rewritten prompt
All items
  • GuideAI

    AI video workflow: from script to edit

    Which AI tools to use at the script, voice, B-roll, and edit stages, the human check at each step, and the parts of health content you should never hand to AI.

    • ai
    • video production
    • workflow
    9 min2 templatesMembers only
  • GuideAI

    AI image workflow for consistent ad creatives

    A workflow for AI ad images that look like the same brand every time, built on a brand style card, reference images, a fixed prompt core, and a review checklist.

    • ai
    • ad creative
    • midjourney
    10 min2 templatesMembers only
  • GlossaryAI

    AI glossary for marketers: 30 terms

    30 terms, from LLM to RAG and from context window to prompt injection: a plain definition of each and why it matters in clinic marketing.

    • ai
    • glossary
    • basics
    15 min30 entriesMembers only
A 7-part prompt-writing framework · DFX Community