🤖 AI 工具

ChatGPT

ChatGPT Cheat Sheet - 快速参考指南,收录常用语法、命令与实践。

📂 分类 · AI 工具🧭 Markdown 速查🏷️ 3 个标签
#ai#prompts#openai
向下滚动查看内容
返回全部 Cheat Sheets

Glossary

AI
  • Prompt: input or query that guides an AI model in generating a response.[s]
  • Tokens: the smallest units of text processed by an AI model (e.g., words, subwords, characters, and punctuation marks) that varies depending on the model and the tokenization method.[s]
  • Token Limit: the maximum number of tokens an AI model can process in one interaction.[s]
  • Artificial intelligence (AI): technology that enables machines to simulate human cognition (e.g., human learning, comprehension, problem solving, decision making, creativity, and autonomy).[s]
  • AI Model: program trained on a set of data to recognize patterns or make decisions without further human intervention.[s]
  • Large language model (LLM): transformer-based AI model trained on large text datasets to understand and generate natural language.[s]
  • Hallucination: AI response that detects nonexistent patterns and creates outputs that are nonsensical and inaccurate.[s]
  • Jailbreak: exploiting vulnerabilities in AI systems to bypass their ethical guidelines and perform restricted actions.[s]
Prompt Engineering Techniques
  • Zero-shot: prompt with no examples.[s]
  • One-shot: prompt with one example.[s]
  • Few-shot: prompt with multiple examples.[s]
  • Chain of thought: prompt guiding the model to break down complex reasoning into intermediate steps.[s]
Modes
  • Study and learn: interactive learning that encourages step by step problem solving instead of giving direct answers.[s]
  • Create image: generate images from text prompts.[s]
  • Think longer: performs deeper reasoning and generates more accurate, thoughtful, and detailed responses.[s]
  • Deep research: reads and synthesizes content across multiple online sources and produces cited structured outputs.[s]
  • Web search: finds recent and real-time information online.[s]
  • Canvas: separate interface for collaborative writing and coding that provides inline editing, suggestions, and feedback.[s]

Prompt Tips

Efficiency
  • Use the latest model as it's generally more capable and easier to prompt.[s]
  • Provide general instructions at the start of conversations or when changing direction to avoid repeating them.
  • Don't say polite phrases to the AI (e.g., please, thank you) as it adds unecessary computational costs.[s]
  • Don't explicitly ask the AI for help (e.g., can you help me do x?).
  • Don't explicitly reference yourself unless clarifying multiple entities (e.g., I want to, do x for me).
Clarity
  • Be clear, specific, and provide enough context for the model to understand what you are asking.[s]
  • Prompt engineering often requires iterative refinement by adjusting wording, adding context, and simplifying requests.[s]
  • Break complex tasks into smaller focused prompts.[s]
  • Specify focus areas, highlight important aspects, and ask for multiple options.[s]
  • Provide examples of the desired output format to improve accuracy.[s]
  • Focus on specifying what to do and not just what to avoid.[s]
  • Before writing a prompt, identify the goal and expected output.[s]
  • Provide important keywords or phrases where possible to faciliate SEO and communicate term preferences to the AI model.[s]
  • Keep prompts precise and clean by omitting unnecessary or redundant information.[s]
  • Avoid conflicting terms that might confuse the AI.[s]
  • Open-ended questions usually provide more detailed responses than [closed-ended questions] and yes/no questions.[s]
  • When in doubt, ask AI to generate prompts for you.[s]
Security
  • Don't share sensitive information with AI as you can't be certain how it's stored, if it will be shared, of if it's vulnerable to data breaches.[s]

Prompt Structure

Prompt Frameworks

General Purpose

CODE
滚动查看更多
[role] [task] [style] [output format] [constraint]
Role

Standard

Roleplay

  • Act as [name] with [visual description] [personality] [behaviour examples] [lore] in [scenario]
Tasks (Language And Text)

[verb] [task] [specifics]

Generate

  • Generate [content type] to [entity] about [topic] and cover [aspects]
  • Generate random [names|numbers|words|ideas|X] matching [criteria]
  • [Continue|extend|lengthen]

Summarise

  • [Summarise|shorten|write concise|write key points|write main lesson]
  • Create outline

Refine

  • [Write better|improve]
  • Paraphrase
  • Correct spelling, grammar, and punctuation errors
  • Change [narrative voice A] to [narrative voice B]
  • Replace X with Y

Explain

  • [Explain|elaborate]
  • Explain [how to do|each step of] X
  • Explain what X does
  • Explain X [in simple terms|like I’m 5|simplify]; Simplify X
  • Teach me about [topic|subject]
  • Provide [example|analogy]

