💡 How to use these prompts:
Replace everything in [BRACKETS] with your specific details before sending.
Click Copy to copy any prompt to your clipboard instantly.
[USE IN CURSOR CHAT SIDEBAR] Help me understand this codebase. Please: 1. Describe the overall architecture and folder structure 2. Explain the main data flow from [ENTRY POINT] to [OUTPUT] 3. Identify the most important files and what each does 4. Flag any patterns or conventions used throughout 5. Note anything that looks like technical debt or unusual choices
[USE IN CURSOR BACKGROUND AGENT] Implement the following feature: Feature: [DESCRIBE IN DETAIL] Files to modify: [LIST OR SAY "you decide"] Files to NOT touch: [LIST] Tests required: [YES / NO] Definition of done: [HOW WILL WE KNOW IT IS COMPLETE] Work through this step by step. Commit each logical change separately.
[USE IN CURSOR CHAT WITH RELEVANT FILES OPEN] I have a bug: [DESCRIBE THE BUG] I think it might be related to: - [FILE 1] - [FILE 2] - [FILE 3] Please: 1. Trace the bug through the relevant code 2. Identify the exact root cause 3. Show the fix in each affected file 4. Confirm the fix with a test or manual verification step
[HIGHLIGHT CODE THEN USE CMD+K] Refactor this code to: [DESCRIBE THE REFACTORING GOAL] Constraints: - Do not break the public interface - Keep the same behavior - Apply the patterns used elsewhere in this codebase If you need context from other files, ask.
[USE IN CURSOR CHAT WITH TEST FILE OPEN] Write comprehensive tests for [FILE NAME]. Use [JEST / VITEST / PYTEST — specify]. Cover: - All exported functions - Happy path for each - At least 2 edge cases per function - Error states Use the mocking patterns already established in this codebase.
[USE IN CURSOR CHAT WITH FILE OPEN] Explain the following function to me as a mid-level engineer new to this codebase: [HIGHLIGHT FUNCTION OR PASTE IT] 1. What does it do in plain English? 2. What are the inputs and outputs? 3. What edge cases does it handle? 4. Why was it written this way? 5. Are there any gotchas I should know?