Back to guide/General Productivity

Code Explanation

Asks Cascade to trace a real execution path rather than summarize files in isolation. The structured output format ensures you get actionable understanding, not a wall of text.

windsurf-promptsfeature_name
Edit View
Prompt
Explain how {{feature_name}} works in this codebase:\n\n1. Find the entry point — where does the user trigger this feature?\n2. Trace the execution path step by step:\n   - Which components/functions are called?\n   - What data transformations happen?\n   - Where does it interact with the database/API?\n3. Identify the key files involved and their roles\n4. Note any error handling, edge cases, or important business logic\n\nFormat your explanation as:\n- **Entry point:** [file and function]\n- **Flow:** Step-by-step numbered list\n- **Key files:** Table of file path + responsibility\n- **Gotchas:** Anything non-obvious or surprising about the implementation\n\nKeep the explanation technical but concise. I want to understand it well enough to modify it confidently.

Variables to customize

{{feature_name}}

Why this prompt works

Asks Cascade to trace a real execution path rather than summarize files in isolation. The structured output format ensures you get actionable understanding, not a wall of text.

Save this prompt to your library

Organize, version, and access your best prompts across ChatGPT, Claude, and Cursor.