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 code quality architect who designs measurement systems developers trust and use. Your frameworks balance automated metrics with team reality, turning quality assessment into a practical tool, not a compliance burden.

## Context
Development teams face mounting technical debt while pressure for faster delivery increases. Traditional quality initiatives often fail because they impose rigid standards without considering team dynamics. Code reviews become superficial, metrics get gamed, and trust erodes.

## Task
Create a transparent, actionable code quality scorecard based on the provided criteria.

**Assessment Process:**
1. Analyze the code against the specified quality metrics
2. Calculate scores transparently, showing formulas and reasoning
3. Identify concrete strengths with examples from the code
4. Highlight improvement areas with specific, actionable guidance
5. Pr

Code Quality Scorecard Builder

Generates transparent, actionable code quality scorecards based on custom metrics and team context. Runs on ChatGPT, Claude, and Cursor to produce structured assessments that balance quantitative scores with qualitative insights for technical and non-technical stakeholders.

30
You halted mid-task without completing it. I need you to diagnose exactly why you stopped and then finish what you started.

# Your Task

First, identify the stopping point with surgical precision:

1. **Quote the exact blocker** — Reproduce the specific instruction, constraint, or input requirement that caused you to stop. Use exact wording.

2. **Categorize the block** — State which type:
   - Missing input: You lack data I haven't provided
   - Instruction conflict: Two directives contradict each other
   - Permissions/safety wall: The request crosses a boundary you cannot cross
   - Judgment call: You made a discretionary choice to pause and ask
   - Other: Specify precisely

3. **Propose the minimal unblocking change** — What is the smallest, most targeted modification (new input, clarification, or permission) that removes the obstacle?

4. **Continue immediately** — Without waiting

Unstick a Stalled Agent Run

Unstick a stalled task by diagnosing the exact reason for the pause and continuing all possible work. Produces a detailed analysis and actionable continuation plan.

30

Browser Game With Lead Capture

Generate a browser game with marketing integration to capture leads without disrupting gameplay. This prompt creates a fully-featured game that aligns with your business offering.

30

Unit Test Scenario Generator for TDD

Generates comprehensive unit test scenarios following test-driven development (TDD) principles, using the Arrange-Act-Assert pattern to verify code behavior. Runs on ChatGPT, Claude, and other text models.

30

API Error Handling System Design Prompt

Generates a complete RFC 7807-compliant error standardization system that transforms inconsistent third-party API errors into structured, actionable responses. Runs on ChatGPT, Claude, Gemini, and Grok to produce production-ready parsers, exception hierarchies, and integration guides.

29
## Role

You are an expert programming mentor who guides learners to build meaningful projects that transform abstract concepts into tangible skills through hands-on creation.

## Task

Create a personalized, multi-phase project roadmap for an aspiring programmer. Assess their current abilities, identify growth edges, match projects to learning goals, and ensure achievable challenge levels.

Adapt the number and depth of phases dynamically:
- Beginners (3-5 phases): foundation building
- Intermediate (6-8 phases): skill expansion  
- Advanced (9-12 phases): mastery projects
- Expert seeking growth (13-15 phases): innovation challenges

## Context

The user will provide:

{{learner-profile}}

This should include their current programming languages (even basics), most complex project built so far, primary interests (web apps, games, data analysis, automation, mobile apps, AI/ML, etc.), wee

Generate Coding Project Ideas

Generates a personalized, multi-phase project roadmap that matches coding projects to a learner's skill level, interests, and goals. Runs on ChatGPT, Claude, Gemini, and Grok.

29
## Role

You are an expert AI systems architect and code reviewer specializing in agentic AI frameworks, memory systems, and Google Cloud's Vertex AI ecosystem. You understand Agent Development Kit (ADK), memory bank architectures, session management services, and distributed AI system design patterns.

## Task

Provide a comprehensive educational breakdown of Agentic Memory concepts alongside an in-depth technical code review of a pull request. Bridge theoretical understanding with practical implementation critique.

## Context

**Pull request or code:** {{pr-details}}

**Your current understanding level:** {{knowledge-level}}

**Technical environment:** {{tech-stack-and-constraints}}

## Analysis Structure

Organize your response into six phases:

### 1. Foundational Concepts

Explain Agentic Memory from first principles: memory types (episodic, semantic, procedural), persistence strat

Agentic Memory Code Reviewer

Analyze pull requests with this AI prompt, reviewing Agentic Memory concepts, ADK implementation, architecture gaps, improvements, and providing detailed code suggestions.

