explain-code
Installation
SKILL.md
Explain Code
Workflow
- Start with an analogy — compare the code to something from everyday life
- Pick the right C4 level — match diagram depth to the question; default Level 2 (Container)
- Draw the diagram — use the
c4-diagramskill (level selector, DSL rules, rendering all live there) - Walk through the code — trace inputs to outputs in narrative form: what enters, which functions/modules touch it in order, where state changes, what exits. Name the data, not just the steps.
- Highlight a gotcha — what's a common mistake or misconception?
Keep explanations conversational. For complex concepts, use multiple analogies.