Top 10 Cursor prompts at a glance
15 Best Cursor Prompts for Coding: the top prompts and what you get from each
PromptWhat you get
Audit Cursor Rules Files for Conflicts and Context BloatGet a line-by-line audit of your .cursor/rules files that flags overlapping globs, contradictory instructions, and token waste, plus a consolidation diff.
Cursor Review Rule That Flags Only Real Bugs, No NitpicksGet a Cursor project rule (.cursor/rules) that reviews attached code for proven bugs and broken boundaries only, with file, line and failing input per finding and a PASS or FAIL verdict.
Cursor Project Rules Generator for Your Repo's StackHas Cursor inspect your repository and write 3-5 scoped .mdc rules, each with globs, a description and a deliberately chosen attach mode.
Compare Three Feature Architectures Against Module BoundariesGet a scored trade-off matrix comparing three feature architectures by file touchpoints, coupling risks, and rollback cost before running Cursor Composer.
Cursor Characterization-Test-First Refactor of a Legacy ModuleHas Cursor lock in current behavior with characterization tests before restructuring a legacy module in small steps, so you can decide whether the refactor preserved behavior and is safe to merge.
Cursor Incremental Dependency Migration Plan and Codemod ExecutionPlans and executes a library or framework version migration in Cursor in small, verifiable batches, with an impact inventory, rollback points, and per-batch test gates instead of one risky bulk edit.
Cursor Agent Bug Triage: Reproduce, Root-Cause, Fix, and Regression TestGuides Cursor Agent through reproducing a bug, isolating the root cause with evidence, applying a minimal diff, and adding a regression test, ending with a verification checklist and risks.
Plan Before Edit: Cursor Plan-Mode Prompt for a Feature RequestProduces a read-only Cursor plan listing files in scope, ordered steps, specific risks and tests to run before any code is changed.
Cursor .mdc Rules to Portable AGENTS.md ConverterConverts your pasted Cursor .mdc rules into a single AGENTS.md that Codex, Copilot and Gemini CLI can read, plus a table of what does not carry over.
Audit a TypeScript API Route for Race Conditions, Auth, and N+1 BugsGet a severity-ranked security and performance audit of your TypeScript API route with exact line numbers, concrete exploit or failure scenarios, and minimal targeted fix diffs.
  1. 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.

    Preview prompt
    You are a staff developer-experience engineer who maintains Cursor rule sets for large production repositories. I will paste the filenames and contents of my .cursor/rules files right after this prompt.
    
    Audit the rule set for conflicting directives, overlapping glob patterns, and context bloat, then produce a prioritized consolidation plan.
    
    Rules:
    1. Check every YAML frontmatter block for overlapping globs, unnecessary alwaysApply flags, and missing descriptions that break auto-attachment.
    2. Flag every contradictory instruction across files, citing exact filenames and quoting the conflicting lines.
    3. Identify token bloat where rules repeat language defaults, duplicate linter configs, or exceed 120 lines without domain splitting.
    4. Provide a consolidation diff for the highest-impact files, keeping each resulting rule focused on one domain and under 80 lines.
    5. Never invent project conventions not present in the pasted files.
    
    Output format:
    - Executive Summary (3 bullets: files audited, critical conflicts, estimated token reduction)
    - Conflict & Overlap Matrix (table: Issue Type, Files Involved, Conflict or Overlap, Fix)
    - Context Bloat Audit (bulleted list of redundant or overly broad rules to cut)
    - Prioritized Consolidation Diff (Markdown diff block for the top 2 files)
    - Verification Checklist (3 steps to test the updated rules in Cursor Composer)
    
    End with one line noting any assumptions or missing files, such as ESLint configs or legacy .cursorrules files, needed to complete the audit.
  2. Cursor Review Rule That Flags Only Real Bugs, No Nitpicks

    Get a Cursor project rule (.cursor/rules) that reviews attached code for proven bugs and broken boundaries only, with file, line and failing input per finding and a PASS or FAIL verdict.

    Preview prompt
    You are a principal engineer who writes Cursor project rules. Write a code review rule for .cursor/rules/code-review.mdc that makes Cursor's agent review the diff or files I attach with @-context and report only real defects.
    
    Before drafting, ask me up to three short questions: the language and framework, which linters, formatters and type checkers already run in CI, and the two or three bug types or architecture boundaries my team cares about most.
    
    Rules for the rule file:
    1. Ban comments on formatting, naming, import order and anything the listed tools already catch.
    2. Every finding cites file path and line, the input or sequence that triggers the failure, and the smallest fix. No proof, no finding.
    3. The reviewer opens the code it cites and never names functions, config or APIs it has not seen.
    4. Verdict is PASS or FAIL: any critical finding means FAIL; zero findings means PASS and nothing else.
    5. Use the .mdc header with a description, empty globs and alwaysApply set to false, so the rule loads when I @-mention it or ask for a review.
    
    Output format:
    1. The complete .mdc file in one code block
    2. How to invoke it in Cursor chat, in one line
    3. What the rule deliberately ignores, as a short list
    
    End with one line of assumptions and missing information.
  3. Cursor Project Rules Generator for Your Repo's Stack

    Has Cursor inspect your repository and write 3-5 scoped .mdc rules, each with globs, a description and a deliberately chosen attach mode.

    Preview prompt
    Act as a senior engineer setting up Cursor project rules for this repository. Inspect the codebase first: read dependency manifests, config files, folder layout, test setup and a sample of source files to identify the stack and the conventions actually in use. If the stack or main workflow is unclear, ask me one or two short questions before writing anything.
    
    Then draft 3 to 5 scoped rules for .cursor/rules/.
    - Each rule covers one concern, such as UI components, API layer, tests or database migrations, and stays under 50 lines.
    - Base every instruction on patterns you saw in this repo, and cite one example file path per rule.
    - Choose the attach mode deliberately: Always (alwaysApply true) only for repo-wide essentials, Auto Attached with globs for file-type rules, Agent Requested with a precise description for task-based rules, Manual for rare cases.
    - Replace generic advice like "write clean code" with concrete dos and don'ts.
    
    Output for each rule: the file name, then the full .mdc file in a code block with frontmatter (description, globs, alwaysApply) and body. Finish with a table: rule, attach mode, why that mode, evidence file. Then list anything you could not verify. Do not create files until I approve.
  4. Compare Three Feature Architectures Against Module Boundaries

    Get a scored trade-off matrix comparing three feature architectures by file touchpoints, coupling risks, and rollback cost before running Cursor Composer.

    Preview prompt
    Act as a principal software architect reviewing a codebase before a multi-file implementation in Cursor Composer.
    
    I will paste my feature goal, relevant directory tree, and any existing module boundary rules right after this prompt. If the module boundaries or test coverage are unclear, ask up to three numbered questions first and wait for my answers.
    
    Otherwise, compare three distinct architecture options for building this feature against my existing boundaries. Follow these rules:
    - Option A must minimize file touchpoints, Option B must prioritize strict module isolation, and Option C must optimize for future extensibility.
    - Score each option from 1 to 5 on file touchpoints, coupling risk, testability, and rollback cost, where 5 is best.
    - Name exact file paths or directories from my tree for every touchpoint and boundary crossing.
    - Flag any circular dependency, shared mutable state, or schema lock-in risk before writing code.
    - Recommend one option and list the exact pre-flight checks to run before opening Cursor Composer.
    
    Output format:
    1. Summary Table: Markdown table with columns Option, File Touchpoints, Coupling Risk, Testability, Rollback Cost, and Total Score.
    2. Option Breakdowns: Three short sections covering exact files touched, boundary impact, and rollback steps.
    3. Recommended Plan: Chosen option, rationale in three bullets, and a numbered Cursor Composer execution order.
    
    End with one line stating your key assumptions and any missing codebase context that could change the recommendation.
  5. Cursor Characterization-Test-First Refactor of a Legacy Module

    Has Cursor lock in current behavior with characterization tests before restructuring a legacy module in small steps, so you can decide whether the refactor preserved behavior and is safe to merge.

    Preview prompt
    Role: You are a refactoring specialist working in Cursor Agent mode on the module {module_path} in {repo_name}.
    
    Context: The module is hard to change safely. The decision to support is whether the refactor preserved behavior and is ready to merge. Use @Files for {module_path} and its tests, @Codebase to find all consumers, and the terminal for real test output. Do not claim behavior is preserved without passing tests.
    
    Task: Add characterization tests that capture current behavior, then refactor toward {refactor_goal} in small, verified steps.
    
    Inputs:
    - Module path: {module_path}
    - Refactor goal (for example split responsibilities, remove duplication, add types): {refactor_goal}
    - Public API that must not change: {public_api}
    - Test command: {test_command}
    - Lint or type-check command: {lint_command}
    - Constraints (no new dependencies, style rules, max diff size): {constraints}
    If an input is missing, list it under Missing information and state assumptions separately.
    
    Workflow:
    1. Read the module and list its responsibilities, side effects, and external dependencies.
    2. Use @Codebase to list consumers and the existing tests that cover the module.
    3. Identify coverage gaps. Write characterization tests that assert current behavior, including known quirks, and mark suspected bugs with a comment instead of fixing them.
    4. Run {test_command}. All new tests must pass against the unchanged code.
    5. Plan 3-6 refactor steps, each independently committable and no larger than one concern.
    6. Execute one step at a time. After each step run {test_command} and {lint_command}, and stop if anything fails.
    7. Review the final diff against {public_api} to confirm no signature or behavior changes.
    
    Constraints:
    - Do not change behavior and structure in the same step.
    - Do not edit consumers unless a step requires it, and list any such edits.
    - Follow existing style and rules in .cursor/rules.
    - Ask before deleting files or exports.
    
    Output format:
    1. Assumptions and Missing information
    2. Module analysis table: Responsibility | Side effects | Dependencies
    3. Test gap table: Behavior | Covered before | Test added
    4. Refactor steps table: Step | Change | Verification result
    5. Final diff summary: File | Change | Reason
    6. Suspected bugs found but not fixed
    7. Risks and next actions
    
    Acceptance criteria:
    - Characterization tests pass before and after the refactor without being weakened.
    - Public API in {public_api} is unchanged.
    - Each step passes tests and lint independently.
    - Suspected bugs are listed, not silently fixed.
    
    Quality checks:
    - Do tests cover error paths, boundary values, and side effects?
    - Is each step small enough to review in a few minutes?
    - Are all consumers confirmed unaffected via search or tests?
    - Is anything unverified clearly labeled?
  6. Cursor Incremental Dependency Migration Plan and Codemod Execution

    Plans and executes a library or framework version migration in Cursor in small, verifiable batches, with an impact inventory, rollback points, and per-batch test gates instead of one risky bulk edit.

    Preview prompt
    Role: You are a migration engineer using Cursor Agent mode to upgrade {package_name} from {from_version} to {to_version} in {repo_name}.
    
    Context: The decision to support is whether to migrate now, in phases, or defer. Use @Codebase to inventory usages, @Files for the changelog or migration guide I attach as {migration_doc}, and the terminal for the real build and test output. Do not invent breaking changes; cite only what the attached docs or the code show, and flag anything unverified.
    
    Task: Produce an impact inventory and a phased migration plan, then execute phase 1 only after I confirm.
    
    Inputs:
    - Package and versions: {package_name}, {from_version} to {to_version}
    - Migration guide or changelog: {migration_doc}
    - Build command: {build_command}
    - Test command: {test_command}
    - Scope or directories: {scope_paths}
    - Constraints (deadline, no API changes, supported runtimes): {constraints}
    If an input is missing, list it under Missing information and state assumptions separately.
    
    Workflow:
    1. Inventory: use @Codebase to find all imports, call sites, config entries, and type usages of {package_name}. Group by pattern.
    2. Map each pattern to a documented breaking change or mark it Unverified.
    3. Rate each group by risk (Low, Medium, High) and effort (S, M, L).
    4. Propose phases of at most ~15 files each, ordered from lowest to highest risk, with a test gate per phase.
    5. Wait for my confirmation, then execute phase 1 as small diffs. Prefer a scripted codemod only when the pattern is uniform; show the script before running it.
    6. Run {build_command} and {test_command}. Report real results and fix only failures caused by this phase.
    7. Summarize the remaining phases and rollback steps.
    
    Constraints:
    - Do not bump the version in the manifest until phase 1 changes are ready and I approve.
    - No unrelated refactors or formatting-only churn.
    - Ask before running installs, lockfile updates, or commands that touch the network.
    - Keep each phase independently revertible.
    
    Output format:
    1. Assumptions and Missing information
    2. Impact inventory table: Pattern | Files | Documented change | Risk | Effort
    3. Phase plan table: Phase | Scope | Test gate | Rollback step
    4. Phase 1 diff summary: File | Change
    5. Verification results
    6. Risks and open questions
    7. Next actions
    
    Acceptance criteria:
    - Every usage of {package_name} in scope appears in the inventory.
    - Each phase has a test gate and a rollback step.
    - Phase 1 builds and passes tests, or the failures are reported with causes.
    - Unverified claims are labeled as such.
    
    Quality checks:
    - Did you search imports, dynamic requires, config files, and type declarations?
    - Are peer dependency and runtime version impacts noted?
    - Are deprecated but still working APIs separated from removed ones?
    - Is the diff free of unrelated changes?
  7. Cursor Agent Bug Triage: Reproduce, Root-Cause, Fix, and Regression Test

    Guides Cursor Agent through reproducing a bug, isolating the root cause with evidence, applying a minimal diff, and adding a regression test, ending with a verification checklist and risks.

    Preview prompt
    Role: You are a senior debugging engineer working in Cursor Agent mode inside the {repo_name} repository.
    
    Context: A bug needs a root-cause fix rather than a symptom patch. The decision to support is whether the fix is safe to merge. Use @Files for the entry points I list, @Codebase to find callers and related tests, and @Terminal output for logs. Do not claim a command ran unless its output appears in the terminal.
    
    Task: Reproduce the bug, find the root cause, apply the smallest correct fix, and add a regression test.
    
    Inputs:
    - Bug description: {bug_description}
    - Expected behavior: {expected_behavior}
    - Actual behavior: {actual_behavior}
    - Repro steps or failing input: {repro_steps}
    - Entry files or symbols: {entry_files}
    - Error log or stack trace: {error_log}
    - Test command: {test_command}
    - Constraints (API stability, style, no new dependencies): {constraints}
    If any input is missing, list it under Missing information, state your assumption separately, and continue only if the assumption is low risk.
    
    Workflow:
    1. Restate the bug in one sentence and list assumptions separately.
    2. Use @Codebase to trace the code path from the entry files to the failure point. List the files and functions inspected.
    3. Write or locate a failing test that reproduces the bug. Run {test_command} and show that it fails for the expected reason.
    4. Propose 2-3 root-cause hypotheses, each with the evidence for and against it. Pick one and explain why.
    5. Apply the minimal fix as a small, reviewable diff. Do not refactor unrelated code or rename public APIs.
    6. Re-run the failing test, then the nearby test suite. Report pass or fail from real output.
    7. Check adjacent callers for the same defect pattern and list them without changing them unless they are clearly broken.
    
    Constraints:
    - Edit only files needed for the fix and its test.
    - Ask before installing dependencies, changing config, or running destructive commands.
    - Follow existing code style and any rules in .cursor/rules.
    - Stop and ask if the fix requires a breaking change.
    
    Output format:
    1. Summary (2-3 sentences)
    2. Assumptions and Missing information
    3. Root cause table: Hypothesis | Evidence | Verdict
    4. Files changed table: File | Change | Reason
    5. Regression test description and the command to run it
    6. Verification results (actual command output summarized)
    7. Risks and side effects
    8. Next actions (max 5 bullets)
    
    Acceptance criteria:
    - The regression test fails before the fix and passes after it.
    - The diff is minimal and touches no unrelated files.
    - The root cause is explained with evidence from the code, not guesswork.
    - Existing tests in the touched area still pass, or failures are reported honestly.
    
    Quality checks:
    - Is every claim tied to a file, line, or terminal output?
    - Were assumptions kept separate from verified facts?
    - Does the fix handle edge cases such as null, empty, and concurrent input where relevant?
    - Are remaining risks and untested paths named explicitly?
  8. Plan Before Edit: Cursor Plan-Mode Prompt for a Feature Request

    Produces a read-only Cursor plan listing files in scope, ordered steps, specific risks and tests to run before any code is changed.

    Preview prompt
    Act as a senior engineer in Cursor plan mode. Do not edit, create or delete any files. Use read-only exploration only.
    
    Feature request: {describe your feature request}
    
    Search the codebase to find where this feature belongs, which existing patterns to follow, and how tests are set up. If behavior or scope is ambiguous, ask me one or two short questions before planning.
    
    Rules:
    - List only files you have confirmed exist, and label each as modify, create or read-only reference with a one-line reason.
    - Order the steps so each is small, independently verifiable, and names the files it touches.
    - Make risks specific to this code (shared utilities, migrations, public APIs, flaky tests) and give each a mitigation.
    - Use the repo's real test commands, name any new tests to write, and say which to run before and after each step.
    
    Output exactly:
    1. Goal and assumptions
    2. Files in scope (table: path, action, reason)
    3. Ordered steps (numbered checklist)
    4. Risks and mitigations
    5. Tests to run (baseline first)
    6. Open questions
    
    End by asking me to approve the plan before any code changes.
  9. Cursor .mdc Rules to Portable AGENTS.md Converter

    Converts your pasted Cursor .mdc rules into a single AGENTS.md that Codex, Copilot and Gemini CLI can read, plus a table of what does not carry over.

    Preview prompt
    You are a developer-tooling engineer who knows Cursor project rules and the AGENTS.md convention read by Codex, GitHub Copilot and Gemini CLI. Convert the Cursor .mdc rules below into one portable AGENTS.md.
    
    Rules:
    - Keep only instructions any coding agent can follow. Rewrite them as short imperative bullets under plain headings such as Setup, Code style, Testing and Conventions.
    - Turn glob-scoped rules into explicit path sections like "In src/api/**: ...", because other tools ignore frontmatter fields such as globs and alwaysApply.
    - Merge duplicates, and flag every contradiction instead of silently picking one side.
    - Never invent commands or conventions that are not in the rules. If a build or test command is missing, ask me at most two short questions first.
    
    Output exactly:
    1. The complete AGENTS.md in one markdown code block.
    2. A table titled "Does not carry over" with columns: Original rule or feature, Why it is lost, Suggested workaround (for example keep a slim .mdc for Cursor-only auto-attach, or use @file references).
    3. A short list of conflicts, gaps and assumptions.
    
    Rules to convert:
    {paste your .mdc rules here}
  10. Audit a TypeScript API Route for Race Conditions, Auth, and N+1 Bugs

    Get a severity-ranked security and performance audit of your TypeScript API route with exact line numbers, concrete exploit or failure scenarios, and minimal targeted fix diffs.

    Preview prompt
    Act as a staff backend security and performance engineer reviewing a production TypeScript API route.
    
    Audit the code I paste right after this prompt for three failure classes: race conditions (check-then-act bugs, missing transactions, lost updates), authorization bypasses (IDOR, missing tenant scoping, role escalation), and N+1 database queries.
    
    Follow these rules:
    - Cite the exact line number or symbol name for every finding and skip generic style or formatting feedback.
    - Write one concrete exploit or concurrent failure scenario for each finding, showing the exact request sequence or query count.
    - Keep every fix diff minimal and targeted to the root cause without refactoring unrelated code.
    - Rank findings from Critical to Low and omit any category that has no real issue in the pasted code.
    - Include one concrete verification check (a test case or query-count assertion) for every Critical or High finding.
    
    Output format:
    1. Findings Summary Table with columns: Severity, Category, Line or Symbol, and Issue.
    2. Detailed Findings: numbered sections matching the table, each with Root Cause, Failure or Exploit Scenario, Minimal Fix Diff, and Verification Check.
    3. Assumptions and Missing Context: list any unseen middleware, database constraints, or isolation levels that could change the severity.
  11. Reconcile OpenAPI Schema Drift with Backend Logic

    Get a three-column alignment matrix that identifies discrepancies between your OpenAPI spec, TypeScript client types, and actual backend request validation logic.

    Preview prompt
    Act as a Senior API Engineer. Your task is to reconcile drift between an OpenAPI specification, generated client types, and backend validation logic. First, ask these 3 questions: 1. Paste the relevant section of your OpenAPI YAML file. 2. Paste the corresponding TypeScript interface or DTO. 3. Paste the backend validation logic or controller code. Wait for my response. Once I provide the code, generate a reconciliation matrix. Rules: 1. Every row in the matrix must represent a single field. 2. Columns must be: Field Name, Schema Definition, and Implementation Status. 3. Highlight specific type mismatches, missing required fields, or unhandled status codes in a summary list below the table. 4. Do not make assumptions about data; if a field is not present in the provided code, mark it as Not Found. Output format: ## Reconciliation Matrix | Field Name | Schema Definition | Implementation Status | ## Discrepancies and Risks - List specific technical gaps found. This analysis is for architectural guidance only and does not replace thorough integration testing.
  12. Deconstruct Monolithic Pull Requests into Atomic Commit Stacks

    This prompt transforms a large, unorganized file change into a sequence of dependency-ordered, atomic Git commits with verification steps for each stage.

    Preview prompt
    Act as a Senior Software Engineer specializing in Git workflow optimization. I will paste a list of file modifications or a diff. Your job is to organize these changes into a series of logical, atomic commits that can be applied in a stack. 1. Group changes by dependency, ensuring each commit is independently testable. 2. Write a clear, concise Git commit message for each step using the format: type(scope): description. 3. Provide one specific terminal command to verify the changes of that specific commit. 4. Ensure the final commit sequence leaves the codebase in a stable, passing state. Output format: For each commit in the stack: Commit Order Number, Commit Message, Files Included, Verification Command, and Rationale. Do not include personal advice. This is not professional engineering advice; consult your team lead for architectural decisions.
  13. Generate Scoped Cursor Rules for Project Architecture

    Create targeted .cursorrules files that enforce strict architectural boundaries between frontend, API, and database layers to prevent code leaks.

    Preview prompt
    Act as a Senior Software Architect. I need a set of strict rules for my project directory structure to enforce clean architecture. Please ask me these 3 questions first: 1. What are the main top-level directories in your project? 2. Are there specific directories that should never import from each other? 3. Do you have specific naming conventions for files in the API or database layers? Once I answer, provide a structured markdown response containing the .cursorrules content for each directory. Rules must follow these constraints: 1. Use glob patterns for all file path matching. 2. Explicitly forbid cross-tier imports for restricted directories. 3. Include a section for file naming patterns. 4. State the rules in clear, imperative sentences. Output format: For each folder, provide a code block titled with the directory name containing the rules. End with a summary of how these rules prevent common dependency cycles.
  14. Sync Test Factories and Fixtures with Database Migrations

    This prompt updates your test factories, JSON fixtures, and contract tests to match new database schema changes, ensuring your test suite remains consistent with production code.

    Preview prompt
    Act as a Senior Backend Engineer. Your task is to update the test suite to reflect recent database schema changes. Please ask the following 3 questions first and wait for my response: 1. Paste the SQL migration file content. 2. List the file paths of the factories, JSON fixtures, and contract test files that need updating. 3. Describe the specific changes in the migration, such as added columns, renamed fields, or dropped constraints. Once I provide these, perform the following: 1. Update the factory definitions to include the new fields with appropriate default values. 2. Add or update the mock JSON fixtures to match the new schema structure. 3. Update the contract tests to validate the new fields or handle removed ones. 4. Write only the modified code blocks with the file path header above each block. Output format: For each file, provide a header with the file path followed by a code block containing the updated logic. Ensure all changes maintain existing data types and relationships. This is not professional software engineering advice; verify all changes in a staging environment before deployment.
  15. Cursor .cursorignore Audit to Keep Agent Context Lean

    Cursor audits your project tree and writes a .cursorignore for secrets and noise plus a .cursorindexingignore for large files it may still read on request, with a reason for every pattern.

    Preview prompt
    You are a developer-tooling engineer working in Cursor on this repository. Audit what Cursor indexes and reads, then write ignore files that keep the agent's context on source code.
    
    Rules:
    1. Read-only first pass: list top-level folders with file counts and sizes (git ls-files and du), and read .gitignore and any existing .cursorignore or .cursorindexingignore before proposing anything.
    2. Put secrets and files the agent must never read (.env files, keys, credentials, customer data dumps) in .cursorignore. Put large files it may still need on request (fixtures, generated clients, vendored code) in .cursorindexingignore, which only keeps them out of the index so I can still @-mention them.
    3. Never ignore source, tests, schemas or config the build needs, and do not repeat patterns .gitignore already covers unless they hold secrets.
    4. Give a reason for every pattern. Say plainly that .cursorignore is best effort, not a security boundary, so real secrets should not live in the repo.
    5. Do not delete or move files; if an existing ignore file needs changes, show a diff and ask first.
    
    Output format:
    1. Findings table: Path | Files | Size | Problem | Goes in
    2. .cursorignore in a code block, with a comment line per group
    3. .cursorindexingignore in a code block
    4. Kept on purpose, with reasons
    
    End with one line of assumptions and missing information.

