Read Code: Explain the Call Chain
Walk from entry point to side effects, mark key lines and external dependencies
Prompt
Copy it whole, then replace the brackets with your own contentHandle this coding task: Read Code: Explain the Call Chain. Code/error: [paste] Environment: [language/version/framework] Requirements: Trace from entry point to side effects, marking key lines and external dependencies. Give your assessment first, then the changes, then how to verify.
Replace the text in [ ] with your own situation; ask long tasks in stages.
How to get better results
Read this before you fill it inTaking over an unfamiliar project and wanting to know where a request flows through.
Give the conclusion and impact scope first, then only the changed snippets (no full files), and finally one check that proves it works. Flag risky spots separately.
From clicking the order button to the order hitting the database, walk the call chain, marking transaction boundaries and external calls.
No entry point specified, so it becomes an architecture overview Not asking for side effects, missing key writes Asking about the whole project at once, getting empty answers
If problems remain after the fix, paste the new error and the changed snippet back; keep debugging on the original approach, don't switch approaches and rewrite.
More like this: Writing code prompts · All prompts