DEV Community

Huaqing Xu
Huaqing Xu

Posted on

The Ultimate ChatGPT Prompt Engineering Guide (With 100+ Templates)

Prompt engineering is the skill of the decade. Here's everything I learned after a year of daily ChatGPT use — plus 100+ ready-to-use templates.

What Makes a Good Prompt?

A good prompt has 5 components:

  1. Role — Who should the AI be?
  2. Task — What should it do?
  3. Context — What background info is needed?
  4. Requirements — What constraints apply?
  5. Format — How should the output look?

Before vs After

Vague prompt:

Write a blog post about AI

Engineered prompt:

Act as an expert tech blogger. Write a 1500-word blog post about how AI is changing content creation. Target audience: marketing managers. Include: catchy headline, intro hook, 3 sections with examples, conclusion with CTA. Tone: informative but conversational.

The second prompt will give you 10x better results.

The Framework

Act as a [ROLE].
Your task is to [TASK].
Context: [CONTEXT]
Requirements: [REQUIREMENTS]
Output format: [FORMAT]
Enter fullscreen mode Exit fullscreen mode

10 Prompt Categories

1. Writing & Content Creation

  • Blog post outline generator
  • SEO article writer
  • Social media caption creator
  • Email newsletter drafter
  • Video script writer

2. Programming & Code Review

  • Code review assistant
  • Bug investigation
  • Documentation generator
  • Refactoring helper
  • Test case generator

3. Marketing & Business

  • Marketing copy writer
  • Business plan outline
  • SWOT analysis
  • Competitor analysis
  • Customer persona creator

4. Learning & Education

  • Concept explainer
  • Study guide creator
  • Quiz generator
  • Flashcard maker
  • Summary writer

5. Productivity & Task Management

  • Task breakdown
  • Meeting prep
  • Email triage
  • Decision matrix
  • Weekly review

6. Career & Job Search

  • Resume optimizer
  • Cover letter writer
  • Interview prep
  • Salary negotiation
  • LinkedIn profile optimizer

7. Data Analysis

  • Data interpreter
  • Visualization suggester
  • Trend analyzer
  • Report generator
  • Insight extractor

8. Email Management

  • Email drafter
  • Response templates
  • Follow-up sequences
  • Cold outreach
  • Newsletter writer

9. Creative Writing

  • Story idea generator
  • Character developer
  • Plot outline creator
  • Dialogue writer
  • World builder

10. Personal Development

  • Goal setter
  • Habit tracker designer
  • Self-reflection guide
  • Learning plan creator
  • Mindfulness prompt

Get All 100+ Templates

I compiled all 100+ templates into a ready-to-use PDF collection. Each template uses the fill-in-the-blank format — just copy, paste, and fill in your details.

Get 100+ ChatGPT Prompt Templates — $4.99 instant PDF download

  • Instant automatic delivery after PayPal payment
  • Works with ChatGPT, Claude, Gemini, and any AI assistant
  • Lifetime access with free updates

Free Samples

Try 5 templates for free first: Free Sample Prompts


What's your favorite prompt engineering technique? Share in the comments!

Top comments (0)