⌨️

Coding AI Prompts

Prompts for writing, debugging, reviewing, and optimizing code.

45 prompts·8 beginner·23 intermediate·14 advanced
All (45)debugging (1)testing (1)review (1)refactoring (1)backend (5)documentation (4)conversion (1)utilities (1)database (3)performance (3)devops (4)frontend (4)typescript (1)reliability (2)git (2)security (1)api (1)tooling (3)architecture (3)authentication (1)payments (1)data engineering (1)
debuggingbeginner

Debug Code — Find and Fix Bugs

Paste your broken code and get a clear explanation of every bug, why it fails, and a corrected version with inline comments.

debuggingbug-fixcode-review
testingbeginner

Write Unit Tests for Any Function

Generate comprehensive unit tests for any function or class, covering happy paths, edge cases, and error conditions.

testingunit-testsjest
reviewintermediate

Code Review — Thorough Senior Engineer Feedback

Get a senior engineer's code review covering correctness, performance, security, readability, and maintainability.

code-reviewsecurityperformance
refactoringintermediate

Refactor a Function for Clarity and Performance

Transform messy, complex, or slow functions into clean, readable, and efficient code while preserving exact behavior.

refactoringclean-codeperformance
backendintermediate

Write a REST API Endpoint

Generate a complete REST API endpoint with validation, error handling, authentication check, and documentation.

apirestbackend
documentationbeginner

Explain Code — Plain English Breakdown

Get a plain-English explanation of complex code, from high-level purpose down to line-by-line detail.

documentationlearningcode-explanation
conversionintermediate

Convert Python to JavaScript (or Any Language)

Accurately translate code from one language to another while preserving logic and applying the target language's idioms.

language-conversionpythonjavascript
utilitiesintermediate

Write a Regex Pattern

Generate accurate, explained regular expressions for any pattern-matching task with test cases.

regexpattern-matchingutilities
databaseintermediate

Write a SQL Query from Plain English

Describe what data you need in plain English and get the correct SQL query with an explanation.

sqldatabasequery
performanceadvanced

Optimize an Algorithm for Speed or Memory

Analyze your algorithm's time and space complexity and get an optimized version with explanation.

algorithmsperformancebig-o
devopsintermediate

Write a Dockerfile for Any Application

Generate a production-ready, optimized Dockerfile with multi-stage builds, security best practices, and caching.

dockerdevopscontainerization
devopsintermediate

Create a GitHub Actions CI/CD Workflow

Generate a complete GitHub Actions workflow for CI, CD, or automation with proper job structure and secrets handling.

github-actionsci-cddevops
documentationbeginner

Write a Professional README

Generate a comprehensive, well-structured README for any project with all standard sections.

documentationreadmeopen-source
documentationintermediate

Write API Documentation (OpenAPI / Swagger)

Generate OpenAPI 3.0 spec or human-readable API docs from your endpoint descriptions or code.

apidocumentationopenapi
databaseintermediate

Design a Database Schema

Get a normalized, production-ready database schema for any application with tables, indexes, and constraints.

databaseschemasql
frontendintermediate

Build a React Component

Generate a complete, accessible React component with TypeScript types, props, and Tailwind styling.

reacttypescriptfrontend
frontendbeginner

Write a CSS Layout (Grid or Flexbox)

Generate clean, responsive CSS layouts using Grid or Flexbox with cross-browser support.

csstailwindlayout
typescriptintermediate

Write TypeScript Types and Interfaces

Generate precise TypeScript types, interfaces, generics, and utility types for any data structure.

typescripttypesinterfaces
reliabilityintermediate

Add Robust Error Handling to Any Code

Add comprehensive error handling, retry logic, and graceful degradation to any function or module.

error-handlingreliabilityretry-logic
gitbeginner

Write a Great Git Commit Message

Generate a clear, conventional commit message from a description of your changes.

gitcommit-messagesconventional-commits
documentationbeginner

Add Meaningful Code Comments

Add clear, useful inline comments and docstrings to uncommented or poorly commented code.

