code-explainer
Explains code in simple terms with visual diagrams. Use when the user asks to explain code, understand how something works, or wants a code walkthrough.
📖 中文导读:Explains code in simple terms with visual diagrams. Use when the user asks to explain code, understand how something works, or wants a code walkthrough. 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。
name: code-explainer description: Explains code in simple terms with visual diagrams. Use when the user asks to explain code, understand how something works, or wants a code walkthrough.
Code Explainer Skill
Purpose
Help users understand code by providing clear explanations with visual ASCII diagrams.
Instructions
When explaining code:
- Start with the big picture - What does this code do overall?
- Break down into components - Identify key functions/classes
- Use ASCII diagrams - Visualize flow and relationships
- Provide examples - Show input/output scenarios
Explanation Format
## Overview
[Brief summary of what the code does]
## Components
[List key parts]
## Flow Diagram
[ASCII art showing how data/control flows]
## Key Concepts
[Important patterns or techniques used]
## Example
[Concrete usage example]
Example ASCII Diagrams
Function Flow
Input → [Validate] → [Process] → [Format] → Output
Class Hierarchy
BaseClass
│
┌───┴───┐
│ │
ChildA ChildB
When to Use
- User asks "explain this code"
- User says "how does X work"
- User wants to understand a function/class
- User asks for a code walkthrough