Career Prompts Pro
Back to Library

ChatGPT Prompts for Developers

Write better code faster with AI prompts for debugging, architecture, code review, and documentation.

50 prompts found

Debugging
Intermediate

Debug this code and explain each issue found, the root cause, and the fix with corrected code: [paste code].

Architecture
Advanced

Design a microservices architecture for a [application type] covering service boundaries, communication patterns, data management, and deployment strategy.

Code Review
Intermediate

Write a comprehensive code review checklist covering code quality, security vulnerabilities, performance, readability, error handling, and testing coverage.

Documentation
Intermediate

Create API documentation for a RESTful [resource] endpoint covering request/response schemas, authentication, error codes, rate limits, and example curl commands.

Testing
Intermediate

Generate a unit test suite for this [function/class] covering happy path, edge cases, error conditions, and boundary values: [paste code].

DevOps
Advanced

Write a CI/CD pipeline configuration for a [framework] project covering build, test, lint, security scan, staging deployment, and production release.

API Design
Advanced

Design a RESTful API for a [application] following best practices for URL structure, HTTP methods, status codes, pagination, filtering, and versioning.

Code Review
Advanced

Refactor this code to improve readability, reduce complexity, and follow SOLID principles: [paste code].

Architecture
Intermediate

Create a technical architecture decision record (ADR) template covering context, decision, consequences, alternatives considered, and status.

Testing
Advanced

Write integration tests for a [feature] that test the interaction between [component A] and [component B] with setup, teardown, and assertion patterns.

DevOps
Intermediate

Create a Dockerfile and docker-compose.yml for a [application stack] with development, testing, and production configurations.

Architecture
Advanced

Design a database schema for a [application type] covering entity relationships, indexing strategy, normalization decisions, and migration plan.

Documentation
Beginner

Write a README.md template for an open-source project covering installation, usage, API reference, contributing guidelines, and license.

Debugging
Intermediate

Generate error handling patterns for a [language/framework] application covering custom exceptions, logging, user-facing messages, and recovery strategies.

API Design
Advanced

Create a GraphQL schema for a [domain] with types, queries, mutations, subscriptions, and resolver documentation.

Architecture
Advanced

Write a performance optimization plan for a web application covering database queries, caching strategy, CDN usage, lazy loading, and bundle size reduction.

Code Review
Advanced

Create a security audit checklist for a web application covering OWASP Top 10, authentication, authorization, data encryption, and dependency vulnerabilities.

Testing
Advanced

Write a load testing script using [tool] for a [API/application] covering concurrent users, ramp-up period, throughput targets, and performance assertions.

DevOps
Advanced

Generate a Kubernetes deployment manifest for a [application] with pods, services, ingress, config maps, secrets, and health checks.

API Design
Intermediate

Create an API versioning strategy document covering URL versioning, header versioning, deprecation policy, and migration guides.

Debugging
Intermediate

Write a debugging strategy guide for [common issue type] covering diagnostic steps, logging approach, reproduction strategies, and resolution patterns.

Architecture
Advanced

Design a caching strategy for a [application type] covering cache layers, invalidation policies, TTL settings, and cache-aside vs. write-through patterns.

Documentation
Intermediate

Create code documentation standards for a development team covering inline comments, JSDoc/docstring formats, architectural diagrams, and API documentation.

Testing
Intermediate

Write a test-driven development (TDD) workflow for implementing a [feature] with red-green-refactor cycle and test case design.

DevOps
Advanced

Generate a monitoring and alerting configuration for a [application] covering metrics, log aggregation, dashboards, and alert thresholds.

API Design
Intermediate

Create a webhook implementation guide covering endpoint design, payload schema, signature verification, retry logic, and idempotency.

Code Review
Advanced

Write a code migration plan for upgrading from [framework/library v1] to [v2] covering breaking changes, deprecations, and testing strategy.

Architecture
Advanced

Design a real-time notification system architecture covering WebSockets, message queues, delivery guarantees, and offline handling.

Documentation
Intermediate

Create a developer onboarding guide covering local environment setup, codebase walkthrough, coding standards, PR process, and debugging tips.

Testing
Intermediate

Write end-to-end tests for a [user flow] using [testing framework] covering page navigation, form submission, API interaction, and state verification.

DevOps
Advanced

Generate a disaster recovery plan for a [application] covering backup strategies, failover procedures, RTO/RPO targets, and recovery testing.

API Design
Advanced

Create rate limiting middleware for an API covering token bucket algorithm, per-user limits, response headers, and graceful degradation.

Debugging
Advanced

Write a root cause analysis template for production incidents covering timeline, impact assessment, contributing factors, and prevention measures.

Architecture
Advanced

Design a feature flag system architecture covering flag types, targeting rules, gradual rollout, and kill switch capabilities.

Documentation
Beginner

Create an API changelog format covering versioning, breaking changes, deprecations, new features, and migration instructions.

Testing
Advanced

Write a chaos engineering experiment plan for testing [system] resilience covering failure injection, monitoring, blast radius, and abort criteria.

DevOps
Intermediate

Generate a log management strategy covering log levels, structured logging, centralized collection, retention policies, and search optimization.

API Design
Advanced

Create a batch processing API design for handling large data operations covering job creation, status polling, result retrieval, and error recovery.

Code Review
Advanced

Write a technical debt assessment for [codebase] covering severity classification, business impact, remediation effort, and prioritization framework.

Architecture
Advanced

Design an event-driven architecture for a [application] covering event schema, pub/sub patterns, event sourcing, and saga patterns for distributed transactions.

Documentation
Beginner

Create a sprint retrospective action items template for engineering teams covering what went well, what to improve, and specific commitments.

Testing
Advanced

Write property-based tests for a [function] that generate random inputs and verify invariants rather than specific input-output pairs.

DevOps
Advanced

Generate an infrastructure-as-code template using [Terraform/CloudFormation] for a [application stack] covering compute, storage, networking, and security.

API Design
Advanced

Create an authentication API design with OAuth 2.0 flows covering authorization code, client credentials, token refresh, and scope management.

Debugging
Advanced

Write a memory leak debugging guide for [language/runtime] covering profiling tools, common causes, heap analysis, and prevention patterns.

Architecture
Advanced

Design a multi-tenant architecture for a SaaS application covering data isolation, tenant configuration, resource allocation, and billing integration.

Documentation
Intermediate

Create a code contribution guide for an open-source project covering fork workflow, branch naming, commit messages, PR template, and review process.

Testing
Advanced

Write a contract test suite for a microservices API covering consumer-driven contracts, provider verification, and backwards compatibility checks.

DevOps
Advanced

Generate a blue-green deployment strategy for a [application] covering environment setup, traffic switching, health validation, and rollback procedures.

API Design
Intermediate

Create a pagination strategy comparison for APIs covering offset, cursor, keyset, and seek methods with performance characteristics and use cases.