commentsdocumentationcode-quality
securityadvanced

Security Audit — Find Vulnerabilities in Code

Perform a security audit identifying OWASP Top 10 vulnerabilities, injection risks, and authentication flaws.

securityvulnerabilityowasp
databaseintermediate

Write a Database Migration

Generate a safe, reversible database migration for schema changes with up and down functions.

databasemigrationpostgresql
apiintermediate

Design a GraphQL Schema

Generate a complete GraphQL schema with types, queries, mutations, subscriptions, and resolver signatures.

graphqlapischema
backendadvanced

Implement a Rate Limiter

Build a production-ready rate limiter using token bucket or sliding window algorithm.

rate-limitingbackendredis
performanceadvanced

Profile and Fix Performance Bottlenecks

Analyze code for performance issues, identify the slowest paths, and get optimized solutions.

performanceprofilingoptimization
backendadvanced

Implement a WebSocket Server Handler

Build a complete WebSocket server with connection management, rooms, broadcasting, and reconnection logic.

websocketreal-timebackend
frontendintermediate

Accessibility Audit — Fix WCAG Issues

Audit HTML/JSX for WCAG 2.1 AA accessibility violations and get specific fixes.

accessibilitywcaga11y
reliabilityintermediate

Design a Logging Strategy for Any Application

Design structured logging with appropriate levels, context fields, and observability integrations.

loggingobservabilitymonitoring
gitintermediate

Resolve a Git Merge Conflict

Understand and correctly resolve a git merge conflict by understanding both branches' intent.

gitmerge-conflictversion-control
toolingintermediate

Build a CLI Tool in Node.js or Python

Generate a complete command-line tool with argument parsing, help text, and proper error handling.

clitoolingnode-js
toolingbeginner

Create a Mock API Server for Development

Build a mock API server that returns realistic fake data for frontend development without a real backend.

mockapitesting
devopsintermediate

Write a Dev Environment Setup Script

Generate a shell script that sets up a complete development environment from scratch.

shelldevopssetup
backendadvanced

Design a Cron Job / Scheduled Task

Implement a reliable scheduled job with idempotency, error handling, and distributed locking.

cronscheduled-jobsbackend
architectureadvanced

Model Business Logic as a State Machine

Convert complex business logic with many states and transitions into a clean state machine implementation.

state-machinearchitecturexstate
authenticationadvanced

Implement OAuth2 / Social Login

Build a complete OAuth2 social login flow with token handling, refresh logic, and account linking.

oauthauthenticationsecurity
architectureadvanced

Build a Feature Flag System

Implement a feature flag system with user targeting, gradual rollout, and A/B testing support.

feature-flagsa-b-testingarchitecture
paymentsadvanced

Integrate Stripe Payments

Build a complete Stripe integration with checkout, webhooks, subscriptions, and customer portal.

stripepaymentssubscriptions
performanceintermediate

Add a Redis Caching Layer

Implement Redis caching with TTL strategies, cache invalidation, and cache-aside pattern.

rediscachingperformance
backendadvanced

Implement a Background Job Queue

Set up a background job queue with retry logic, concurrency control, and job monitoring.

queuebackground-jobsbullmq
architectureadvanced

Implement a Design Pattern

Implement any classic or modern design pattern with explanation, use cases, and pitfalls.

design-patternsarchitecturetypescript
toolingadvanced

Build an API Client / SDK

Generate a well-designed API client library with authentication, error handling, and TypeScript types.

sdkapi-clienttypescript
devopsadvanced

Set Up a Monorepo with Turborepo

Configure a monorepo with shared packages, proper workspace linking, and optimized CI/CD pipelines.

monorepoturborepoarchitecture
data engineeringintermediate

Build a Web Scraper

Write a resilient web scraper with rate limiting, error handling, and structured data extraction.

web-scrapingpythonplaywright
frontendintermediate

Implement Internationalization (i18n)

Add internationalization to any web application with proper pluralization, locale detection, and RTL support.

i18ninternationalizationlocalization