Coding AI Prompts
Prompts for writing, debugging, reviewing, and optimizing code.
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.
Write Unit Tests for Any Function
Generate comprehensive unit tests for any function or class, covering happy paths, edge cases, and error conditions.
Code Review — Thorough Senior Engineer Feedback
Get a senior engineer's code review covering correctness, performance, security, readability, and maintainability.
Refactor a Function for Clarity and Performance
Transform messy, complex, or slow functions into clean, readable, and efficient code while preserving exact behavior.
Write a REST API Endpoint
Generate a complete REST API endpoint with validation, error handling, authentication check, and documentation.
Explain Code — Plain English Breakdown
Get a plain-English explanation of complex code, from high-level purpose down to line-by-line detail.
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.
Write a Regex Pattern
Generate accurate, explained regular expressions for any pattern-matching task with test cases.
Write a SQL Query from Plain English
Describe what data you need in plain English and get the correct SQL query with an explanation.
Optimize an Algorithm for Speed or Memory
Analyze your algorithm's time and space complexity and get an optimized version with explanation.
Write a Dockerfile for Any Application
Generate a production-ready, optimized Dockerfile with multi-stage builds, security best practices, and caching.
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.
Write a Professional README
Generate a comprehensive, well-structured README for any project with all standard sections.
Write API Documentation (OpenAPI / Swagger)
Generate OpenAPI 3.0 spec or human-readable API docs from your endpoint descriptions or code.
Design a Database Schema
Get a normalized, production-ready database schema for any application with tables, indexes, and constraints.
Build a React Component
Generate a complete, accessible React component with TypeScript types, props, and Tailwind styling.
Write a CSS Layout (Grid or Flexbox)
Generate clean, responsive CSS layouts using Grid or Flexbox with cross-browser support.
Write TypeScript Types and Interfaces
Generate precise TypeScript types, interfaces, generics, and utility types for any data structure.
Add Robust Error Handling to Any Code
Add comprehensive error handling, retry logic, and graceful degradation to any function or module.
Write a Great Git Commit Message
Generate a clear, conventional commit message from a description of your changes.
Add Meaningful Code Comments
Add clear, useful inline comments and docstrings to uncommented or poorly commented code.
Security Audit — Find Vulnerabilities in Code
Perform a security audit identifying OWASP Top 10 vulnerabilities, injection risks, and authentication flaws.
Write a Database Migration
Generate a safe, reversible database migration for schema changes with up and down functions.
Design a GraphQL Schema
Generate a complete GraphQL schema with types, queries, mutations, subscriptions, and resolver signatures.
Implement a Rate Limiter
Build a production-ready rate limiter using token bucket or sliding window algorithm.
Profile and Fix Performance Bottlenecks
Analyze code for performance issues, identify the slowest paths, and get optimized solutions.
Implement a WebSocket Server Handler
Build a complete WebSocket server with connection management, rooms, broadcasting, and reconnection logic.
Accessibility Audit — Fix WCAG Issues
Audit HTML/JSX for WCAG 2.1 AA accessibility violations and get specific fixes.
Design a Logging Strategy for Any Application
Design structured logging with appropriate levels, context fields, and observability integrations.
Resolve a Git Merge Conflict
Understand and correctly resolve a git merge conflict by understanding both branches' intent.
Build a CLI Tool in Node.js or Python
Generate a complete command-line tool with argument parsing, help text, and proper error handling.
Create a Mock API Server for Development
Build a mock API server that returns realistic fake data for frontend development without a real backend.
Write a Dev Environment Setup Script
Generate a shell script that sets up a complete development environment from scratch.
Design a Cron Job / Scheduled Task
Implement a reliable scheduled job with idempotency, error handling, and distributed locking.
Model Business Logic as a State Machine
Convert complex business logic with many states and transitions into a clean state machine implementation.
Implement OAuth2 / Social Login
Build a complete OAuth2 social login flow with token handling, refresh logic, and account linking.
Build a Feature Flag System
Implement a feature flag system with user targeting, gradual rollout, and A/B testing support.
Integrate Stripe Payments
Build a complete Stripe integration with checkout, webhooks, subscriptions, and customer portal.
Add a Redis Caching Layer
Implement Redis caching with TTL strategies, cache invalidation, and cache-aside pattern.
Implement a Background Job Queue
Set up a background job queue with retry logic, concurrency control, and job monitoring.
Implement a Design Pattern
Implement any classic or modern design pattern with explanation, use cases, and pitfalls.
Build an API Client / SDK
Generate a well-designed API client library with authentication, error handling, and TypeScript types.
Set Up a Monorepo with Turborepo
Configure a monorepo with shared packages, proper workspace linking, and optimized CI/CD pipelines.
Build a Web Scraper
Write a resilient web scraper with rate limiting, error handling, and structured data extraction.
Implement Internationalization (i18n)
Add internationalization to any web application with proper pluralization, locale detection, and RTL support.