29

Logging Implementation Prompt for Production Code

Generates production-ready logging code, configuration, and team guidelines tailored to your stack. Runs on ChatGPT, Claude, and Cursor to output structured logging patterns, sensitive data protection rules, and observability integration.

29

Data Archiving Strategy Prompt for Database Design

Generates a phased data archiving strategy that categorizes records by business value, regulatory retention, and access frequency to reduce production database size while maintaining compliance. Runs on ChatGPT, Claude, Gemini, and Grok.

29
## Role

You are an expert API architect specializing in resilient polling systems. You design solutions that respect rate limits, handle authentication gracefully, and adapt to service availability patterns.

## Task

Build an intelligent API polling system that adapts its implementation depth to requirement complexity. Simple single-endpoint systems need 3-5 phases; complex multi-endpoint architectures with sophisticated rate limiting may require 10+ phases.

For each phase, determine the appropriate level of:
- Contextual introduction and documentation analysis
- User clarification questions (0-5 based on actual ambiguity)
- Code snippets, configurations, and architectural decisions
- Transition framing

## Context

You will work from:

{{api-requirements}}

This should describe API endpoints to monitor, authentication methods, credentials (mask sensitive values), desired polling freq

Build API Polling System

Generates a complete API polling architecture with adaptive intervals, authentication handling, and rate-limit management. Produces working code for ChatGPT, Claude, or Cursor based on endpoint complexity and service constraints.

29
## Role

You are a code refactoring specialist focused on transforming unclear code into readable, maintainable solutions following Clean Code principles. Your approach prioritizes human comprehension over clever syntax, treating every variable name as communication and every function as a clear narrative.

## Task

Refactor the provided code to follow Clean Code principles without changing its behavior. Apply meaningful naming, single responsibility, appropriate function size, and separation of concerns. Work systematically: analyze violations, map dependencies, extract methods, rename for clarity, and explain the reasoning behind each transformation.

## Context

{{code-section}}

**Purpose:** {{code-purpose}}

**Specific concerns (if any):** {{concerns}}

## Refactoring Criteria

- **Meaningful Names**: Variables, functions, and classes must clearly express purpose without mental tran

Clean Code Refactoring Prompt for Readability

Generates step-by-step refactorings that transform unclear code into readable, maintainable solutions following Clean Code principles. Runs on ChatGPT, Claude, and Cursor to produce code with meaningful names, single responsibility functions, and clear structure without changing behavior.

29

Annotation Guide Builder for Data Labeling Projects

Builds a complete annotation guide with label definitions, edge-case decision trees, example galleries, and quality control protocols. Runs on ChatGPT, Claude, Gemini, and Grok to ensure consistency across annotation teams.

29

Clarify Variable Roles in Code

Generates a phased analysis of variable purpose, lifecycle, and naming recommendations for any codebase. Runs on ChatGPT, Claude, Gemini, and Grok to produce structured documentation and refactoring suggestions.

29

Release Notes Writer for Software Updates

Generates user-focused release notes that translate version changes into clear, benefit-driven narratives. Runs on ChatGPT, Claude, Gemini, and Grok to create documentation that emphasizes impact over technical detail.

29
## Role

You are a senior frontend architect specializing in optimistic UI patterns for high-traffic production applications. Your expertise covers state management, error recovery, synchronization challenges, network failure handling, race conditions, and perceived performance.

## Task

Design a comprehensive, production-ready optimistic UI system for the specified application. Provide detailed implementation strategies covering:

- Immediate UI updates on user actions
- Error handling and rollback mechanisms
- Temporary ID management and server confirmation
- Background synchronization and conflict resolution
- Data consistency between local and server state
- Recommended libraries and tools with implementation guidance
- Production-ready code patterns
- Testing approaches for optimistic behavior and edge cases

## Context

Optimistic UI patterns deliver instant perceived performance 

Optimistic UI Pattern Design Prompt

Generates a production-ready optimistic UI system with immediate updates, error handling, rollback mechanisms, and background sync strategies. Runs on ChatGPT, Claude, Gemini, and Grok for frontend architecture planning.

29
## Role

You are an expert systems integration specialist creating a comprehensive CRM integration guide.

## Task

Produce a step-by-step guide for integrating the specified CRM system with sales tools. Structure each step to logically build upon the previous one, ensuring clear dependencies and progression throughout the process.

## Context

**CRM and Tools:** {{crm-and-sales-tools}}

**Team Profile:** {{team-technical-level}}

**Integration Objectives:** {{integration-goals}}

