ChatGPT Cheatsheet - AI Prompt Reference

The gap between a vague ask and a usable result is usually a prompt-structure gap. This reference organizes role setting, task scaffolding, output constraints, few-shot examples and chain-of-thought into patterns you can reuse, mapped to office, coding and writing workflows. Unlike a raw idea dump, each pattern tells the model who to be, what format to return, and how far to reason. After reading you steer output by adding structure instead of by trial and error.

Dev Tools·35 commands·Last updated 2026-07-21

Prompting 6

You are a senior Python engineer...
You are a senior Python engineer...
Act as a product manager with 10 years of experience...
Act as a product manager with 10 years of experience...
Complete the following task step by step:...
Complete the following task step by step:...
Compare in a table format...
Compare in a table format...
Summarize within 200 words...
Summarize within 200 words...
Don't use jargon; explain for beginners...
Don't use jargon; explain for beginners...

Code 6

Review this code, point out bugs, performance issues and improvements: [code]
Review this code, point out bugs, performance issues and improvements: [code]
This code errors with [error message]; find the cause and fix it: [code]
This code errors with [error message]; find the cause and fix it: [code]
Refactor the following code to be more readable, same behavior: [code]
Refactor the following code to be more readable, same behavior: [code]
Write unit tests for the following function covering edge cases: [code]
Write unit tests for the following function covering edge cases: [code]
Explain line by line what this code does: [code]
Explain line by line what this code does: [code]
Convert this code from JS to Python, keeping equivalent logic: [code]
Convert this code from JS to Python, keeping equivalent logic: [code]

Writing 6

Translate the following Chinese into natural English, keep terms: [text]
Translate the following Chinese into natural English, keep terms: [text]
Rewrite this passage to be more concise and professional: [text]
Rewrite this passage to be more concise and professional: [text]
Summarize the following article in 200 words: [long text]
Summarize the following article in 200 words: [long text]
Expand this sentence into a 500-word paragraph: [short sentence]
Expand this sentence into a 500-word paragraph: [short sentence]
Rewrite in a [formal/casual/academic] tone
Rewrite in a [formal/casual/academic] tone
Proofread the following text, fixing typos and grammar: [text]
Proofread the following text, fixing typos and grammar: [text]

Learning 6

Explain [concept] in plain language, with a real-life example
Explain [concept] in plain language, with a real-life example
Compare A and B across performance, usability, ecosystem in a list
Compare A and B across performance, usability, ecosystem in a list
I'm a beginner; teach [topic] from scratch and list a learning path
I'm a beginner; teach [topic] from scratch and list a learning path
Use Socratic questioning to guide me to derive the answer myself
Use Socratic questioning to guide me to derive the answer myself
Give me 5 practice questions on [topic] with answers
Give me 5 practice questions on [topic] with answers
Point out errors in my understanding: [my understanding]
Point out errors in my understanding: [my understanding]

Patterns 5

Example: input "hello" -> output "Hello"; now input "thanks" ->
Example: input "hello" -> output "Hello"; now input "thanks" ->
Format reference: 1. Title - description; follow this format...
Format reference: 1. Title - description; follow this format...
Think step by step...
Think step by step...
First analyze the cause, then give a solution
First analyze the cause, then give a solution
After answering, self-check for logical gaps, then give a revised version
After answering, self-check for logical gaps, then give a revised version

Advanced 6

You are [role]; only answer within [scope], refuse out-of-scope requests
You are [role]; only answer within [scope], refuse out-of-scope requests
Before answering, first list your assumptions
Before answering, first list your assumptions
Output in Markdown, wrap code with ```
Output in Markdown, wrap code with ```
Context: [background]; answer based on it: [question]
Context: [background]; answer based on it: [question]
Role-play two experts discussing [topic]
Role-play two experts discussing [topic]
If info is insufficient, ask a clarifying question first; don't guess
If info is insufficient, ask a clarifying question first; don't guess

Tips

  • More specific prompts get higher-quality answers; avoid vague requests like 'write me something'.
  • Use 'Don't...' to explicitly exclude unwanted content; it works better than only stating 'what you want'.
  • Break long tasks into multiple turns, each focused on one subtask, better than cramming all needs at once.
  • Giving examples (Few-shot) constrains output format better than description, especially for structured output.
  • Asking to 'think step by step' improves accuracy on complex reasoning (chain of thought).
  • Ask the model to restate your need before answering to reduce misunderstanding.

Official References

Each command links to its official documentation below, so you can verify the latest usage and read deeper.

Maintained by LaoHand

Publicly updated on Jul 21, 2026, continuously proofread against official docs.

Contact Us

Wrong command or description? Send us corrections, business inquiries or product feedback by email.

Contact Us