Code Review Prompt — the Review Contract
"Review this code" gets shallow comments. The review contract gets findings with severities, a checklist, and a verdict.
Architecture review for the public surface: abstractions that earn their place, dependency direction, seams, and the patterns the codebase already has.
An API surface is a promise — every exposed type and method is something callers will depend on and you will maintain. This setup reviews a client SDK's public surface under the architecture focus: layer violations, responsibilities in the right modules, abstractions earned by real variation rather than speculation, dependency direction from volatile toward stable, interface seams for testing, and consistency with the codebase's established patterns — with the TypeScript pack watching for any-leaks and assertion-hidden errors at the boundary.
Review the surface, not the internals
Paste the public types and signatures — the architecture focus judges what callers see and depend on.
Challenge every abstraction
"Earned by real variation, or speculative generality?" — the question that shrinks APIs before they ship.
Hold new code to the old patterns
Consistency findings matter most at the surface: callers learn the API's patterns once and expect them everywhere.
It reviews the public API surface for architectural soundness and returns findings only — layer violations, unearned abstractions, wrong dependency direction, missing interface seams, pattern breaks, and TypeScript any-leaks or unsafe assertions. Each finding is tagged [CRITICAL], [MAJOR], [MINOR], or [NIT] with the exact line or symbol, grouped critical-first, and it ends in a verdict: APPROVED, APPROVED WITH COMMENTS, or CHANGES REQUIRED.
Paste the TypeScript file's public surface — the exported types and signatures callers depend on — and run the prompt in your own AI tool. It works through the fourteen checklist items but reports only the ones that fail, judging where the code sits in the system rather than rewriting it. Because it reviews only, you decide which findings to act on before you freeze the surface.
No — its focus is architecture: position, responsibility, earned abstractions, and pattern consistency on the public surface. It doesn't run your code, load-test endpoints, or do a dedicated security audit; performance is a separate review you run by switching the focus. Treat the findings and the APPROVED / CHANGES REQUIRED verdict as a structured architecture read, not a guarantee the API is secure or fast.
"Review this code" gets shallow comments. The review contract gets findings with severities, a checklist, and a verdict.
Twelve security checks — injection, auth, secrets, SSRF, privilege escalation — reviewed the way an attacker would read the code.
Hunt the broken-access-control bug — review code for missing per-resource checks, IDOR, and 'logged in' mistaken for 'allowed', the vulnerability class that tops the OWASP list.
"Refactor this code" invites silent behavior changes. The refactoring contract preserves business rules, outputs, and side effects — and flags uncertainty instead of deciding it.
getByRole over CSS chains, auto-wait over sleep, web-first assertions — Playwright tests written the way Playwright wants.
A side-by-side way to decide between two ChatGPT prompt drafts — scored on clarity, specificity, output control, and risk instead of gut feeling.
Generate code review prompts for any scope — snippet, file, diff, or full pull request — with focused review rules.
The full path from idea to a shipped SaaS MVP — define and scope the requirements, design the architecture, API, and data model, then build it reviewed, tested, secured, cost-controlled, and deployed.
The full path to a backend you can put clients on — define the requirements, design the architecture, API contract, data model, and access control, then build it reviewed, tested, secured, and shipped.
The full path to automation that survives the real world — wire the integrations and triggers, design the control API, move the data through validated stages, evaluate the AI steps, then deploy.
The full path to a two-sided platform — define the buyer-and-seller requirements, model the data, design the API, build roles and permissions, wire integrations, design the UI, then test, secure, and ship it.
The full path to a CRM that fits your sales process — define the contacts, deals, and pipeline, model the data that ties them together, then build the roles, integrations, and pipeline UI, and ship.
The full path to a store you own end to end — model the catalog and orders, design the storefront and checkout, add customer accounts and payments, then secure it, test it, and ship.
The full path to a pipeline that moves data without corrupting it — design the ingestion and transforms, extract and structure the sources, gate the quality, store it, then deliver and ship it monitored.
Design an API on its contract instead of discovering it endpoint by endpoint — model the resources, design the endpoints and payloads, pin the contract, then review it before code locks it in.