The guide must address:
- API connection setup and authentication
- Data synchronization workflows and mapping
- User training and onboarding protocols
- Common integration challenges with practical solutions
- Data security, compliance, and access controls throughout each phase

## Output

Deliver the guide as a numbered list with clear headings for each major integration phase. Each step should specify prereq

CRM and Sales Tools Integration Guide Generator

Generates a step-by-step integration guide for connecting CRM systems with sales tools, covering API setup, data workflows, security, and training. Runs on ChatGPT, Claude, Gemini, and Grok.

28

Static Analysis Code Health Remediation Report Prompt

Generates prioritized remediation plans from static analysis data, translating metrics into actionable developer tasks with realistic timelines. Runs on ChatGPT, Claude, Gemini, and Grok for text output.

28

Claude Code Project Optimizer

Review and improve your Claude code project with this AI prompt, providing expert analysis, optimization strategies, and world-class development recommendations.

28
## Role

You are a UI Systems Architect specializing in component-driven design systems and Atomic Design methodology. You help teams transform scattered UI elements into scalable, maintainable design systems through systematic inventory and organization.

## Task

Guide the user through creating a comprehensive component inventory using Atomic Design principles (atoms → molecules → organisms → templates → pages). Adapt the depth and pace based on their app's complexity, current design maturity, and team needs.

## Context

The user has: {{app-context}}

*Describe your application: number of screens, current design state (inconsistent/partially documented/chaotic), biggest pain points (maintenance/scaling/inconsistency), and 2-3 key screen types or features.*

## Process

Work through these stages iteratively, adjusting scope and detail based on the app's complexity:

**Discovery & Asses

Create Component Inventories

Generates a systematic component inventory using Atomic Design methodology, transforming scattered UI elements into documented design systems. Runs on ChatGPT, Claude, Gemini, and Grok.

28
You are an expert sci-fi interface designer specializing in cinematic HUD aesthetics and hyper-realistic digital environments. Create a visually stunning futuristic HUD interface that balances cutting-edge technology with mystical gravitas.

# Context
Design a premium AI system interface that feels like it belongs in a high-budget science fiction film—think elite command centers, advanced holographic displays, or sacred technology from an advanced civilization.

# Subject & Theme
{{interface-subject}}

# Core Visual Requirements

**Style Foundation:**
- Futuristic HUD with layered data interfaces, translucent glass panels, liquid obsidian surfaces, and celestial gold accents
- Forensic symmetry in layout; precise geometric alignment
- Sacred technology aesthetic—high-tech infused with mysticism and reverence

**Technical Specifications:**
- 8K resolution with ultra-fine micro-details
- V

Diseo HUD Sci

Create a visually stunning futuristic HUD interface blending cutting-edge technology with mystical gravitas. Suitable for high-end concept art direction.

28

Update Agent Permissions

Generate updates for agent permission files by auditing shell commands and assigning appropriate allowances for read-only actions. Suitable for configuring AI agents like Claude and Gemini.

27

Database Query Optimization Prompt for N+1 Detection

Analyzes code to detect N+1 queries, redundant database calls, and performance bottlenecks, then provides batch loading strategies, caching recommendations, and before/after code examples. Runs on ChatGPT, Claude, and other text models.

27

Design RBAC System

Generates a complete role-based access control (RBAC) architecture including database schema, middleware, route protection, and audit logging. Runs on ChatGPT, Claude, and Cursor to produce production-ready code for your tech stack.

27
You are an expert Python web scraper developer specializing in robust, production-grade data extraction.

Write a resilient paginated scraper that meets these requirements:

**Core functionality**
- Automatically detect and handle three pagination patterns: numbered page query parameters (e.g., `?page=2`), "next" link elements, or infinite-scroll lazy-load endpoints
- Extract items from {{target-url}} matching the CSS selector or XPath {{item-selector}}
- Store extracted data as {{output-format}} (JSON, CSV, or SQLite)

**Resilience & recovery**
- Checkpoint progress to `.scraper_state.json` after successfully scraping each page (store: last completed page number/URL, item count, timestamp)
- On startup, read checkpoint and resume from the next page; skip already-completed pages
- Implement exponential backoff for failed requests: initial 1s delay, doubling up to 60s max, retry up to 5 t

Paginated Scraper With Resume Support

Generate a resilient paginated scraper with automatic pagination detection and recovery features using Python.

27

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: "Code Quality Scorecard Builder", "Unstick a Stalled Agent Run", "Browser Game With Lead Capture".

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.