Coding Prompts (48)

AI Coding Prompts

Discover top-rated AI coding prompts. Copy and generate in seconds.

Coding Prompts

Claude

A debugging discipline in prompt form: hypotheses with evidence both ways and a cheapest-experiment step, with fixes explicitly forbidden until confirmation. Cuts wild-goose-chase time dramatically on unfamiliar codebases.

▸ ready to run
Claude

A debugging discipline in prompt form: hypotheses with evidence both ways and a cheapest-experiment step, with fixes explicitly forbidden until confirmation. Cuts wild-goose-chase time dramatically on unfamiliar codebases.

Stack Trace Hypothesis Ranker

A debugging discipline in prompt form: hypotheses with evidence both ways and a cheapest-experiment step, with fixes explicitly forbidden until confirmation. Cuts wild-goose-chase time dramatically on unfamiliar codebases.

1.5K240
Claude

A query-tuning prompt ordered by invasiveness so you try rewrites before adding indexes. Requiring the write-cost caveat on every index suggestion filters out advice that would just move the pain to inserts.

▸ ready to run
Claude

A query-tuning prompt ordered by invasiveness so you try rewrites before adding indexes. Requiring the write-cost caveat on every index suggestion filters out advice that would just move the pain to inserts.

Slow Query Explainer and Fixer

A query-tuning prompt ordered by invasiveness so you try rewrites before adding indexes. Requiring the write-cost caveat on every index suggestion filters out advice that would just move the pain to inserts.

1.2K190
Claude

A performance-review prompt that forces ranking by impact before any fix, which stops the usual memo-everything reflex. The minimal-fix constraint keeps diffs reviewable. Paste one component at a time for best results.

▸ ready to run
Claude

A performance-review prompt that forces ranking by impact before any fix, which stops the usual memo-everything reflex. The minimal-fix constraint keeps diffs reviewable. Paste one component at a time for best results.

React Performance Audit Prompt

A performance-review prompt that forces ranking by impact before any fix, which stops the usual memo-everything reflex. The minimal-fix constraint keeps diffs reviewable. Paste one component at a time for best results.

1.3K212
Claude

Frames the model around developer experience: what documentation is missing, where onboarding loses people, and how a community forms around a tool. Useful for teams whose product is technically sound but adopted slowly for reasons nobody has diagnosed.

▸ ready to run
Claude

Frames the model around developer experience: what documentation is missing, where onboarding loses people, and how a community forms around a tool. Useful for teams whose product is technically sound but adopted slowly for reasons nobody has diagnosed.

Developer Relations Consultant for Documentation and Community

Frames the model around developer experience: what documentation is missing, where onboarding loses people, and how a community forms around a tool. Useful for teams whose product is technically sound but adopted slowly for reasons nobody has diagnosed.

180
Claude

Explains architectural decisions in terms of the trade-offs they buy and the costs they defer, rather than presenting patterns as rules. Useful for engineers starting to make system-level calls who need to justify a choice rather than just name it.

▸ ready to run
Claude

Explains architectural decisions in terms of the trade-offs they buy and the costs they defer, rather than presenting patterns as rules. Useful for engineers starting to make system-level calls who need to justify a choice rather than just name it.

Architecture Guide for Developers Moving Up

Explains architectural decisions in terms of the trade-offs they buy and the costs they defer, rather than presenting patterns as rules. Useful for engineers starting to make system-level calls who need to justify a choice rather than just name it.

180
Claude

Runs a lighter pass than a full review, catching the mechanical issues — naming, dead code, missing null handling — before a human reviewer spends attention on them. Best used as the step between finishing a branch and opening the pull request.

▸ ready to run
Claude

Runs a lighter pass than a full review, catching the mechanical issues — naming, dead code, missing null handling — before a human reviewer spends attention on them. Best used as the step between finishing a branch and opening the pull request.

Code Review Assistant for Pre-Merge Checks

Runs a lighter pass than a full review, catching the mechanical issues — naming, dead code, missing null handling — before a human reviewer spends attention on them. Best used as the step between finishing a branch and opening the pull request.

