222 prompts · page 5 of 5

Coding Prompts

Ready-to-use prompts for writing, refactoring, debugging, and reviewing code. Paste one in, fill the variables, and get a focused result instead of a blank chat.

CodingTest planning
Generate a test plan from a spec

You are a test engineer writing a test plan before any code is merged. Feature or function spec: {{spec}}. Testing framework: {{framework}}. Produce a test plan: 1. The core behavi...

Claude Opus 4.8GPT-5Gemini 2.5 Pro
#ai-coding#testing#spec#quality
View
CodingAgent config
Write an AGENTS.md for a repo

You are setting up a repository so AI coding agents work reliably in it. Project type: {{project_type}}. Stack and tooling: {{stack}}. House rules I care about: {{rules}}. Draft an...

Claude Opus 4.8GPT-5Gemini 2.5 Pro
#ai-coding#agents#documentation#setup
View
CodingTool definition
Spec a tool for an AI coding agent

You are designing a tool that an AI coding agent can call. Tool purpose: {{purpose}}. Language / runtime: {{runtime}}. Produce: 1. A short tool name and one-line description the ag...

Claude Opus 4.8GPT-5Gemini 2.5 Pro
#ai-agent#tool-use#coding#schema
View
CodingRefactor
Refactor tangled code into pure functions

Act as a senior engineer doing a careful refactor. Here is the code to refactor: {{code}} Language: {{language}}. Do this: 1. Identify where business logic is tangled with side eff...

Claude Opus 4.8GPT-5Gemini 2.5 Pro
#refactor#testing#clean-code#coding
View
CodingDebugging
Debug an error from a stack trace

You are a debugging partner. Stack trace / error: {{error}} Relevant code or context: {{context}} Walk through it: 1. Translate the error into plain language. 2. List the 3 most li...

Claude Opus 4.8GPT-5Gemini 2.5 Pro
#debugging#errors#coding#troubleshooting
View
CodingCode review
Review a pull request like a staff engineer

Act as a staff engineer reviewing a pull request. Diff or code: {{diff}} What this change is meant to do: {{intent}}. Review it and return: 1. Correctness: any bugs or broken edge...

Claude Opus 4.8GPT-5Gemini 2.5 Pro
#code-review#quality#coding#pull-request
View
CodingFrontend build
Build a React component from a spec

You are a senior frontend engineer. Build a React component. Component: {{component}}. Props / behavior: {{behavior}}. Styling approach: {{styling}}. Deliver: 1. A typed component...

Claude Opus 4.8GPT-5Gemini 2.5 Pro
#react#frontend#typescript#component
View
CodingCSS debugging
Fix a broken CSS layout

You are a CSS layout expert. The layout problem: {{problem}}. Relevant markup and styles: {{code}} Help me fix it: 1. Explain why the current layout behaves this way. 2. Give the m...

Claude Opus 4.8GPT-5Gemini 2.5 Pro
#css#layout#frontend#debugging
View
CodingForm build
Build an accessible form with validation

You are a frontend engineer who cares about accessibility. Build a form: {{form_purpose}}. Fields: {{fields}}. Framework: {{framework}}. Include: 1. Markup with proper labels, fiel...

Claude Opus 4.8GPT-5Gemini 2.5 Pro
#forms#accessibility#frontend#validation
View
CodingAPI design
Design a REST API for a resource

Act as a backend architect. Design a REST API for: {{resource}}. Main use cases: {{use_cases}}. Provide: 1. The endpoints (method, path, purpose) following REST conventions. 2. Req...

Claude Opus 4.8GPT-5Gemini 2.5 Pro
#api#backend#rest#architecture
View
CodingSchema design
Design a normalized SQL schema

You are a database engineer. Design a SQL schema for: {{feature}}. Expected scale: {{scale}}. Database: {{database}}. Deliver: 1. Tables with columns, types, and constraints. 2. Pr...