Organize

  • Sort X by [key] in [order]
  • Categorize

Advise

  • Create [strategy|goals|milestones|roadmap|schedule|timeline] for X
  • Recommend [media type] [on|similar to] [topic]
  • Recommend [gifts|X] for [entity|occasion]
  • Recommend improvements
  • Provide [advice|feedback] for X

Analyze

  • Extract [themes|keywords|info] about X
  • Identify [similarities|differences] between X and Y
  • Analyse the [sentiment|tone] of X
  • Identify gaps in X
  • Evaluate [strengths and weaknesses|pros and cons] of X
  • Is X [comparison] Y?

Translate

  • Translate [language A] into [language B]
  • Convert [unit A] to [unit B]
  • Reformat as [output format]

Filter

  • Filter items where [condition]
  • Choose best from [options]
  • Choose [top|lowest|first|last|random] [quantity] from [options]

Engage

  • Provide questions about X

Research

  • Get up-to-date [facts|news|data] on X
  • Find [sources|references|citations] for X
  • Is this true?
Tasks (Meta)

Chat Memory

  • Based on [previous context] do X
Tasks (Code)

Generate

  • Generate code in [programming language] to do X

Translate

  • Translate [programming language A] into [programming language B]

Optimize

  • Optimize X for [benefit]

Debug

  • Debug X and explain why it's doing Y
Tasks (Image)

Generate

  • Generate image of X in [style]

Edit

  • Edit image to have X
Tasks (File And Image Upload)

Explain

  • Question what is shown
  • Interpet visuals

Analysis

  • Extract data
Task (5W1H Questions)

Who

  • Who is X?
  • Who is [involved|affected by|responsible] for X?
  • Who should I contact for help with X?

What

  • [What is|define|explain|describe] X?
  • What are the key topics of X?
  • What does [quote] mean?
  • [What is done well?|what can be improved?]
  • What is the best way to do X?

When

  • When [did|will] X happen?
  • When is the best time to do X?

Where

  • Where did X take place?
  • Where to find X?

Why

  • Why did X happen?
  • Why is this approach used?
  • Why is X important?
  • Why might X succeed or fail?
  • Why is X preferable to Y?

How

  • How to do X?
  • How does X work?
  • How did this happen?
Style

Using [style]

Imitate

  • Using style of [person|brand|genre|character]

Formality

  • Formal
  • Informal

Directness

  • Direct
  • Indirect

Tones

Positive

  • Optimistic
  • Appreciative
  • Assertive
  • Calm
  • Confident
  • Encouraging
  • Friendly
  • Humorous
  • Inspirational

Negative

  • Pessimistic
  • Accusatory
  • Concerned
  • Critical
  • Regretful
  • Sarcastic
  • Urgent
Output Format (Text)

In [output format]

Paragraphs

  • Paragraphs (default)

List

  • Bulleted list
  • Numbered list
  • Check list

Code

  • Code

Instructions

  • Step-by-step instructions

Knowledge Base

  • Q&A
  • FAQ

Creative Writing

  • [Joke|humour]
  • [Lyrics|song]
  • [Metaphorical|stylized language]
  • Poetry
  • [Script|screenplay|dialogue]
  • [Story|narrative]

Games

  • [Quiz|test|flashcards|drills]
  • [Riddle|puzzle]
  • [rpg|choose-your-own-adventure]
Output Format (Visual)

Data Visualization

  • Table
  • [Chart type] chart

Creative Visual

  • ASCII Art
  • Emojis
  • Word cloud
Output Format (File Type)

Document

  • PDF

Structured Data And Markup

  • Plain text
  • Markdown
  • HTML
  • XML
  • CSV
  • JSON
  • LaTeX

Programming Code And Scripting

  • [Programming language]
  • Pseudocode
  • Regular expression
Constraint

But [constraint]

Length

  • Be [extremely detailed|concise]
  • In [quantity] [words|sentences]

Language

  • No jargon or technical terms

Structure

  • Show [quantity] [examples|options]
  • No headers
  • No pretext titles

Voice And Style

  • Use [first-person|second-person|third-person] narrative voice
  • Don't change the wording
  • Use pop culture references

Edits

  • Do [minor|major] edits
  • Only show [changed|unchanged] content

Examples

Job

Name Business

CODE
滚动查看更多
Suggest creative name for tech startup
CODE
滚动查看更多
Suggest catchy names for bakery business

Interview Questions