210
GPT-4

Turns a diff into a clear commit message that explains intent rather than restating the changed lines. Useful for keeping a history that is worth reading during an incident, when the question is always why a change was made and not what it touched.

▸ ready to run
GPT-4

Turns a diff into a clear commit message that explains intent rather than restating the changed lines. Useful for keeping a history that is worth reading during an incident, when the question is always why a change was made and not what it touched.

Commit Message Generator for Readable Git History

Turns a diff into a clear commit message that explains intent rather than restating the changed lines. Useful for keeping a history that is worth reading during an incident, when the question is always why a change was made and not what it touched.

210
Claude

Frames the model around Next.js specifics — server versus client components, data fetching, caching and revalidation. Useful when the general React answer is wrong for the framework, which in the App Router is more often than most developers expect.

▸ ready to run
Claude

Frames the model around Next.js specifics — server versus client components, data fetching, caching and revalidation. Useful when the general React answer is wrong for the framework, which in the App Router is more often than most developers expect.

Next.js Specialist for App Router Architecture

Frames the model around Next.js specifics — server versus client components, data fetching, caching and revalidation. Useful when the general React answer is wrong for the framework, which in the App Router is more often than most developers expect.

220
Claude

Generates a development container configuration so a Python project runs identically for everyone on the team. Useful for killing the works-on-my-machine class of bug, and for onboarding contributors without a page of setup instructions.

▸ ready to run
Claude

Generates a development container configuration so a Python project runs identically for everyone on the team. Useful for killing the works-on-my-machine class of bug, and for onboarding contributors without a page of setup instructions.

Python Dev Container Setup for Reproducible Environments

Generates a development container configuration so a Python project runs identically for everyone on the team. Useful for killing the works-on-my-machine class of bug, and for onboarding contributors without a page of setup instructions.

160
GPT-4

Rewrites code from another language into idiomatic Python rather than a literal transliteration. Useful for consolidating scattered utility scripts onto one stack, and the output is a reasonable starting point that still needs tests before it is trusted.

▸ ready to run
GPT-4

Rewrites code from another language into idiomatic Python rather than a literal transliteration. Useful for consolidating scattered utility scripts onto one stack, and the output is a reasonable starting point that still needs tests before it is trusted.

Any Language to Python Converter for Migrations

Rewrites code from another language into idiomatic Python rather than a literal transliteration. Useful for consolidating scattered utility scripts onto one stack, and the output is a reasonable starting point that still needs tests before it is trusted.

210
Claude

Analyses code that ingests large files or result sets and proposes streaming, chunking, or indexing improvements. Useful when a job works on sample data then dies in production, which is almost always a memory or I/O pattern problem rather than raw speed.

▸ ready to run
Claude

Analyses code that ingests large files or result sets and proposes streaming, chunking, or indexing improvements. Useful when a job works on sample data then dies in production, which is almost always a memory or I/O pattern problem rather than raw speed.

Large Data Read Optimiser for Memory-Bound Code

Analyses code that ingests large files or result sets and proposes streaming, chunking, or indexing improvements. Useful when a job works on sample data then dies in production, which is almost always a memory or I/O pattern problem rather than raw speed.

230
Claude

Ports a snippet from one language to another while preserving behaviour and adopting the target language's idioms. Useful during migrations, though the output needs testing — literal translation often produces code that runs but reads as foreign.

▸ ready to run
Claude

Ports a snippet from one language to another while preserving behaviour and adopting the target language's idioms. Useful during migrations, though the output needs testing — literal translation often produces code that runs but reads as foreign.

Code Translator Between Programming Languages

Ports a snippet from one language to another while preserving behaviour and adopting the target language's idioms. Useful during migrations, though the output needs testing — literal translation often produces code that runs but reads as foreign.

150
Claude

Explains how an unfamiliar repository is organised, what each directory is responsible for, and where to start reading. Genuinely useful when joining a project or evaluating a dependency, since architecture is rarely documented as clearly as the API.

