PromptMaster
LibraryOptimizePricingMy Prompts
Sign InGet Started Free
PromptMaster
The AI prompt library and optimizer for every profession.
AboutContactSite IndexPrivacyTerms
  1. AI Prompt Library
  2. Claude coding prompts
Claude coding prompts

Claude prompts for code review and engineering work.

Use long-context Claude prompts to review code, reason through bugs, improve architecture, and create clear engineering plans.

Developer promptsCode promptsCode review prompt
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
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
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
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
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
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
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
DeveloperChatGPT

SQL Query Optimizer

Analyze and optimize SQL queries for performance with index recommendations.

Optimize this {{database}} SQL query: ```sql {{query}} ``` Context: - Table sizes: {{table_info}} - Existing indexes: {{indexes}} - Expected result set: {{result_size}} Provide: 1. Performance analysis (what's slow and why) 2. Optimized query with explanations 3. Recommended indexes to add 4. Query execution plan interpretation 5. Alternative approaches if applicable Explain each optimization so I can learn the pattern.
New0 copies
DeveloperChatGPT

Technical Design Document Writer

Generate a structured technical design document for a new feature or system.

Act as a senior software architect. Write a technical design document for {{feature}}. Context: - System: {{system}} - Team size: {{team_size}} - Timeline: {{timeline}} Include these sections: 1. Problem Statement 2. Goals and Non-Goals 3. Proposed Architecture (with ASCII diagram) 4. API/Interface Design 5. Data Model Changes 6. Migration Strategy 7. Error Handling and Edge Cases 8. Testing Strategy 9. Rollout Plan 10. Open Questions Be specific about technology choices and justify them.
New0 copies
DeveloperChatGPT

Technical Documentation Translator

Translate technical documentation while preserving terminology consistency, code examples, and technical accuracy across languages.

You are a senior technical translator specializing in software documentation, API references, and developer guides. Your task is to translate technical documentation while maintaining terminological precision, preserving code blocks verbatim, and ensuring the translated docs are usable by developers in the target language. For each section, provide: 1. **Translated Text** — Accurate translation with natural technical writing style in the target language. 2. **Terminology Decisions** — A glossary...
New0 copies
DeveloperChatGPT

API Documentation Writer

Generates comprehensive API documentation with endpoint specs, request/response examples, authentication, and error references.

Write API documentation for {{api_name}}. Base URL: {{base_url}}. Endpoints: {{endpoints}}. Auth: {{auth_method}}. For each endpoint, document: (1) method and path with description, (2) path/query/header parameters with types and validation rules, (3) request body schema with example, (4) response schema with example (success and error), (5) authentication requirements, (6) rate limiting rules, (7) webhook events if applicable, (8) SDK code examples in {{languages}}. Include a getting started gu...
New0 copies
DeveloperChatGPT

Error Handling Pattern Generator

Designs a comprehensive error handling strategy with custom error types, propagation rules, and user-facing messages.

Design an error handling pattern for {{application_type}}. Language: {{language}}. Scenarios: {{error_scenarios}}. Design: (1) error hierarchy with custom error types, (2) error codes namespace (module.category.specific), (3) error propagation rules (which to catch, which to let bubble), (4) logging strategy per error level, (5) user-facing error messages (safe vs detailed), (6) retry policies with exponential backoff, (7) circuit breaker thresholds, (8) error response format for APIs. Include c...
New0 copies
DeveloperChatGPT

Feature Flag Strategy Guide

Designs a feature flag implementation strategy with naming conventions, rollout stages, and kill switch procedures.

You are a senior engineer designing a feature flag strategy. Feature: {{feature_description}}. Rollout goal: {{rollout_goal}}. Tech stack: {{tech_stack}}. Design: (1) flag naming convention and taxonomy, (2) flag type (boolean, multivariate, percentage), (3) rollout stages with percentage ramp and duration, (4) targeting rules and user segments, (5) kill switch procedure with rollback steps, (6) monitoring and success metrics per stage, (7) cleanup plan (when and how to remove the flag). Include...
New0 copies
DeveloperChatGPT

Agent Persistence Instructions

System prompt to keep AI agents working until tasks are fully complete.

You are an agent — keep going until the user's query is completely resolved before ending your turn. Rules: 1. Decompose the user's query into all required sub-tasks 2. Complete each sub-task fully before moving to the next 3. Do not stop after completing only part of the request 4. Only terminate when you are sure the problem is solved 5. If you encounter an error, try an alternative approach 6. Plan extensively before taking action, reflect after each step Task: {{task}}
New0 copies
DeveloperChatGPT

API Versioning Strategy Designer

Designs an API versioning strategy with migration paths, deprecation policies, and client compatibility rules.

Design a versioning strategy for {{api_name}}. Current state: {{current_state}}. Consumers: {{consumer_count}}. Breaking changes: {{breaking_changes}}. Evaluate and recommend: (1) versioning scheme (URL path, header, query param) with pros/cons, (2) semantic versioning policy for this API, (3) backward compatibility rules, (4) deprecation timeline and communication plan, (5) migration guide for consumers, (6) version sunset criteria, (7) testing strategy per version. Consider {{constraints}}.
New0 copies
Browse the full AI prompt library