Codebase Q&A
Both editors can search and read project files. Cursor uses @codebase indexing for fast semantic search. Windsurf's Cascade navigates files autonomously. The 'quote specific lines' instruction forces evidence-based answers.
Answer this question about the codebase: {{question}}
To answer accurately:
1. Search for and read all relevant files — don't guess from file names alone
2. Trace the execution path from the entry point to the answer
3. If the answer involves multiple files, show the connection between them
4. Quote specific lines of code as evidence for your answer
Format your answer as:
**Short answer**: 1-2 sentence direct answer
**Detailed explanation**: The full trace with file references
**Files involved**: List of file paths, in order of relevance
**Related**: Note any related code that the developer might also want to know about
If you're not certain about something, say so and explain what additional files you'd need to check.Variables to customize
Why this prompt works
Both editors can search and read project files. Cursor uses @codebase indexing for fast semantic search. Windsurf's Cascade navigates files autonomously. The 'quote specific lines' instruction forces evidence-based answers.
Save this prompt to your library
Organize, version, and access your best prompts across ChatGPT, Claude, and Cursor.
Related prompts
Get thorough code reviews with actionable feedback tailored to your language, framework, and standards.
Context-Aware Code CompletionProviding the surrounding code and project context lets the model match existing patterns exactly. The constraint against modifying existing code prevents unwanted side effects.
Inline Code SuggestionConstraining suggestions to match existing style and scope produces insertions that feel native to the codebase. The 'no explanation' rule mimics real inline completion behavior.
Code ExplanationThe audience level parameter adjusts complexity automatically. Requiring a usage example ensures the explanation is practical, not just theoretical.