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.
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
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.
Related prompts
Forcing the agent to plan before acting prevents premature execution and wasted steps. Explicit dependency mapping enables parallel execution and catches logical gaps early.
Tool Selection AgentThe ReAct pattern (Reason + Act) creates an explicit reasoning trace that improves tool selection accuracy. The error-handling rule prevents infinite retry loops.
Prompt CompressorExplicitly requiring all functional requirements to be preserved prevents the model from over-compressing and losing critical instructions.
Memory Management AgentExplicit memory read/write instructions create agents that improve over time. Categorization keeps memories organized, and the deduplication rule prevents context bloat.