ChatGPT Prompts for Developers
Write better code faster with AI prompts for debugging, architecture, code review, and documentation.
50 prompts found
Debug this code and explain each issue found, the root cause, and the fix with corrected code: [paste code].
Design a microservices architecture for a [application type] covering service boundaries, communication patterns, data management, and deployment strategy.
Write a comprehensive code review checklist covering code quality, security vulnerabilities, performance, readability, error handling, and testing coverage.
Create API documentation for a RESTful [resource] endpoint covering request/response schemas, authentication, error codes, rate limits, and example curl commands.
Generate a unit test suite for this [function/class] covering happy path, edge cases, error conditions, and boundary values: [paste code].
Write a CI/CD pipeline configuration for a [framework] project covering build, test, lint, security scan, staging deployment, and production release.
Design a RESTful API for a [application] following best practices for URL structure, HTTP methods, status codes, pagination, filtering, and versioning.
Refactor this code to improve readability, reduce complexity, and follow SOLID principles: [paste code].
Create a technical architecture decision record (ADR) template covering context, decision, consequences, alternatives considered, and status.
Write integration tests for a [feature] that test the interaction between [component A] and [component B] with setup, teardown, and assertion patterns.
Create a Dockerfile and docker-compose.yml for a [application stack] with development, testing, and production configurations.
Design a database schema for a [application type] covering entity relationships, indexing strategy, normalization decisions, and migration plan.
Write a README.md template for an open-source project covering installation, usage, API reference, contributing guidelines, and license.
Generate error handling patterns for a [language/framework] application covering custom exceptions, logging, user-facing messages, and recovery strategies.
Create a GraphQL schema for a [domain] with types, queries, mutations, subscriptions, and resolver documentation.
Write a performance optimization plan for a web application covering database queries, caching strategy, CDN usage, lazy loading, and bundle size reduction.
Create a security audit checklist for a web application covering OWASP Top 10, authentication, authorization, data encryption, and dependency vulnerabilities.
Write a load testing script using [tool] for a [API/application] covering concurrent users, ramp-up period, throughput targets, and performance assertions.
Generate a Kubernetes deployment manifest for a [application] with pods, services, ingress, config maps, secrets, and health checks.
Create an API versioning strategy document covering URL versioning, header versioning, deprecation policy, and migration guides.
Write a debugging strategy guide for [common issue type] covering diagnostic steps, logging approach, reproduction strategies, and resolution patterns.
Design a caching strategy for a [application type] covering cache layers, invalidation policies, TTL settings, and cache-aside vs. write-through patterns.
Create code documentation standards for a development team covering inline comments, JSDoc/docstring formats, architectural diagrams, and API documentation.
Write a test-driven development (TDD) workflow for implementing a [feature] with red-green-refactor cycle and test case design.
Generate a monitoring and alerting configuration for a [application] covering metrics, log aggregation, dashboards, and alert thresholds.
Create a webhook implementation guide covering endpoint design, payload schema, signature verification, retry logic, and idempotency.
Write a code migration plan for upgrading from [framework/library v1] to [v2] covering breaking changes, deprecations, and testing strategy.
Design a real-time notification system architecture covering WebSockets, message queues, delivery guarantees, and offline handling.
Create a developer onboarding guide covering local environment setup, codebase walkthrough, coding standards, PR process, and debugging tips.
Write end-to-end tests for a [user flow] using [testing framework] covering page navigation, form submission, API interaction, and state verification.
Generate a disaster recovery plan for a [application] covering backup strategies, failover procedures, RTO/RPO targets, and recovery testing.
Create rate limiting middleware for an API covering token bucket algorithm, per-user limits, response headers, and graceful degradation.
Write a root cause analysis template for production incidents covering timeline, impact assessment, contributing factors, and prevention measures.
Design a feature flag system architecture covering flag types, targeting rules, gradual rollout, and kill switch capabilities.
Create an API changelog format covering versioning, breaking changes, deprecations, new features, and migration instructions.
Write a chaos engineering experiment plan for testing [system] resilience covering failure injection, monitoring, blast radius, and abort criteria.
Generate a log management strategy covering log levels, structured logging, centralized collection, retention policies, and search optimization.
Create a batch processing API design for handling large data operations covering job creation, status polling, result retrieval, and error recovery.
Write a technical debt assessment for [codebase] covering severity classification, business impact, remediation effort, and prioritization framework.
Design an event-driven architecture for a [application] covering event schema, pub/sub patterns, event sourcing, and saga patterns for distributed transactions.
Create a sprint retrospective action items template for engineering teams covering what went well, what to improve, and specific commitments.
Write property-based tests for a [function] that generate random inputs and verify invariants rather than specific input-output pairs.
Generate an infrastructure-as-code template using [Terraform/CloudFormation] for a [application stack] covering compute, storage, networking, and security.
Create an authentication API design with OAuth 2.0 flows covering authorization code, client credentials, token refresh, and scope management.
Write a memory leak debugging guide for [language/runtime] covering profiling tools, common causes, heap analysis, and prevention patterns.
Design a multi-tenant architecture for a SaaS application covering data isolation, tenant configuration, resource allocation, and billing integration.
Create a code contribution guide for an open-source project covering fork workflow, branch naming, commit messages, PR template, and review process.
Write a contract test suite for a microservices API covering consumer-driven contracts, provider verification, and backwards compatibility checks.
Generate a blue-green deployment strategy for a [application] covering environment setup, traffic switching, health validation, and rollback procedures.
Create a pagination strategy comparison for APIs covering offset, cursor, keyset, and seek methods with performance characteristics and use cases.