AI Prompt Templates

38+ curated prompt templates for ChatGPT, Claude, and Gemini. Find the perfect prompt, copy it, and customize for your use case.

38 prompts found

💻 Coding

Code Review Assistant

reviewbest practices
Act as a senior software engineer. Review the following code for bugs, performance issues, security vulnerabilities, and code style. Suggest specific improvements with code examples.

[PASTE YOUR CODE HERE]
💻 Coding

Debug This Error

debugerrorfix
I'm getting the following error in my [LANGUAGE] project:

[PASTE ERROR MESSAGE]

Here is the relevant code:

[PASTE CODE]

Explain what is causing this error and provide a fix with code examples.
💻 Coding

Write Unit Tests

testingjestunit test
Act as a QA engineer. Write comprehensive unit tests for the following function using [TESTING FRAMEWORK, e.g., Jest/PyTest]. Include edge cases, boundary conditions, and error scenarios.

[PASTE FUNCTION CODE]
💻 Coding

Explain This Code

explainlearnunderstand
Explain the following code line by line as if I'm a junior developer. Use simple language, explain any design patterns used, and describe what each part does.

[PASTE CODE HERE]
💻 Coding

Convert Code to Another Language

converttranslateport
Convert the following [SOURCE LANGUAGE] code to [TARGET LANGUAGE]. Preserve the logic and functionality. Use idiomatic patterns for the target language. Add comments explaining any differences.

[PASTE CODE HERE]
💻 Coding

Optimize for Performance

performanceoptimizespeed
Analyze the following code for performance issues. Identify bottlenecks, suggest optimizations (time and space complexity), and provide an optimized version with explanations.

[PASTE CODE HERE]
💻 Coding

Write API Documentation

apidocsdocumentation
Generate comprehensive API documentation for the following REST API endpoint. Include: HTTP method, URL, request parameters, request body schema, response schema, status codes, and example curl commands.

[DESCRIBE YOUR API ENDPOINT OR PASTE CODE]
💻 Coding

Design Database Schema

databaseschemasql
Design a database schema for [DESCRIBE YOUR APPLICATION]. Include tables, columns with data types, primary keys, foreign keys, indexes, and constraints. Provide the CREATE TABLE SQL statements and explain your design decisions.
💻 Coding

Create a Regex Pattern

regexpatternvalidation
Create a regular expression that matches [DESCRIBE WHAT YOU WANT TO MATCH]. Provide:
1. The regex pattern
2. Explanation of each part
3. Example matches and non-matches
4. Code example in [LANGUAGE] using this regex
💻 Coding

Implement Design Pattern

design patternsarchitecture
Implement the [PATTERN NAME, e.g., Observer/Factory/Singleton] design pattern in [LANGUAGE] for the following use case: [DESCRIBE YOUR USE CASE]. Include a full working example with comments explaining each part.
💻 Coding

Write a Dockerfile

dockerdevopscontainer
Create an optimized Dockerfile for a [LANGUAGE/FRAMEWORK] application with the following requirements:
- [REQUIREMENT 1]
- [REQUIREMENT 2]

Use multi-stage builds, minimize layers, and follow Docker best practices. Include comments explaining each instruction.
💻 Coding

Git Commit Message

gitcommitversion control
Generate a conventional commit message for the following changes. Follow the format: type(scope): description. Include a body explaining why the change was made.

Changes:
[DESCRIBE YOUR CHANGES]
✍️ Writing

Blog Post Outline

blogoutlinecontent
Create a detailed blog post outline on the topic: "[YOUR TOPIC]". Include:
1. An attention-grabbing headline (3 options)
2. Hook/introduction paragraph
3. 5-7 main sections with sub-points
4. Key takeaways
5. Call-to-action
6. SEO meta description (155 chars)
✍️ Writing

Rewrite for Clarity

rewriteclarityedit
Rewrite the following text to be clearer, more concise, and more engaging. Maintain the original meaning but improve readability. Highlight what you changed and why.

[PASTE YOUR TEXT]
✍️ Writing

Technical Tutorial

tutorialguidetechnical
Write a comprehensive technical tutorial on [TOPIC]. Structure it as:
1. Introduction (what and why)
2. Prerequisites
3. Step-by-step implementation with code examples
4. Common pitfalls and solutions
5. Next steps and resources

Target audience: [BEGINNER/INTERMEDIATE/ADVANCED] developers.
✍️ Writing

Product Description

productcopywritingsales
Write a compelling product description for [PRODUCT NAME]. Include:
- A catchy headline
- 3 key benefits (not features)
- A paragraph describing the problem it solves
- Social proof placeholder
- Call-to-action

Tone: [PROFESSIONAL/CASUAL/ENTHUSIASTIC]
✍️ Writing

Email Template

