Skip to content
Search
Techniques9 min read

How to Prompt Reasoning Models: OpenAI's Seven-Part Prompt Structure, Explained

Brian Gagne
How to Prompt Reasoning Models: OpenAI's Seven-Part Prompt Structure, Explained

Updated November 2026. The seven parts come from OpenAI's GPT-5.5 guide. OpenAI has shipped newer models since, and its current guide doesn't repeat this structure, so test it on the model you use.

If you want to know how to prompt reasoning models, OpenAI's GPT-5.5 guide is a good place to start. Its migration advice is blunt: "Begin migration with a fresh baseline instead of carrying over every instruction from an older prompt stack" (OpenAI, Using GPT-5.5).

The advice is to start from a short baseline instead of carrying old prompts over. Long persona definitions, step-by-step chains and emotional primers are the first things to cut. OpenAI's guide says over-specified process "can add noise, narrow the model's search space, or lead to overly mechanical answers".

The reasoning is that current models plan their own steps, so scaffolding written for older models often duplicates work the model already does. Current reasoning models from OpenAI, Anthropic and Google reason before they answer, and each API exposes a setting for how much (OpenAI, Reasoning models; Anthropic, Effort; Google, Thinking).

So what replaces the old approach? A seven-part structure that defines the outcome and the limits instead of scripting each step.

The Seven Parts (and What They Actually Do)

Here's the structure stripped to its essentials:

  1. Role: who the model is and what it's for, in one or two sentences.
  2. Personality: how it sounds. OpenAI lists tone, warmth, directness, formality, humor, empathy and polish.
  3. Goal: the outcome you want, not the route to it.
  4. Success criteria: how you and the model will know the work is done well.
  5. Constraints: what it must and must not do, including tool rules.
  6. Output: the shape of the answer.
  7. Stop rules: when to finish, and when to stop and ask.

The guide also covers collaboration style, which controls "when it asks questions, when it makes assumptions", and preambles, "a brief visible update that acknowledges the request and states the first step". Both are useful, and both sit inside the parts above rather than replacing them. OpenAI says to keep personality and collaboration style short and not to let them replace "clear goals, success criteria, tool rules, or stopping conditions".

We used to stuff tone and collaboration behavior into the role definition ("You are a friendly, helpful expert who always asks clarifying questions..."). In this structure, both go in the Personality part, which the guide describes as "tone, demeanor, and collaboration style".

Kill Your Darlings: What to Delete

Three categories of prompt patterns are the first to cut on reasoning models.

Verbose personas. "You are an expert with 20 years..." doesn't make the model smarter. On a current reasoning model, it's noise. One or two sentences of role prompting are enough.

Step-by-step instructions. "First, analyze the query. Second, identify bottlenecks. Third, suggest improvements. Fourth..." This constrains the model's reasoning path. It has its own reasoning loop now. Tell it the outcome you want and let it figure out the steps.

Emotional primers. "This is extremely important for our company's future." "Take your time and be thorough." "The user is counting on you." OpenAI's guide doesn't name them, but its structure advice applies: "Keep each section short. Add detail only where it changes behavior."

Before and After: A Real Prompt Transformation

Let's take a common enterprise prompt and apply the structure.

The Old Way

The Prompt:

You are a senior cybersecurity analyst with 15 years of experience
in threat detection and incident response. You have deep expertise in
MITRE ATT&CK, NIST frameworks, and enterprise SIEM platforms.

This is extremely important -- our SOC team needs accurate analysis.

Please carefully analyze the following log entries step by step:
1. First, identify any anomalous patterns
2. Then, classify each anomaly using MITRE ATT&CK techniques
3. Next, rate severity from 1 to 10
4. Finally, provide detailed remediation steps

Be thorough and take your time. Here are the logs:
[logs]

That's 90+ tokens of scaffolding before the model even sees the data.

The New Way (Seven-Part Structure)

The Prompt:

### Role
SOC analyst triaging alerts.

### Personality
Direct. If the data is ambiguous, say so and say why.

### Goal
Decide which alerts escalate to Tier 2 by end of shift. These are firewall and endpoint logs from a mid-size software company.

### Success criteria
Every alert has an ATT&CK technique, a severity and an escalate or dismiss call, with any assumption stated.

### Constraints
Work with what's here; don't ask clarifying questions. Don't invent log fields.

### Output
Table: timestamp | event | ATT&CK technique | severity (1-10) | action | reasoning (one line)

### Stop rules
Stop after the table. If more than a third of alerts can't be classified, say so instead of guessing.

[logs]

Why This Works: The role is four words. The goal carries the operational detail the model needs: what the logs are and what decision is due by end of shift. Success criteria say what a finished answer contains, constraints tell it to work with what's there and state assumptions, and stop rules say when to finish or flag that the data isn't enough. That's more useful information in fewer tokens.

Expected Output:

Timestamp Event ATT&CK Severity Action Reasoning
04:23:17 Outbound DNS to known C2 domain T1071.004 9 Escalate Domain on TI feed, unusual hour, high confidence
04:25:03 Failed RDP from internal host T1021.001 4 Dismiss Single attempt, known admin workstation, likely fat-finger
04:31:44 Powershell base64 execution T1059.001 7 Escalate Encoded payload from non-admin user, assumption: not a scheduled task

The output is tight, actionable, and flags its own assumptions. The old prompt never asked for assumptions, so there was no reason to expect them in its output.

This Isn't Just a GPT Thing

Here's what makes the seven-part structure worth learning: you can write the same parts for any major model and change only the delimiters.