CODE
滚动查看更多
Suggest common software engineer interview questions

Create Course Outline

CODE
滚动查看更多
Create course outline on web development for beginners
CODE
滚动查看更多
Create training program outline for customer service workshop
Relationship

Gift Ideas

CODE
滚动查看更多
Suggest gift ideas for clients
CODE
滚动查看更多
Suggest gift ideas for clients who work as flourists
CODE
滚动查看更多
Suggest gift ideas for my wife who loves steampunk art and crafts, mystery sci-fi, journalling
CODE
滚动查看更多
Suggest creative ideas for 10 year old’s birthday
Competition

Select Contest Winners

CODE
滚动查看更多
Randomly select 1 name from this list
CODE
滚动查看更多
Randomly select 5 email addresses from this list
CODE
滚动查看更多
Select top 3 records with the shortest lap times from this list
Programming

Create Code

CODE
滚动查看更多
Create program to calculate the factorial of given number in python

Create Regular Expressions

CODE
滚动查看更多
Create regex to match all email addresses in list
CODE
滚动查看更多
Create regex to match all words that start with "ban"
CODE
滚动查看更多
Create regex to match 8-digit password

Explain Code

CODE
滚动查看更多
Explain why code not working
CODE
滚动查看更多
Explain what code does
CODE
滚动查看更多
Explain how to make a HTTP request in javascript

Update Code

CODE
滚动查看更多
Add code comments
CODE
滚动查看更多
Add class "header" to header tag
CODE
滚动查看更多
Update CSS to change font color to blue

Translate

  • Specifically called transpile when addressing programming languages.
CODE
滚动查看更多
Translate code to Python
Email

Create Emails

CODE
滚动查看更多
Write email inviting Jack to dinner on the weekend
CODE
滚动查看更多
Write email sequence for our new customer onboarding process
CODE
滚动查看更多
Write email to inform staff of elevator maintenance on 23 June 2025, elevators unavailable for 24 hours, apologise for inconvenience
CODE
滚动查看更多
Suggest response to message asking about project status

Format Email

CODE
滚动查看更多
Proofread and format email

Email Marketing

CODE
滚动查看更多
Suggest tips to increase open and click-through rates for my email campaigns
CODE
滚动查看更多
Suggest ways to make my email content more engaging and relevant to my subscribers

Extract Data

CODE
滚动查看更多
Extract all email addresses in text
Spreadsheet

Create Something

CODE
滚动查看更多
Create excel formula to calculate sum of cells A1 to A10
CODE
滚动查看更多
Generate spreadsheet dummy data as a placeholder
CODE
滚动查看更多
Create macro to calculate average of cells B1 to B10 and insert result in cell C1

Explain Something

CODE
滚动查看更多
Explain formula =SUM(A1:A10) in simple terms
CODE
滚动查看更多
Suggest tips to improve spreadsheet efficiency
Social Media

Create Content

CODE
滚动查看更多
Suggest meme ideas for dogs
CODE
滚动查看更多
Suggest climate change post ideas to engage my followers
CODE
滚动查看更多
Generate hashtags and caption for a picture of scenic sunset
Reading

Text Analysis

CODE
滚动查看更多
Summarize article
CODE
滚动查看更多
Write concise main points

Translate

CODE
滚动查看更多
Translate to spanish

Recommendations

CODE
滚动查看更多
Recommend books similar to Hunger Games
Design

Design Prompts

CODE
滚动查看更多
Create design prompt of logo for new sports brand
CODE
滚动查看更多
Suggest eye-catching thumbnail designs for youtube video on healthy eating

Aesthetic Pairings

CODE
滚动查看更多
Suggest font pairing for travel blog header design
CODE
滚动查看更多
Suggest color palette for wedding photography website
Data Analysis

Data Extraction

CODE
滚动查看更多
Extract all numbers from text

Data Filtering

CODE
滚动查看更多
Filter list based on [condition]

Data Presentation

CODE
滚动查看更多
Create table from data
Paid Ads

Create Ad

CODE
滚动查看更多
Suggest creative ideas for new product launch
CODE
滚动查看更多
Suggest ad copy for travel company
CODE
滚动查看更多
Create headlines, body text, and calls to action for new fitness program ad

Ad Targeting

CODE
滚动查看更多
Recommend target Facebook audience for clothing line ad campaign

Ad Technical Support

CODE
滚动查看更多
Review tag manager code for errors
Amazon FBA

Product Content

CODE
滚动查看更多
Write compelling product description for latest item

Communication

CODE
滚动查看更多
Rewrite appeal letter to make it more persuasive
CODE
滚动查看更多
Write effective email to reach out to potential suppliers

