explain
БесплатноБез исполняемых скриптовНе проверенExplain code, concepts, or technical decisions in clear, understandable terms
от TheBushidoCollective★ 202 звезды на GitHubОб этом скилле
Explainer Skill
Create clear, insightful explanations of code, concepts, and technical decisions.
Core Principle
Clarity over completeness. An explanation is only useful if it's understood.
Name
han-core:explain - Explain code, concepts, or technical decisions in clear, understandable terms
Synopsis
/explain [arguments]
Explanation Process
1. Understand the Question
What are they really asking?
- Literal question: "What does this do?"
- Deeper question: "Why does this exist?" or "How does this work?"
- Context matters: Junior dev vs senior dev needs different explanations
2. Gather Full Context
Read before explaining:
- The code in question (obvious)
- Surrounding code (function, class, module)
- Related code (what calls it, what it calls)
- Tests (reveal intended behavior)
- Comments (capture original reasoning)
- Git history (understand evolution)
Anti-pattern: Explaining code you only partially understand
3. Structure the Explanation
Start broad, then narrow:
- One-sentence summary: What it does in plain English
- Purpose: Why it exists, what problem it solves
- High-level approach: How it solves the problem (conceptually)
- Implementation details: Specific code patterns, algorithms
- Edge cases: Unusual scenarios handled
- Related concepts: Connections to other parts of the system
4. Choose the Right Level
Match explanation to context:
For "What does this do?"
BAD: "It's a reducer function that takes state and action..."
GOOD: "This manages the shopping cart state. When you add/remove
items, it updates the cart and recalculates the total."
For "How does this work?"
BAD: "It just loops through items and sums prices."
GOOD: "It iterates through cart items, applies discounts to each,
then sums the discounted prices. Tax is calculated on the
subtotal, not individual items, to avoid rounding errors."
For "Why this approach?"
BAD: "Because it's faster."
GOOD: "We chose this over X because: (1) handles async updates
correctly, (2) prevents race conditions when multiple users
modify the cart, (3) makes testing easier. Trade-off is
slightly more complex code."
Explanation Levels
Tailor explanations based on context:
- High-level: What it does and why it exists
- Implementation: How it works internally
- Technical details: Specific algorithms, patterns, edge cases
- Historical: Why this approach was chosen over alternatives
Explanation Patterns
Code Explanation Format
## What it does
[One-sentence plain English summary]
## Purpose
[Why this code exists, what problem it solves]
## How it works
1. [High-level step 1]
2. [High-level step 2]
3. [High-level step 3]
### Key details
- [Important implementation detail 1]
- [Important implementation detail 2]
### Example
[Concrete example showing usage]
## Related
- [Link to related code/docs]
Concept Explanation Format
## [Concept Name]
[One-sentence definition]
### Why it matters
[Practical importance, when you'd use it]
### How it works
[High-level explanation without jargon]
### Example
[Concrete, relatable example]
### In our codebase
[Where we use this concept, with links]
### Common pitfalls
[What to watch out for]
Decision Explanation Format
## Decision: [What was decided]
### Context
[Situation that required a decision]
### Options considered
1. **[Option 1]**: [Brief description]
- Pros: [Key benefits]
- Cons: [Key drawbacks]
2. **[Option 2]**: [Brief description]
- Pros: [Key benefits]
- Cons: [Key drawbacks]
### Choice: [Selected option]
**Rationale:**
[Why this option was chosen over others]
### Trade-offs accepted
[What we gave up by choosing this approach]
### References
[Links to discussions, docs, related decisions]
Writing Guidelines
Be Concrete
Bad: "This uses a common design pattern for state management" Good: "This uses the Redux pattern: all state changes go through a central store via actions and reducers"
Use Analogies (When Helpful)
Example: "Think of this like a restaurant kitchen:
- Actions are customer orders
- Reducers are chefs preparing food
- Store is the completed order waiting area"
Warning: Don't force analogies. If it's clearer without, skip it.
Show, Don't Just Tell
// BAD explanation:
// "This function filters and maps the array"
// GOOD explanation:
// "This function finds all active users and formats them for display:
const displayUsers = users
.filter(u => u.status === 'active') // Only show active users
.map(u => ({ // Convert to display format
id: u.id,
name: `${u.firstName} ${u.lastName}`,
joined: formatDate(u.createdAt)
}))
Avoid Jargon (Unless Explaining Jargon)
Bad: "This leverages a memoi
Установить explain в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadGrepGlobBashFAQ
Что делает скилл explain?
Explain code, concepts, or technical decisions in clear, understandable terms
Как установить скилл explain?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл explain запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic