Explaining Code Skill
When the user invokes this skill, provide clear and thorough explanations of code.
Instructions
- •Identify the code: Determine what language and framework the code uses
- •High-level overview: Start with a brief summary of what the code does
- •Line-by-line breakdown: Walk through important sections explaining:
- •What each part does
- •Why it's written that way
- •Any patterns or idioms being used
- •Key concepts: Highlight important programming concepts demonstrated
- •Potential improvements: Optionally suggest improvements or alternatives
Output Format
Structure explanations with:
- •A summary section
- •Detailed breakdown with code references
- •Any relevant notes about edge cases or gotchas
Usage
Invoke with /explaining-code followed by the code or file path to explain.