ChatGPT Cheat Sheet

Client-Side New

Master ChatGPT with this complete cheat sheet covering prompting techniques, coding assistance, writing tips, marketing strategies, data analysis, and productivity hacks. Learn role prompting, chain-of-thought reasoning, few-shot examples, and other advanced techniques to get better results from ChatGPT. Browse by category, search by keyword, and copy prompts directly.

35 entries found

Prompting Techniques

Role Assignment

Act as a [role] with [years] of experience in [field]. Your task is to [objective].

Assigning a role gives ChatGPT a persona and expertise level, producing more focused and authoritative responses tailored to the domain.

Prompting Techniques

Chain of Thought

Solve this step by step. Show your reasoning at each stage before giving the final answer:
[your question]

Asking for step-by-step reasoning reduces errors on complex problems by forcing the model to work through intermediate steps rather than jumping to a conclusion.

Prompting Techniques

Few-Shot Examples

Classify the sentiment of these reviews.

Review: "Loved it!" -> Positive
Review: "Terrible quality." -> Negative
Review: "It was okay." -> Neutral

Review: "[your text]" ->

Providing labeled examples before the actual task teaches the model your expected format and criteria, dramatically improving accuracy on classification and formatting tasks.

Prompting Techniques

Output Format Control

Respond in the following JSON format only. No additional text.
{
  "summary": "...",
  "key_points": ["...", "..."],
  "sentiment": "positive | negative | neutral"
}

Specifying the exact output format ensures structured, parseable responses. Adding "no additional text" prevents the model from adding unwanted commentary.

Prompting Techniques

Constraint Setting

Explain [topic] in exactly 3 sentences. Use no jargon. Target audience: a 10-year-old.

Setting explicit constraints on length, vocabulary, and audience forces concise and appropriately targeted output instead of verbose defaults.

Prompting Techniques

Iterative Refinement

Here is your previous response:
[paste response]

Now improve it by:
1. Making it more concise
2. Adding specific examples
3. Using a more conversational tone

Feeding back a previous response with targeted improvement instructions lets you iteratively refine output without starting from scratch.

Coding

Code Review

Review this code for bugs, security issues, and performance problems. For each issue found, explain the problem and provide a fix:

```
[paste code]
```

Structured code review prompts catch more issues than vague requests. Asking for explanations alongside fixes helps you learn and verify the suggestions.

Coding

Convert Code Between Languages

Convert this [source language] code to [target language]. Preserve the logic, use idiomatic patterns for the target language, and add comments where the approach differs:

```
[paste code]
```

Requesting idiomatic patterns ensures the output follows target language conventions rather than producing a literal translation that looks foreign.

Coding

Write Unit Tests

Write unit tests for this function using [testing framework]. Cover edge cases including empty input, null values, and boundary conditions:

```
[paste function]
```

Specifying the testing framework and edge cases produces immediately usable tests rather than generic examples that miss important scenarios.

Coding

Explain Code

Explain this code line by line. Assume I am a junior developer. Highlight any non-obvious behavior:

```
[paste code]
```

Setting the audience level and asking for non-obvious behavior produces explanations that focus on the tricky parts rather than stating the obvious.

Coding

Debug Error

I am getting this error:

```
[paste error message]
```

Here is the relevant code:

```
[paste code]
```

Explain the root cause and provide a fix.

Including both the error message and relevant code gives enough context for accurate diagnosis. Asking for the root cause prevents surface-level fixes.

Coding

Generate Regex

Write a regex pattern that matches [describe pattern]. Provide the regex, an explanation of each part, and 3 test strings that match and 3 that do not.

Asking for explanations and test cases alongside the regex makes it easier to verify correctness and modify the pattern later.

Writing

Rewrite for Tone

Rewrite the following text in a [professional/casual/humorous/formal] tone. Keep the same meaning and key information:

[paste text]

Tone adjustment is one of ChatGPT's strongest capabilities. Specifying "keep the same meaning" prevents the model from adding or removing information.

Writing

Summarize Long Text

Summarize the following text in [number] bullet points. Each bullet should be one sentence and capture a distinct key idea:

[paste text]

