← All commands
Development · /explain
Explain Code
Explain code purpose, data flow, and key design decisions.
When to use it
Use this to understand a code snippet's data flow, responsibilities, and side effects.
Useful inputs
- Code snippet
- File or method context
- Specific question to answer
Instruction
Explain purpose, input-to-output flow, and key dependencies. Mark uncertain behavior as an assumption.
Example input
Code: [A LINQ query]. Question: What is the difference between Include and Select? Separate memory and SQL behavior.
Example result
Include loads related entities with the result entity. Select chooses the returned shape and can project only needed fields. The exact SQL and loading behavior depend on the provider and the rest of the query.
Common pitfall
Do not describe runtime behavior that is not visible in the code as a verified fact.