About this list

Each prompt tells the agent which files it may touch, what must not change, how to check its own work and what to report back, so you review a focused diff instead of a surprise. Some are read-only by design, such as the plan mode prompt and the call graph trace, so you decide on the approach before any code is written.

Rules prompts generate scoped rules for your stack, audit existing rules files for conflicts and bloat, and convert them into a portable AGENTS file that other coding agents can read. Run your tests after each change the agent makes, and keep commits small so a bad step is easy to undo.

What are Cursor project rules?

They are instruction files stored in your repository, in a rules folder, that Cursor adds to the agent's context automatically or when matching files are involved. They hold conventions, architecture notes and commands. Keep each rule short and scoped to the files it applies to, since long, overlapping rules waste context and can contradict each other.

Should I use plan mode before letting the agent edit?

For anything beyond a small fix, yes. Asking the agent to read the relevant code and propose a plan first, with the files to change, the risks and the tests, catches wrong assumptions before they turn into a large diff. The plan mode prompt here forbids edits while it explores and ends by asking you to approve the plan.

Do these prompts work in other coding agents?

Mostly. The instructions about scope, tests and reporting work in Claude Code, Codex or GitHub Copilot agent mode too. Prompts that rely on Cursor features, such as project rules or plan mode, need small changes elsewhere, and the converter prompt turns Cursor rules into an AGENTS file that other agents read.

More lists and categories

All categories