Claude Opus 4.8GPT-5Gemini 2.5 Pro
#sql#database#backend#schema
View
CodingJob design
Design a reliable background job

Act as a backend engineer designing an async job. Job purpose: {{job}}. Trigger: {{trigger}}. Queue / runtime: {{runtime}}. Cover: 1. The job steps and where it can fail. 2. How to...

Claude Opus 4.8GPT-5Gemini 2.5 Pro
#backend#async#queue#reliability
View
CodingFix flaky tests
Stabilize a flaky test

You are a senior test engineer. Here is a flaky test and the code under test: {{test_and_code}} Stack and runner: {{stack}}. Do this: 1. List the most likely causes of flakiness (t...

Claude Opus 4.8GPT-5Gemini 2.5 Pro
#testing#ci#debugging#coding
View
CodingTune SQL
Optimize a slow SQL query

Act as a database performance engineer. Database: {{db_engine}}. Slow query: {{query}} Relevant schema and existing indexes: {{schema}} Provide: 1. What the query is likely doing i...

Claude Opus 4.8GPT-5Gemini 2.5 Pro
#sql#database#performance#backend
View
CodingAPI design review
Review a REST API design

You are an API design reviewer. Here is the proposed API: {{endpoints}} Use case and main consumers: {{context}}. Review it for: 1. Resource naming and URL structure (nouns, plural...

Claude Opus 4.8GPT-5Gemini 2.5 Pro
#api#rest#backend#design-review
View
CodingAccessibility fix
Make a React component accessible

You are a frontend accessibility specialist. Here is the component: {{component_code}} Framework: {{framework}}. Audit and fix it: 1. Identify accessibility problems (missing roles...

Claude Opus 4.8GPT-5Gemini 2.5 Pro
#frontend#accessibility#react#a11y
View
CodingFix CSS layout
Debug a broken CSS layout

You are a CSS layout expert. Here is the markup and styles: {{html_css}} The problem: {{symptom}}. Where it breaks: {{viewport}}. Diagnose and fix: 1. Explain why the layout breaks...

Claude Opus 4.8GPT-5Gemini 2.5 Pro
#frontend#css#layout#debugging
View
CodingOptimize Dockerfile
Harden and slim a Dockerfile

Act as a container and DevOps engineer. Here is my Dockerfile: {{dockerfile}} App type: {{app_type}}. Improve it: 1. Point out security issues (running as root, secrets in layers,...

Claude Opus 4.8GPT-5Gemini 2.5 Pro
#docker#devops#security#backend
View
CodingWrite regex
Build and explain a regex

You are a regex expert. I need a pattern that matches: {{requirement}}. It must also reject: {{non_matches}}. Target language or flavor: {{flavor}}. Provide: 1. The regex, ready to...

Claude Opus 4.8GPT-5Gemini 2.5 Pro
#regex#coding#text-processing#utility
View
CodingDesign types
Model precise TypeScript types

You are a TypeScript type design expert. Here is the data or rough shape I am working with: {{data_or_shape}} Constraints and rules: {{rules}}. Produce: 1. Strict types that make i...

Claude Opus 4.8GPT-5Gemini 2.5 Pro
#typescript#types#coding#frontend
View
CodingResolve conflict
Resolve a tricky merge conflict

You are a git and code-merge expert. Here is the conflicted region with both sides: {{conflict}} Context on what each branch was trying to do: {{context}}. Help me resolve it: 1. E...

Claude Opus 4.8GPT-5Gemini 2.5 Pro
#git#merge#coding#collaboration
View
CodingDebug from logs
Triage a production error log

Act as an on-call backend engineer. Here is the error log or stack trace: {{log}} What the system was doing: {{context}}. Stack: {{stack}}. Triage it: 1. The single most likely roo...

Claude Opus 4.8GPT-5Gemini 2.5 Pro
#debugging#logs#backend#incident
View

Browse other categories