222 prompts · page 3 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.

CodingBisect regression
Narrow a regression with a git-bisect strategy

You are helping me find which change introduced a regression. Known good: {{good_ref}} Known bad: {{bad_ref}} Symptom: {{symptom}} What I can run to test a commit (the bisect predi...

Claude Opus 4.8GPT-5Gemini 2.5 Pro
#debugging#git#regression
View
CodingType tightening
Tighten loose types to catch bugs at compile time

You are a type-system expert in {{language}} (e.g. TypeScript, Rust, Kotlin). Loosely typed code: {{code}} Domain rules that the types should enforce: {{domain_rules}} Refactor the...

Claude Opus 4.8GPT-5Gemini 2.5 Pro
#refactor#types#typescript#code-quality
View
CodingCI pipeline
Author a CI/CD pipeline with caching and gates

You are a DevOps engineer writing a pipeline for {{ci_platform}} (e.g. GitHub Actions, GitLab CI). Project: {{project_description}} ({{language}}/{{framework}}). Steps needed: {{st...

Claude Opus 4.8GPT-5Gemini 2.5 Pro
#devops#ci#automation#deployment
View
CodingComplexity tuning
Reduce the time/space complexity of an algorithm

You are an algorithms specialist. Current implementation: {{code}} What it computes: {{purpose}} Input sizes in production: {{input_size}} Constraints: {{constraints}} (memory cap,...

Claude Opus 4.8GPT-5Gemini 2.5 Pro
#algorithms#performance#optimization
View
CodingSchema design
Design a normalized database schema with indexes

You are a data modeler for {{database}}. Domain to model: {{domain}} Key access patterns (reads/writes by frequency): {{access_patterns}} Scale and growth: {{scale}} Design the sch...

Claude Opus 4.8GPT-5Gemini 2.5 Pro
#sql#database#architecture#schema
View
CodingFlag rollout
Design a safe feature-flag rollout plan

You are a release engineer. Design a feature-flag rollout for: {{feature}}. Blast radius if it breaks: {{risk}} User segments: {{segments}} Metrics that define success and failure:...

Claude Opus 4.8GPT-5Gemini 2.5 Pro
#devops#deployment#feature-flags
View
CodingRepro builder
Build a deterministic repro for a hard-to-catch bug

You are a debugging strategist. I have a bug that reproduces only sometimes. Bug description: {{bug}} What triggers it (as far as I know): {{triggers}} Environment: {{environment}}...

Claude Opus 4.8GPT-5Gemini 2.5 Pro
#debugging#tests#reproduction
View
CodingIaC review
Review Terraform for drift, security, and reuse

You are an infrastructure-as-code reviewer for {{iac_tool}} on {{cloud}}. Config: {{config}} Review for: 1. Security: open security groups, public buckets, missing encryption, over...

Claude Opus 4.8GPT-5Gemini 2.5 Pro
#devops#infrastructure#security#code-review
View
CodingBuild CLI
Write a robust CLI tool with good UX

You are a CLI tooling engineer writing in {{language}}. Tool purpose: {{purpose}} Commands/flags needed: {{commands}} Inputs/outputs: {{io}} Build it with production-grade UX: 1. A...

Claude Opus 4.8GPT-5Gemini 2.5 Pro
#cli#tooling#writing-code
View
CodingEvent sourcing
Design an event-sourced aggregate with projections

You are a domain-driven-design and event-sourcing expert. Aggregate to model: {{aggregate}} Business rules / invariants: {{invariants}} Queries the read side must answer: {{queries...

Claude Opus 4.8GPT-5Gemini 2.5 Pro
#architecture#event-sourcing#ddd#design
View
CodingExplain legacy
Reverse-engineer and document undocumented legacy code

You are a code archaeologist. I inherited this undocumented {{language}} code and must understand it before changing it. Code: {{code}} Produce: 1. A high-level summary: what this...

Claude Opus 4.8GPT-5Gemini 2.5 Pro
#docs#legacy#code-review#onboarding
View
CodingRate limiter
Implement a distributed rate limiter

You are a backend engineer implementing rate limiting for {{scenario}}. Limits: {{limits}} (e.g. 100 req/min per API key). Deployment: {{deployment}} (single node, multi-node, serv...

Claude Opus 4.8GPT-5Gemini 2.5 Pro
#architecture#backend#concurrency#scalability
View
CodingPR description
Write a reviewer-friendly pull request description

You are writing a pull request description that respects reviewers' time. What the change does: {{change}} Why (problem/ticket): {{why}} Files/areas touched: {{scope}} Risk and rol...

Claude Opus 4.8GPT-5Gemini 2.5 Pro
#docs#code-review#git#collaboration
View
CodingData migration
Write a safe, idempotent, reversible data migration

You are a database migration specialist for {{database}}. Migration goal: {{goal}} Table size: {{table_size}} Constraints: zero downtime, must be re-runnable safely, must be revers...

Claude Opus 4.8GPT-5Gemini 2.5 Pro
#sql#database#migration#devops
View
CodingTest strategy
Design a test pyramid: what to mock vs integrate

You are a test architect. Help me design the test strategy for: {{component}}. Dependencies it has: {{dependencies}} (db, external APIs, queues, time). Risk areas: {{risks}} Speed...

Claude Opus 4.8GPT-5Gemini 2.5 Pro
#tests#strategy#architecture
View
CodingFix N+1
Eliminate N+1 queries in a GraphQL/ORM resolver

You are a backend performance engineer. This {{stack}} resolver/ORM code triggers N+1 queries. Code: {{code}} Schema/relations: {{schema}} Query log showing the N+1: {{query_log}}...

Claude Opus 4.8GPT-5Gemini 2.5 Pro
#performance#graphql#database#backend
View
CodingError strategy
Design a consistent error-handling strategy

You are a software architect designing error handling for a {{language}} {{app_type}}. Current pain: {{pain}} (swallowed errors, inconsistent shapes, lost context). Layers in the a...

Claude Opus 4.8GPT-5Gemini 2.5 Pro
#architecture#error-handling#code-quality
View
CodingFuzz target
Write a fuzz target for a parser or decoder

You are a fuzzing engineer using {{fuzzer}} (e.g. libFuzzer, AFL++, go-fuzz, cargo-fuzz). Code that parses/decodes input: {{code}} Input format: {{input_format}} Deliver: 1. A fuzz...

Claude Opus 4.8GPT-5Gemini 2.5 Pro
#tests#fuzzing#security#parsing
View
CodingCache design
Design a caching layer with correct invalidation

You are a caching specialist. Design caching for: {{data_description}}. Read/write ratio: {{rw_ratio}} Staleness tolerance: {{staleness}} Consistency requirement: {{consistency}} C...

Claude Opus 4.8GPT-5Gemini 2.5 Pro
#architecture#caching#performance#scalability
View
CodingLanguage port
Port code from one language to another idiomatically

You are an expert in both {{source_language}} and {{target_language}}. Source code: {{code}} Port it to {{target_language}} idiomatically, not line-for-line: 1. Use {{target_langua...

Claude Opus 4.8GPT-5Gemini 2.5 Pro
#refactor#porting#writing-code
View
CodingAdd observability
Add metrics, logs, and traces to a service

You are an observability engineer. Instrument this {{language}} service for production. Service and critical paths: {{service_description}} Key code: {{code}} Stack: {{telemetry_st...

Claude Opus 4.8GPT-5Gemini 2.5 Pro
#devops#observability#monitoring#backend
View
CodingState machine
Implement a correct finite state machine

You are a software engineer implementing a finite state machine in {{language}}. Process to model: {{process}} States: {{states}} Allowed transitions and their triggers: {{transiti...

Claude Opus 4.8GPT-5Gemini 2.5 Pro
#architecture#state-machine#writing-code#design
View
CodingCORS/auth fix
Diagnose and fix a stubborn CORS or auth failure

You are a web platform expert. My browser requests fail with: {{error}}. Setup: - Frontend origin: {{frontend_origin}} - API origin: {{api_origin}} - Auth method: {{auth_method}} (...

Claude Opus 4.8GPT-5Gemini 2.5 Pro
#debugging#web#security#http
View
CodingIncident runbook
Write an on-call runbook for a service incident

You are an SRE writing an on-call runbook for: {{incident_type}}. Service: {{service}} How it usually manifests / alert: {{symptom}} Known causes: {{causes}} Tools and dashboards a...

Claude Opus 4.8GPT-5Gemini 2.5 Pro
#devops#docs#sre#incident
View
CodingUpgrade plan
Plan a major dependency or framework upgrade

You are an engineer planning a major upgrade: {{dependency}} from {{from_version}} to {{to_version}}. Codebase usage: {{usage}} Risk tolerance and timeline: {{constraints}} Changel...

Claude Opus 4.8GPT-5Gemini 2.5 Pro
#refactor#dependencies#migration#maintenance
View
CodingShell hardening
Harden a fragile shell script

You are a shell scripting expert. Harden this script for production use. Script: {{script}} Where it runs: {{environment}} Fix it to be robust: 1. Add strict mode (set -euo pipefai...

Claude Opus 4.8GPT-5Gemini 2.5 Pro
#devops#shell#scripting#code-quality
View
CodingWebhook system
Design a reliable outbound webhook system

You are a platform engineer designing outbound webhooks for: {{events}}. Consumers: {{consumers}} Volume: {{volume}} Delivery guarantees needed: {{guarantees}} (at-least-once, orde...

Claude Opus 4.8GPT-5Gemini 2.5 Pro
#architecture#backend#webhooks#reliability
View
CodingBundle optimization
Cut frontend bundle size and improve load time

You are a frontend performance engineer for a {{framework}} app. Bundle analysis / current sizes: {{bundle_report}} Key routes and their weight: {{routes}} Constraints: {{constrain...

Claude Opus 4.8GPT-5Gemini 2.5 Pro
#performance#frontend#optimization#web
View
CodingIdempotency design
Add idempotency to a payment or write endpoint

You are a backend engineer making a critical write endpoint idempotent: {{endpoint}}. What duplicates would cause: {{duplicate_harm}} (e.g. double charge). Store available: {{store...

Claude Opus 4.8GPT-5Gemini 2.5 Pro
#architecture#backend#reliability#payments
View
CodingSmell refactor
Identify code smells and refactor incrementally

You are a refactoring expert reviewing this {{language}} code. Code: {{code}} Identify code smells (long method, large class, feature envy, primitive obsession, shotgun surgery, du...

Claude Opus 4.8GPT-5Gemini 2.5 Pro
#refactor#code-quality#code-review
View
CodingLoad test plan
Design a load test to find the breaking point

You are a performance test engineer. Design a load test for: {{service}}. Expected production load: {{expected_load}} Critical user journeys: {{journeys}} Tool: {{tool}} (e.g. k6,...

Claude Opus 4.8GPT-5Gemini 2.5 Pro
#performance#testing#devops#scalability
View
CodingPlugin system
Design an extensible plugin architecture

You are a platform architect designing a plugin system for: {{application}}. What plugins should be able to do: {{capabilities}} What they must NOT be able to do: {{constraints}} L...

Claude Opus 4.8GPT-5Gemini 2.5 Pro
#architecture#design#extensibility#api
View
CodingTimeout debug
Diagnose intermittent timeouts and connection errors

You are a distributed systems debugger. We get intermittent timeouts: {{symptom}}. Architecture: {{architecture}} (services, proxies, DB, connection pools). When it happens: {{patt...

Claude Opus 4.8GPT-5Gemini 2.5 Pro
#debugging#distributed-systems#networking#reliability
View
CodingLibrary docs
Write developer docs for a library or module

You are a technical writer documenting a {{language}} library: {{library_name}}. What it does: {{purpose}} Public API: {{api}} Common use cases: {{use_cases}} Write docs with: a on...

Claude Opus 4.8GPT-5Gemini 2.5 Pro
#docs#documentation#library#writing
View
CodingMulti-tenancy
Choose and implement a multi-tenancy model

You are a SaaS architect. Design multi-tenancy for: {{product}}. Tenant count and size distribution: {{tenants}} Isolation requirements: {{isolation}} (compliance, noisy-neighbor,...

Claude Opus 4.8GPT-5Gemini 2.5 Pro
#architecture#saas#database#security
View
CodingBenchmark harness
Write a trustworthy microbenchmark

You are a performance measurement expert in {{language}}. I want to compare these implementations: {{implementations}} Workload to benchmark: {{workload}} Benchmark tool/library av...

Claude Opus 4.8GPT-5Gemini 2.5 Pro
#performance#benchmarking#testing
View
CodingResilience policy
Design retry, backoff, and circuit-breaker policy

You are a reliability engineer. Design the resilience policy for calls to: {{dependency}}. Failure modes observed: {{failures}} (timeouts, 5xx, throttling). Call context: {{context...

Claude Opus 4.8GPT-5Gemini 2.5 Pro
#architecture#reliability#distributed-systems#backend
View
CodingPR review
Do a thorough pull request code review

You are a senior engineer doing a careful code review of this {{language}} pull request. What the PR claims to do: {{intent}} Diff: {{diff}} Review in priority order: 1. Correctnes...

Claude Opus 4.8GPT-5Gemini 2.5 Pro
#code-review#quality#collaboration
View
CodingSearch design
Design a full-text/search feature for an app

You are a search engineer. Design search for: {{what_to_search}}. Data characteristics: {{data}} (volume, update rate, fields, languages). Query needs: {{query_needs}} (typo tolera...

Claude Opus 4.8GPT-5Gemini 2.5 Pro
#architecture#search#backend#design
View
CodingSpec to code
Turn an algorithm description or paper into working code

You are an implementation engineer. Turn this algorithm description into working {{language}} code. Description / pseudocode / formula: {{description}} Input and output spec: {{io_...

Claude Opus 4.8GPT-5Gemini 2.5 Pro
#algorithms#writing-code#implementation#tests
View
CodingFloat precision fix
Fix floating-point precision and rounding bugs

You are a numerical-computing expert. This {{language}} code produces wrong or unstable numbers. Code: {{code}} Expected vs actual: {{expected_vs_actual}} Domain: {{domain}} (money...

Claude Opus 4.8GPT-5Gemini 2.5 Pro
#debugging#numerical#precision#math
View
CodingJob queue design
Design a background job and queue system

You are a backend architect designing background processing for: {{workload}}. Job types and their characteristics: {{job_types}} (duration, frequency, priority, retryability). Vol...

Claude Opus 4.8GPT-5Gemini 2.5 Pro
#architecture#backend#queues#reliability
View
CodingFix flaky test
Diagnose and stabilize a flaky test

You are a test reliability engineer. A test is flaky. Test code: ```{{language}} {{test_code}} ``` Symptoms / failure logs: {{failure_logs}} Test framework: {{framework}} Do the fo...

Claude Opus 4.8GPT-5Gemini 2.5 Pro
#testing#ci#debugging#flaky
View
CodingWrite regex
Build a regex from positive and negative examples

You are a regex expert for the {{flavor}} engine. Must MATCH these strings: {{should_match}} Must NOT match these strings: {{should_not_match}} Produce: 1. A single regex that matc...

Claude Opus 4.8GPT-5Gemini 2.5 Pro
#regex#parsing#validation
View
CodingOptimize SQL
Optimize a slow SQL query with an execution plan

You are a database performance specialist for {{database}}. Slow query: ```sql {{query}} ``` Relevant table schema and existing indexes: {{schema_and_indexes}} Execution plan / EXP...

Claude Opus 4.8GPT-5Gemini 2.5 Pro
#sql#performance#database#indexing
View
CodingDebug heisenbug
Hunt a bug that disappears when you add logging

You are a senior systems debugger. I have a heisenbug: it manifests in production but disappears when I attach a debugger or add print statements. Code under suspicion: ```{{langua...

Claude Opus 4.8GPT-5
#debugging#concurrency#memory#systems
View
CodingWrite tests
Generate property-based tests for a function

You are an expert in property-based testing using {{library}} for {{language}}. Function to test: ```{{language}} {{function_code}} ``` Identify and encode as properties: 1. Invari...

Claude Opus 4.8GPT-5Gemini 2.5 Pro
#testing#property-testing#invariants
View
CodingHarden script
Make a bash script portable and safe

You are a shell scripting expert focused on portability and safety. Script: ```bash {{script}} ``` Target environments: {{targets}} Rewrite it to: 1. Be safe (set -euo pipefail or...

Claude Opus 4.8GPT-5Gemini 2.5 Pro
#bash#shell#portability#devops
View
CodingOptimize Dockerfile
Shrink and harden a Dockerfile

You are a container image optimization expert. Current Dockerfile: ```dockerfile {{dockerfile}} ``` Stack: {{stack}} Current image size: {{current_size}} Produce an improved Docker...

Claude Opus 4.8GPT-5Gemini 2.5 Pro
#docker#devops#containers#optimization
View
CodingFind memory leak
Find a memory leak from heap snapshots

You are a memory profiling expert for {{runtime}}. Symptom: memory grows {{growth_pattern}} and is not reclaimed. Heap snapshot diff / retained-size summary: {{heap_data}} Suspect...

Claude Opus 4.8GPT-5
#memory#profiling#debugging#performance
View

Browse other categories