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.
Prompting 6
You are a senior Python engineer...Act as a product manager with 10 years of experience...Complete the following task step by step:...Compare in a table format...Summarize within 200 words...Don't use jargon; explain for beginners...Code 6
Review this code, point out bugs, performance issues and improvements: [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]Write unit tests for the following function covering edge cases: [code]Explain line by line what this code does: [code]Convert this code from JS to Python, keeping equivalent logic: [code]Writing 6
Translate the following Chinese into natural English, keep terms: [text]Rewrite this passage to be more concise and professional: [text]Summarize the following article in 200 words: [long text]Expand this sentence into a 500-word paragraph: [short sentence]Rewrite in a [formal/casual/academic] toneProofread the following text, fixing typos and grammar: [text]Learning 6
Explain [concept] in plain language, with a real-life exampleCompare A and B across performance, usability, ecosystem in a listI'm a beginner; teach [topic] from scratch and list a learning pathUse Socratic questioning to guide me to derive the answer myselfGive me 5 practice questions on [topic] with answersPoint out errors in my understanding: [my understanding]Patterns 5
Example: input "hello" -> output "Hello"; now input "thanks" ->Format reference: 1. Title - description; follow this format...Think step by step...First analyze the cause, then give a solutionAfter answering, self-check for logical gaps, then give a revised versionAdvanced 6
You are [role]; only answer within [scope], refuse out-of-scope requestsBefore answering, first list your assumptionsOutput in Markdown, wrap code with ```Context: [background]; answer based on it: [question]Role-play two experts discussing [topic]If info is insufficient, ask a clarifying question first; don't guessTips
- 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