Skip to content

techniques ChatGPT Claude Gemini

How to adapt a prompt for ChatGPT, Claude, and Gemini

How to adapt a prompt for ChatGPT, Claude, and Gemini based on the official OpenAI, Anthropic, and Google guides: what they share and where they differ.

By BibliotecaPrompts editorial team · · 8 min read

Do you need to write differently for each AI? The short answer: not as much as people say. If you want to know how to adapt a prompt for ChatGPT, Claude, and Gemini, the first thing to know is that the official guides from OpenAI, Anthropic, and Google agree on the essentials. The differences are real, but they're nuances. In this article we separate what works for all three from what each provider recommends for its own models, and we only cover what appears in their official documentation.

A quick note before we start: a good part of these guides is written for developers who use the models through code. Here we pull out what's also useful when you're typing in the chat.

What works the same in ChatGPT, Claude, and Gemini

Before looking for tricks for each one, make sure you have the basics down. All three guides recommend:

  • Clear, specific instructions. Anthropic asks you to be clear and direct in its best practices for Claude; Google opens its prompting strategies guide with giving clear and specific instructions.
  • Context. Say what it's for, who will read it, and what data to use.
  • Examples when format or tone matters.
  • Separating the parts of the prompt with headings or tags. OpenAI suggests it in its prompting guide with Markdown and XML-style tags; Anthropic and Google do too.
  • With long texts, the question at the end. Anthropic and Google recommend it explicitly, and OpenAI suggests keeping variable context near the end.
ChatGPT (OpenAI), Claude (Anthropic), and Gemini (Google) rest on the same foundation all three guides recommend: clear instructions, context, examples, separated parts, and, with long texts, the question at the end.ChatGPT (OpenAI), Claude (Anthropic), and Gemini (Google) rest on the same foundation all three guides recommend: clear instructions, context, examples, separated parts, and, with long texts, the question at the end.
What the three guides have in common

If your prompt already does this, it will work reasonably well in all three. If you're missing that foundation, review how to write a prompt and the parts of a prompt.

ChatGPT: what OpenAI recommends

Tell reasoning models apart from fast models

OpenAI's guide distinguishes two kinds of models. Reasoning models are better at complex, multi-step tasks and work well with high-level guidance. GPT models are fast and cheap, but they need explicit, precise instructions. OpenAI compares it to giving a goal to an experienced colleague versus giving concrete steps to someone who's just starting out.

In practice: if you're using a model that reasons, describe the goal and the success criteria well; if you're using a fast one, spell out the steps.

With reasoning models, less is more

In its best practices guide for reasoning models, OpenAI recommends:

  • Simple, direct prompts. These models understand short, clear instructions well.
  • Not asking them to "think step by step." They already reason internally, and that instruction may not help and can even make the result worse.
  • Trying without examples first and adding them only if needed.
  • Being very specific about the end goal and the constraints, like a maximum budget.
Prompt
Before:
Think step by step and very carefully. You're the best expert in the world. Help me with my finances.

After:
I want to pay off my credit card debt of {{debt amount}} in {{time frame}} while still saving {{monthly savings}} a month. My income and expenses are: {{income and expenses}}. Tell me if it's possible and, if not, what I'd need to change. Show the math.

Organize the prompt in blocks

OpenAI suggests organizing instructions into identity, instructions, examples, and context, usually in that order.

Claude: what Anthropic recommends

Treat it like someone new on the team

Anthropic's guide suggests thinking of Claude as a brilliant but new employee who doesn't know your rules. Its test: if a colleague with no context would be confused by your prompt, Claude will be too. It also recommends explaining the reason behind each instruction, because the model generalizes from the explanation.

Use tags to separate the material

Anthropic explains that XML-style tags help Claude interpret prompts that mix instructions, context, examples, and data without ambiguity.

Prompt
<contract>
{{paste the contract text here}}
</contract>

Explain in plain language what this contract requires me to do, what happens if I cancel it early, and which clauses I should ask a lawyer about. If something in the text isn't clear, say so instead of assuming.

Documents at the top, question at the bottom

With long texts, Anthropic recommends putting the documents at the beginning and the query at the end. According to its guide, in its tests this improved answer quality by up to 30%, especially with multiple documents.

Ask for what you want, not what you don't want

To control the format, Anthropic advises saying what to do instead of what to avoid, and it mentions another useful detail: the style of your prompt influences the style of the answer. If you write without Markdown, Claude is more likely to answer with less Markdown.

