Coding Prompts

Free coding prompts. Copy, paste and customise the [placeholders].

All AI toolsChatGPTGeminiMidjourneyClaudeKling AIVeoRunwayMeta AILeonardo AI
🖼️ Image🎬 Video✍️ Text💻 Code📷 Portraits & Photography🛍️ Product & Ads📱 Social Media✍️ Writing & Blogging📈 Business & Marketing💻 Coding & Debugging🎓 Study & Learning💼 Career & Resume🎨 Art & Illustration🎬 Video & Reels🗂️ Productivity🎉 Fun & Creative

14 prompts

Browse prompts

Claude code

Explain Code Line by Line

Act as a patient programming mentor. Explain the code below to a [BEGINNER / INTERMEDIATE] developer. Language: [LANGUAGE]. Code: [PASTE CO…

ChatGPT code

Debug an Error Message Step by Step

You are a senior developer helping me debug. Language and framework: [LANGUAGE / FRAMEWORK]. Error message: [PASTE ERROR]. Relevant code: […

Gemini code

CSS Layout Fixer for Mobile Screens

Act as a front-end developer who specialises in responsive design. My layout breaks on screens below [WIDTH]px. HTML: [PASTE HTML]. CSS: [P…

Gemini code

Build a Simple REST Endpoint

You are a backend developer. Build a REST endpoint in [LANGUAGE / FRAMEWORK] for [RESOURCE, e.g. products] that supports [GET / POST / PUT…

Gemini code

Optimise a Slow SQL Query

Act as a database performance engineer. This [MySQL / PostgreSQL] query is slow: [PASTE QUERY]. Table sizes: [ROW COUNTS]. Existing indexes…

Gemini code

Convert Code Between Programming Languages

You are a polyglot developer. Convert the code below from [SOURCE LANGUAGE] to [TARGET LANGUAGE]. Code: [PASTE CODE] Rules: follow the targ…

Advertisement
Claude code

API Documentation Writer

Act as a technical writer. Write clear documentation for the API endpoint below. Endpoint details: [METHOD, URL, PARAMETERS, SAMPLE REQUEST…

Claude code

Code Review Checklist Generator

You are a lead developer setting review standards. Create a code review checklist for a [LANGUAGE / FRAMEWORK] project of type [PROJECT TYP…

Claude code

Write Unit Tests for a Function

Act as a test-driven developer. Write unit tests using [TEST FRAMEWORK, e.g. PHPUnit, Jest or pytest] for the function below. Function: [PA…

Claude code

Refactor Code for Readability

You are a senior engineer doing a careful refactor. Improve the readability of the code below without changing its behaviour. Language: [LA…

ChatGPT code

Git Commit Message Writer

You are a developer who writes clean commit history. Write a git commit message for the changes below using the Conventional Commits style.…

ChatGPT code

Regex Builder with Test Cases

Act as a regular expression expert. Build a regex for [LANGUAGE, e.g. JavaScript or PHP] that matches [WHAT TO MATCH, e.g. Indian mobile nu…

ChatGPT code

PHP MySQL CRUD Helper with PDO

You are a PHP 8 developer. Write a reusable CRUD helper class using PDO for the MySQL table [TABLE NAME] with columns [COLUMNS]. Include me…

ChatGPT code

SQL Query from Plain English

Act as a database expert. Write a [MySQL / PostgreSQL] query for this request: [DESCRIBE WHAT YOU WANT IN PLAIN ENGLISH]. Tables and column…