Skip to content
New this week26 prompts for Sora, Veo and Runway video workflows.
Explore video prompts→
AIPrompt123Prompt library

Search AIPrompt123

Search prompts, categories, platforms and repositories

Coding & builders17 prompts

Cursor prompts that produce usable first drafts

An AI-first code editor built on VS Code. Cursor prompts should reference files with @, state the acceptance test and constrain the diff size.

Multi-file feature workTest-driven changesRefactorsCodebase Q&A

What Cursor is good at

Cursor is an editor where the model can see your repository, edit multiple files and run commands. The best prompts are engineering briefs: name the files, describe the current behaviour, state the desired behaviour and define how to verify it. Use @file and @folder references, and ask for a plan before edits on anything larger than a single function. Constrain the diff: 'do not refactor unrelated code' and 'keep the public API unchanged'. Cursor's agent mode can run tests, so include the test command. Our Cursor prompts cover feature work, bug hunts, test generation, refactors and code review, with explicit verification steps.

Most-used Cursor prompts

See all →

Optimise an N+1 query

Optimise an N+1 query with a prompt built for Claude and Cursor. It supplies context, constraints and an output contract, then asks the model to surface assumptions and gaps. Copy it, fill the variables and treat the result as a structured draft, not a final answer.

ClaudeCursorChatGPT
4.9(76)1.7k copies
Coding & Developer
Intermediate

Debug an error with a minimal reproduction

This copy-ready coding prompt helps you debug an error with a minimal reproduction with fewer blank-page decisions. Paste it into Cursor and Claude, fill the variables, and you get a structured first draft you can edit. It is written for repeatable results and tells you what to check before publishing.

CursorClaudeChatGPT
4.9(67)1.1k copies

Write a seed script for a database

This copy-ready coding prompt helps you write a seed script for a database with fewer blank-page decisions. Paste it into ChatGPT and Cursor, fill the variables, and you get a structured first draft you can edit. It is written for repeatable results and tells you what to check before publishing.

ChatGPTCursor
4.8(48)1.1k copies

Fix a flaky test

This copy-ready coding prompt helps you fix a flaky test with fewer blank-page decisions. Paste it into Cursor and Claude, fill the variables, and you get a structured first draft you can edit. It is written for repeatable results and tells you what to check before publishing.

CursorClaude
4.8(54)1.0k copies

Write Python to explore a CSV

A data analysis prompt for write Python to explore a CSV. It gives ChatGPT and DeepSeek a clear role, explicit constraints and a defined output, so the first answer is closer to usable. Fill in the variables, run it once, then use the verification notes on this page to review the result.

ChatGPTDeepSeekCursor
4.9(46)972 copies
Coding & Developer
Intermediate

Create a TypeScript type from messy JSON

A coding prompt for create a TypeScript type from messy JSON. It gives ChatGPT and Cursor a clear role, explicit constraints and a defined output, so the first answer is closer to usable. Fill in the variables, run it once, then use the verification notes on this page to review the result.

ChatGPTCursorClaude
4.7(68)862 copies

Add authentication to an existing app

Add authentication to an existing app with a prompt built for Cursor and Claude. It supplies context, constraints and an output contract, then asks the model to surface assumptions and gaps. Copy it, fill the variables and treat the result as a structured draft, not a final answer.

CursorClaudeLovable
4.9(58)700 copies
Coding & Developer
Intermediate

Generate unit tests that fail before the fix

Generate unit tests that fail before the fix with a prompt built for Cursor and Claude. It supplies context, constraints and an output contract, then asks the model to surface assumptions and gaps. Copy it, fill the variables and treat the result as a structured draft, not a final answer.

CursorClaudeGitHub Copilot
4.7(77)695 copies

Explain an unfamiliar codebase

A coding prompt for explain an unfamiliar codebase. It gives Claude and Cursor a clear role, explicit constraints and a defined output, so the first answer is closer to usable. Fill in the variables, run it once, then use the verification notes on this page to review the result.

ClaudeCursor
4.8(57)655 copies

Write a system prompt for a coding assistant

A system prompts prompt for write a system prompt for a coding assistant. It gives Claude and ChatGPT a clear role, explicit constraints and a defined output, so the first answer is closer to usable. Fill in the variables, run it once, then use the verification notes on this page to review the result.

ClaudeChatGPTCursor
4.8(33)615 copies
Coding & Developer
Intermediate

Refactor for readability without changing behaviour

This copy-ready coding prompt helps you refactor for readability without changing behaviour with fewer blank-page decisions. Paste it into Cursor and Claude, fill the variables, and you get a structured first draft you can edit. It is written for repeatable results and tells you what to check before publishing.

CursorClaudeChatGPT
4.7(26)572 copies

Review a pull request by severity

A coding prompt for review a pull request by severity. It gives Claude and Cursor a clear role, explicit constraints and a defined output, so the first answer is closer to usable. Fill in the variables, run it once, then use the verification notes on this page to review the result.

ClaudeCursorGitHub Copilot
4.7(20)534 copies
Coding & Developer
Intermediate

Convert a design into accessible components

A coding prompt for convert a design into accessible components. It gives v0 and Cursor a clear role, explicit constraints and a defined output, so the first answer is closer to usable. Fill in the variables, run it once, then use the verification notes on this page to review the result.

v0CursorChatGPT
4.7(65)510 copies

Hunt a performance bottleneck

A coding prompt for hunt a performance bottleneck. It gives Cursor and Claude a clear role, explicit constraints and a defined output, so the first answer is closer to usable. Fill in the variables, run it once, then use the verification notes on this page to review the result.

CursorClaudeChatGPT
4.9(52)174 copies
Coding & Developer
Intermediate

Convert a class component to hooks

A coding prompt for convert a class component to hooks. It gives Cursor and ChatGPT a clear role, explicit constraints and a defined output, so the first answer is closer to usable. Fill in the variables, run it once, then use the verification notes on this page to review the result.

CursorChatGPT
4.7(35)157 copies

How to write better Cursor prompts

These are the platform-specific habits our editors apply before publishing a template for Cursor.

  • 1

    Reference exact files with @ and paste the failing test output.

  • 2

    Ask for a short plan before allowing edits on multi-file changes.

  • 3

    State what must not change to prevent unrelated refactors.

  • 4

    Require running the test suite and reporting the result.

Verified Knowledge · FAQ

Cursor prompt FAQ

What this hub covers and how to get reliable output from Cursor.