Create a Deterministic Code Review System Prompt for Cursor
Generates a strict, rule-based system prompt for Cursor that rejects subjective nitpicks and only reports verified regressions and broken contracts.
Agent prompt for Claude and ChatGPT
Prompt
mkdir -p .agents/skills/create-a-deterministic-code-review-system-prompt-for-cursor && curl -sL "https://prompts-gpt.com/prompts/create-a-deterministic-code-review-system-prompt-for-cursor/raw" -o .agents/skills/create-a-deterministic-code-review-system-prompt-for-cursor/SKILL.mdAct as a principal software engineer configuring automated CI and editor agents. Your task is to write a deterministic, zero-fluff system prompt for Cursor to conduct strict automated code reviews.
Before drafting the prompt, ask me these 3 questions and wait for my response:
1. What is your primary language and runtime stack (e.g., TypeScript Node.js, Go, Python FastAPI)?
2. What automated tools already run on this codebase (e.g., Prettier, ESLint, Ruff, static type checking)?
3. What are the top 2-3 recurring logic bugs or architectural boundaries that matter most to your team?
Once I reply, generate the Cursor reviewer prompt under these rules:
- Ban all subjective comments on code formatting, variable naming, and micro-optimizations handled by standard linters.
- Require every reported issue to cite the exact file path, line numbers, and a direct proof of failure (e.g., unhandled null, race condition, broken interface).
- Mandate a pass/fail verdict with zero middle ground.
- Enforce a strict Markdown output structure: Verdict, Critical Bugs, and Architectural Violations.
- End with a short note detailing edge cases the review rule will deliberately ignore.Example output
Tips and common edits
Why this works
- Filters out linter noise by explicitly banning style critiques already caught by tools like ESLint.
- Forces a binary pass or fail verdict, avoiding non-actionable suggestions in pull requests.
- Demands failure proofs and exact line numbers before any issue can be flagged.
Use this prompt in ChatGPT or Claude to generate a dedicated system rule for Cursor (.cursorrules or System Instructions). Be ready with your linter setup and tech stack.
Common edits
- Add domain-specific boundary rules such as tenant isolation or specific ORM transaction limits.
- Change the verdict trigger to treat missing unit tests as an automatic failure.
Reuse it: Use in a workflowAdapt in the builder
Prompt details
- By
- Prompts-GPT editors
- Published
Did this prompt work?
More like this
Audit Cursor Rules Files for Conflicts and Context Bloat
Get a line-by-line audit of your .cursor/rules files that flags overlapping globs, contradictory instructions, and token waste, plus a consolidation diff.
Audit AI Code Diffs for Performance Regressions
This prompt scans code changes for silent performance killers like N+1 queries, unindexed filters, and memory leaks before you merge them.
Audit Git Diffs for Race Conditions and Shared Mutable State
Reviews code diffs for silent concurrency bugs, mapping concurrent execution timelines and providing exact thread-safe mitigation fixes.
Security Review of a Code Snippet: Ranked Findings With Exploit Path and Fix
Reviews pasted code for injection, broken authorization, secrets, SSRF and similar flaws, and returns only real findings ranked by severity, each with a one-line exploit path and fixed code.
Audit Front-End Code Against Web Interface Guidelines
A SKILL.md that reviews your React, Vue, Svelte or HTML components against 15 checkable interface rules and lists each problem as file:line with a suggested fix.
Split a large pull request into reviewable commits
Break down overwhelming pull requests into clean, sequential, logically isolated commits. Use it when code reviews stall due to sprawling diffs.
- Audit a Pull Request Diff for Breaking API Changes
- Compare Three Feature Architectures Against Module Boundaries
- Audit API Route Handlers for Auth and Permission Leaks
- Audit PR Git Diffs for Scope Creep and Churn
- Build an AGENTS.md Routing Map for Monorepo Codex Tests
- Review AI Pull Requests for Phantom Imports and Bloat