Nº 035 Artificial intelligence

How to improve a ChatGPT prompt (and one for Claude or Gemini)

How to improve a ChatGPT prompt step by step: the seven parts of a good prompt, a real before-and-after example and a free prompt improver.

To improve a ChatGPT prompt, give the AI what a person would need to do the job well: a role, the context, the exact task, the format of the answer and the limits it must respect. The quickest way is to paste your prompt into the Prompt improver on AIMRAN Tools: it reorganises it into seven sections, adds the missing ones and marks in square brackets the details only you can provide. Fill them in, copy the result and paste it into ChatGPT, Claude or Gemini.

How to improve a ChatGPT prompt, step by step

  1. Go to tools.aimran.es/en/prompts/mejorador.
  2. Paste or type your prompt under “Your prompt”. There is nothing to click: the result appears as you type.
  3. Check the “Quality” panel: a score from 0 to 100 “Before” and “After”, and the “Detected type” (Code, Image, Marketing, Text, Analysis or General). The suggested role, steps and format change with the type.
  4. Look at the “Checklist”. Each section is shown as “Already there”, “Added” or “Added, fill it in”.
  5. In “Improved prompt”, replace every [square bracket] gap with your own details. You can type straight into the box.
  6. Click “Copy” and paste it into the AI chat, or “Save” to keep it in the prompt library (it is stored only in that browser).

The improver is rule-based, not another AI: your text is not sent to any model. That is why it is instant, but it also means it cannot guess your context. The gaps are the part you have to supply.

Example: from one sentence to a complete prompt

This is the kind of prompt that gets generic answers:

write an instagram post about my coffee shop

The improver scores it 16 out of 100 and classifies it as “Text”. It only finds the task; the role, the context, the format and everything else are missing. This is what it returns:

## Role
Act as a professional writer specialising in [type of text].

## Context
[Who you’re writing for, where it will be published and what readers already know]
Audience: [who it’s aimed at]

## Task
Write an instagram post about my coffee shop

## Steps
1. Propose a structure before writing.
2. Develop each part with concrete examples.
3. Make sure there’s no filler or repetition.

## Output format
- [Structure: title, sections, approximate length in words]
- Length: [approximate, in words or paragraphs]
- Tone: [friendly, professional, fun…]

## Constraints
- Don’t make up data; if you don’t know something, say so.
- If important information is missing, ask before answering.

## Example
[Optional: paste an example of the result you expect or of a style you like]

The “After” score rises to 93, but that score measures structure. An empty gap only counts as half, and ChatGPT has no idea what sits behind “[who it’s aimed at]”. Filled in by hand, the same prompt looks like this:

## Role
Act as a social media manager with experience in hospitality.

## Context
I run a specialty coffee shop in Leeds and from this month we open on Sundays from 9 am to 2 pm.
Audience: young people in the neighbourhood who work during the week.

## Task
Write an Instagram post announcing our Sunday opening.

## Output format
- 3 variants, each with an opening line that hooks the reader.
- Length: 120 words at most.
- Tone: friendly, not like an advert.

## Constraints
- No generic hashtags such as #coffee or #love.
- Don’t invent offers I haven’t mentioned.

With this version the AI knows who it is writing for, what it has to announce and when it is done. Notice that you can drop a section that adds nothing (here, the steps): the goal is not to fill in a template but to leave nothing important out.

The seven parts of a good prompt

These are the sections the improver uses. You will not always need all of them, but the more you cover, the less the AI has to assume.

Section What to write Example
Role Who the AI should be “Act as an employment lawyer”
Context Your situation, the audience and the purpose “It’s for my bike shop’s website”
Task What you want, with an action verb “Summarise this contract”
Steps The order it should work in “Start with an outline”
Output format How you want the answer and how long “A table with three columns”
Constraints What it must not do “Avoid jargon”
Example A model of the result you expect A post of yours that did well

Google’s help page on Gemini Gems sums this up in four areas: persona (the role), task, context and format, and says you don’t need all four but using a few will help. Anthropic’s guide suggests a simple test: show your prompt to a colleague with minimal context on the task. If they would be confused, the AI will be too.

Two tips from those guides that the improver cannot do for you:

  • Explain why. Anthropic recommends giving the reason behind an instruction. “Never use ellipses” works worse than “your response will be read aloud by a text-to-speech engine, so never use ellipses”.
  • Use examples close to your case. Anthropic calls examples one of the most reliable ways to steer format and tone, and Google’s guide recommends always including them. If you have a text you like, paste it into the “Example” section.

Does it work the same for Claude and Gemini?

Yes. Role, context, task, format and examples are at the core of all three vendors’ guides, so the same prompt works in ChatGPT, Claude and Gemini. The improver separates sections with Markdown headings (## Role, ## Task…), which the OpenAI guide recommends for marking the boundaries of each part; it also mentions XML tags for separating long documents or data from the rest of the prompt, a technique Anthropic particularly recommends with Claude.

If you paste a long text into your prompt, remember that all of it counts towards the model’s context limit. The token counter shows how much space it takes before you send it.

Common mistakes

  • Leaving the brackets empty. If you paste the improved prompt as it is, the AI will see “[type of text]” and either fill it in its own way or ask you. Those gaps are exactly what changes the answer most.
  • Trusting the score alone. A 93 with empty gaps is no better than a 70 with concrete details. Use it to see what is missing, not as a target.
  • Asking for several things at once. “Write me a post, an email and three headlines” usually gives three weak results. Stick to one task per prompt, or list each deliverable under “Output format”.
  • Not stating a length. Without a limit, the AI tends to ramble. “120 words at most” or “three paragraphs” fixes it.
  • Starting over when it fails. Often it is enough to reply in the same chat with what you didn’t like and why. If it keeps happening with the same kind of task, add that correction to your prompt and save it.
  • Inventing the most exaggerated role possible. “The best expert in the world” adds nothing over “a writer with experience in hospitality”. What helps is a specific role.

Conclusion

A prompt gets better when you give the AI the context you have in your head: who you are, who it is for, exactly what you want and how you want it. The Prompt improver gives you the structure in a second and points out what is missing; the work that really changes the answer is filling those gaps with real details. Once you have a prompt that works, save it and reuse it, changing only the task.

Sources and references

  1. AIMRAN Tools: Prompt improver tools.aimran.es
  2. OpenAI: Prompt engineering developers.openai.com
  3. Anthropic: Prompting best practices platform.claude.com
  4. Google: Prompt design strategies (Gemini API) aistudio.google.com
  5. Google: Tips for creating custom Gems support.google.com

Related tools

Herramientas gratuitas de AIMRAN Tools que funcionan en tu navegador, sin registro.

Ver todas las herramientas
  • Prompt improver

    Reorganises your prompt into role, context, task, steps, format, constraints and example, with a quality score from 0 to 100 before and after.

  • Token counter

    Counts a text’s tokens with the GPT tokenizers, estimates Claude’s and calculates the cost per million tokens.

Artificial intelligence

What an AI agent is and how it differs from a chatbot

An AI agent combines a language model with tools and a decision loop to complete tasks. How it differs from a chatbot, how it works, its risks and when to use one.

4 min read