emailtemplateprofessional
Write a professional email for the following situation: [DESCRIBE SITUATION]. Include:
- Subject line (3 options)
- Opening line
- Body with clear structure
- Call-to-action
- Professional closing

Tone: [FORMAL/FRIENDLY/PERSUASIVE]
✍️ Writing

LinkedIn Post

linkedinsocial mediaprofessional
Write an engaging LinkedIn post about [TOPIC]. Use the following format:
- Hook (first line that grabs attention)
- Personal story or insight
- Key lesson or value
- Call-to-action (comment/share)
- 3-5 relevant hashtags

Keep it under 1300 characters. Use line breaks for readability.
📈 Marketing

Landing Page Copy

landing pagecopyconversion
Write high-converting landing page copy for [PRODUCT/SERVICE]. Include:
1. Hero headline + subheadline
2. Problem statement
3. Solution (your product)
4. 3 key features with benefits
5. Social proof section
6. FAQ section (5 questions)
7. Final CTA

Target audience: [DESCRIBE AUDIENCE]
📈 Marketing

SEO Keyword Strategy

seokeywordsstrategy
Create an SEO keyword strategy for a [TYPE OF BUSINESS] website. Provide:
1. 10 high-volume primary keywords
2. 20 long-tail keywords
3. Content ideas for each primary keyword
4. Internal linking strategy
5. Competitor analysis approach

Niche: [YOUR NICHE]
📈 Marketing

Social Media Campaign

social mediacampaigncontent
Create a 7-day social media content calendar for [BRAND/PRODUCT] across [PLATFORMS]. For each day provide:
- Platform
- Content type (carousel, reel, story, text)
- Caption with hashtags
- Call-to-action
- Best posting time

Goal: [BRAND AWARENESS/LEADS/SALES]
📈 Marketing

A/B Test Ideas

ab testoptimizationconversion
Suggest 10 A/B test ideas for [WEBSITE/APP TYPE]. For each test:
1. What to test (element)
2. Hypothesis
3. Variant A vs Variant B description
4. Primary metric to measure
5. Expected impact

Current conversion rate: [X%]
📈 Marketing

Ad Copy Generator

adsgoogle adscopy
Write Google Ads copy for [PRODUCT/SERVICE]. Provide 5 variations with:
- Headline 1 (30 chars max)
- Headline 2 (30 chars max)
- Headline 3 (30 chars max)
- Description 1 (90 chars max)
- Description 2 (90 chars max)

Target keyword: [KEYWORD]
USP: [UNIQUE SELLING POINT]
📊 Data

SQL Query Builder

sqlquerydatabase
Write a SQL query to [DESCRIBE WHAT YOU NEED]. The database has the following tables:

[DESCRIBE TABLES AND COLUMNS]

Requirements:
- [REQUIREMENT 1]
- [REQUIREMENT 2]

Optimize for performance and explain the query step by step.
📊 Data

Data Analysis Plan

analysisplanstatistics
Create a data analysis plan for the following dataset/question: [DESCRIBE YOUR DATA AND QUESTION]. Include:
1. Key questions to answer
2. Required data cleaning steps
3. Analysis methods to use
4. Visualization recommendations
5. Statistical tests if applicable
6. Expected deliverables
📊 Data

Excel Formula Helper

excelformulaspreadsheet
I need an Excel/Google Sheets formula that [DESCRIBE WHAT YOU NEED]. My data is structured as:

[DESCRIBE YOUR COLUMNS AND DATA]

Provide:
1. The formula
2. Step-by-step explanation
3. Example with sample data
4. Any alternative approaches
📊 Data

Python Data Script

pythonpandasscript
Write a Python script using pandas to [DESCRIBE TASK]. The CSV file has these columns: [LIST COLUMNS]. Include:
- Reading the data
- Data cleaning
- [SPECIFIC ANALYSIS]
- Visualization with matplotlib/seaborn
- Export results

Add comments explaining each step.
🎨 Design

UI/UX Review

uiuxreviewdesign
Act as a senior UI/UX designer. Review the following design/screenshot for usability issues. Analyze:
1. Visual hierarchy
2. Color contrast and accessibility
3. Typography choices
4. Button and CTA placement
5. Mobile responsiveness considerations
6. User flow improvements

[DESCRIBE OR SHARE YOUR DESIGN]
🎨 Design

Color Palette Generator

colorspalettebranding
Create a professional color palette for a [TYPE OF PROJECT] with the mood: [DESCRIBE MOOD]. Provide:
1. Primary color (with hex)
2. Secondary color (with hex)
3. Accent color (with hex)
4. Background and text colors
5. CSS custom properties
6. Tailwind configuration

Include accessibility contrast ratios.
🎨 Design

Component Specification

