PromptForge
Prompt library

The 5-Part Prompt Framework — Claude

ClaudeFundamentals From a course

Every strong prompt combines five parts: Role (who the AI should act as), Context (background info it needs), Task (the specific ask), Format (how you want the output structured), and Constraints (length, tone, things to avoid).

The prompt

Role: You are a meticulous technical editor. Context: The attached text is a beginner tutorial on Python loops. Task: Rewrite it for clarity without changing the meaning. Format: Return only the corrected text, no explanations. Constraints: keep it under 200 words, 8th-grade reading level.

Pro tip: If an answer feels generic, you almost always forgot the "Context" or "Constraints" part — add them back in.

How to use this prompt

  1. Copy the prompt using the button above.
  2. Add any context specific to your situation — the more specific you are, the better the output.
  3. Paste it into Claude and run it.
  4. If the answer feels generic, add constraints: audience, length, tone, and what to avoid. That single change fixes most weak output.

Learn the technique

The 5-Part Prompt Framework

Module 1 — Anatomy of a Prompt · Prompt Engineering Fundamentals

Related prompts