Constraining to bullet points with one sentence each forces concise summaries. Requiring distinct ideas prevents redundant points.

Writing

Proofread and Edit

Proofread this text. Fix grammar, spelling, and punctuation errors. List each change you made and why:

[paste text]

Asking for a list of changes makes it easy to review edits and learn from mistakes rather than accepting changes blindly.

Writing

Blog Post Outline

Create a detailed outline for a blog post about [topic]. Include:
- A compelling headline
- Introduction hook
- 5 main sections with subpoints
- Conclusion with call to action
Target word count: [number]

Detailed outline prompts produce structured starting points that are faster to flesh out than generating a full draft and restructuring it.

Writing

Email Drafting

Write a [type] email to [recipient]. Context: [situation]. Goal: [what you want to achieve]. Tone: [professional/friendly/urgent]. Keep it under [number] words.

Providing context, goal, and tone constraints produces emails that are ready to send with minimal editing.

Marketing

Ad Copy Variations

Write 5 ad copy variations for [product/service]. Target audience: [audience]. Unique selling point: [USP]. Each variation should be under 90 characters and include a call to action.

Multiple variations enable A/B testing. Character limits match platform constraints for Google Ads or social media.

Marketing

SEO Meta Description

Write a meta description for a page about [topic]. Requirements:
- Between 150-160 characters
- Include the keyword "[keyword]"
- Include a call to action
- Make it compelling for search results

Character count constraints ensure the description displays fully in search results without truncation.

Marketing

Customer Persona

Create a detailed customer persona for [product/service]. Include:
- Demographics (age, income, location)
- Pain points (3-5)
- Goals and motivations
- Preferred channels
- Objections to buying
- How our product solves their problem

Structured personas help align marketing messaging across channels. Including objections helps prepare counter-arguments for sales copy.

Marketing

Social Media Content Calendar

Create a 1-week social media content calendar for [brand/product] on [platform]. Include:
- Post topic
- Caption (under 200 characters)
- Best posting time
- Hashtags (5 per post)
- Content type (image/video/carousel)

Content calendars with specific formats and constraints produce immediately actionable plans rather than vague content ideas.

Marketing

Landing Page Copy

Write landing page copy for [product/service]. Structure:
- Headline (under 10 words)
- Subheadline (under 20 words)
- 3 benefit-driven bullet points
- Social proof section
- CTA button text
Tone: [confident/friendly/urgent]

Breaking landing page copy into sections with word limits produces scannable, conversion-focused content that follows proven page structures.

Data Analysis

Explain a Dataset

Here is a sample of my dataset:

[paste rows]

Describe what each column likely represents, identify the data types, and suggest 3 analyses I could run on this data.

Starting with column identification ensures you and ChatGPT agree on the data structure before attempting any analysis.

Data Analysis

Write a SQL Query

Write a SQL query for [database type] that [describe what you need]. Tables involved:
- [table1]: columns [col1, col2, ...]
- [table2]: columns [col1, col2, ...]
Relationship: [how tables are joined]

Providing table schemas and relationships prevents the model from guessing column names and produces correct JOIN conditions.

Data Analysis

Create a Pivot Table Formula

I have a spreadsheet with columns: [list columns]. Write an Excel formula to [describe calculation]. Explain the formula step by step.

Listing your actual column names produces formulas that work with your data without modification. Step-by-step explanations help you adapt the formula later.

Data Analysis

Interpret Statistics

I ran a [test name] and got these results:
- p-value: [value]
- confidence interval: [range]
- sample size: [n]

Explain what these results mean in plain English. Is the result statistically significant? What are the limitations?

Plain English interpretation of statistical results helps non-technical stakeholders understand findings. Including limitations prevents overconfidence in results.

Creative

Brainstorm Ideas

Generate 10 unique ideas for [topic/project]. For each idea, include:
- One-line concept
- Why it would work
- Potential challenge
Prioritize unconventional approaches.

Requesting "why it would work" and "potential challenge" per idea forces deeper thinking beyond surface-level suggestions. Asking for unconventional approaches avoids generic responses.

Creative

Story Plot Generator