For Claude, wrap each section in XML tags instead of markdown headings. Claude's documentation recommends XML tags for separating the parts of a prompt and leaves the tag names up to you, so <role>, <goal> and <stop_rules> work fine. Anthropic's guide says "XML tags help Claude parse complex prompts unambiguously" (Anthropic, Prompting best practices). The structure is the same; the delimiter changes.

The Prompt (Claude version):

<role>SOC analyst triaging alerts.</role>

<personality>Direct. Flag ambiguity explicitly.</personality>

<goal>Decide which alerts escalate to Tier 2 by end of shift. Firewall and endpoint logs from a mid-size software company.</goal>

<success_criteria>Every alert has an ATT&CK technique, a severity and an escalate or dismiss call, with any assumption stated.</success_criteria>

<constraints>Work with what's here. Don't invent log fields.</constraints>

<output>Table: timestamp | event | ATT&CK technique | severity | action | reasoning</output>

<stop_rules>Stop after the table. If more than a third of alerts can't be classified, say so.</stop_rules>

Why This Works: XML tags give Claude clear boundaries between sections, which is what its docs recommend them for. Same concepts, different packaging: this version uses the same seven parts as tags. You also get the bonus of being able to reference sections by tag name in follow-up turns ("update the <goal> to include...").

For Gemini, either format works, but consistency matters more than choice. Pick markdown or XML and stick with it throughout the prompt. Google's prompting guide lists "Be precise and direct" as a core principle and says XML-style tags or Markdown headings both work, as long as you "choose one format and use it consistently within a single prompt" (Google, Prompt design strategies).

OpenAI's reasoning guide says reasoning-capable GPT-5 models "usually work best when you give them a clear goal, strong constraints" without "prescribing every intermediate step" (OpenAI, Reasoning models). The delimiters change between vendors, and the parts stay the same.

Short Prompts Still Need an Uncertainty Rule

Short prompts carry one risk worth planning for. OpenAI's structure gives it a home: its stop rules cover when to "abstain".

Short prompts remove scaffolding, and they can also remove the line that told the model what to do when it doesn't know.

So if you strip a prompt down, check that you haven't removed the guardrails with the scaffolding. For truth-critical work in legal, medical or financial settings, a short prompt still needs an explicit rule for uncertainty.

The fix: add a line to the Constraints section. Something like "If you're less than 90% confident in a factual claim, say 'unverified' and cite what you'd need to confirm it." That's one sentence, and it gives the model a sanctioned way to say it doesn't know. For more on this, see the hallucination entry and our verification prompt pattern.

The 40% Compression Test

OpenAI's migration advice: "Start with the smallest prompt that preserves the product contract, then tune reasoning effort, verbosity, tool descriptions, and output format against representative examples" (OpenAI, Using GPT-5.5).

Here's a practical way to apply that. Take your longest production prompt. Cut it by 40%. Run both versions on 20 real inputs. Compare the outputs.

If the shorter version holds up on your 20 inputs, keep it. If it doesn't, add back only the lines whose removal caused the drop.

Each vendor exposes a reasoning setting: reasoning.effort at OpenAI, output_config.effort at Anthropic and thinking_level at Google, and the supported values depend on the model (OpenAI; Anthropic, Effort; Google). OpenAI's guide warns that "higher reasoning effort isn't automatically better" and says to increase effort "only when evals show a measurable quality gain". See our guide to reasoning effort.

What This Means for Your Workflow

The shift from prompt engineering to context engineering is real. The skill isn't writing clever instructions anymore. It's curating the smallest, highest-signal context window, giving the model exactly what it needs and nothing more.

The seven-part structure is a good framework for that. It separates who the model is and how it sounds from what you want, how you'll judge it, what it mustn't do, what shape the answer takes and when to stop. Old-style prompts often jammed all of that into one paragraph.

Try it this week: take one prompt you use daily, rewrite it in seven parts, and compare the output. Expect to delete a good share of what you wrote, and keep the shorter version only if your comparison shows it holds up.

More in Techniques.


If your team is still running prompts built for older models and wants to update them for reasoning models, Kief Studio runs hands-on training sessions that cover cross-model prompt architecture. Connect with us on Discord or schedule a session.

Frequently asked questions

How do you prompt a reasoning model?

Give it the goal, what success looks like, the constraints and when to stop, and leave the steps to the model. OpenAI's reasoning guide says its reasoning-capable GPT-5 models "usually work best when you give them a clear goal, strong constraints" without "prescribing every intermediate step" (OpenAI, Reasoning models).

Should I still write "think step by step" for a reasoning model?

Usually not. Reasoning depth is an API setting on current models, and OpenAI's migration advice is to reduce detailed step-by-step process guidance (OpenAI, Using GPT-5.5). If answers look shallow, raise the effort setting and test. Each vendor names it differently; on Anthropic's API it's output_config.effort (Anthropic, Effort).

What are the seven parts of OpenAI's prompt structure?

Role, Personality, Goal, Success criteria, Constraints, Output and Stop rules, in that order (OpenAI, Using GPT-5.5).

Should I put my JSON schema in the prompt?

Where you can, no. OpenAI's checklist says to "remove output schema definitions from the prompt where possible" and use Structured Outputs, which "constrains completed, non-refusal model output to your supplied JSON Schema" (OpenAI, Structured Outputs).

Do I need to rewrite old prompts when I switch models?

Start from a short baseline and add back only what your tests show you need. OpenAI recommends a "fresh baseline instead of carrying over every instruction from an older prompt stack" (OpenAI, Using GPT-5.5).

Rather have someone set it up for you?

That's a fair call. LTFI, the agentic business operating system from Kief Studio, can set up the work these guides describe and run it with you. No website yet? Kief Studio will build you one for free.

Go further on kief.studio