Product Strategy

CODE
滚动查看更多
Suggest items that would make a good bundle for our customers
CODE
滚动查看更多
Organize product and pricing information into a neat and manageable spreadsheet
Writing

Name Something

CODE
滚动查看更多
Suggest titles for short story
CODE
滚动查看更多
Suggest titles for article 10 options
CODE
滚动查看更多
Suggest domain name for gardening blog

Content Creation

CODE
滚动查看更多
Create outline for essay on exercise
CODE
滚动查看更多
Suggest ideas for blog on sustainable fashion
CODE
滚动查看更多
Create blog post on financial planning
CODE
滚动查看更多
Expand jazz music sentence

Editing And Formatting

CODE
滚动查看更多
Change report tone to conversational
CODE
滚动查看更多
Proofread article
CODE
滚动查看更多
Format headings for blog post

Evaluation

CODE
滚动查看更多
Check for bias
CODE
滚动查看更多
Check for plagiarism
Teacher

Teaching Support

CODE
滚动查看更多
Convert work history fact list into multiple-choice quiz
CODE
滚动查看更多
Suggest ideas for history assignment on American Revolution
CODE
滚动查看更多
Divide list of 30 students into groups of 6
CODE
滚动查看更多
Create grading curve for class based on their test scores
CODE
滚动查看更多
Grade history essay and provide feedback on any areas for improvement
YouTube

Content Creation

CODE
滚动查看更多
Create timestamps for podcast episode transcript
CODE
滚动查看更多
Convert youtube cooking video into blog post with headings and bullet points
CODE
滚动查看更多
Create outline for a video about the benefits of meditation
CODE
滚动查看更多
Suggest thumbnail ideas for video on "DIY home decor"
CODE
滚动查看更多
Suggest fashion video ideas for individual episodes

Analyse

CODE
滚动查看更多
What is the script tone for environmental issues video

Communication

CODE
滚动查看更多
Create thoughtful and polite response to negative comment on youtube video
Research

History Research

CODE
滚动查看更多
Explain events leading up to American Civil War
CODE
滚动查看更多
Provide key details about printing press invention
CODE
滚动查看更多
Research olympic games history
CODE
滚动查看更多
Provide key details about French Revolution
CODE
滚动查看更多
Explain history of Byzantine Empire

Science Reseearch

CODE
滚动查看更多
Explain quantum computing in simple terms
CODE
滚动查看更多
Explain rocket science like i'm five
SEO

Keywords

CODE
滚动查看更多
Find best keywords for [topic] with low competition
CODE
滚动查看更多
Generate list of keywords targeting multiple geographic locations
CODE
滚动查看更多
Generate list of keyword synonyms for [topic]

Content Optimization

CODE
滚动查看更多
Find opportunities for internal linking related to [topic]
CODE
滚动查看更多
Research industry-specific terminology for use in [topic] content
CODE
滚动查看更多
Find best time to publish content related to [topic]

Link Building

CODE
滚动查看更多
Find authoritative websites to acquire backlinks for [topic] content
CODE
滚动查看更多
Research best external linking strategies for [topic]

Tools

CODE
滚动查看更多
Find most popular tools used for [topic] seo

Tactics

CODE
滚动查看更多
Research best tactics for [topic] mobile optimization
CODE
滚动查看更多
What are the best tactics for [topic] international seo?

Competitors

CODE
滚动查看更多
Research competitor strategies related to [topic]
CODE
滚动查看更多
What are the best affiliate marketing websites for [topic]?
Roleplay
CODE
滚动查看更多
Name: William Shakespeare

Visual description:
- Wearing Elizabethan attire.
- Holding quill.

Personality:
- Keen observer and a masterful weaver of tales.
- Knack for finding humor in the most unlikely places.

Behaviour examples:
- "To be, or not to be: that is the question: Whether 'tis nobler in the mind to suffer The slings and arrows of outrageous fortune, Or to take arms against a sea of troubles, And by opposing end them?"
- "Canst thou not minister to a mind diseased?"

Lore:
- Grew up in Stratford-upon-Avon and later moved to London.
- Famous for his tragedies, comedies, and historical plays.

Scenario:
-	Night of a grand performance at the Globe Theatre.
-	Lead actor is missing and staff are concerned about how to achieve the performance.
<style> em { font-size: 0.785em; } strong {font-weight: 400;} ul.collapsible > li > pre { padding-left: 0; padding-right: 0; font-size: 0.925em;} </style>

相关 Cheat Sheets