ChatGPT and Claude Prompts for Coding

Free AI prompts for developers: code review, debugging, tests, documentation and architecture.

43 prompts, newest first

  1. Cron expressions explained and written for you

    Describe a schedule in plain English and get the correct cron expression, an explanation of each field, the next run times and time zone pitfalls.

    Coding

    For ChatGPT, Claude and Gemini

  2. Git merge conflict resolution prompt

    Resolve Git merge conflicts safely with AI, by explaining both sides, proposing a merged version that keeps each intent, and listing tests to run.

    Coding

    For ChatGPT, Claude and Gemini

  3. GraphQL schema design prompt

    Design a GraphQL schema from your app requirements, with types, queries, mutations, pagination, error handling and notes on N+1 and auth.

    Coding

    For ChatGPT, Claude and Gemini

  4. PowerShell script prompt to automate Windows tasks

    Get a safe, commented PowerShell script for a repetitive Windows or admin task, with a dry-run mode, logging, error handling and test steps.

    Coding

    For ChatGPT, Claude and Gemini

  5. User stories with acceptance criteria from a feature

    Break a feature idea into well-formed user stories with Given/When/Then acceptance criteria, edge cases and story splits ready for sprint planning.

    Coding

    For ChatGPT, Claude and Gemini

  6. Google Apps Script automation for Sheets

    Get a working Google Apps Script to automate a Sheets task, with setup steps, triggers, error handling and a safe way to test it.

    Coding

    For ChatGPT, Claude and Gemini

  7. HTML accessibility audit and fixes

    Review HTML or component code for accessibility problems like missing labels, poor focus handling and ARIA misuse, and get corrected code.

    Coding

    For ChatGPT, Claude and Gemini

  8. Kubernetes manifests from your app requirements

    Generate production-ready Kubernetes YAML for your app, with Deployment, Service, Ingress, ConfigMap, probes, resource limits and security settings explained.

    Coding

    For ChatGPT, Claude and Gemini

  9. Pull request description reviewers can act on

    Turn a git diff or commit list into a clear pull request description with context, changes, testing steps, risks and screenshots checklist.

    Coding

    For ChatGPT, Claude and Gemini

  10. React component prompt from a plain spec

    Generate a typed, accessible React component from a plain description, with props, states, styling, tests and usage examples.

    Coding

    For ChatGPT, Claude and Gemini

  11. Terraform module prompt for infrastructure as code

    Generate a clean, reusable Terraform module from plain requirements, with variables, outputs, tagging, security defaults and a usage example.

    Coding

    For ChatGPT, Claude and Gemini

  12. ChatGPT System Prompt Writer for Custom Assistants

    Write a ChatGPT system prompt for a custom assistant or GPT — role, rules, tone, refusals, output format and test questions in one draft.

    Coding

    For ChatGPT, Claude and Gemini

  13. Safe database schema migration plan prompt

    Plan a safe database schema migration with zero-downtime steps, backfill strategy, rollback plan and checks before and after each deploy.

    Coding

    For ChatGPT, Claude and Gemini

  14. Improve error handling in your code

    Review code for missing or weak error handling and get fixes for retries, clear messages, logging and failure paths, with tests for each case.

    Coding

    For ChatGPT, Claude and Gemini

  15. Write a safe Bash script for any task

    A ChatGPT prompt for Bash scripts — describe the task and get a commented script with safety flags, argument checks, logging and a dry-run mode.

    Coding

    For ChatGPT, Claude and Gemini

  16. Build a simple Chrome extension with ChatGPT

    A ChatGPT prompt to build a Chrome extension — Manifest V3 files, minimal permissions, popup and content script code, plus steps to load and test it.

    Coding

    For ChatGPT, Claude and Gemini

  17. Write an Excel VBA macro from plain English

    A ChatGPT prompt for Excel VBA macros — describe the task in plain English and get commented code, setup steps and safety checks.

    Coding

    For ChatGPT, Claude and Gemini

  18. Design REST API endpoints the clean way

    An AI prompt for REST API endpoint design — resources, routes, request and response shapes, errors, pagination, auth and versioning.

    Coding

    For ChatGPT, Claude and Gemini

  19. Generate TypeScript types from JSON data

    An AI prompt to generate TypeScript types from JSON — interfaces, optional fields, unions, enums and a runtime validation schema if needed.

    Coding

    For ChatGPT, Claude and Gemini

  20. Turn a user complaint into a clear bug report

    Paste a user complaint and logs and get a clear bug report: steps to reproduce, expected vs actual result, severity and questions to ask.

    Coding

    For ChatGPT, Claude and Gemini

  21. Security code review for common vulnerabilities

    A ChatGPT prompt for a security code review: find injection, auth, secrets and input-handling issues in your code, ranked by risk with fixes.

    Coding

    For ChatGPT, Claude and Gemini

  22. Database schema design from app requirements

    A ChatGPT prompt for database schema design: tables, keys, relationships, indexes and SQL DDL from plain-English requirements, with trade-offs explained.

    Coding

    For ChatGPT, Claude and Gemini

  23. Write a Dockerfile for your app

    A ChatGPT prompt that writes a production-ready Dockerfile for your app, with multi-stage builds, small images and an explained line-by-line setup.

    Coding

    For ChatGPT, Claude and Gemini

  24. LangChain prompt template generator

    A prompt that writes a clean LangChain prompt template for your task, with input variables, system and human messages, an output parser and tests.

    Coding

    For ChatGPT, Claude and Gemini

  25. ChatGPT prompt for coding: learn a new language

    One of the most useful ChatGPT prompts for coding: a plan to learn a new programming language fast, mapped to what you already know.

    Coding

    For ChatGPT, Claude and Gemini

  26. LLM prompt template for production apps

    A prompt that designs a reusable LLM prompt template for your app, with role, rules, variables, output schema, examples and an evaluation set.

    Coding

    For ChatGPT, Claude and Gemini

  27. Add clear docstrings and comments to code

    A ChatGPT prompt that adds docstrings and useful comments to your code in your language's standard style without changing what the code does.

    Coding

    For ChatGPT, Claude and Gemini

  28. Convert code to another programming language

    A ChatGPT prompt to convert code from one programming language to another, using idiomatic patterns, matching behavior and listing differences.

    Coding

    For ChatGPT, Claude and Gemini

  29. Clear git commit messages from a diff

    A ChatGPT prompt that writes clear git commit messages from a diff, following Conventional Commits, and suggests splitting large commits.

    Coding

    For ChatGPT, Claude and Gemini

  30. Write a GitHub Actions workflow for your project

    A ChatGPT prompt that writes a GitHub Actions workflow YAML to test, build and deploy your project, with caching, secrets and clear comments.

    Coding

    For ChatGPT, Claude and Gemini

  31. Optimize a slow SQL query step by step

    A ChatGPT prompt to optimize a slow SQL query using the query plan, schema and indexes, with a rewritten query and index suggestions to test.

    Coding

    For ChatGPT, Claude and Gemini

  32. Python automation script from a plain description

    A ChatGPT prompt that writes a safe Python automation script for repetitive file, spreadsheet or web tasks, with setup steps and a dry run.

    Coding

    For ChatGPT, Claude and Gemini

  33. API documentation from your code

    Generate clear API reference docs from route handlers or code — endpoints, parameters, responses, errors and examples — ready for developers.

    Coding

    For ChatGPT, Claude and Gemini

  34. Claude prompt engineering to improve any prompt

    Use Claude prompt engineering basics to rewrite any prompt with clear structure, XML-tagged context, examples and output checks.

    Coding

    For Claude and ChatGPT

  35. Software architecture plan for a new app

    Get a simple, justified architecture for a new app — components, data model, tech choices and trade-offs — before any code is written.

    Coding

    For ChatGPT, Claude and Gemini

  36. Explain unfamiliar code line by line

    Get a clear walkthrough of code you didn't write, including what it does, how data flows, hidden assumptions and risky spots to check.

    Coding

    For ChatGPT, Claude and Gemini

  37. Plan a feature before the AI writes code

    Make the AI ask questions, map affected files and agree on a design before coding, which cuts hallucinated APIs and wasted rewrites.

    Coding

    For ChatGPT, Claude and Gemini

  38. README file for your code project

    Write a clear README with setup steps, usage examples, configuration and contributing notes, based on your project's real files.

    Coding

    For ChatGPT, Claude and Gemini

  39. Refactor legacy code without breaking it

    Get a step-by-step refactoring plan for messy code, with safety tests first and small changes you can review and ship one at a time.

    Coding

    For ChatGPT, Claude and Gemini

  40. Regex pattern from examples you provide

    Get a regular expression that matches your examples and rejects your counter-examples, with an explanation and test cases for your language.

    Coding

    For ChatGPT, Claude and Gemini

  41. Debug an error without guesswork

    Make the AI find the real cause of a bug from your error and code, list its assumptions and suggest a minimal fix instead of guessing.

    Coding

    For ChatGPT, Claude and Gemini

  42. Write unit tests that catch real bugs

    Generate focused unit tests for a function, covering normal cases, edge cases and errors, in your test framework and project style.

    Coding

    For ChatGPT, Claude and Gemini

  43. Senior-level code review

    Get a structured code review that ranks problems by severity — bugs and security first, style last — with concrete fixes.

    Coding

    For Claude, ChatGPT and Gemini

How to use these prompts

  1. Open a prompt and type your details into the blue blanks.
  2. Press Copy prompt and paste it into your AI tool.
  3. Treat the first answer as a draft and ask for changes until it fits.