709 AI Prompts for Coding

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

Browse the prompts

You are an expert prompt engineer specializing in character-based system instructions for conversational AI. Your task is to transform a user's rough prompt into a polished, structured system message that assigns ChatGPT a specific professional role and clear behavioral guidelines.

# Your Process

1. **Identify the core role** – Extract or infer the professional character (poet, analyst, tutor, strategist, etc.) from the original prompt.
2. **Clarify the task** – Reframe the user's goal as a concrete, actionable objective the character will perform.
3. **Expand instructions** – Add context, constraints, tone, and any domain-specific guidance that sharpens the character's responses.
4. **Define output format** – Specify structure using placeholders like `[insert title]` or `**[heading]**` so the character knows exactly how to format replies.
5. **Close with a handoff** – Write a "What's 

System Message Character Generator

Generate an expert system message to give ChatGPT a specific character role for refined conversational responses.

12
You are an expert motion designer specializing in premium dark-mode UI animations for developer tools and SaaS products. Create a production-ready After Effects / Lottie animation specification that meets Dribbble's top 1% quality standards.

## Canvas & Foundation
- Background: Pure black (#000000) with a 16px subtle grid overlay (8% white, 0.5px stroke)
- Safe area: 1920×1080, design for 16:9 with 5% edge padding
- Color palette: Monochrome whites/grays (#FFFFFF, #E5E5E5, #999999) with one accent color derived from {{brand-color}}

## Motion Language
- **Tempo**: Strict 120 BPM (0.5s per beat, 2s per phrase)
- **Easing**: Sharp and snappy — use `cubic-bezier(0.34, 1.56, 0.64, 1)` for entrances, `ease-out-expo` for exits
- **Camera**: Quick cuts disguised as motion — whip-pan transitions at 8 frames, snap-zoom on key moments (1.2× scale max)
- **No hard cuts**: Every transition is motio

Dark Mode UI Motion Timeline Spec

Generate a detailed After Effects or Lottie animation specification for high-quality dark-mode UI motion timelines with emphasis on smooth transitions and kinetic typography.

12

C++ Algorithm Solution Expert

Generate a C++ code solution for algorithmic problems, meeting time complexity constraints and written in IOI/ACM style with detailed comments.

12

Prompt Engineer Response Optimizer

Generate optimized prompts through iterative expert role selection and feedback loops, producing high-quality, production-ready content.

12

Secure By Design Question Generator

Generate a comprehensive set of design-level security questions to assess the security needs of a given project.

12
You are an expert motion designer proficient in After Effects expressions and animation principles. Generate clean, well-commented code for a 5-second motion graphics animation with professional easing.

# Animation Sequence

1. **Dot Entry (0–1.5s)**: A small circular shape bounces into the center of the composition from {{entry-direction}}. Use anticipation and follow-through; apply ease-out on position keyframes.

2. **Morphing Transition (1.5–2.5s)**: The dot expands horizontally into a rounded search bar shape (16:9 aspect ratio, maintaining vertical center). Apply smooth ease-in-out to scale and corner radius properties.

3. **Text Reveal (2.5–5s)**: The text "{{search-query}}" types in or fades into the search bar with a slight overshoot. Use ease-out for natural deceleration.

# Technical Requirements

- **Composition**: 1920×1080, 30fps, 5 seconds duration
- **Easing**: Apply Bé

Search Bar Motion Graphic Intro

Generate After Effects expressions to create a professional motion graphic intro featuring a search bar transition.

12
You are a senior Unity gameplay engineer specializing in mobile arcade games. Generate production-ready C# code for **Heatwave**, a top-down portrait-oriented police chase game with one-thumb controls, arcade physics, and emergent collision chaos.

## Core Design Pillars

**Fantasy**: The player survives by outsmarting aggressive police, tricking them into crashing into obstacles and each other. No weapons—chaos is the offense.

**Feel**: Fast, readable, chaotic. Near-misses, chain collisions, and narrow escapes every run. Arcade physics over simulation—drift, slide, bounce, spin, recover quickly.

**Session**: 2–5 minute runs. Death feels fair. Restart in under 2 seconds.

## Technical Context

- **Platform**: iOS + Android (Unity)
- **Orientation**: Portrait
- **Target**: 60 FPS on mid-range devices; ~12 active vehicles max
- **Architecture**: Use object pooling for police/particles/de

Police Chase Arcade Game Design Document

Generate production-ready C# code for the 'Heatwave' police chase arcade game, focusing on physics and mobile performance.

11

Soft Body Gummy Dice WebGPU Simulation

Generate a self-contained WebGPU application simulating soft-body gummy dice with customizable colors and interaction features.

11

Card Reveal Staged Animation Spec

Generate smooth, production-ready CSS and JavaScript animation code for a card reveal effect. Produces a complete, framework-agnostic animation spec with CSS, JS, and HTML structure.

11
You are an expert motion designer and creative developer specializing in procedural UI animation and time-based rendering.

# Task
Generate a **14-second, 1440×1440px, 60fps seamless motion loop** showcasing UI state transitions through a single continuously morphing shape. The output is one self-contained HTML file using Canvas 2D with a pure time-function architecture.

# Visual Identity
- Canvas background: {{canvas-color}}
- Primary shape: {{shape-color}}
- Accent/highlight: {{accent-color}}
- Base shape corner radius: {{shape-radius}}px
- Typography: {{font-stack}}

(All colors as hex codes: #RRGGBB)

# Animation Specification

## Timeline (0.5s beat grid)
{{state-sequence}}

**Requirements:**
- Frame 0 must equal frame 840 (perfect loop)
- One shape morphs through all states; never replaced or cut
- Each state occupies 50% of frame width/height
- Shape spring: damping 0.72, settle 

Morphing Shape Motion Spec Template

Generate a procedural UI animation loop using HTML Canvas 2D, highlighting seamless state transitions through a single morphing shape.

11
You are a senior infrastructure engineer reviewing Terraform plans for production deployments. Your goal is to distill complex infrastructure-as-code changes into clear, actionable insights that help teams understand impact before applying changes.

Analyse the Terraform plan below and focus on:
- Resources being created, modified, or destroyed
- Security posture changes (IAM, network rules, encryption, public exposure)
- Cost implications (instance types, storage, data transfer, managed services)
- Compliance and best-practice alignment
- Dependencies and potential blast radius

# OUTPUT FORMAT

Structure your analysis as follows:

## ONE SENTENCE SUMMARY
A single 20-word sentence capturing the essence and impact of this plan.

## MAIN POINTS
The 10 most critical changes, risks, optimisations, or concerns. Each point maximum 16 words.
1. [First point]
2. [Second point]
...
10. [Tenth po

Terraform Plan Summary Report

Generate a comprehensive Markdown summary of Terraform plans, highlighting changes, security risks, and cost implications.

11

Level Of Effort Document Generator

Generate comprehensive Level of Effort (LOE) documents to assist engineering leaders and project sponsors in making informed decisions on resources and budgeting.

11

Pull Request Description Writer

Generate detailed pull request descriptions from git diff outputs. Produces a markdown-formatted overview for software reviewers.

11
You are an expert Three.js developer and 3D world designer specializing in atmospheric, exploration-focused browser experiences. Your strength is creating visually stunning, performance-optimized environments that prioritize composition, mood, and architectural wonder over gameplay mechanics.

Create a cinematic, freely explorable 3D browser world centered on {{world-theme}}. The experience should evoke pure visual discovery—no combat, no objectives, just breathtaking exploration.

## World Design Requirements

### Architecture & Structures
- Design monumental, original buildings that feel strange and ambitious—massive scale, impossible geometries, unforgettable silhouettes
- Include surreal ruins, colossal monuments, and ultra-detailed architectural elements that reward close inspection
- Make every structure feel purposeful in composition but mysterious in origin
- Vary architectural s

Explorable Cinematic 3D Landscape World

Generate a cinematic 3D landscape world using Three.js, focusing on exploration and visual discovery.

11
# Animated Résumé Showcase – Self-Rendering Motion Graphic

Generate a complete, self-contained HTML file that renders a 15-second motion graphic at 1920×1080, 60 fps. The animation must be driven by a single `seek(t)` function where `t` ranges from 0 to 15 seconds, enabling frame-perfect playback via Playwright screenshot loops and ffmpeg encoding.

## Technical Requirements

- **Duration:** 15 seconds exactly
- **Resolution:** 1920×1080 pixels
- **Frame rate:** 60 fps
- **Audio:** Original synthesized soundtrack at 128 BPM (8 beats per 15 seconds; one beat every 1.875 seconds)
- **Structure:** Single HTML file with `<canvas>` element; all rendering logic in a `seek(t)` function that draws the frame for time `t`
- **Easing:** Use spring physics (damped oscillation) for all motion—no linear interpolation
- **Beat sync:** Every major state transition and visual emphasis must land exactly 

Fifteen-Second Seek-Function Motion Video

Generate a complete self-contained HTML file rendering a precise 15-second motion graphic animation.

10

Code Explanation In Plain English

Generate clear explanations of code, configurations, and security outputs for technical understanding. Produces categorized outputs based on input type.

10

Interactive 3D Camera Lens Cutaway

Generates an interactive 3D camera lens cutaway using Three.js in a single HTML file, ideal for technical visualization.

10
# Programmatic Music Video Pipeline

You are an expert full-stack engineer building a **programmatic music video renderer** using Three.js, audio processing libraries, and headless browser rendering. Your task is to generate a complete, production-ready codebase that transforms a music track into a vertical (1080×1920) music video through automated scene generation—no manual video editing.

## Project Requirements

**Music & Audio**
- Song: {{song-description}}
- Expected duration: ~50 seconds
- Style: Engraving aesthetic with strict palette (Black #000000, Bone #E3D5CA, Orange #FF6600)
- Output: -14 LUFS normalized stereo audio

**Technical Stack & Pipeline**

### Phase 1: Audio Preparation
1. **Lyrics extraction**: Parse Suno embedded metadata to retrieve official lyrics
2. **Stem separation**: Use Demucs to isolate vocals, drums, bass, other
3. **Vocal transcription**: Run mlx_whisper

Programmatic Vertical Music Video Pipeline

Generate a production-ready codebase for transforming a song into a vertical music video using automated scene generation with Three.js.

10
You are an expert knowledge management architect specializing in metadata design for personal knowledge management (PKM) systems. Your task is to read any text input—article, transcript, meeting notes, essay, book chapter, or draft—and generate clean, immediately usable YAML frontmatter for markdown-based note systems like Obsidian or Logseq.

# ANALYSIS PROCESS

Before generating the YAML, analyze the input systematically:

1. **Content comprehension**: Read the full text to understand its purpose, argument, and context.
2. **Classification**: Determine the document type (article, transcript, meeting-notes, essay, chapter, reference, idea, book).
3. **Title inference**: Extract or craft a precise, descriptive title that captures the document's focus.
4. **Tagging strategy**: Identify 3–8 specific, searchable concepts. Favor concrete terms over vague labels—use "cognitive-bias" not "psyc

Note Frontmatter Metadata Generator

Generates YAML frontmatter metadata for text documents, intended for personal knowledge management systems.

10

Landmark History Motion Graphic With GSAP

Generate a GSAP animation that chronicles a landmark's history with cinematic flair and data-driven storytelling techniques.

10

Marble Computer Binary Adder 3D

Generate a dynamic 3D marble computer visualization that adds two 4-bit numbers using mechanical toggles and marbles.

10

Git Diff Commit Update Writer

Generate shell commands for git operations from diff output by analyzing code changes and providing conventional commit messages.

10
You are an expert graphics programmer specializing in real-time fluid simulation and WebGL2 shader programming. Create a single self-contained HTML file that renders an interactive 3D Krakatoa volcano eruption with physically-based fluid dynamics.

# Technical Requirements

## Core Implementation
- Pure WebGL2 (no libraries like Three.js or Babylon.js)
- All shaders, simulation logic, and rendering in one HTML file
- Target 60 FPS on modern hardware
- Use the vertex array object (VAO) pattern for clean geometry management

## Fluid Simulation (Smoke Plume)
Implement a 3D Navier-Stokes solver on the GPU using:
- Velocity field: advection, diffusion, pressure projection (Helmholtz-Hodge decomposition)
- 3D texture-based simulation grid ({{simulation-resolution}} cells)
- Vorticity confinement to maintain turbulent details
- Buoyancy force driven by temperature/density differentials
- MacCo

Real-Time Volcano Fluid Simulation

Generate a real-time 3D Krakatoa volcano eruption simulation using WebGL2. Produces interactive, high-fidelity fluid dynamics in a single HTML file.

10

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: "System Message Character Generator", "Dark Mode UI Motion Timeline Spec", "C++ Algorithm Solution Expert".

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