Coding AI Prompts
Architect clean software, debug tricky edge cases, refactor legacy modules, and design APIs.
Getting Better Results with Coding Prompts
Provide Specific Context
When using prompts in this category, fill in every interactive variable with real constraints, specific tech stacks, or targeted audiences to eliminate generic AI verbosity.
Select the Optimal Model
Every prompt includes model compatibility tags. Use Claude 3.5 Sonnet for code and complex structural reasoning, GPT-4o for versatile copywriting, and Gemini for extensive document synthesis.
Iterative Refinement
Each prompt outputs structured sections. You can easily follow up with prompts like “refactor step 2 with higher conciseness” or “expand the edge cases” to lock in ideal results.
Prompts in Coding
Filter by subtopic or search keywords to find the exact prompt for your workflow.
Principal Code Reviewer & Architecture Auditor
Conduct rigorous architectural code reviews identifying memory leaks, race conditions, and typing holes.
SQL Query Performance Optimizer & Index Explainer
Analyze slow SQL queries, explain EXPLAIN ANALYZE bottlenecks, and suggest optimal B-tree or partial indexes.
Production Incident Post-Mortem & Root-Cause Synthesizer
Convert messy incident Slack logs and alerts into a blameless, rigorous post-mortem with corrective action items.
Pragmatic REST & GraphQL API Contract Architect
Design robust, backwards-compatible API contracts with clean error schemas, pagination, and idempotency keys.
Exhaustive Edge-Case Unit & Integration Test Generator
Analyze production functions to discover subtle concurrency, boundary, and null pointer edge cases and write unit tests.
Monolith to Modular Decoupling & Boundary Architect
Carve clear bounded contexts out of entangled monoliths using the Strangler Fig pattern and event-driven seams.
Algorithm Big-O Time & Space Complexity Optimizer
Profile nested iterations and un-indexed lookups to refactor O(N^2) algorithms into O(N) or O(N log N) implementations.
Legacy Codebase Refactoring & Technical Debt Reducer
Systematically deconstruct tightly coupled spaghetti code into isolated, testable pure functions without breaking behavior.
Engineering RFC & Technical Design Document Author
Author comprehensive Request for Comments (RFC) documents detailing alternatives considered, trade-offs, and rollout risks.
OWASP Security Vulnerability & Dependency Auditor
Inspect code modules for injection vulnerabilities, insecure deserialization, broken access controls, and auth flaws.
Architectural Decision Record (ADR) Analysis & Trade-Off Matrix
Evaluate competing technical architectures, state assumptions, and document a formal Architectural Decision Record.
REST & GraphQL API Design & Backwards Compatibility Review
Audit proposed API endpoints for idempotent operations, naming consistency, pagination schemas, and breaking change risks.
Relational & NoSQL Database Schema & Indexing Audit
Audit database tables, composite indexes, foreign keys, partition strategies, and N+1 query vulnerability points.
Safe Incremental Refactoring Plan for Complex Legacy Code
Formulate a phased refactoring strategy using the Mikado Method and Strangler pattern to eliminate risk.
Edge-Case Driven Unit Test Suite Generator with Mocks
Generate thorough, resilient unit test suites targeting boundary conditions, error branches, and mock contracts.
End-to-End & Integration Test Boundary Specification
Architect integration test boundaries with ephemeral test containers, database seed strategies, and external API stubs.
Production Bug Forensic Root-Cause Analysis & 5-Whys
Conduct a blameless post-mortem, trace crash telemetry, and execute a 5-Whys root cause investigation.
Production Engineering Runbook & Architecture Documentation
Generate actionable on-call runbooks with telemetry thresholds, mitigation steps, and architectural diagrams.
Constructive Multi-Dimension Pull Request Code Review
Conduct a senior code review balancing correctness, concurrency edge cases, readability, and performance.
Legacy Monolith to Modular Service Modernization Roadmap
Plan a low-risk migration from legacy monolithic architecture to modular domain boundaries using the Strangler pattern.
System Performance Bottleneck & Latency Waterfall Profiler
Diagnose CPU spikes, memory leaks, event loop delays, and distributed latency waterfalls in production.
Defensive Application Security & OWASP Code Vulnerability Audit
Conduct a defensive security audit targeting OWASP Top 10 vulnerabilities, IDOR, SSRF, and auth bypasses.
Collections Featuring Coding
Multi-stage prompt suites designed to solve end-to-end projects.
AI Prompts for Software Developers
Engineered for software engineers, backend architects, and full-stack developers who need AI to operate as an unforgiving peer reviewer and architecture sounding board. Rather than generic code autocomplete, this collection guides you from initial technical design (RFCs and ADRs) through exhaustive test generation, multi-dimension pull request auditing, production incident analysis, and latency profiling.
AI Prompts for React Developers
Curated for React engineers building complex, performance-critical web applications. Move past basic component styling with advanced prompts for React 19 Server Components, compound component patterns, Zustand state architecture, custom hook logic extraction, re-render cascade profiling, and accessible React Testing Library suites.
Related Categories
Explore adjacent categories that complement Coding.
JavaScript
Master modern ECMAScript features, asynchronous event loops, closures, and TypeScript patterns.
React
Build robust component architectures, state machines, custom hooks, and React 19 features.
Next.js
Master the App Router, Server Actions, route handlers, Turbopack, and edge caching strategies.
Freelancing
Price client engagements, draft scope of work documents, manage client scope creep, and pitch retainers.
Related Engineering Guides
System prompt architectures, playbooks, and best practices for Coding.
How to Write Better AI Prompts
A comprehensive playbook for crafting high-fidelity prompts: mastering context, roles, objectives, constraints, output schemas, few-shot examples, and systematic iteration.
AI Prompts for Software Developers
Turn modern LLMs into senior engineering peers: tactical prompt patterns for architecture review, edge-case test generation, root-cause debugging, and technical documentation.