Instructions that stay saved

In the Claude app you can set up standing instructions. According to the Claude help center, profile preferences apply to all your conversations and are set in your account settings, while project instructions only affect chats within that project.

Gemini: what Google recommends

Direct, no fluff

Google's guide for Gemini 3 asks you to state the goal clearly and concisely, and to avoid unnecessary or overly persuasive language. Phrases like "you're the best expert in the world, this is very important" don't add anything.

The critical stuff first; the specific question last

Google recommends putting the role, behavioral constraints, and output format at the start of the prompt (or in the system instructions). With long texts, it says to give all the context first and leave the specific instruction or question for the end.

If you want detail, ask for it

According to the same guide, Gemini 3 models give direct, efficient answers by default. If you need a long or nuanced explanation, ask for it explicitly.

Prompt
Before:
Explain how compound interest works.

After:
Explain how compound interest works with an example in {{currency}}: savings of {{starting amount}} over {{years}} years. I want a detailed explanation, about four paragraphs long, with the year-by-year math in a list.

Examples, always; delimiters, just one kind

Google is the one that insists most on examples: it recommends always including them, with consistent structure and formatting. On structure, it says both XML-style tags and Markdown headings work well, but you should pick a single format per prompt.

Gems: reusable instructions

In the Gemini app you can create Gems, custom versions of Gemini with your own instructions. Google's help page on Gems explains that you create them from the web version of Gemini, in the Gems section, and that instructions work best when they cover some of these areas: the persona it should take on, the task, the context, and the format. It also offers an option for Gemini to rewrite your instructions from a short description.

Summary of differences

  • ChatGPT (OpenAI): tells reasoning models (give them the goal) apart from fast models (give them the steps); with reasoning models, skip "think step by step" and try without examples first.
  • Claude (Anthropic): explain the why behind each rule, use tags to separate material, documents at the top and question at the bottom, and say what to do instead of what to avoid.
  • Gemini (Google): direct and no fluff, the critical stuff first, the question at the end with long texts, ask for detail if you want it, and use examples with a single kind of delimiter.
Each assistant's own recommendations. ChatGPT (OpenAI): if the model reasons, give it the goal; if it's fast, give it the steps; avoid "think step by step." Claude (Anthropic): explain the why, separate with tags, and say what to do, not what to avoid. Gemini (Google): direct and no fluff, the critical stuff first, and ask for detail if you want it.Each assistant's own recommendations. ChatGPT (OpenAI): if the model reasons, give it the goal; if it's fast, give it the steps; avoid "think step by step." Claude (Anthropic): explain the why, separate with tags, and say what to do, not what to avoid. Gemini (Google): direct and no fluff, the critical stuff first, and ask for detail if you want it.
What's specific to each assistant

What doesn't change: a clear prompt, with context, format, and examples when needed, works in all three. BibliotecaPrompts templates are written on that shared foundation, which is why you can paste them into any of them. Try, for example, Compara fuentes y localiza lo que todavía no sabemos (compare sources and find what we still don't know), Pule el texto que tengo delante sin cambiar mi voz (polish my text without changing my voice), or Anticipa los fallos de tu proyecto con un premortem (anticipate your project's failures with a premortem) in two different assistants and compare.

How to test your prompt in two assistants

  1. Write the prompt once, with the shared foundation.
  2. Paste it as is into two assistants.
  3. Compare: which one followed the format better? Which one made up less?
  4. Adjust only what failed, using the recommendations above.
  5. Save the version that worked best as a template. We explain how in prompt templates with blanks.

To fine-tune even more, check out prompting techniques made simple and the common mistakes when writing prompts.

Frequently asked questions

Does a ChatGPT prompt work in Claude or Gemini?

Yes, in most cases. The three official guides agree on the essentials: clarity, context, format, and examples. Each provider's tweaks are nuances.

What's the main difference when writing for each one?

OpenAI distinguishes between reasoning models and fast models; Anthropic insists on explaining the why and separating material with tags; Google asks you to be direct, put the critical stuff first, and ask for detail explicitly.

Do I have to use XML tags in the chat?

It's not required. They're useful when you paste long texts along with instructions, because they mark where each part starts and ends. For a short request, you don't need them.

Can I save instructions so I don't have to repeat them?

In Claude, with profile preferences or project instructions; in Gemini, by creating a Gem. On BibliotecaPrompts, by saving your templates to your account.

Sources

Related articles