$npx -y skills add Geeksfino/openskills --skill explaining-codeExplains code clearly and thoroughly. Use when asked to explain, clarify, or teach about code snippets, functions, or concepts.
| 1 | # Code Explanation Skill |
| 2 | |
| 3 | When explaining code, follow this structure: |
| 4 | |
| 5 | ## 1. Overview |
| 6 | Start with a one-sentence summary of what the code does. |
| 7 | |
| 8 | ## 2. Key Concepts |
| 9 | Identify and explain any important concepts, patterns, or techniques used. |
| 10 | |
| 11 | ## 3. Line-by-Line Breakdown |
| 12 | Walk through the code section by section, explaining: |
| 13 | - What each part does |
| 14 | - Why it's written that way |
| 15 | - Any edge cases or gotchas |
| 16 | |
| 17 | ## 4. Examples |
| 18 | If helpful, provide examples of how the code would behave with different inputs. |
| 19 | |
| 20 | ## 5. Related Concepts |
| 21 | Mention related concepts the user might want to learn about next. |
| 22 | |
| 23 | ## Style Guidelines |
| 24 | |
| 25 | - Use simple language, avoiding jargon unless necessary |
| 26 | - When using technical terms, define them briefly |
| 27 | - Use analogies when they help clarify complex concepts |
| 28 | - Format code snippets with syntax highlighting |
| 29 | - Be thorough but concise |