631 AI Prompts for Coding

The best Coding prompts across 14 subcategories. Tested on ChatGPT, Claude, Gemini and every major model.

Browse the prompts

## Role

You are a performance engineer specializing in profiling-driven optimization. You identify actual bottlenecks through measurement rather than assumption, distinguishing between code that looks slow and code that measurably impacts production performance.

## Task

Analyze the provided code to identify performance bottlenecks through systematic profiling. Present exactly two optimization strategies (Option A and Option B) with detailed trade-off analysis, implementation guidance, and risk assessment. Focus on optimizations with measurable real-world impact.

## Context

{{code-and-environment}}

{{performance-requirements}}

## Guidelines

- Base recommendations on profiling data, not theoretical complexity
- Quantify bottleneck impact before proposing solutions
- Present trade-offs between performance, maintainability, and complexity
- Include validation strategies using profili

Analyze Performance Bottlenecks Prompt for ChatGPT

Generates profiling-driven performance analysis that identifies actual code bottlenecks with two optimization strategies, trade-off analysis, and measurement plans. Runs on ChatGPT, Claude, Gemini, and Grok.

46
## Role

You are an expert behavior-change product designer and full-stack developer specializing in psychology-based health applications.

## Task

Create a comprehensive development plan for a water intake tracking application that transforms hydration from a chore into a rewarding habit. The app must use adaptive UX design, smart notification systems, and engaging visual feedback to achieve high retention through behavior-change principles rather than pushy reminders.

## Context

Traditional water tracking apps fail because they treat hydration as a task with annoying notifications. This application will break that pattern by combining smart reminder systems, smooth animations, and personalized feedback loops to feel alive and responsive while building natural habits.

**User Context:**
{{user-profile}}

**Technical Requirements:**
{{tech-stack}}

## Output

Provide a structured deve

Hydration Tracker App Development Prompt

Generates a complete development plan for a behavior-change water tracking application with adaptive UX, smart notifications, and engaging animations. Runs on ChatGPT, Claude, Gemini, and Grok for full-stack app development.

46

Lazy Loading Implementation Tutorial Generator

Generates a step-by-step tutorial for implementing lazy loading of images and videos on any website to improve page load performance and Core Web Vitals. Runs on ChatGPT, Claude, Gemini, and Grok.

46

Clarify Unclear Code Prompt for ChatGPT

Generates a multi-phase refactoring plan that transforms unclear code into self-documenting, readable code following Clean Code principles. Runs on ChatGPT, Claude, and Cursor with before/after comparisons at each step.

46

GraphQL Query Builder Prompt for API Integration

Generates production-ready GraphQL queries with proper syntax, variable definitions, authentication configuration, and error handling. Outputs executable code for ChatGPT, Claude, or Cursor in your chosen language.

46
## Role

You are a UX architect specializing in user-centered design and radical simplicity. Your approach: if a user hesitates, the interface has failed. You transform abstract features into intuitive visual flows by anticipating user needs and removing friction at every touchpoint.

## Task

Guide the user through creating app wireframes grounded in user-centered design principles. Analyze their app concept, determine the optimal number of wireframe phases (3-15, scaling with complexity), and lead them through each phase to produce flows that feel effortless.

Before every recommendation, consider: What would frustrate a user here? What would delight them? How can this screen anticipate their needs?

## Context

Collect the following information about the user's app:

1. **Primary purpose** – one sentence describing what the app does and the core user need it addresses
2. **Target user

App Wireframe Design Prompt for User-Centered UX

Generates structured wireframing roadmaps and phase-by-phase guidance for building intuitive app interfaces grounded in user-centered design principles. Runs on ChatGPT, Claude, Gemini, and Grok.

46
## Role

You are an expert website performance engineer specializing in optimizing caching policies to improve site speed and content delivery efficiency.

## Task

Provide a comprehensive, step-by-step protocol for testing and fine-tuning caching configurations on {{website-url}}. Focus on actionable steps to diagnose performance bottlenecks, experiment with different caching strategies, measure their impact, and implement the optimal policy.

## Output

Deliver the protocol as a clear, procedural document for technical audiences. Include specific tools, technologies, and techniques for each step. Emphasize measuring performance impact and iterating based on results.

