Slash Commands · Slash Command
/explain - Explain Code Command
Custom command to explain a file or function in detail
explaindocumentationcommand
Template content
Explain the specified code in detail. Cover: 1. What it does at a high level 2. Key data structures and their purpose 3. Control flow and important branching logic 4. Side effects (API calls, file I/O, state mutations) 5. Error handling approach 6. Dependencies and how they're used Use plain language. Assume I understand programming but not this specific codebase.
Use this template in the editor
Open PromptEditor.io to customize this template, save it, and inject it into any AI chat.
Open the editor