PromptMaster
LibraryOptimizePricingMy Prompts
Sign InGet Started Free
PromptMaster
The AI prompt library and optimizer for every profession.
AboutContactSite IndexPrivacyTerms
  1. AI Prompt Library
  2. Code review prompt templates
Code review prompt templates

ChatGPT prompts for code review.

Structured ChatGPT prompts for reviewing pull requests, finding security vulnerabilities, suggesting refactors, and providing clear code feedback.

All code review promptsDeveloper promptsCode prompts
DeveloperChatGPT

Code Review Checklist

Get a thorough code review with security, performance, and style feedback.

Review the following {{language}} code for a {{project_type}} project: ```{{language}} {{code}} ``` Review criteria: 1. **Correctness** — Logic errors, edge cases, off-by-one 2. **Security** — Injection, auth, data exposure, OWASP top 10 3. **Performance** — Time/space complexity, N+1 queries, unnecessary allocations 4. **Readability** — Naming, structure, comments where needed 5. **Best practices** — Idiomatic {{language}}, design patterns For each issue found: - Severity (critical/warning/sugg...
New0 copies
DeveloperChatGPT

Code Review Coverage Maximizer

System prompt for thorough code review that surfaces all issues, not just high-confidence ones.

You are a senior code reviewer. Review the following code for correctness, security, performance, and maintainability. <code language="{{language}}"> {{code}} </code> Report every issue you find, including ones you are uncertain about or consider low-severity. Do not filter for importance or confidence at this stage — a separate verification step will do that. For each finding: 1. Severity: critical / warning / suggestion 2. Confidence: high / medium / low 3. Line reference 4. Description of the...
New0 copies
DeveloperChatGPT

Code Refactoring Planner

Analyzes code smells and creates a safe, incremental refactoring plan with test coverage requirements.

Plan a refactoring for {{codebase_description}}. Problem areas: {{problem_areas}}. Test coverage: {{test_coverage}}. Create: (1) code smell inventory with type (long method, god class, feature envy, etc.), (2) refactoring technique for each smell (extract method, introduce parameter object, etc.), (3) dependency graph showing safe refactoring order, (4) test-first approach: which tests to write before refactoring, (5) incremental steps that each leave the code working, (6) estimated effort per s...
New0 copies
MarketingChatGPT

Translation Localization Reviewer

Review translated product copy for accuracy, tone, cultural fit, and UI constraints.

Act as a bilingual localization editor for {{locale}}. Source copy: {{source_copy}} Translated copy: {{translated_copy}} Product context: {{product_context}} Review for: 1. Meaning accuracy 2. Tone and brand consistency 3. Cultural fit 4. UI length issues 5. Ambiguous terms Return a table with issue, severity, suggested rewrite, and rationale. Then provide a polished final version.
New0 copies
Product ManagerChatGPT

Quarterly Business Review Prep Writer

Prepares a comprehensive QBR presentation outline with metrics analysis, narrative threads, and strategic recommendations.

You are a product leader preparing a QBR for {{audience}}. Quarter: {{quarter}}. Product: {{product_name}}. Key metrics: {{metrics}}. Wins: {{wins}}. Misses: {{misses}}. Next quarter priorities: {{next_quarter}}. Generate: (1) an executive summary (3 sentences), (2) a metrics dashboard narrative with trend analysis, (3) a wins section with impact quantification, (4) a misses section with root cause and corrective actions, (5) a customer voice section (quotes, feedback themes), (6) next quarter O...
New0 copies
DeveloperChatGPT

Technical Architecture Review

Get a structured architecture review with trade-off analysis for your system design.

Review this technical architecture for {{project}}: {{architecture_description}} Requirements: {{requirements}} Evaluate across these dimensions: 1. **Scalability** — Will it handle 10x growth? 2. **Reliability** — Single points of failure, graceful degradation 3. **Security** — Attack surface, data protection 4. **Maintainability** — Code complexity, coupling, tech debt risk 5. **Cost** — Infrastructure and operational cost implications For each dimension: - Current assessment (good/needs work/...
New0 copies
DesignerChatGPT

Design QA Checklist Generator

Generates a comprehensive design quality assurance checklist for reviewing implementations against design specifications.

You are a design QA specialist reviewing a {{feature_name}} implementation. Platform: {{platform}}. Design tool: {{design_tool}}. Review scope: {{review_scope}}. Generate a QA checklist covering: (1) visual fidelity (spacing, colors, typography, iconography), (2) responsive behavior at all specified breakpoints, (3) interaction states (default, hover, focus, active, disabled, error, loading), (4) accessibility compliance (WCAG 2.1 AA minimum), (5) content and copy accuracy, (6) animation and tra...
New0 copies
DeveloperChatGPT

Act as Linux Terminal

Simulate a Linux terminal — execute commands and return realistic output.

I want you to act as a linux terminal. I will type commands and you will reply with what the terminal should show. I want you to only reply with the terminal output inside one unique code block, and nothing else. Do not write explanations. Do not type commands unless I instruct you to do so. When I need to tell you something in english, I will do so by putting text inside curly brackets {like this}. My command: {{command}}
New0 copies
DeveloperChatGPT

Debug Error Message Analyzer

Analyze error messages and stack traces to identify root causes and fix suggestions.

I'm getting this error in my {{language}} {{framework}} project: **Error message:** {{error_message}} **Stack trace:** ``` {{stack_trace}} ``` **Context:** - What I was doing: {{context}} - Recent changes: {{recent_changes}} - Environment: {{environment}} Analyze this error: 1. What does this error mean in plain English? 2. What is the most likely root cause? 3. How to fix it (with code) 4. How to prevent it in the future
New0 copies
DeveloperChatGPT

Performance Profiler Analyst

Analyze performance profiling data and recommend optimizations.

Act as a performance engineer. Analyze the following profiling data and recommend optimizations. Application: {{application}} Profiling tool: {{tool}} Profile data: {{data}} Provide: 1. Top 3 bottlenecks identified 2. Root cause analysis for each 3. Specific code changes with before/after 4. Expected improvement estimates 5. Monitoring recommendations 6. Quick wins vs long-term fixes
New0 copies
DeveloperChatGPT

Tech Debt Assessment

Identify and prioritize technical debt with a remediation roadmap.

Assess technical debt in this {{language}} codebase: {{codebase_description}} Known pain points: {{pain_points}} For each area of debt: 1. Category (architecture, code quality, testing, dependencies, infrastructure) 2. Severity (high/medium/low) 3. Impact on velocity, reliability, and onboarding 4. Estimated effort to fix (hours/days/weeks) 5. Recommended approach Create a prioritized remediation roadmap: - Quick wins (< 1 day, high impact) - Medium-term (1-2 weeks) - Long-term (1+ month) Includ...
New0 copies
WriterChatGPT

Technical Documentation Writer

Write clear, structured technical documentation for software products.

Act as a technical writer. Create documentation for {{feature}}. Product: {{product}} Audience: {{audience}} Doc type: {{doc_type}} Include: 1. Overview (what it does, why it matters) 2. Prerequisites 3. Step-by-step instructions with code examples 4. Configuration options (table format) 5. Common use cases 6. Troubleshooting (FAQ format) 7. Related resources / next steps Style: active voice, short sentences, code blocks with language tags. Assume the reader is smart but new to this feature.
New0 copies
DeveloperChatGPT

Unit Test Generator

Generate comprehensive unit tests for a given function or module.

Act as a test engineer. Generate unit tests for the following {{language}} code. Framework: {{framework}} Code to test: {{code}} Requirements: 1. Cover happy path, edge cases, and error cases 2. Use descriptive test names that explain the scenario 3. Mock external dependencies 4. Follow {{framework}} best practices 5. Aim for branch coverage, not just line coverage Provide the complete test file.
New0 copies
DesignerChatGPT

Anti-AI-Slop Frontend Design

System prompt to prevent generic AI-generated frontend aesthetics and produce distinctive designs.

<frontend_aesthetics> You tend to converge toward generic, "on distribution" outputs. In frontend design, this creates what users call the "AI slop" aesthetic. Avoid this: make creative, distinctive frontends that surprise and delight. Focus on: - Typography: Choose fonts that are beautiful, unique, and interesting. Avoid generic fonts like Arial and Inter. - Color & Theme: Commit to a cohesive aesthetic. Use CSS variables for consistency. Dominant colors with sharp accents outperform timid pale...
New0 copies
DeveloperChatGPT

API Documentation Translator

Translate API documentation while preserving technical accuracy and code examples.

Translate this API documentation from {{source_language}} to {{target_language}}: {{documentation}} Rules: 1. Keep all code examples in their original language (don't translate code) 2. Translate descriptions, parameter explanations, and notes 3. Preserve technical terms that are standard in the target language 4. Keep formatting (headers, code blocks, tables) intact 5. Adapt date/number formats to the target locale 6. Note any terms that don't have a direct translation Target audience: {{audien...
New0 copies
DesignerChatGPT

CSS Layout Generator

Generate responsive CSS layouts with modern techniques like Grid and Flexbox.

Create a {{layout_type}} layout in {{framework}} for {{purpose}}. Requirements: {{requirements}} Provide: 1. HTML/JSX structure 2. CSS with {{approach}} (Grid or Flexbox) 3. Responsive breakpoints (mobile, tablet, desktop) 4. Dark mode support 5. Accessibility considerations (semantic HTML, focus management) Use modern CSS (custom properties, clamp(), container queries if applicable). No CSS-in-JS — use standard CSS or Tailwind.
New0 copies
DeveloperChatGPT

Database Schema Designer

Design a normalized database schema from business requirements.

Design a {{database}} schema for {{application}}. Requirements: {{requirements}} Provide: 1. Entity-relationship description 2. CREATE TABLE statements with proper types, constraints, and indexes 3. Foreign key relationships with ON DELETE behavior 4. Indexes for expected query patterns 5. Migration script 6. Seed data example Use best practices: UUIDs for IDs, created_at/updated_at timestamps, soft deletes where appropriate.
New0 copies
DeveloperChatGPT

Docker Compose Builder

Generate Docker Compose configurations for multi-service applications.

Act as a DevOps engineer. Create a docker-compose.yml for: {{description}} Requirements: - Services: {{services}} - Environment: {{environment}} Include: 1. All service definitions with proper networking 2. Volume mounts for persistence 3. Health checks for each service 4. Environment variable templates (.env) 5. Resource limits 6. Depends-on ordering 7. Logging configuration
New0 copies
DeveloperChatGPT

Git Commit Message Writer

Generate clear, conventional commit messages from diff descriptions.

Write a git commit message for these changes: {{changes_description}} Rules: - Use Conventional Commits format (type(scope): description) - Subject line under 72 characters - Add body if changes are complex - Types: feat, fix, refactor, docs, test, chore, perf Provide: 1. The commit message 2. A PR title (if applicable) 3. A brief PR description summarizing the changes
New0 copies
DeveloperChatGPT

Git Commit Message Writer

Generate clear, conventional commit messages from diff descriptions.

Act as a senior developer who follows Conventional Commits strictly. Write a commit message for the following change. Change description: {{description}} Scope: {{scope}} Rules: 1. Format: type(scope): subject 2. Types: feat, fix, docs, style, refactor, test, chore, perf, ci 3. Subject: imperative mood, lowercase, no period, max 72 chars 4. Add a blank line then body if the change needs explanation 5. Reference issue numbers if provided: {{issue_ref}} Provide the full commit message only, no exp...
New0 copies
DesignerChatGPT

Interaction Animation Specification

Writes detailed animation specifications for complex UI interactions with keyframe definitions and implementation code.

Write animation specs for {{interaction_name}}. Context: {{context}}. Trigger: {{trigger}}. Design tool: {{design_tool}}. Specify: (1) keyframe timeline with timestamps, (2) property animations (transform, opacity, clip-path, filter), (3) easing curves with bezier handles, (4) duration and delay per element, (5) staggering pattern, (6) interaction states (idle, active, complete, error), (7) performance hints (will-change, compositor-only properties), (8) implementation in {{code_library}} with f...
New0 copies
MarketingChatGPT

Pixel and Event Tracking Spec

Generate a complete event tracking specification for analytics and ad platforms.

Create an event tracking specification for {{product}} with these business goals: {{goals}}. Platforms: {{platforms}} Tech stack: {{tech_stack}} For each key user action, specify: 1. Event name (snake_case) 2. Trigger condition 3. Parameters to capture 4. Platform-specific implementation notes 5. Priority (P0/P1/P2) Cover these event categories: - Page views and navigation - User authentication - Core product actions - Conversion events - Error events Format as a developer-ready spec table.
New0 copies
DeveloperChatGPT

Regex Pattern Generator

Generate and explain regular expressions from natural language descriptions.

You are a regex expert. Generate a regular expression for: {{description}} Language/tool: {{language}} Provide: 1. The regex pattern 2. Step-by-step breakdown of each part 3. Test cases (5 matches, 5 non-matches) 4. Common pitfalls 5. Performance notes for large inputs
New0 copies
DeveloperChatGPT

Regex Pattern Generator

Generate and explain regular expressions for any pattern matching need.

Write a regex pattern for {{use_case}}. Requirements: {{requirements}} Language flavor: {{language}} Provide: 1. The regex pattern 2. Line-by-line explanation of each part 3. 5 test cases (3 matching, 2 non-matching) 4. Common pitfalls to avoid 5. Alternative patterns if applicable
New0 copies
Browse the full AI prompt library