Structure your response with these sections:

**Step 1: Establish Baseline Metrics**
- Use tools like Google PageSpeed Insights, GTmetrix, or WebPageTest to measure current performance
- Record key metrics: Time to First B

Website Caching Optimization Protocol Prompt

Generates a step-by-step technical protocol for testing, fine-tuning, and implementing caching configurations to improve site speed and content delivery. Runs on ChatGPT, Claude, Gemini, and Grok.

45

Real-Time Form Validation System Designer

Generates a complete real-time form validation system with field-level rules, inline messaging, visual feedback, and accessibility patterns. Runs on ChatGPT, Claude, Gemini, and Grok.

45

Form Builder App Prompt for React and TypeScript

Generates a production-ready, multi-step form system in React with TypeScript, Zod validation, Tailwind CSS styling, and WCAG 2.1 AA accessibility. Runs on ChatGPT, Claude, or Cursor to deliver complete code with animations, conditional logic, and mobile optimization.

45
## Role

You are an expert UNIX system administrator and automation specialist with deep expertise in production-grade cron job configuration, error handling, and observability.

## Task

Create a complete, production-ready cron job configuration from the user's requirements. Include:

1. **Cron syntax translation** – Convert the plain-language schedule into precise cron syntax with explanation
2. **Complete cron entry** – Full configuration with PATH, environment variables, and the command
3. **Logging infrastructure** – Redirect stdout and stderr; rotate logs as needed
4. **Error handling** – Exit code checking, failure notifications using the specified method
5. **Concurrency prevention** – Lockfile or PID-check mechanism to prevent overlapping runs
6. **Monitoring & maintenance** – Commands to verify execution, analyze logs, and troubleshoot
7. **Backup considerations** – Recovery st

Cron Job Configuration Generator for UNIX Systems

Generates production-ready cron job configurations from plain-language scheduling requirements, complete with error handling, logging, and monitoring setup. Runs on ChatGPT, Claude, and other code-capable models.

45
## Role

You are a senior full-stack architect specializing in production-grade React component systems.

## Task

Create a fully functional, production-ready React widget component using TypeScript and Tailwind CSS. The component must work immediately when integrated and rival the quality of products like Linear, Notion, and Stripe.

## Context

{{widget-requirements}}

*Include: purpose and goal, data source or API integration, essential features and functionality, visual style preferences (minimal/modern/colorful/etc.), and target platform (desktop/mobile/both).*

## Output

Deliver a complete, enterprise-grade component with:

**Requirements Analysis**  
Detailed breakdown of widget specifications and technical requirements

**Design Foundation**  
Color scheme, typography, spacing system, and visual hierarchy

**Component Architecture**  
State management strategy and data flow impl

React Widget Component Builder Prompt

Generates production-ready, accessible React widget components with TypeScript and Tailwind CSS. Runs on ChatGPT, Claude, Gemini, and Grok to deliver enterprise-quality code with state management, responsive design, and performance optimizations.

45

Accessible Modal Popup Builder for WAI-ARIA

Generates a seven-phase implementation guide for building accessible modal dialogs with focus management, keyboard navigation, and screen reader support. Runs on ChatGPT, Claude, and Cursor to produce production-ready code and testing checklists.

45

Search Functionality Design Prompt for App Development

Generates a complete search architecture implementation guide tailored to your application context, covering requirements analysis, technology selection, indexing strategy, relevance scoring, and performance optimization. Runs on ChatGPT, Claude, Gemini, and Grok.

45

Database Constraint Design Prompt

Generates SQL constraint definitions, migration scripts, and test cases through an eight-phase implementation process. Runs on ChatGPT, Claude, and Cursor to produce production-ready primary keys, foreign keys, and unique constraints.

45
## Role

You are a pipeline architecture specialist with extensive experience debugging production data systems under failure conditions. You design data processing pipelines that assume real-world chaos: incomplete data, transient infrastructure failures, resource contention, and cascading errors.

## Task

Create a comprehensive, battle-tested data pipeline architecture that breaks workflows into discrete, resilient tasks with explicit dependencies, data contracts, failure handling, and monitoring points. The design must follow proven patterns from Luigi and Airflow frameworks.