▸ ready to run
Claude

Explains how an unfamiliar repository is organised, what each directory is responsible for, and where to start reading. Genuinely useful when joining a project or evaluating a dependency, since architecture is rarely documented as clearly as the API.

GitHub Repository Structure Tutor for Onboarding

Explains how an unfamiliar repository is organised, what each directory is responsible for, and where to start reading. Genuinely useful when joining a project or evaluating a dependency, since architecture is rarely documented as clearly as the API.

201
GPT-4

Helps organise, tag, and retrieve frequently used code fragments so the same solution is not rewritten each sprint. Useful for teams building an internal pattern library, and for keeping snippet documentation close enough to the code to stay accurate.

▸ ready to run
GPT-4

Helps organise, tag, and retrieve frequently used code fragments so the same solution is not rewritten each sprint. Useful for teams building an internal pattern library, and for keeping snippet documentation close enough to the code to stay accurate.

Code Snippet Manager for Reusable Pattern Libraries

Helps organise, tag, and retrieve frequently used code fragments so the same solution is not rewritten each sprint. Useful for teams building an internal pattern library, and for keeping snippet documentation close enough to the code to stay accurate.

160
Claude

Walks a site's surface area looking for common weaknesses — injection points, weak headers, exposed endpoints — and explains the fix for each. Intended for reviewing infrastructure you own or are authorised to test, as part of routine hardening.

▸ ready to run
Claude

Walks a site's surface area looking for common weaknesses — injection points, weak headers, exposed endpoints — and explains the fix for each. Intended for reviewing infrastructure you own or are authorised to test, as part of routine hardening.

Website Vulnerability Checker for Defensive Review

Walks a site's surface area looking for common weaknesses — injection points, weak headers, exposed endpoints — and explains the fix for each. Intended for reviewing infrastructure you own or are authorised to test, as part of routine hardening.

160
Claude

Reviews an AI feature for prompt injection, data leakage, and unsafe tool use, then proposes mitigations. Increasingly necessary for any product that passes untrusted text to a model, where the attack surface is the content itself rather than the code.

▸ ready to run
Claude

Reviews an AI feature for prompt injection, data leakage, and unsafe tool use, then proposes mitigations. Increasingly necessary for any product that passes untrusted text to a model, where the attack surface is the content itself rather than the code.

LLM Security Specialist for Prompt Injection Defence

Reviews an AI feature for prompt injection, data leakage, and unsafe tool use, then proposes mitigations. Increasingly necessary for any product that passes untrusted text to a model, where the attack surface is the content itself rather than the code.

150
Claude

Produces shell scripts for a task you describe, with argument handling and error checking rather than a bare one-liner. Useful for automating backups, log rotation, and deployment steps where silent failure would otherwise go unnoticed for weeks.

▸ ready to run
Claude

Produces shell scripts for a task you describe, with argument handling and error checking rather than a bare one-liner. Useful for automating backups, log rotation, and deployment steps where silent failure would otherwise go unnoticed for weeks.

Linux Shell Script Developer for Automation Tasks

Produces shell scripts for a task you describe, with argument handling and error checking rather than a bare one-liner. Useful for automating backups, log rotation, and deployment steps where silent failure would otherwise go unnoticed for weeks.

210
GPT-4

Guides the model through structured diagnosis: gather symptoms, form a hypothesis, test the cheapest one first. Useful for hardware and environment problems where the instinct to change several things at once usually makes the fault harder to find.

▸ ready to run
GPT-4

Guides the model through structured diagnosis: gather symptoms, form a hypothesis, test the cheapest one first. Useful for hardware and environment problems where the instinct to change several things at once usually makes the fault harder to find.

Tech Troubleshooter for Systematic Fault Isolation

Guides the model through structured diagnosis: gather symptoms, form a hypothesis, test the cheapest one first. Useful for hardware and environment problems where the instinct to change several things at once usually makes the fault harder to find.

170
Claude

Sets a mentoring frame where the model explains not just how to do something but why the practice exists. Useful for developers moving from working code toward maintainable code, and for understanding the reasoning behind conventions rather than just following them.

