ChatGPT Prompts for Software Engineers
Thirty battle-tested prompts that turn ChatGPT into a pair programmer — generate code, hunt down bugs, review pull requests, write tests and docs, and design systems. Swap in your language and codebase, then ship.
In short: This page contains 30 copy-paste ready prompts, organized into 6 categories with a description and pro tip for each. The first 5 prompts are free instantly, no signup needed. Drafted with AI writing assistance and checked against our editorial policy.
Code Generation
5 promptsImplement a feature from a spec
1/30✨ What it does
ChatGPT implements [FEATURE] in [LANGUAGE] for [CODEBASE], matching existing conventions, plus a pre-merge checklist. You review the assumptions, then run the checklist before you merge.
<context> You are a senior [LANGUAGE] engineer working in [CODEBASE]. We follow the existing conventions, error-handling patterns, and folder structure already present in the repo. I will give you a feature spec for [FEATURE]. </context> <task> 1. Restate the feature in one sentence and list any assumptions you are making. 2. Propose the file(s) to create or modify and a one-line reason for each. 3. Write production-ready [LANGUAGE] code implementing [FEATURE], with input validation, error handling, and inline comments only where logic is non-obvious. 4. List edge cases you handled and any you deliberately deferred. 5. End with a short checklist of what I should verify before merging. </task>
Pro tip: Paste the actual spec or ticket text into the context block so ChatGPT anchors to real requirements instead of inventing them.
Generate a typed API client
2/30✨ What it does
ChatGPT builds a typed API client in [LANGUAGE] for [CODEBASE] from the endpoints you paste for [FEATURE], with auth, retries, and usage examples. You wire it into the app, then hit one real endpoint to confirm.
<context> You are building a typed client in [LANGUAGE] for an HTTP API used by [CODEBASE]. I will paste the endpoint list or an OpenAPI snippet for [FEATURE]. </context> <task> 1. Define request and response types/models for each endpoint. 2. Implement a small client class/module with one method per endpoint. 3. Centralize base URL, auth headers, timeouts, and retry-on-5xx logic. 4. Surface errors as typed results rather than throwing raw network errors. 5. Show one usage example per method and note any pagination or rate-limit handling. </task>
Pro tip: Attach the OpenAPI/Swagger file directly so ChatGPT derives exact field names and types rather than guessing.
Scaffold a new module
3/30✨ What it does
ChatGPT scaffolds a new [FEATURE] module in [CODEBASE] using [LANGUAGE], with public versus internal boundaries, stubbed files, and a usage README. You fill the stubs, then hook the module into the existing layout.
<context> You are scaffolding a new module in [CODEBASE] using [LANGUAGE]. The module implements [FEATURE] and must match the existing project layout and dependency-injection style. </context> <task> 1. Outline the module boundary: public interface vs internal helpers. 2. Generate the file structure with stubbed functions and clear TODOs. 3. Wire the module into the app entry point or DI container. 4. Add the minimal config or env keys the module needs, with safe defaults. 5. Provide a one-paragraph README block describing how to use the module. </task>
Pro tip: Describe your DI or registration pattern in the context so the wiring step matches how your app actually bootstraps.
Convert pseudocode to working code
4/30✨ What it does
ChatGPT translates your pseudocode for [FEATURE] into idiomatic [LANGUAGE] in [CODEBASE], replacing hand-waved steps with real logic. You run the tests, then tweak names to match the repo.
<context> You are a [LANGUAGE] engineer in [CODEBASE]. I will paste pseudocode or a rough algorithm for [FEATURE] and need it turned into idiomatic, tested code. </context> <task> 1. Translate the pseudocode into idiomatic [LANGUAGE], preserving intent. 2. Replace any hand-waved steps with concrete, correct logic and call out where you did so. 3. Add guard clauses for invalid input and explain the time/space complexity. 4. Suggest a more efficient approach if one exists, with the tradeoff. 5. Include a tiny runnable example demonstrating expected output. </task>
Pro tip: Ask ChatGPT to flag every spot where it had to guess intent so you can confirm the algorithm before trusting it.
Write a CLI command
5/30✨ What it does
ChatGPT writes a new CLI command for [FEATURE] in [CODEBASE] ([LANGUAGE]) with arguments, validation, exit codes, and help text. You try the happy path and a bad flag, then merge it into the tool.
<context> You are extending the command-line tool in [CODEBASE], written in [LANGUAGE]. I want a new command that implements [FEATURE]. </context> <task> 1. Define the command name, arguments, and flags with defaults and help text. 2. Implement argument parsing and validation following the existing CLI framework. 3. Implement the command logic, separating I/O from pure business logic. 4. Handle non-zero exit codes and write errors to stderr. 5. Show example invocations and their expected output. </task>
Pro tip: Name the CLI framework you use (Cobra, Click, Commander, etc.) so the generated parsing code drops straight in.
Debugging
5 promptsDiagnose a stack trace
6/30✨ What it does
ChatGPT reads the stack trace for [FEATURE] in [CODEBASE] ([LANGUAGE]) and ranks the likely root cause with a minimal fix and a prevention guard. You apply the fix, then add the guard so it cannot recur.
<context> You are debugging [CODEBASE], written in [LANGUAGE]. I will paste a stack trace and the relevant code for [FEATURE]. The error happens at runtime in production. </context> <task> 1. Read the stack trace top-down and identify the most likely root cause. 2. Explain the failure in plain language and what conditions trigger it. 3. Propose the smallest correct fix, with the exact code change. 4. List two other plausible causes and how to rule each one out. 5. Suggest a guard or assertion that would have surfaced this earlier. </task>
Pro tip: Paste both the trace and the surrounding source — ChatGPT reasons far better with the actual frames than with the error message alone.
Find a logic bug
7/30✨ What it does
ChatGPT traces the failing input through [FEATURE] in [CODEBASE] ([LANGUAGE]), names the exact wrong line, and writes a fix plus a regression test. You confirm the intermediate values, then land the test first.
<context> You are reviewing [LANGUAGE] code from [CODEBASE] that produces wrong output for [FEATURE] but does not crash. I will paste the function and a failing input/expected-output pair. </context> <task> 1. Trace the code line by line for the failing input and show intermediate values. 2. Pinpoint the exact line where actual diverges from expected. 3. Explain why the bug occurs, not just where. 4. Provide the corrected code and re-trace it for the same input. 5. Add one more test input that would catch a regression of this bug. </task>
Pro tip: Give a concrete failing input and the expected output so ChatGPT can execute the trace deterministically instead of speculating.
Debug a flaky test
8/30✨ What it does
ChatGPT ranks why the [FEATURE] test in [CODEBASE] ([LANGUAGE]) flakes in CI and rewrites it to be deterministic. You replace the flaky test, then watch the next CI run stay green.
<context> You are investigating a flaky test in [CODEBASE] ([LANGUAGE]) that covers [FEATURE]. It passes locally but fails intermittently in CI. </context> <task> 1. List the usual sources of flakiness (timing, shared state, ordering, randomness, network) and rank which are most likely here. 2. Read the pasted test and implementation and point to specific lines that introduce nondeterminism. 3. Propose a deterministic rewrite of the risky parts. 4. Suggest how to reproduce the flake locally (seeds, parallelism, ordering). 5. Recommend a CI change to catch this class of flake going forward. </task>
Pro tip: Mention your test runner and whether tests run in parallel — both heavily change which flakiness causes are likely.
Explain unexpected behavior
9/30✨ What it does
ChatGPT restates expected versus actual behavior for [FEATURE] in [CODEBASE] ([LANGUAGE]) and explains the language or library rule behind the surprise. You keep the mental model, then change the code or your expectation.
<context> You are helping me understand why [FEATURE] in [CODEBASE] behaves differently than I expect. The language is [LANGUAGE]. I will describe expected vs actual behavior and paste the code. </context> <task> 1. Restate my expected behavior and the observed behavior in your own words. 2. Identify the language feature, library quirk, or async/ordering issue causing the gap. 3. Demonstrate the cause with a minimal reproducible snippet. 4. Give the corrected version and explain the mental model I was missing. 5. Point to the relevant docs or spec section for further reading. </task>
Pro tip: Be explicit about your runtime/version — behavior around async, floats, and equality often differs across language versions.
Triage a performance regression
10/30✨ What it does
ChatGPT ranks bottlenecks in the [FEATURE] path in [CODEBASE] ([LANGUAGE]) and proposes one concrete optimization with a way to measure it. You apply that change, then compare profiler numbers before and after.
<context> You are investigating a performance regression in [FEATURE] within [CODEBASE], written in [LANGUAGE]. I will paste the hot code path and any profiler output I have. </context> <task> 1. Identify the most expensive operations in the pasted path (allocations, N+1 queries, repeated work, blocking I/O). 2. Rank suspected bottlenecks by likely impact. 3. Propose targeted optimizations with the rewritten code for the top one. 4. Estimate the complexity/cost change and any correctness risk of each fix. 5. Suggest a benchmark or metric to confirm the improvement. </task>
Pro tip: Paste real profiler or query-log output if you have it — ChatGPT prioritizes far more accurately with measured hotspots than guesses.
Code Review
5 promptsReview a pull request diff
11/30✨ What it does
ChatGPT reviews the [FEATURE] diff in [CODEBASE] ([LANGUAGE]) with severity-ranked comments and a merge verdict. You fix the correctness issues first, then decide whether to request changes.
<context> You are a staff engineer reviewing a pull request in [CODEBASE], written in [LANGUAGE]. The PR implements [FEATURE]. I will paste the diff. Be direct but constructive. </context> <task> 1. Summarize what the diff does in two sentences. 2. Flag correctness bugs, race conditions, and unhandled errors first, citing exact lines. 3. Note security and input-validation concerns. 4. Call out readability, naming, and duplication issues, ranked by severity. 5. End with a clear verdict: approve, approve-with-nits, or request-changes, and the top three must-fix items. </task>
Pro tip: Paste the unified diff (git diff format) rather than full files so ChatGPT focuses only on what changed.
Spot security vulnerabilities
12/30✨ What it does
ChatGPT reports injection, XSS, auth, and secrets gaps in the [FEATURE] [LANGUAGE] code from [CODEBASE], with severity, lines, and fixes. You patch the high-severity items, then re-check those lines.
<context> You are performing a security-focused review of [LANGUAGE] code from [CODEBASE] that handles [FEATURE]. Assume input is untrusted. </context> <task> 1. Check for injection (SQL, command, template), XSS, SSRF, and path traversal in the pasted code. 2. Review auth, authorization, and secrets handling for gaps. 3. Flag unsafe deserialization, insecure defaults, and missing rate limits. 4. For each finding, give severity, the vulnerable line, and a concrete fix. 5. List anything you could NOT verify from the code alone and what to check next. </task>
Pro tip: Tell ChatGPT what trust boundary the code sits on (public endpoint, internal job, admin-only) so it weights severity correctly.
Suggest a cleaner refactor
13/30✨ What it does
ChatGPT suggests three behavior-preserving refactors for [FEATURE] in [CODEBASE] ([LANGUAGE]), with before-and-after snippets ranked by payoff. You apply the highest-payoff one, then leave the rest for later.
<context> You are reviewing [LANGUAGE] code in [CODEBASE] that works but is hard to maintain. It implements [FEATURE]. I want refactoring suggestions, not a rewrite. </context> <task> 1. Identify the biggest maintainability smells (long functions, deep nesting, primitive obsession, duplication). 2. For the top three, show the before snippet and a refactored after snippet. 3. Keep behavior identical — note any behavior you might be changing. 4. Explain the principle each refactor applies and why it helps. 5. Order the refactors by payoff-to-risk ratio. </task>
Pro tip: Ask it to preserve behavior explicitly and call out risky changes, so you can refactor incrementally without surprise regressions.
Enforce coding standards
14/30✨ What it does
ChatGPT lists each convention violation in the [FEATURE] [LANGUAGE] code from [CODEBASE] with a corrected line and a lint rule. You apply the fixes, then add the lint rule so it stays enforced.
<context> You are reviewing [LANGUAGE] code from [CODEBASE] against our team conventions for [FEATURE]. I will paste our style rules followed by the code. </context> <task> 1. List each violation of the pasted conventions with the offending line. 2. Provide the corrected line or block for each violation. 3. Distinguish hard rule violations from stylistic preferences. 4. Suggest a lint rule or formatter config that would auto-enforce each fixable item. 5. Summarize how many issues are auto-fixable vs need human judgment. </task>
Pro tip: Paste your actual style guide or linter config first so feedback maps to your real standards, not generic best practice.
Assess test coverage of a change
15/30✨ What it does
ChatGPT maps behaviors in the [FEATURE] change in [CODEBASE] ([LANGUAGE]) to existing tests and writes the missing ones. You add those tests, then refuse to merge until the new branches are covered.
<context> You are reviewing whether a change to [FEATURE] in [CODEBASE] ([LANGUAGE]) is adequately tested. I will paste the changed code and its existing tests. </context> <task> 1. List the behaviors and branches in the changed code. 2. Map each existing test to the behavior it covers. 3. Identify untested branches, edge cases, and error paths. 4. Write the missing test cases as code, named for the behavior they verify. 5. Give a one-line coverage verdict: sufficient or insufficient to merge. </task>
Pro tip: Include both the diff and the current test file so ChatGPT can tell which branches are genuinely uncovered versus already tested.
Like these prompts? There are full tutorials behind them.
Learn the workflows, not just the prompts. Easy-to-follow tutorials inside AI Academy, and the library keeps growing.
Testing
5 promptsGenerate unit tests
16/30✨ What it does
ChatGPT writes unit tests in [LANGUAGE] for [FEATURE] in [CODEBASE] covering happy path, boundaries, and errors. You run the suite, then keep the cases that match the real function.
<context> You are writing unit tests in [LANGUAGE] for [FEATURE] in [CODEBASE]. We use the repo's existing test framework and naming style. I will paste the function under test. </context> <task> 1. Enumerate the function's inputs, outputs, and side effects. 2. Derive test cases: happy path, boundary values, invalid input, and error conditions. 3. Write the tests using the existing framework, with descriptive names and arrange-act-assert structure. 4. Mock or stub external dependencies cleanly. 5. Note any behavior that is ambiguous and should be clarified before locking it in tests. </task>
Pro tip: Name the exact test framework and assertion library so the output runs without you rewriting imports or matchers.
Design edge-case test inputs
17/30✨ What it does
ChatGPT catalogs edge cases for [FEATURE] in [CODEBASE] ([LANGUAGE]) and turns the important ones into prioritized tests. You implement the top cases, then add more if a new failure appears.
<context> You are hardening tests for [FEATURE] in [CODEBASE] ([LANGUAGE]). The happy path already passes. I want a thorough list of edge cases. I will paste the function or spec. </context> <task> 1. Brainstorm edge cases across categories: empty, null, boundary, very large, malformed, concurrent, and locale/encoding inputs. 2. For each, state the input and the expected behavior. 3. Flag cases where the correct behavior is undefined and needs a product decision. 4. Turn the well-defined cases into test code. 5. Prioritize which edge cases are most likely to occur in production. </task>
Pro tip: Ask ChatGPT to separate cases with defined behavior from cases needing a product decision so you don't encode guesses as tests.
Write integration tests
18/30✨ What it does
ChatGPT writes integration tests for [FEATURE] in [CODEBASE] ([LANGUAGE]) with setup, teardown, and outcome-based assertions. You run them against a realistic environment, then keep the ones that catch handoff bugs.
<context> You are writing integration tests for [FEATURE] in [CODEBASE], using [LANGUAGE]. The feature spans multiple components (e.g. handler, service, database). I will describe the flow. </context> <task> 1. Identify the components involved and the boundaries worth testing together. 2. Define the test scenarios end-to-end, including setup and teardown. 3. Write the integration tests with realistic fixtures and a clean database/state per run. 4. Assert on observable outcomes, not internal implementation details. 5. Note which external services should be faked vs hit for real and why. </task>
Pro tip: Describe your test infrastructure (containers, in-memory DB, test doubles) so the setup/teardown code matches your environment.
Add property-based tests
19/30✨ What it does
ChatGPT adds property-based tests for [FEATURE] in [CODEBASE] ([LANGUAGE]) with invariants, generators, and clear failure output. You run them until they shrink a bug, then keep the invariant that failed.
<context> You are adding property-based tests for [FEATURE] in [CODEBASE] ([LANGUAGE]). I want to test invariants rather than fixed examples. I will paste the function. </context> <task> 1. Identify invariants the function must always satisfy (round-trips, idempotence, ordering, bounds). 2. Define generators for valid and adversarial inputs. 3. Write property-based tests using a suitable library for [LANGUAGE]. 4. Add shrinking-friendly assertions so failures minimize cleanly. 5. Explain what each property protects against and a known false-friend to avoid asserting. </task>
Pro tip: Tell ChatGPT which property-testing library you use (Hypothesis, fast-check, QuickCheck) so generator syntax is correct out of the box.
Reduce a bug to a failing test
20/30✨ What it does
ChatGPT turns the reported [FEATURE] bug in [CODEBASE] ([LANGUAGE]) into one minimal failing test. You confirm it goes red, then write the fix against that test.
<context> You are converting a reported bug in [FEATURE] ([CODEBASE], [LANGUAGE]) into a minimal failing test before I fix it. I will paste the bug report and relevant code. </context> <task> 1. Restate the bug as a precise expected-vs-actual statement. 2. Identify the smallest input that reproduces it. 3. Write a single failing test that asserts the correct (desired) behavior. 4. Confirm the test fails for the current code and would pass once fixed. 5. Suggest where the fix likely belongs, without writing the fix. </task>
Pro tip: Use this red-test-first habit: have ChatGPT write the failing test, you confirm it fails, then ask for the fix in a separate turn.
Documentation
5 promptsDocument a function or module
21/30✨ What it does
ChatGPT writes style-matched docs for [FEATURE] in [CODEBASE] ([LANGUAGE]) covering parameters, returns, errors, and an example. You paste them above the function, then tweak wording to match the repo.
<context> You are documenting [FEATURE] in [CODEBASE], written in [LANGUAGE]. Match the repo's existing docstring style. I will paste the code. </context> <task> 1. Write a one-line summary of what the code does. 2. Document each parameter, return value, and thrown error/exception. 3. Note side effects, preconditions, and thread-safety where relevant. 4. Add a short, copy-pasteable usage example. 5. Keep it accurate to the code — do not document behavior the code does not have. </task>
Pro tip: Specify your docstring convention (JSDoc, Google-style, reStructuredText) so the output renders correctly in your doc tooling.
Write a README for a project
22/30✨ What it does
ChatGPT writes a first-impression README for [CODEBASE], a [LANGUAGE] project that does [FEATURE], with install and a quick start. You add the real commands, then read it as a newcomer would.
<context> You are writing the README for [CODEBASE], a [LANGUAGE] project that does [FEATURE]. The audience is a developer seeing it for the first time. I will paste package metadata and key entry points. </context> <task> 1. Open with a one-paragraph description of what it does and who it is for. 2. Add Installation, Quick Start, and Configuration sections with runnable commands. 3. Document the main commands or API surface with examples. 4. Include Contributing and License placeholders matching the repo. 5. Keep claims grounded in the provided code — mark anything you inferred as TODO. </task>
Pro tip: Feed in your package.json/pyproject and a couple of entry-point files so commands and examples reflect the real project, not a template.
Generate API reference docs
23/30✨ What it does
ChatGPT writes API reference entries for [FEATURE] in [CODEBASE] ([LANGUAGE]) with signatures, examples, errors, and auth notes. You paste each entry next to the method, then check the examples still compile.
<context> You are generating reference documentation for the public API of [FEATURE] in [CODEBASE] ([LANGUAGE]). I will paste the endpoint or function signatures. </context> <task> 1. For each endpoint/method, document the signature, parameters, and return shape. 2. Provide a request and response example for each. 3. List error codes/exceptions and when they occur. 4. Note authentication, rate limits, and idempotency where applicable. 5. Organize entries consistently and flag any signature you could not fully interpret. </task>
Pro tip: Give the actual type definitions or schema so response shapes are exact rather than approximated.
Write an architecture decision record
24/30✨ What it does
ChatGPT writes an architecture decision record for [FEATURE] in [CODEBASE] ([LANGUAGE]) covering context, the choice, alternatives, and consequences. You set the status and date, then file it with the other records.
<context> You are writing an Architecture Decision Record (ADR) for a choice we made about [FEATURE] in [CODEBASE] ([LANGUAGE]). I will describe the context, the options we considered, and what we picked. </context> <task> 1. Title the ADR and set status (proposed/accepted) and date. 2. Write the Context section: the problem and constraints driving the decision. 3. Write the Decision section in one clear statement. 4. Document the Alternatives considered with their tradeoffs. 5. Write Consequences: what gets easier, what gets harder, and follow-ups. </task>
Pro tip: Tell ChatGPT the real constraints (deadlines, team skills, existing stack) so the consequences section reflects your actual tradeoffs.
Explain legacy code
25/30✨ What it does
ChatGPT walks through the legacy [LANGUAGE] code for [FEATURE] in [CODEBASE] in plain language and writes a summary comment you can paste. You drop that comment at the top, then keep the walkthrough for onboarding.
<context> You are onboarding onto unfamiliar [LANGUAGE] code in [CODEBASE] that implements [FEATURE]. I will paste a chunk of legacy code with little documentation. </context> <task> 1. Give a high-level summary of what the code accomplishes. 2. Walk through the control flow and key data structures step by step. 3. Call out non-obvious behavior, hidden side effects, and likely intent of cryptic parts. 4. Flag risky or suspicious sections that may hide bugs. 5. Produce a concise comment block I can paste above the code to help the next reader. </task>
Pro tip: Paste the surrounding callers too — legacy code is often only understandable in the context of who calls it and with what.
Go from copy-pasting to actually mastering AI.
AI Academy: hands-on tutorials on ChatGPT, Claude, Midjourney, and many other tools. New tutorials are added regularly.
Architecture & Design
5 promptsDesign a system component
26/30✨ What it does
ChatGPT proposes two designs for a [FEATURE] component in [CODEBASE] ([LANGUAGE]), recommends one, and phases the rollout. You take the design that fits your constraints, then implement phase one.
<context> You are a principal engineer designing a new component for [FEATURE] that will live in [CODEBASE], implemented in [LANGUAGE]. I will describe the requirements and current architecture. </context> <task> 1. Restate functional and non-functional requirements (latency, scale, consistency). 2. Propose two viable designs with a short pros/cons list each. 3. Recommend one and justify it against the requirements. 4. Define the component's interface, data model, and key failure modes. 5. List risks, open questions, and a phased rollout plan. </task>
Pro tip: State your real non-functional requirements (QPS, latency target, consistency needs) — they are what separate a good design from a generic one.
Choose between technical approaches
27/30✨ What it does
ChatGPT compares the options for [FEATURE] in [CODEBASE] ([LANGUAGE]) across performance, complexity, cost, and familiarity, then recommends one with conditions. You choose based on those conditions, then tell the team why.
<context> You are advising on a technical choice for [FEATURE] in [CODEBASE] ([LANGUAGE]). I will list the options under consideration and our constraints. </context> <task> 1. Summarize each option in one sentence. 2. Build a comparison across the dimensions that matter (performance, complexity, cost, team familiarity, lock-in). 3. Identify the decisive factors given our constraints. 4. Make a clear recommendation and name the conditions under which you would change it. 5. List what to prototype to de-risk the choice cheaply. </task>
Pro tip: Be explicit about constraints like team size and deadline — without them ChatGPT defaults to the theoretically best option, not the right one for you.
Model a database schema
28/30✨ What it does
ChatGPT models a schema for [FEATURE] in [CODEBASE] ([LANGUAGE]) with tables, keys, indexes, DDL, and migration notes. You have someone review the access patterns, then apply the migration in staging.
<context> You are designing a database schema for [FEATURE] in [CODEBASE]. The app is written in [LANGUAGE]. I will describe the entities and access patterns. </context> <task> 1. List the entities, their attributes, and relationships. 2. Propose normalized tables with keys, types, and constraints. 3. Recommend indexes based on the stated query patterns. 4. Call out where denormalization or caching may be justified and the tradeoff. 5. Provide the DDL and note any migration concerns for existing data. </task>
Pro tip: Describe your top read queries — schema and index quality depend far more on access patterns than on the entities alone.
Plan a refactor or migration
29/30✨ What it does
ChatGPT plans a no-downtime refactor of [FEATURE] in [CODEBASE] ([LANGUAGE]) in small releasable steps with rollback. You execute one increment at a time, then stop if a step cannot roll back.
<context> You are planning a large refactor/migration of [FEATURE] in [CODEBASE] ([LANGUAGE]) that must ship without downtime. I will describe the current state and target state. </context> <task> 1. Define the end state and the smallest safe increments to reach it. 2. Sequence the steps so the system stays releasable after each one. 3. Identify backward-compatibility shims and feature flags needed. 4. Call out data migration, rollback, and verification steps per phase. 5. Flag the riskiest step and how to de-risk it. </task>
Pro tip: Emphasize the no-downtime constraint so ChatGPT produces an incremental strangler-style plan instead of a risky big-bang cutover.
Review a design for scalability
30/30✨ What it does
ChatGPT critiques the [FEATURE] design in [CODEBASE] ([LANGUAGE]) for scale and reliability, with ranked fixes and metrics. You fix the single points of failure first, then watch those metrics under load.
<context> You are reviewing an architecture for [FEATURE] in [CODEBASE] ([LANGUAGE]) for scalability and reliability. I will paste or describe the proposed design and expected load. </context> <task> 1. Identify the components most likely to become bottlenecks under the stated load. 2. Check for single points of failure and missing backpressure or rate limiting. 3. Evaluate data consistency, caching, and statefulness concerns. 4. Recommend concrete changes ranked by impact. 5. Suggest metrics and load tests to validate the design before launch. </task>
Pro tip: Give projected traffic and growth numbers — a design that is fine at 100 RPS and broken at 10k RPS only reveals itself with real targets.
Free tool
Prompt Optimizer
Turn a rough idea into a structured, professional AI prompt.
Frequently Asked Questions
Prompts are the starting line. Tutorials are the finish.
A growing library of hands-on tutorials on ChatGPT, Claude, Midjourney, and many other AI tools. New tutorials are added regularly.
7-day free trial. Cancel anytime.
Related guides