Tutorials / Prompt Engineering with ChatGPT / A library of reusable prompt templates

A library of reusable prompt templates

15 min read text
Course contents (19 lessons)
  1. Understanding the tool
  2. What a language model is, in plain words
  3. How ChatGPT works from a user's point of view
  4. Building a good prompt
  5. The anatomy of a good prompt
  6. Being specific: how to remove guesswork
  7. Showing examples: few-shot prompting
  8. Asking for step-by-step reasoning
  9. Controlling and improving answers
  10. Controlling length, tone and format
  11. Iterating: how to improve an answer with follow-ups
  12. Custom instructions and memory
  13. Working with files and images
  14. ChatGPT for real tasks
  15. Using ChatGPT for writing: emails, reports and rewrites
  16. Using ChatGPT for studying and learning
  17. Using ChatGPT for coding and technical work
  18. Using ChatGPT for data, spreadsheets and business tasks
  19. Prompt templates
  20. A library of reusable prompt templates
  21. Reliable and safe use
  22. Avoiding hallucinations and checking facts
  23. Privacy and safe use
  24. Workflows and final project
  25. Building repeatable workflows and custom assistants
  26. Final project: build your own prompt toolkit

Why keep templates

Good prompts take thought. Once you have written one that works, it would be a waste to rebuild it from nothing next week. A template is a prompt with blanks, written once and reused. Keep yours in a notes app, a document, or in the settings of a custom assistant. Below are ten that I use or have seen work well. Replace each part in square brackets, and delete lines that do not apply.

1. Summary for a purpose

Summarise the text below for [reader] who needs to [what they will do].
Give: (1) the main point in one sentence, (2) up to [number] key
details, (3) anything they must do and by when.
Do not add anything that is not in the text. If something is unclear
or missing, say "not stated".

[paste text]

Works because the reader and the use shape what counts as important, and the "not stated" rule discourages guessing.

2. Email from facts

Write an email from [me, role] to [recipient, relationship].
Facts it must include: [list].
What I want the reader to do: [action] by [date].
Tone: [e.g. polite and direct]. Length: under [number] words.
Do not include: [phrases or promises to avoid].
Give me a subject line too.

3. Explain it at my level

Explain [topic] to me.
My background: [what you already know].
Use [one / two] everyday comparison(s) and one worked example.
Keep it under [number] words. End with one question to check my
understanding.

4. Decision helper

I need to decide between [option A] and [option B] for [situation].
My priorities, in order: [1, 2, 3]. Constraints: [budget, time, other].
First list the assumptions you are making. Then compare the options on
my priorities in a table. Then give a recommendation and say what
would change your mind. Point out anything I have not considered.

The ordered priorities matter. Without them the model weighs everything equally, which is rarely how real choices work.

5. Brainstorm with variety

Give me [number] ideas for [goal].
Context: [audience, budget, limits].
Make them differ: include at least [two] safe ideas, [two] unusual
ideas, and [one] that costs almost nothing. For each, give a
one-line description and the first step to try. Avoid: [things already tried].

6. Rewrite with rules

Rewrite the text below.
Goal: [shorter / clearer / friendlier / more formal].
Keep: [facts, names, numbers, the opening line].
Change: [what to cut or restructure].
Do not add new information.
Afterwards, list the three biggest changes you made.

[paste text]

7. Critical review

Act as a sceptical reviewer of the [plan / draft / idea] below.
List the [five] biggest weaknesses in order of importance. For each,
say why it matters and suggest one concrete fix. Do not praise it first,
and do not be vague.

[paste text]

Asking directly for weaknesses avoids the polite habit of "this is great, but consider..."

8. Extract into a table

From the text below, extract [items] into a table with the columns
[column 1, column 2, column 3].
Use "not stated" where the text gives no value. Do not guess.
Return only the table.

[paste text]

9. Role-play practice

Play the role of [person, e.g. a hiring manager at a small company].
I will practise [situation, e.g. a job interview for a junior designer].
Ask me one question at a time and wait for my answer. After each answer,
give brief feedback (one thing good, one thing to improve) before the
next question. After [six] questions, give an overall summary.

10. Step-by-step plan

Help me plan [goal] by [deadline].
What I have: [time per week, tools, budget]. Where I am now: [starting point].
Give a plan in weekly steps as a table with the columns Week, Tasks,
Done when. Keep tasks small enough to finish in one sitting. Point out
the step most likely to slip and how to protect it.

How to build your own

When a prompt gets a good result, do not just close the chat. Turn it into a template in four steps.

  1. Copy the prompt that worked.
  2. Find the parts that change each time (names, facts, numbers, audience) and replace them with labelled slots in brackets.
  3. Keep the parts that make it work: the layout, the constraints, the "do not guess" rules.
  4. Test it once on a new case, fix what breaks, then save it with a short name and a note on when to use it.

You can even ask the model to help:

Here is a prompt that worked well for me, and the answer I liked.
Turn the prompt into a reusable template with clearly labelled
placeholders in [square brackets]. Add a one-line note for each
placeholder explaining what to put there.

Prompt: [paste]
Answer: [paste]

Do not worship templates

A template is a starting point. It handles the structure and leaves the thinking to you. If you fill in the blanks with vague words, the result is vague. If the task is unusual, adapt the template, or write a new prompt using the five parts you learned earlier: role, task, context, format and constraints. The skill is not collecting prompts, it is knowing why they work, so that you can fix them when they do not.

The common mistake

Leaving placeholders in. Sending "Write an email to [recipient]" with the brackets still there gives you a strange result. The second mistake is letting a template grow with every extra rule until nobody can follow it. If a rule is not changing results, remove it. Short templates are followed better.

Try it yourself

  1. Pick three templates above that match your real work and fill them in with real examples.
  2. Find one prompt from your history that worked well and turn it into a template using the four steps.
  3. Test one template on a case it was not made for, and note what needs changing.
text
Summarise the text below for [reader] who needs to [what they will do].
Give: (1) the main point in one sentence, (2) up to [number] key
details, (3) anything they must do and by when.
Do not add anything that is not in the text. If something is unclear
or missing, say "not stated".

[paste text]

This course is free to read. Create a free account to enrol, save your progress and pick up where you left off.

Sign up free I already have an account