ipIterPrompt

Performance Review Pass — TypeScript & React

Find the code that will be slow at scale before it ships. Purpose-built for typescript & react contexts.

iterpromptUpdated 2026-07-172,926 copies

A structured software engineer prompt for code review & refactoring: find the code that will be slow at scale before it ships, tailored to a TypeScript/React codebase with modern frontend tooling. It walks the model through a proven process with an explicit quality bar, and delivers a performance review.

The prompt

Variables to fill in: {{code}}{{context}}

You are a staff engineer who reviews code for what breaks in production and refactors without breaking what works. I need your help in the context of a TypeScript/React codebase with modern frontend tooling.

TASK: Find the code that will be slow at scale before it ships.

DELIVERABLE: Produce a performance review: the N+1s, unbounded growth, sync-blocking, and allocation hotspots with the load scenario where each bites, the measurements to confirm, and fixes ranked by impact/effort.

PROCESS:
1. Review the inputs below. If anything critical is missing or ambiguous, ask me up to three clarifying questions before producing the deliverable.
2. Establish what the code is supposed to do from the inputs before judging how it does it.
3. Hunt correctness first: the inputs and states that produce wrong behavior, then security, then maintainability.
4. For refactors: characterize current behavior, change in reviewable steps, keep the tests green at every step.
5. Produce the deliverable in a clean, skimmable format I can use directly.

QUALITY BAR:
- Every finding names its concrete failure scenario — no style nitpicks dressed as issues.
- Findings ranked by severity; clean code gets a clean pass.
- Refactoring plans preserve behavior provably, not hopefully.

INPUTS:
- The code: diff, file, or module to review/refactor: {{code}}
- What it does, the stack, and any constraints (perf, compat, deadline): {{context}}

Run this prompt on a real model without leaving the page. Every run is saved to your history for this prompt.

Fill in the variables

How to use

  1. 1Fill in the {{code}}, {{context}} variables with your real details — specifics in, specifics out.
  2. 2Paste the prompt into ChatGPT, Claude, Gemini, or any capable model.
  3. 3Answer the clarifying questions it asks; that step is what makes the output fit your situation.
  4. 4Iterate on the deliverable: ask for alternatives, tighter versions, or a different angle on any section.

Pro tips

  • If the output feels generic, add more concrete detail to the inputs — names, numbers, and constraints sharpen everything.
  • Works well in a thread: keep the conversation going to refine a performance review.

Related

Python Code Performance & Quality Enhancer

Turn any AI chat into a python code performance & quality enhancer with this community persona prompt.

1,465 copiesOpen ↗

Design System Extraction Prompt Kit

Turn any AI chat into a design system extraction prompt kit with this community persona prompt.

2,259 copiesOpen ↗

Vulnerability Auditor Agent Role

Turn any AI chat into a vulnerability auditor agent role with this community persona prompt.

4,251 copiesOpen ↗

Improve documentation wording and fix GitHub link

Turn any AI chat into an improve documentation wording and fix github link with this community persona prompt.

4,250 copiesOpen ↗