componentspecdesign system
Write a detailed component specification for a [COMPONENT NAME, e.g., Modal/Dropdown/DataTable] component. Include:
1. Description and use cases
2. Props/API with types
3. Visual states (default, hover, active, disabled, error)
4. Accessibility requirements (ARIA)
5. Responsive behavior
6. Code example in React/TypeScript
⚙️ DevOps

CI/CD Pipeline

ci/cdpipelinegithub actions
Create a GitHub Actions CI/CD pipeline for a [LANGUAGE/FRAMEWORK] project that:
1. Runs on push to main and pull requests
2. Installs dependencies
3. Runs linting and tests
4. Builds the project
5. Deploys to [PLATFORM]

Include caching, matrix builds, and proper secret management.
⚙️ DevOps

Kubernetes Deployment

kubernetesk8sdeployment
Create Kubernetes manifests for deploying [APPLICATION TYPE] with:
- Deployment (replicas, resource limits, health checks)
- Service (ClusterIP/LoadBalancer)
- ConfigMap for environment variables
- Secret for sensitive data
- HPA for auto-scaling

Explain each resource and best practices.
⚙️ DevOps

Infrastructure as Code

terraformiacinfrastructure
Write Terraform configuration to provision [DESCRIBE INFRASTRUCTURE] on [AWS/GCP/Azure]. Include:
- Provider configuration
- VPC/Network setup
- Compute resources
- Storage
- IAM/Security policies
- Outputs

Follow Terraform best practices and add comments.
⚙️ DevOps

Monitoring & Alerting

monitoringalertsobservability
Design a monitoring and alerting strategy for a [APPLICATION TYPE]. Include:
1. Key metrics to track (golden signals)
2. Log aggregation approach
3. Alert rules with thresholds
4. Dashboard layout
5. Incident response runbook
6. Tool recommendations (Prometheus, Grafana, etc.)
🚀 Career

Resume Bullet Points

resumejobcareer
Rewrite the following work experience as powerful resume bullet points using the STAR method (Situation, Task, Action, Result). Quantify achievements wherever possible.

Role: [JOB TITLE] at [COMPANY]
Key responsibilities and achievements:
[DESCRIBE WHAT YOU DID]
🚀 Career

Interview Preparation

interviewprepjob
I have an upcoming interview for a [JOB TITLE] position at [COMPANY TYPE]. Prepare me with:
1. 10 likely technical questions with model answers
2. 5 behavioral questions with STAR-method answers
3. 5 questions I should ask the interviewer
4. Key topics to review
5. Common red flags to avoid
🚀 Career

Cover Letter Writer

cover letterjob application
Write a compelling cover letter for a [JOB TITLE] position at [COMPANY]. My background:
- Current role: [ROLE]
- Years of experience: [YEARS]
- Key skills: [SKILLS]
- Why this company: [REASON]

Tone: Professional but personable. Keep it under 300 words. Highlight value I bring, not just what I want.
🚀 Career

Salary Negotiation

salarynegotiationoffer
Help me prepare for a salary negotiation. Context:
- Current offer: [AMOUNT]
- My target: [AMOUNT]
- Market rate: [AMOUNT]
- My experience: [YEARS]

Provide:
1. Key talking points
2. How to present my value
3. Counter-offer script
4. How to handle pushback
5. Non-salary items to negotiate

How to Write Better AI Prompts

The quality of AI output depends directly on the quality of your prompt. Here are proven techniques to get better results from ChatGPT, Claude, Gemini, and other large language models.

🎯 Prompt Engineering Tips

  • Be Specific: Instead of "write code," say "write a Python function that sorts a list of dictionaries by the 'age' key."
  • Set the Role: Start with "Act as a senior backend engineer" to get expert-level responses.
  • Provide Context: Include your tech stack, constraints, and goal.
  • Use Examples: Show the AI what you want with input/output examples.
  • Iterate: Don't accept the first response. Ask for improvements.

⚡ When to Use Templates

  1. Repetitive Tasks: Code reviews, commit messages, and documentation have predictable structures.
  2. Complex Requests: Templates ensure you don't forget important instructions.
  3. Consistent Quality: Templates produce reliable output every time.
  4. Team Standardization: Share templates so everyone gets similar quality.
  5. Learning: Study templates to understand what makes a good prompt.

Frequently Asked Questions

Do these prompts work with all AI models?

Yes! These templates are designed to work with ChatGPT (GPT-4), Claude (Sonnet/Opus), Google Gemini, and most other large language models. Some responses may vary between models.

How do I customize the [PLACEHOLDER] values?

After copying a prompt, replace any text in [SQUARE BRACKETS] with your specific information. For example, replace [LANGUAGE] with "TypeScript" or [YOUR TOPIC] with your actual topic.

Are these prompts free to use?

Yes, completely free. Use them for personal projects, work, or teaching. No attribution required.