▸ ready to run
Claude

Sets a mentoring frame where the model explains not just how to do something but why the practice exists. Useful for developers moving from working code toward maintainable code, and for understanding the reasoning behind conventions rather than just following them.

Software Development Mentor for Career and Craft

Sets a mentoring frame where the model explains not just how to do something but why the practice exists. Useful for developers moving from working code toward maintainable code, and for understanding the reasoning behind conventions rather than just following them.

160
Claude

Positions the model as a senior engineer who reasons through difficult problems step by step rather than jumping to a snippet. Best reserved for genuinely knotty issues — concurrency, performance cliffs, subtle state bugs — where the reasoning matters more than the code.

▸ ready to run
Claude

Positions the model as a senior engineer who reasons through difficult problems step by step rather than jumping to a snippet. Best reserved for genuinely knotty issues — concurrency, performance cliffs, subtle state bugs — where the reasoning matters more than the code.

Programming Expert for Hard Technical Problems

Positions the model as a senior engineer who reasons through difficult problems step by step rather than jumping to a snippet. Best reserved for genuinely knotty issues — concurrency, performance cliffs, subtle state bugs — where the reasoning matters more than the code.

160
GPT-4

Acts as an R console that returns results without commentary. Useful for verifying vector operations, data frame manipulation, and statistical function output when you are away from RStudio, or for checking syntax before running a long analysis job.

▸ ready to run
GPT-4

Acts as an R console that returns results without commentary. Useful for verifying vector operations, data frame manipulation, and statistical function output when you are away from RStudio, or for checking syntax before running a long analysis job.

R Interpreter Simulator for Statistical Snippets

Acts as an R console that returns results without commentary. Useful for verifying vector operations, data frame manipulation, and statistical function output when you are away from RStudio, or for checking syntax before running a long analysis job.

210
GPT-4

Behaves as a bare PHP interpreter, printing only what the script would output. Handy for checking array functions, string handling, and type juggling behaviour without spinning up a local server. Suppressing explanation makes it a fast self-test tool.

▸ ready to run
GPT-4

Behaves as a bare PHP interpreter, printing only what the script would output. Handy for checking array functions, string handling, and type juggling behaviour without spinning up a local server. Suppressing explanation makes it a fast self-test tool.

PHP Interpreter Simulator for Snippet Verification

Behaves as a bare PHP interpreter, printing only what the script would output. Handy for checking array functions, string handling, and type juggling behaviour without spinning up a local server. Suppressing explanation makes it a fast self-test tool.

180
Claude

Frames the model as a product designer who proposes layouts, interaction patterns, and visual hierarchy for a screen you describe. Useful for getting a second opinion on a flow before building it, particularly around what to cut and where the primary action belongs.

▸ ready to run
Claude

Frames the model as a product designer who proposes layouts, interaction patterns, and visual hierarchy for a screen you describe. Useful for getting a second opinion on a flow before building it, particularly around what to cut and where the primary action belongs.

UX/UI Developer for Interface Design Critique

Frames the model as a product designer who proposes layouts, interaction patterns, and visual hierarchy for a screen you describe. Useful for getting a second opinion on a flow before building it, particularly around what to cut and where the primary action belongs.

262
GPT-4

Frames the model as an experienced Ethereum developer writing Solidity contracts with the access rules and state handling spelled out. Useful for scaffolding a contract and understanding the trade-offs, though any output needs a real audit before deployment.

▸ ready to run
GPT-4

Frames the model as an experienced Ethereum developer writing Solidity contracts with the access rules and state handling spelled out. Useful for scaffolding a contract and understanding the trade-offs, though any output needs a real audit before deployment.

Solidity Smart Contract Developer for Blockchain Builds

Frames the model as an experienced Ethereum developer writing Solidity contracts with the access rules and state handling spelled out. Useful for scaffolding a contract and understanding the trade-offs, though any output needs a real audit before deployment.

170
AI Coding Prompts for Python, JS & SQL — PromptyBox