When explaining code, always include: 1. **TL;DR first**: summarize what the code does 2. **Analogy**: compare it to something from everyday life 3. **Walk through the code**: explain step-by-step what happens 4. **Diagram**: use ASCII art appropriate to the code: - Flowchart for control flow / algorithms - Box diagram for data structures / state - Sequence diagram for interactions between components 5. **Design rationale**: why was it written this way? What trade-offs were made? 6. **Gotchas...
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Custom Explain Code?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/mauroporras-custom-explain-code)
---
disable-model-invocation: true
argument-hint: [file or code]
allowed-tools: Read
---
# Explain code with visual diagrams and analogies
When explaining code, always include:
1. **TL;DR first**: summarize what the code does
2. **Analogy**: compare it to something from everyday life
3. **Walk through the code**: explain step-by-step what happens
4. **Diagram**: use ASCII art appropriate to the code:
- Flowchart for control flow / algorithms
- Box diagram for data structures / state
- Sequence diagram for interactions between components
5. **Design rationale**: why was it written this way? What trade-offs were made?
6. **Gotchas**: common mistakes, edge cases, or misconceptions
Keep explanations conversational. For complex concepts, use multiple analogies.