Skip to content
GLM5.org
prompts/*

Prompt library

Prompts that work well with GLM-5

Tested prompt templates for coding, writing, learning, work, image questions and careful reasoning. Copy one, or open it directly in the chat and fill in the brackets.
Line illustration of cards with lines of text fanned out on a grid

36 prompts

1.1Coding6

Explain this code

Explain what this code does, line by line where it matters, then summarise it in two sentences. Point out anything surprising. [paste code]

Write unit tests

Write unit tests for this function using [framework]. Cover normal cases, edge cases and invalid input. Explain in one line what each test checks. [paste function]

Convert between languages

Convert this [source language] code to idiomatic [target language]. Keep the behaviour identical and note any library differences. [paste code]

Regex with explanation

Write a regular expression that matches [description]. Explain each part and give three strings that match and three that do not.

Optimise a query

This SQL query is slow on a table with [N] rows. Suggest indexes and a rewritten query, and explain why each change helps. [paste query]

Design an API

Design a REST API for [feature]. List endpoints with method, path, request and response JSON examples, and error codes.

1.2Writing6

Shorten without losing meaning

Cut this text by half while keeping every important point. Keep my tone. [paste text]

Change the tone

Rewrite this message to sound [friendly / formal / confident], without changing the facts. [paste message]

Headline options

Give me 10 headline options for this article, from plain to bold. Mark the three you think are strongest and why. [paste summary]

Outline first

Create a detailed outline for a [length] article about [topic] for [audience]: sections, key points and one example per section.

Cover letter

Write a cover letter for this job using my experience below. Keep it under 250 words, concrete and without clichés. Job: [paste] My experience: [paste]

Proofread

Proofread this text. Return the corrected version and a list of changes. [paste text]

1.3Learning6

Explain like I'm new

Explain [topic] to a complete beginner in under 200 words, with one analogy and one example.

Flashcards

Turn these notes into 15 question-and-answer flashcards. Keep answers short. [paste notes]

Compare two concepts

Compare [concept A] and [concept B] in a table: definition, when used, example, common confusion.

Revision plan

I have [N] weeks before my [exam]. Make a weekly revision plan covering these topics: [topics]. Include practice days.

Check my answer

Here is a question and my answer. Tell me if it is correct, what is missing, and how to improve it. Question: [paste] My answer: [paste]

Practise a language

Let's practise [language] at [level]. Have a conversation with me about [topic]. After each of my replies, correct my mistakes briefly, then continue.

1.4Work6

Meeting summary

Summarise these meeting notes into decisions, action items with owners, and open questions. [paste notes]

Weekly update

Turn these bullet points into a clear weekly update for my manager: progress, blockers, next week. Under 150 words. [paste bullets]

Pros and cons

List the pros and cons of [decision] for a [team / company] like ours: [context]. End with a recommendation and what would change it.

Job description

Write a job description for a [role] at a [company type]: responsibilities, must-have and nice-to-have skills, and what makes the role interesting.

Customer reply

Write a reply to this customer message. Be empathetic, explain the next steps clearly and keep it under 120 words. [paste message]

Spreadsheet formula

Write a [Excel / Google Sheets] formula that [goal]. My columns are: [describe]. Explain how it works.

1.5Images6

Describe this image

Describe this image in detail: what is in it, the setting, any text, and anything unusual.

Read a chart

Read this chart. Summarise the main trend, the highest and lowest values, and anything that looks odd.

Screenshot to code

Recreate this user interface screenshot as clean HTML and CSS. Use semantic elements and a responsive layout.

Translate text in a photo

Translate all visible text in this photo into [language], keeping the layout as a list.

Explain an error screenshot

This screenshot shows an error. Explain what it means and the most likely ways to fix it.

Extract a table

Extract the table in this image as Markdown. Keep the column headers and mark any cells you cannot read.

1.6Reasoning6

Step-by-step problem

Solve this problem step by step. State your assumptions, show each step, and check the final answer another way. [paste problem]

Find the flaw

Here is an argument. Identify any logical flaws, hidden assumptions or missing evidence, then give the strongest version of it. [paste argument]

Estimate

Estimate [quantity] using a Fermi approach. Show each assumption with a number and give a low, middle and high estimate.

Decision matrix

Help me choose between [options] based on [criteria]. Build a weighted decision matrix, explain the weights, and show the result.

Plan backwards

My goal is [goal] by [date]. Work backwards to today and list the milestones and the first three actions I should take this week.

Devil's advocate

I plan to [plan]. Argue against it as convincingly as you can, then tell me which objections are the most serious.

§ 02Tips

Getting better answers from GLM-5

Give real context

Paste the actual text, code or data. GLM-5.3 and GLM-5.3 Flash handle long inputs well.

Say the format

Ask for a table, a list, JSON or a short email. The model follows format instructions closely.

Use Think deeper

For maths, logic and debugging, turn it on. For quick questions, leave it off for speed.

Iterate

Treat the first answer as a draft. Ask for changes, or edit your message and resend.

§ 03FAQ

About these prompts

Q01Do I have to use these prompts exactly?

No. They are starting points. Replace the bracketed parts with your own details and change anything you like.

Q02Which model should I use for these prompts?

GLM-5.3 Flash works well for most of them and is required for the image prompts. Use GLM-5.3 for the coding and reasoning prompts when the task is hard.

Q03Are the prompts free to use?

Yes. Copy them, adapt them and use them anywhere.

Try it now

Ask GLM-5.3 something real.

No account, no card, no install. Type a question and watch GLM-5.3 Flash answer in seconds — switch to GLM-5.3 for the hardest problems.

Open the free chatFree daily limits apply so the chat stays open for everyone.