Skip to content
Skillpedia

Prompt Engineering: How to Write Better Prompts

Skillpedia team · updated 2026-12-01 · 12 min read

Short answer: Prompt engineering is the way to write requests to AI that get the right answer on the first try. A good prompt has four parts: role, context, task, and format. When a prompt works well and you use it every week, it's worth turning it into a skill. That way the AI applies the same instructions without you having to paste everything again.

Have you ever asked ChatGPT or Claude for a text and got something generic, too long, or off-tone? Almost always, the problem isn't the AI. It's the request. The AI doesn't know who you are, who you're writing for, or what you consider a good answer. It fills those gaps with what's most common, and what's most common is usually bland.

The good news: writing better prompts doesn't require knowing how to program. It requires clarity. Below, you'll see the structure that works, the techniques that make the biggest difference, 10 prompts to copy, and the final step, which is saving your best prompts as skills.

Table of Contents

  1. What is prompt engineering?
  2. The structure of a good prompt
  3. Techniques that work
  4. 10 ready-to-copy prompts
  5. Mistakes that waste tokens and worsen answers
  6. From prompt to skill
  7. Skills that help with this
  8. Frequently asked questions

What is prompt engineering?

A prompt is the message you send to the AI. Prompt engineering is the practice of writing that message on purpose, testing and adjusting it until the answer is good.

Think of a very fast intern who has read almost everything but just started at your company today. If you only say "write a email for the client," they'll deliver something polite and empty. If you explain who the client is, what happened, what you want them to do, and the company's tone, the email comes out nearly ready.

It's the same with AI. Current models, such as Claude, ChatGPT, and Gemini, understand plain language well. You don't need magic words. You need to give the information a competent person would ask for before starting.

Anthropic itself has a prompting best practices guide in its official documentation. It's worth reading if you want to go deeper. The practical summary is in the next sections.

The structure of a good prompt (role, context, task, format)

Almost every good prompt has these four blocks. You don't always need all of them, but when in doubt, include them.

Block Question it answers Example
Role Who should the AI be? You are an accountant who explains taxes to small businesses.
Context What's the situation? I run a clothing store under the Simples Nacional tax regime, and my revenue went up this year.
Task What exactly do you want? Explain what changes for me if I go over the MEI revenue limit.
Format How should the answer come? In up to 5 short bullet points, without jargon, ending with one practical action.

Put together, it looks like this:

You are an accountant who explains taxes to small businesses. I run a clothing store, and my revenue went up this year. Explain what changes for me if I go over the MEI revenue limit. Answer in up to 5 short bullet points, without jargon, and end with one practical action I can take this week.

Compare that with "what happens if I go over the MEI limit?" The question is the same, but the answer to the first prompt comes at the right length, in the right language, and with a next step.

The block most often missing: context

Most people write the task and forget the context. Things that help a lot:

  • Who the result is for: a boss, a client, a 10-year-old child, a thesis committee.
  • The final goal: make a sale, calm an upset customer, pass an exam.
  • What you've already tried: keeps the AI from suggesting the obvious.
  • Supporting material: paste the text, spreadsheet, or original email instead of summarizing it from memory.

Techniques that work: examples, step by step, and constraints

With the structure in place, these techniques raise the quality of the answer.

1. Show an example

If you want a specific tone, paste a text that already sounds the way you like. "Write in the same style as this post" works better than "write in a casual but professional way." One or two examples are enough.

2. Ask it to think before answering

For multi-step tasks, like comparing plans, building a budget, or analyzing a contract, ask the AI to organize its reasoning first. Something like: "Before answering, list the points you need to consider. Then give your conclusion." This cuts down on silly mistakes.

3. Break big tasks into pieces

Instead of "write my whole e-book," work in stages: first the outline, then one chapter at a time. You review along the way and correct the direction early.

4. Say what you don't want

Constraints save editing time. Examples:

  • Don't use emojis.
  • Don't go over 150 words.
  • Don't make up data. If you don't know, say so.
  • Don't use the words incredible, revolutionary, and innovative.

5. Separate instructions from material

When you paste a long text, make it clear where it starts and ends. You can use simple markers like <texto> and </texto>, or just three dashes before and after. That way the AI won't mistake your email for an instruction.

6. Ask the AI to ask you questions

One of the most underrated techniques: "Before you start, ask me whatever questions you need to do this well." The AI becomes an interviewer, and you uncover the context that was missing.

10 ready-to-copy prompts

Swap what's in brackets for your own case.

  1. Difficult email: You are an experienced customer service manager. A client complained about [problem]. Write a short reply that acknowledges the mistake, explains the fix [solution], and doesn't promise anything we can't deliver. Polite and direct tone.

  2. Meeting summary: Below is a meeting transcript. Summarize it in three parts: decisions made, tasks with owners and deadlines, and open questions. Use bullet points. [paste the transcript]

  3. Social media post: You are the social media manager for a [type of business] in [city]. Write 3 Instagram caption options about [topic], each up to 60 words, with a different call to action.

  4. Explain something hard: Explain [concept] as if I were 12 years old. Use an everyday example and end with a question so I can check if I understood.

  5. Text review: Review the text below. Fix grammar and make the sentences shorter, but keep my style. Then list the 3 most important changes you made. [text]

  6. Weekly planning: I have these tasks: [list]. I work from [time] to [time] and have a meeting on [day]. Build a weekly plan that prioritizes what's due soonest. Table format, one row per day.

  7. Compare options: I'm deciding between [option A] and [option B] for [goal]. Build a table with pros, cons, and estimated cost for each. At the end, tell me which one you would choose in my place and why.

  8. Study for an exam: I'm taking an exam on [subject], about [topic]. Create 10 multiple-choice questions, one at a time. Wait for my answer before showing the next one, and explain when I get one wrong.

  9. Short video script: Write a 45-second script for a vertical video about [topic]. A hook in the first 3 seconds, three main points, and a closing that asks viewers to follow the profile. Note what appears on screen in each part.

  10. Improve a prompt: Here is a prompt I use: [prompt]. Rewrite it so it's clearer and gives more consistent answers. Explain what you changed and why.

The last one is genuinely useful: AI is good at improving prompts. Use it without hesitation.

5 new skills a week. 1 minute to read.

The most viewed skills of the week, explained simply. Free.

No spam. Unsubscribe in one click.

Mistakes that waste tokens and worsen answers

A token is the unit AI uses to measure text. Every message you send and every reply it gives uses tokens, and plans have limits. If you want to understand this better, see what tokens are. These mistakes waste tokens and also make the result worse:

  • A vague request followed by ten corrections. Five lines of context at the start cost less than ten rounds of "no, that's not what I meant."
  • Endless conversations. When the chat gets very long, the AI reloads the whole history with every reply. Changed topics? Open a new conversation.
  • Pasting the whole document when it's not needed. If your question is about chapter 3, send only chapter 3.
  • Asking for long answers by accident. If you only need a yes or no with a reason, say so. Set the length.
  • Instructions that contradict each other. "Be detailed" and "be brief" in the same prompt leave the AI unsure what to prioritize.
  • Repeating the same huge prompt every time. That's the sign it should become a skill, as you'll see next.

For more tricks, the guide on how to save tokens in Claude has the full list.

From prompt to skill: when to package and reuse

A skill is, at its core, a good prompt saved in a file with a name and a description. The AI reads the description, understands when that skill applies, and loads the full instructions only when needed. You stop pasting the same text every time, and the answers become more consistent.

When it's worth turning a prompt into a skill

  • You use the same prompt more than once a week.
  • The prompt has fixed rules: brand tone, report format, review checklist.
  • Other people on your team need the same result.
  • You keep forgetting an important detail when you rewrite the request.

How it works in practice

A skill is a folder with a file called SKILL.md. At the top go the name and a short description. Below are the instructions, written the same way you'd write a prompt:

---
name: resumo-de-reuniao
description: Resume transcrições de reunião em decisões, tarefas com responsável e dúvidas em aberto. Use quando o usuário colar uma transcrição ou pedir ata de reunião.
---

# Resumo de reunião

Ao receber uma transcrição:
1. Liste as decisões tomadas.
2. Liste as tarefas com responsável e prazo. Se faltar prazo, escreva sem prazo.
3. Liste dúvidas que ficaram em aberto.

Regras: tópicos curtos, sem emojis, não invente nomes nem datas.

The description is the most important part, because it's what makes the AI remember to use the skill at the right moment. Be specific about when it should kick in.

In Claude Code, your personal skills live in the ~/.claude/skills folder. The format is an open standard and is also accepted by other tools, as explained in the post about Agent Skills. The full step-by-step guide is in how to create a skill for Claude.

Skill, CLAUDE.md, or a loose prompt?

  • Loose prompt: a task you do once.
  • Skill: a task that repeats and has a right way to be done.
  • CLAUDE.md: general project rules that apply to everything, such as tone, folder structure, and what never to do. See the CLAUDE.md guide.

Before writing from scratch, check Skillpedia. There are thousands of ready-made skills, and someone has likely already packaged the prompt you need.

Skills that help with this

These skills from the directory pair well with anyone learning prompt engineering:

  • prompt-lookup: searches and improves prompt templates in the prompts.chat library. Great for not starting from zero when you need a prompt for a new task.
  • safety-scan: checks outside text, such as emails, web pages, and files, for prompt injection before it reaches the model. Useful if your agent reads content you didn't write.
  • cost-aware-llm-pipeline: helps the agent choose the right model for each task and control spending. It fits the idea of not wasting tokens.
  • dspy: for people who already program a bit. Instead of writing each prompt by hand, you declare inputs and outputs and tune the prompts with data.
  • gemini: lets your agent send a one-off prompt to Gemini CLI and receive the reply. Good for comparing how different models respond to the same prompt.

If you want to save and reuse prompts inside Claude via MCP, take a look at the Claude Prompts server.

Frequently asked questions

Is prompt engineering still worth it with AIs getting smarter? Yes. Models handle vague requests better, but they can't guess your context, your audience, or your quality standard. The better the model, the more it gets out of good context.

Do I need to write prompts in English? No. The main models work very well in Portuguese. Write in the language you want the answer in.

Is a long prompt always better? No. The goal is to include the necessary information without padding. A five-line prompt with clear thinking usually beats a confusing thirty-line one.

Does the same prompt work in ChatGPT, Claude, and Gemini? Mostly, yes, because the structure of role, context, task, and format applies to all of them. Results vary a bit from model to model, so test and adjust. To choose which one to use, see the guide on the best AI for writing.

What's the difference between a prompt and a skill? You write a prompt on the spot. A skill is a prompt saved in a file, with a description, that the AI finds and uses on its own when the task comes up. More details in the guide on skills in Claude.

Further reading

Free MCP

Give your AI 15,000+ skills, for free

Plug the Skillpedia MCP into Claude, Cursor, Codex or any AI. Before each task, it finds the right skill on its own.

  1. 01Get your free key
  2. 02Paste one line into your AI
  3. 03Ask for any task

Full guide on this topic: Claude Skills: What They Are, How to Install, and Best Ones to Try

Search skills →

5 new skills a week. 1 minute to read.

The most viewed skills of the week, explained simply. Free.

No spam. Unsubscribe in one click.