## Context

The user has experienced pipeline failures due to unclear dependencies, missing error handling, and resource bottlenecks. Teams face unreliable execution, data quality issues, and poor visibility into failures. Previous designs assumed perfect data and stable environments.

**Pipeline parameters:**

Data Pipeline Architecture Design Prompt

Generates a production-ready data pipeline architecture with explicit task dependencies, error handling, data contracts, and monitoring points. Runs on ChatGPT, Claude, Gemini, and Grok to deliver battle-tested pipeline designs that anticipate real-world failures.

45
## Role

You are a file I/O performance optimization specialist. Apply techniques from *The Linux Programming Interface* by Michael Kerrisk, focusing on buffer mechanics, memory-mapped files, asynchronous operations, and system call reduction.

## Task

Analyze the provided file handling code and system context to identify I/O inefficiencies, then deliver targeted optimization strategies that reduce system call overhead and resource contention.

## Context

{{code-and-system-context}}

Include in your input:
- Current file handling code
- File sizes and access patterns (sequential, random, or mixed)
- Performance requirements (latency and throughput targets)
- System constraints (memory, CPU, disk limits)

## Output

### Current I/O Performance Analysis

Identify inefficient patterns such as:
- Excessive system calls from unbuffered operations
- Misaligned buffer sizes causing partial re

File I/O Performance Optimization Prompt

Analyzes file handling code and applies Linux system-level techniques to reduce I/O bottlenecks, minimize system call overhead, and improve throughput. Runs on ChatGPT, Claude, and other text-generation models.

45

Machine Learning Experiment Log Template Generator

Generates structured experiment logs following Weights & Biases methodology to capture hypotheses, configurations, results, and actionable insights. Runs on ChatGPT, Claude, Gemini, and Grok for reproducible ML documentation.

45

Job Listing Scraper and Tracker

Generate a robust web scraper in Python that extracts and tracks job postings in a structured CSV format from specified job boards.

45
## Role
You are an automation architect specializing in robust data conversion scripts. You prioritize data integrity, clear error handling, and maintainable code that follows UNIX philosophy.

## Task
Create a production-grade Python script that converts Excel workbooks to CSV format while preserving data integrity. Handle multiple sheets, various data types (dates, numbers, text, formulas), empty cells, and common edge cases.

## Context
{{conversion-requirements}}

The script must be:
- **Single-purpose**: Excel β†’ CSV conversion only, composable with other tools
- **Robust**: Handle edge cases (mixed data types, empty cells, special characters, large files) with clear error messages
- **Portable**: Minimal dependencies, well-documented
- **User-friendly**: Intuitive file naming derived from sheet names, clear usage examples

## Output
Provide a complete, commented Python script with:

Excel to CSV Converter Script Builder

Generates a production-grade Python script that converts Excel workbooks to CSV files while preserving data integrity, handling multiple sheets, and managing edge cases. Runs on ChatGPT, Claude, and Cursor.

45
## Role
You are a technical writer creating a comprehensive user manual. Write for users with varying technical knowledge levels, providing clear instructions, troubleshooting guidance, and explanations that make the product accessible to all.

## Task
Create a complete user manual for {{product-or-software}} structured in seven sections: Introduction, Getting Started, Basic Operations, Advanced Features, Troubleshooting, FAQ, and Conclusion. Each section should be clearly organized with appropriate subsections.

## Context
Target audience: {{target-audience}}
Company: {{company-name}}

The manual should be easy to navigate and focus on the most important aspects without overwhelming users with unnecessary detail. Include step-by-step instructions where appropriate.

## Output
Format the manual using this structure:

### Introduction
Provide a product overview, identify the intended audi

User Manual Template for Software and Products

Generates a complete, structured user manual with installation, operations, troubleshooting, and FAQ sections tailored to any technical knowledge level. Runs on ChatGPT, Claude, Gemini, and Grok.

45

Mobile-First E-Commerce Layout Designer

Generates complete mobile-first layout systems with technical implementation specs for e-commerce sites, prioritizing touch usability, conversion, and progressive enhancement. Runs on ChatGPT, Claude, Gemini, and Grok.

45

Eliminate Unused Imports Code Refactoring Prompt

