code-explainer
**UTILITY SKILL** - Explain code snippets, functions, and algorithms in plain language.
Skill by microsoftOfficial
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/microsoft-code-explainer
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: writing
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Python package
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/code-explainer
What's inside
- Skill name
code-explainer- Description
- **UTILITY SKILL** - Explain code snippets, functions, and algorithms in plain language. USE FOR: explain code, what does this code do, break down this function, help me understand this, walk through this algorithm, clarify this logic, explain this snippet, describe what happens here. DO NOT USE FOR: writing new code (use code generation), fixing bugs (use debugging), refactoring (use refactoring skills), code review with action items. INVOKES: file reading tools to access code, language detection for tailored explanations. FOR SINGLE OPERATIONS: If the user just needs to see file contents, use file reading tools directly.
- License
- MIT
- Instructions
- 133 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
- Instructions call the network
Files (13)
- README.md
- SKILL.md
- eval.yaml
- factorial.py · fixtures/
- fetch_user.js · fixtures/
- squares.py · fixtures/
- user_orders.sql · fixtures/
- explanation_quality.py · graders/
- explain-js-async.yaml · tasks/
- explain-list-comprehension.yaml · tasks/
- explain-python-recursion.yaml · tasks/
- explain-sql-join.yaml · tasks/
- trigger_tests.yaml
SKILL.md (first lines)
# Code Explainer
A skill that explains code snippets in clear, educational language. Helps developers understand unfamiliar code, algorithms, and programming patterns.
## Skill Activation Triggers
**Use this skill immediately when the user asks to:**
- "Explain this code"
- "What does this function do?"
- "Break down this algorithm"
- "Help me understand this snippet"
- "Walk me through this code"
- "What's happening in this file?"
**Key Indicators:**
- User shares a code snippet and asks for explanation
- User is confused about existing code
- User wants to learn how something works
- User asks "what does X do?" about code
**Do NOT use when:**
- User wants to write new code
- User wants to fix a bug
- User wants code review with suggestions
- User wants refactoring recommendations
## Quick Reference
| Property | Value |
|----------|-------|
| Input | Code snippet + optional language hint |
| Output | Plain language explanation |
| Best for | Learning, onboarding, code comprehension |
## Explanation Guidelines
### Structure
A good code explanation should include:
1. **Overview** - One sentence summary of what the code does
2. **Step-by-step breakdown** - Walk through the logic
3. **Key concepts** - Explain any patterns or techniques used
4. **Example** - Show sample input/output if applicable
### Tone
- Educational and approachable
- Avoid jargon unless explaining it
- Use analogies when helpful
- Assume the reader is smart but unfamiliar with this specific code
### Language-Specific Tips
| Language | Focus On |
|----------|----------|
| Python | List comprehensions, decorators, generators |
| JavaScript | Async/await, closures, callbacks |
| SQL | JOINs, subqueries, aggregations |
| Java | OOP patterns, generics, streams |
## Examples
### Example 1: Python Recursion
**User prompt:**
```
Explain this code:
```python
def factorial(n):
if n <= 1:
return 1
return n * factorial(n - 1)
```
**Good response:**
> This is a **recursive function** that calculates the factorial of a number.
>
> **Overview:** It multiplies a number by all positive integers less than it (e.g., 5! = 5 × 4 × 3 × 2 × 1 = 120).
>
> **Step by step:**
> 1. **Base case** (`if n <= 1`): If n is 0 or 1, return 1 (since 0! and 1! both equal 1)
> 2. **Recursive case**: Otherwise, multiply n by factorial(n-1)
>
> **Example:** `factorial(4)` → 4 × factorial(3) → 4 × 3 × factorial(2) → 4 × 3 × 2 × factorial(1) → 4 × 3 × 2 × 1 = 24
### Example 2: JavaScript Async/Await
**User prompt:**
```
What does this code do?
```javascript
async function fetchUserData(userId) {
try {
const response = await fetch(`/api/users/${userId}`);
if (!response.ok) throw new Error('User not found');
return await response.json();
} catch (error) {
console.error('Failed:', error);
return null;
}
}
```
**Good response:**
> This is an **async function** that fetches user data from an API.
>
> **Overview:** It makes an HTTP request to get a user's data, handles errors gracefully, and returns the result as JSON.
>
> **Step by step:**
> 1. `async function` - Declares this function will use await for promises
> 2. `await fetch(...)` - Makes HTTP GET request, waits for response
> 3. `if (!response.ok)` - Checks if request succeeded (status 200-299)
> 4. `await response.json()` - Parses response body as JSON
> 5. `catch` block - If anything fails, logs error and returns null
>
> **Key pattern:** This is the standard async/await pattern for API calls with error handling.
## Error CasesFrom microsoft/waza, MIT.
More from microsoft/waza
- 0.827score
waza-runner
spboyerOfficial
Run evaluations on Agent Skills to measure their effectiveness.
SkillAFreshness: A★ 1.4KClaude Code +9 - 0.825score
azd-publish
spboyerOfficial
Prepare and publish a new version of the waza azd extension.
SkillAFreshness: A★ 1.4KClaude Code +9 - 0.687score
waza-interactive
microsoftOfficial
Interactive workflow partner for creating, testing, and improving AI agent skills with waza.
SkillAFreshness: A★ 1.4KClaude Code +9 - 0.687score
iterative-retrieval
microsoftOfficial
Max-3-cycle protocol for agent sub-tasks with WHY context and coordinator validation.
SkillAFreshness: A★ 1.4KClaude Code +9 - 0.687score
coordinator-source-of-truth
microsoftOfficial
The complete file-by-file source-of-truth hierarchy for Squad: which files are authoritative, which are derived/append-only, who may write each one, who may…
SkillAFreshness: A★ 1.4KClaude Code +9 - 0.687score
coordinator-init-mode
microsoftOfficial
The complete two-phase Init Mode protocol the Squad coordinator runs when no team exists yet in the current repo.
SkillAFreshness: A★ 1.4KClaude Code +9 - 0.687score
coordinator-response-mode
microsoftOfficial
Selecting WHO handles work is the Routing table; selecting HOW they handle it (Direct, Lightweight, Standard, Full) is Response Mode.
SkillAFreshness: A★ 1.4KClaude Code +9 - 0.687score
waza
microsoftOfficial
**WORKFLOW SKILL** - Evaluate AI agent skills using structured benchmarks with YAML specs, fixture isolation, and pluggable validators.
SkillAFreshness: A★ 1.4KClaude Code +9 - 0.687score
squad-commands
microsoftOfficial
Categorized catalog of common Squad operations.
SkillAFreshness: A★ 1.4KClaude Code +9 - 0.687score
squad
microsoftOfficial
Squad's command catalog and interactive menu.
SkillAFreshness: A★ 1.4KClaude Code +9 - 0.687score
cross-squad
microsoftOfficial
Coordinating work across multiple Squad instances — discovery, delegation, and disambiguation when the user says 'squad' (the product) vs casual English…
SkillAFreshness: A★ 1.4KClaude Code +9 - 0.684score
code-explainer
microsoftOfficial
Explains code snippets in plain English, breaking down what the code does step by step.
SkillAFreshness: A★ 1.4KClaude Code +9
Signals
- Stars
- 1,427
- Forks
- 92
- Open issues
- 5
- Last commit (this folder)
- Jun 28, 2026 (4 months ago)
- Last release
- Oct 20, 2026 (7 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/microsoft/waza
- Website
- microsoft.github.io/waza/
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from microsoft
- 0.714score
skillopt-sleep
microsoftOfficial
Reference-only OpenClaw adaptation of SkillOpt-Sleep.
SkillAFreshness: A★ 18.7KClaude Code +9 - 0.707score
Playwright MCP
microsoftOfficial
Playwright Tools.
ConnectorAFreshness: ALocal★ 38.6KClaude Code +5 - 0.687score
squad
microsoftOfficial
Squad's command catalog and interactive menu.
SkillAFreshness: A★ 1.4KClaude Code +9 - 0.687score
coordinator-response-mode
microsoftOfficial
Selecting WHO handles work is the Routing table; selecting HOW they handle it (Direct, Lightweight, Standard, Full) is Response Mode.
SkillAFreshness: A★ 1.4KClaude Code +9 - 0.687score
coordinator-source-of-truth
microsoftOfficial
The complete file-by-file source-of-truth hierarchy for Squad: which files are authoritative, which are derived/append-only, who may write each one, who may…
SkillAFreshness: A★ 1.4KClaude Code +9 - 0.687score
squad-commands
microsoftOfficial
Categorized catalog of common Squad operations.
SkillAFreshness: A★ 1.4KClaude Code +9
Cite this page
code-explainer skill. Agent Mart. https://agentmart.dev/skills/microsoft-code-explainer (last updated 2026-10-24)