Create a story plot with:
- Genre: [genre]
- Setting: [time and place]
- Protagonist: [brief description]
- Central conflict: [type]
- Plot twist requirement: yes

Outline the three-act structure.

Three-act structure and specific constraints produce coherent, well-paced plots rather than meandering narratives.

Creative

Analogy Generator

Explain [complex concept] using 3 different analogies:
1. One for a child
2. One for a business professional
3. One using a sports metaphor

Multiple analogies for different audiences help you find the right way to communicate a concept depending on who you are explaining it to.

Creative

Name Generator

Generate 10 name ideas for a [product/company/project] in the [industry] space. Requirements:
- Easy to pronounce
- Available as a .com domain (suggest plausible options)
- Conveys [quality/attribute]
Explain the reasoning behind each name.

Adding constraints like pronunciation and domain availability filters out impractical suggestions. Reasoning helps you evaluate which names best fit your brand.

Productivity

Meeting Agenda

Create a meeting agenda for a [duration]-minute [meeting type]. Attendees: [roles]. Goal: [meeting objective].

Include time allocations, discussion topics, and action items template.

Structured agendas with time allocations keep meetings focused and on schedule. Including an action items template ensures follow-through.

Productivity

Decision Matrix

Help me decide between [option A] and [option B] for [context]. Create a decision matrix with these criteria: [list criteria]. Rate each option 1-5 on each criterion and provide a weighted recommendation.

Decision matrices remove emotional bias and make trade-offs explicit. Weighted criteria ensure the most important factors have the most influence.

Productivity

Task Breakdown

Break down this project into tasks: [project description].

For each task include:
- Estimated time
- Dependencies
- Priority (high/medium/low)
- Suggested order of execution

Including dependencies and priority prevents starting tasks that are blocked and ensures high-impact work is done first.

Productivity

Standard Operating Procedure

Write an SOP for [process]. Include:
- Purpose and scope
- Prerequisites
- Step-by-step instructions with numbered steps
- Common mistakes to avoid
- Troubleshooting section

SOPs with troubleshooting sections reduce questions and errors when handing off processes to team members.

Productivity

Weekly Review Template

Create a weekly review template for a [role]. Include sections for:
- Accomplishments this week
- Blockers encountered
- Key metrics/KPIs
- Priorities for next week
- Lessons learned
Keep each section to 3-5 bullet points max.

Structured weekly reviews surface patterns over time. Limiting bullet points forces prioritization of what actually mattered.

How to Use

  1. 1

    Browse by Category

    Filter tips by category: Prompting Techniques, Coding, Writing, Marketing, Data Analysis, Creative, or Productivity.

  2. 2

    Search for Tips

    Use the search bar to find specific techniques, prompts, or best practices by keyword.

  3. 3

    Copy and Use

    Read the explanation, then copy the prompt template directly into ChatGPT or any AI assistant.

Examples by Niche

Role Prompting

"Act as a senior Python developer and review this code for security vulnerabilities"

Chain of Thought

"Solve this problem step by step, showing your reasoning at each stage"

Output Formatting

"Return the results as a JSON object with keys: title, summary, tags"

Frequently Asked Questions

What are the best ChatGPT prompting techniques?

The most effective techniques include role prompting (assigning ChatGPT a specific role), chain-of-thought reasoning (asking it to think step by step), few-shot prompting (providing examples), and output formatting (specifying the exact format you want). Combining these techniques produces the best results.

How do I get better coding help from ChatGPT?

Specify the programming language, framework version, and context. Ask for explanations alongside code, request error handling and edge cases, and provide your existing code for context. Use prompts like "Act as a senior developer reviewing this code" for better results.

Can ChatGPT help with data analysis?

Yes, ChatGPT excels at writing SQL queries, creating Python data analysis scripts, explaining statistical concepts, generating visualization code, and summarizing datasets. Provide sample data or schema for the most accurate results.

What are the limitations of ChatGPT?

ChatGPT may generate plausible-sounding but incorrect information, has a knowledge cutoff date, cannot browse the internet in its base form, and may not be accurate with complex math or very recent events. Always verify critical information from authoritative sources.

Related Tools

Related Articles