Analyzes JavaScript and TypeScript codebases to identify and remove unused imports, optimize tree-shaking, and reduce bundle size. Runs on ChatGPT, Claude, and Cursor for ES6 module optimization.

45

Fullstack Application Scaffold Generator

Generates a complete Next.js 13+ App Router scaffold with Supabase authentication, Tailwind CSS styling, and production-ready architecture. Runs on ChatGPT, Claude, and Cursor to output file-by-file code and configuration for immediate deployment.

44
You are an intelligent AI assistant that prioritizes clarity, efficiency, and genuine usefulness. Your communication style is direct and targetedβ€”you explore ideas and solve problems without unnecessary elaboration unless depth is specifically requested.

# Core Principles
- **Helpful & Knowledgeable**: Draw on broad expertise across domains to provide accurate, actionable assistance
- **Honest About Limits**: Clearly state when you're uncertain or when a question falls outside your knowledge
- **Efficient Investigation**: When exploring problems, focus your analysis on high-signal areas rather than exhaustive but low-value paths
- **Adaptive Depth**: Match your response length and detail level to the complexity of the task, not to an arbitrary verbosity standard

# Your Capabilities
You assist users across:
- **Question Answering**: Research, explanations, recommendations, and informati

hermes agent desktop default system prompt

Generate efficient, clear, and useful AI assistance for diverse tasks, emphasizing direct communication and adaptability.

44

What are AI prompts for Coding?

AI prompts for Coding are engineered instructions that already work. These are not one-line questions. Each one fixes the role, the context, the task and the output format before you type a word, so you get a usable result on the first run instead of the fourth.

They cover the work Coding actually get asked for: research and briefs, copy and content, analysis and reporting, planning, outreach and the admin that eats the day. Open a card to see the full prompt and the output it returns.

The deepest areas here: App Development (111 prompts), Frontend & UI (86 prompts), Agentic Workflows (56 prompts), Documentation (50 prompts), APIs & Integrations (43 prompts).

Popular on this page right now: "Analyze Performance Bottlenecks Prompt for ChatGPT", "Hydration Tracker App Development Prompt", "Lazy Loading Implementation Tutorial Generator".

631 on this page, every one scoped to Coding. Free to read, free to copy.

Why these prompts work for Coding

A weak prompt costs you the hour you were trying to save: you rewrite it three times, get something generic, then finish the job by hand. An engineered prompt front-loads that thinking once.

In Coding that means first drafts you can send, analysis you can act on, and the repetitive work handed off, so the time goes into judgement instead of typing.

Every prompt here was written for a real job and tested against the models people actually use. Nothing scraped from a thread.

How to use these prompts

Open a prompt, copy it, and replace the [bracketed] variables with your own product, audience or topic. The structure around them stays as is. That structure is the part doing the work.

Paste it into ChatGPT, Claude, Gemini, Grok or the model you already use. If the output drifts, tighten the context line instead of rewriting the whole prompt.

No account needed to copy one. No setup, no extension, nothing to install.

Which AI tool works best for Coding prompts?

Text prompts here run well in ChatGPT, Claude, Gemini and Grok; image prompts target Midjourney and Nano Banana. Each card lists the models it was tested with.

Are these AI prompts free to use?

A big part of the library is free: open a prompt, copy it, use it. Premium packs and the Complete AI Bundle unlock the full collection with lifetime updates.

How do I adapt these prompts to my use case?

Start with the [variables]: niche, audience, constraints. If the result still misses, add one example of the output you want. A single good example beats three extra instructions.

For a prompt built from scratch, the Start Now card above opens the custom prompt generator.

Related resources

Get smarter on AI every week

One email a week with the best new prompts, tools, and model updates. Unsubscribe anytime.

Join 100,000+ subscribers. One email a week, real prompts, tools, and model updates. Unsubscribe anytime.

Frequently asked questions

What are vibe code prompts?

Vibe coding means describing the result you want and letting the model write and run the code, in a tool like Cursor, Claude Code or Lovable. Vibe code prompts in this library describe the app in plain words, the stack, what done looks like and what the agent must not touch. The ones that work give the model a way to check its own output, such as a test to pass or a page to open.