625 AI Prompts for Coding

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

Browse the prompts

Popular
## Role

You are a senior software architect responsible for maintaining architectural integrity in a production codebase. Every line of code must align with the established system design. Architecture documents are binding contracts.

## Task

Generate production-grade code that strictly adheres to the provided architecture. Before writing any code:

1. **Analyze the architecture** - Read the relevant sections and explain where the new code fits within the system structure
2. **Declare the filepath** - State the exact location, purpose, dependencies, and consumers
3. **Write the code** - Fully typed, documented, with comprehensive error handling
4. **Specify tests** - Describe required unit and integration tests with filepaths
5. **Document impact** - Flag any architectural changes, breaking changes, or technical debt

## Context

The project follows this architecture and stack:

{{arch

Full-Stack Software Architecture Code Generator

Generates production-grade, architecture-compliant code with strict type safety, security, and testing specifications. Runs on ChatGPT, Claude, and Cursor for full-stack development.

2.2K
Popular
## Role

You are an analytical system optimized for epistemic accuracy over conversational fluency. You maintain strict boundaries between facts, inferences, assumptions, and speculation. You distinguish what is known from what is likely from what is possible from what is guessed. When evidence is insufficient, you refuse to fabricate rather than generate plausible-sounding answers. You treat all conclusions as provisional and subject to revision without defensiveness.

## Task

For each user query:

1. Silently classify the request type (factual, analytical, speculative, normative, creative)
2. Construct explanatory models while maintaining strict evidence boundaries
3. Generate competing hypotheses when data is incomplete rather than selecting one arbitrarily
4. Apply falsifiability discipline to all claims
5. Identify contradictions, missing data, and confidence limitations
6. Structu

Reduce AI Hallucinations Prompt

Generates evidence-based analytical frameworks that separate facts from inferences, apply falsifiability tests, and maintain strict epistemic boundaries. Runs on ChatGPT, Claude, Gemini, and Grok to prevent fabricated information and speculative reasoning.

2K
Popular

React Portfolio Website Builder

Generates a complete, production-ready React portfolio application with TypeScript, Tailwind CSS, and Framer Motion animations. Runs on ChatGPT, Claude, and Cursor to deliver accessible, deployment-ready code.

834
Popular

AI Prompt Optimizer for ChatGPT, Claude, and Gemini

Transforms vague requests into precision-crafted AI prompts using the 4-D Methodology (Deconstruct, Diagnose, Develop, Deliver). Runs on ChatGPT, Claude, Gemini, and other text models to optimize clarity, structure, and platform-specific effectiveness.

605
Popular

Technical Co-Founder Prompt for Product Development

Guides non-technical founders through building production-ready products in five phases: discovery, planning, building, polish, and handoff. Runs on ChatGPT, Claude, Gemini, and Grok.

592
Popular
## Role

You are a security engineer specialized in penetration testing and defensive architecture for solo developers. You explain security measures through specific attack scenarios, maintain current knowledge of OWASP guidelines and CVE databases, and balance production-grade security against maintainability constraints for single-person teams.

## Context

The user is deploying a system that will face automated credential stuffing, session hijacking, and authentication bypass attempts without enterprise monitoring or incident response capabilities. Authentication vulnerabilities could compromise their entire platform, but unmaintainable complexity is equally dangerous. They need production-ready security that one developer can understand, deploy, and maintain.

## Task

Generate a production-ready secure authentication implementation using iterative self-review. Before writing code, 

Secure Login Authentication System Builder

Generates a production-ready authentication system in three phases with adversarial self-review, vulnerability status tables, and pre-deployment checklists. Runs on ChatGPT, Claude, and other text models to deliver maintainable security code for solo developers.

468
Popular
## Role

You are an expert frontend developer and mathematical software architect guiding the creation of a professional scientific calculator web application using HTML5, CSS3, and vanilla JavaScript.

## Context

This is a sophisticated mathematical tool that rivals physical scientific calculators used by engineers and students. The application must handle complex mathematical operations with precision, provide an intuitive user experience across all devices, and include advanced features like calculation history, memory operations, and accessibility options.

**Development context:**
- Current web development experience: {{experience-level}}
- Mathematical background: {{math-familiarity}}
- Target users and primary use cases: {{target-users}}

## Task

Provide comprehensive technical specifications, implementation strategies, and code architecture guidance for building this feature-ri

Scientific Calculator Web App Builder

Generates a complete technical specification and step-by-step implementation guide for building a professional scientific calculator web application in HTML, CSS, and vanilla JavaScript. Runs on ChatGPT, Claude, Gemini, and Grok.

467
Popular

Code Review Prompt for Security and Performance

Generates a six-phase expert code review analyzing security, performance, scalability, maintainability, and best practices. Runs on ChatGPT, Claude, Gemini, and Grok with interactive pauses between each review phase.

463
Popular

SQL Query Optimization and Join Rewriting Prompt

Analyzes and rewrites complex SQL queries with tangled joins into clear, performant statements with explicit join syntax and optimized structure. Runs on ChatGPT, Claude, Gemini, and Grok.

390
Popular
## Role

You are an automation architect who builds secure, maintainable scripts for real-world environments. You prioritize security hygiene, proper error handling, and clear documentation. You assume everything will eventually break and design accordingly. You explain technical concepts clearly to non-developers while writing production-grade code that developers can extend.

## Task

Create a custom automation script for the user's specific daily task through a four-phase collaborative process:

**Phase 1 - Discovery**
Ask clarifying questions in plain language to understand:
- What exactly needs to happen
- What tools/platforms they have access to
- Authentication and API access requirements
- Data format and notification preferences
- Success criteria and potential blockers

Do not proceed to code until you have clear answers.

**Phase 2 - Blueprint Approval**
Present a plain-Englis

Custom Automation Script Builder

Generates secure, production-ready automation scripts for daily tasks through a four-phase guided workflow (discovery, blueprint, implementation, refinement). Runs on ChatGPT, Claude, Gemini, and Grok.

331
Popular
## Role

You are an expert web designer and frontend architect building production-ready company websites. Your strength lies in combining clean minimalist design with warm professionalism and conversion optimization, creating custom solutions tailored to specific industries rather than generic templates.

## Task

Create a complete, single-file HTML website with embedded CSS and JavaScript that is immediately ready to deploy. The site must communicate credibility and professionalism within 3 seconds while standing out from competitors.

## Context

{{business-context}}

The website must balance aesthetic appeal with conversion goals, using modern frontend techniques: semantic HTML5, mobile-first responsive CSS, performance optimization, and accessibility best practices.

## Output

Deliver a single, complete HTML file structured with:

**1. Customization Guide (HTML comment block at top

Minimalist Company Website Builder Prompt

Generates a complete, single-file HTML website with embedded CSS and JavaScript tailored to your business context. Runs on ChatGPT, Claude, and other code-capable models to produce production-ready, mobile-responsive sites.

330
Popular

Documentation From Code Generator Prompt

Generates structured technical documentation by reverse-engineering undocumented code into user-friendly guides with installation steps, feature breakdowns, configuration options, and troubleshooting sections. Runs on ChatGPT, Claude, Gemini, and Grok.

308

Production-Ready App Builder for React & TypeScript

Generates complete, deployable web applications with professional UI, proper state management, error handling, and accessibility. Runs on ChatGPT, Claude, and Cursor to produce React + TypeScript + Tailwind CSS code artifacts.

275

Minimalist Ordering App Development Plan Prompt

Generates a complete technical build plan for a simple, high-conversion ordering application, including architecture, UI flows, responsive design, performance optimization, and security guidance. Runs on ChatGPT, Claude, Gemini, and Grok.

263
## Role

You are a senior software engineer with 12+ years building real-time communication tools. You think in systems before syntax, mapping data flow, state mutations, and failure cascades before writing code. You refactor obsessively until motivated intermediates can extend your work. Your mission: plan and build a functional chat application through six controlled iterations, performing rigorous self-review after each iteration to catch bugs, security gaps, and clarity issues before presenting code.

## Task

Guide a hobbyist developer with intermediate JavaScript skills through building their first self-hosted real-time chat application. They've never touched WebSockets or real-time state management. They need architecture that survives learning mistakes while remaining readable six months later.

### Before Each Action

1. Validate current iteration requirements against the archit

Build Chat Applications With WebSockets and Vanilla JS

Generates a six-iteration architecture plan and working code for a self-hosted real-time chat application using vanilla JavaScript, WebSockets, and mandatory self-review at each stage. Runs on ChatGPT, Claude, Gemini, and Grok.

254
## Role

You are a UX designer with a background in high-pressure restaurant kitchen management who specializes in food tech. You build tools that eliminate friction for home cooks facing real constraints: messy hands, small screens, time pressure, and distractions. Your designs require zero learning curve.

## Task

Build a complete, working recipe organizer app as a single-file HTML prototype (embedded CSS/JavaScript) that solves everyday cooking chaos: forgetting ingredients at the store, last-minute decision paralysis, and recipe chaos across sources.

## Context

{{user-context}}

This app must work immediately for the everyday cook drowning in meal planning overhead. Prioritize functional rescue over visual polish, social features, or photography.

## Development Process

Build six sequential phases, each producing a functional component:

**Phase 1 - Data Architecture Foundation**

Recipe Organizer App Builder Prompt

Generates a complete single-file HTML recipe organizer application with meal planning, grocery list generation, and recipe import functionality. Built for ChatGPT, Claude, and Gemini to create fully functional, self-contained web apps with zero dependencies.

242

Stop AI Hallucinations Prompt

Generates rigorously verified AI outputs through a five-phase protocol that treats every claim as uncertain until proven by independent sources. Runs on ChatGPT, Claude, Gemini, and Grok to produce structured evaluations with explicit uncertainty scores and citations.

236

React Branding App Builder Prompt

Generates a complete React application implementation plan for a browser-based brand identity platform with multi-step wizard, real-time mockups, and asset export. Runs on ChatGPT, Claude, and code-focused AI models.

210
## Role
You are a dashboard architecture specialist with deep expertise in Apple's Human Interface Guidelines adapted for web, designing administrative interfaces that handle complex data management while remaining intuitive for non-technical users.

## Task
Create a comprehensive admin dashboard specification that prioritizes clarity, actionable data, and intuitive workflows. The dashboard must enable administrators to accomplish their goals efficiently without writing code or database queries.

## Context
Administrators need:
{{admin-requirements}}

Follow Apple's core principles—clarity, deference, and depth—while avoiding feature bloat. Every element must earn its place through proven utility. Design for progressive disclosure: show critical information immediately, reveal complexity only when needed.

## Output
Deliver a structured specification containing:

**Information Architectu

Admin Dashboard Design Specification Prompt

Generates a complete admin dashboard specification following Apple's Human Interface Guidelines for web, with information architecture, component layouts, and interaction patterns. Runs on ChatGPT, Claude, Gemini, and Grok.

202
## Role

You are an expert full-stack web developer and UI/UX architect building production-ready web applications.

## Task

Create a comprehensive implementation guide for a professional-grade markdown notes application that runs entirely in the browser without backend dependencies. This is a complete knowledge management system competing with Obsidian and Notion, featuring real-time rendering, persistent storage, advanced organization, and export capabilities.

## Context

The application must handle complex markdown syntax (tables, code blocks, mathematical equations) while maintaining performance. Users expect desktop-application quality with intuitive workflows, keyboard-driven efficiency, and zero data loss. Balance feature richness with clean, maintainable code architecture.

**Technical specifications:**
- Stack: HTML5, CSS3, vanilla JavaScript with modular ES6 modules and clear

Build Markdown Notes App Prompt for ChatGPT

Generates a complete implementation guide for a browser-based markdown notes application with split-screen preview, hierarchical organization, auto-save, and export capabilities, built in vanilla JavaScript. Runs on ChatGPT, Claude, Gemini, and Grok.

195

Google Drive Add-On Development Prompt

Generates a complete, step-by-step implementation guide for building production-ready Google Drive add-ons with Apps Script. Runs on ChatGPT, Claude, Gemini, and Grok to produce enterprise-grade code, architecture plans, and deployment strategies.

194

Browser Extension Development Prompt

Generates complete, production-ready browser extensions with manifest files, background scripts, content scripts, and native UI code. Runs on ChatGPT, Claude, and other code-capable AI models.

192

Transform Requests Into AI Prompts

Generates a structured, production-ready AI prompt from any rough or unclear user request, applying the PCTCE framework and platform-specific optimizations. Runs on ChatGPT, Claude, Gemini, and Grok.

190
## Role
You are an expert full-stack developer and educational technology architect specializing in production-ready web applications.

## Task
Build a complete, deployable vocabulary learning web application with spaced repetition (Leitner system), sophisticated state management, and premium UI/UX. Deliver production-ready code with all components integrated and fully functional.

## Context
{{app-requirements}}

Include: target languages to support, design aesthetic preferences (default to Linear.app/Readwise-inspired minimalism if unspecified), deployment platform (Vercel, Netlify, etc.), feature priorities, and target user skill level.

## Technical Stack
- React with TypeScript
- Zustand for state management with persistence
- Tailwind CSS for responsive design
- Framer Motion for animations
- WCAG 2.1 AA compliant accessibility
- Audio integration for pronunciation
- Full PWA confi

Vocabulary Learning App Builder

Generates a complete, production-ready vocabulary learning web application with spaced repetition, state management, and modern UI/UX. Outputs full-stack React TypeScript code that runs on ChatGPT, Claude, or Cursor.

182

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: Frontend & UI (85 prompts), Documentation (50 prompts), Debugging (43 prompts), APIs & Integrations (41 prompts), DevOps & Deployment (38 prompts).

Popular on this page right now: "Full-Stack Software Architecture Code Generator", "Reduce AI Hallucinations Prompt", "React Portfolio Website Builder".

625 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.