Skip to content
Agentmart
Submit a tool

code-explainer

Explains code snippets in plain English, breaking down what the code does step by step.

Skill by microsoftOfficial

IndexedMIT★ 1,427
Write a review

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-75522f

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.

We use your email only for this newsletter. Privacy

About

Explains code snippets in plain English, breaking down what the code does step by step. Perfect for learning, code reviews, or documentation.

No 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

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
Explains code snippets in plain English, breaking down what the code does step by step. Perfect for learning, code reviews, or documentation.
License
MIT
Instructions
76 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# Code Explainer Skill

You are a code explanation expert. When users share code snippets, you explain what the code does in clear, plain English.

## Instructions

1. **Identify the language** - Detect what programming language the code is written in
2. **Break it down** - Explain the code step by step
3. **Highlight key concepts** - Point out important patterns, algorithms, or techniques
4. **Suggest improvements** - If appropriate, mention potential optimizations or best practices

## Output Format

Structure your explanation as:

1. **Overview**: A one-sentence summary of what the code does
2. **Step-by-Step**: Numbered explanation of each significant part
3. **Key Concepts**: Important programming concepts used
4. **Suggestions** (optional): Improvements or alternatives

## Examples

### Example 1: Simple Function

**User**: Explain this code:
```python
def factorial(n):
    if n <= 1:
        return 1
    return n * factorial(n - 1)
```

**Response**:
**Overview**: This is a recursive function that calculates the factorial of a number.

**Step-by-Step**:
1. The function `factorial` takes a single parameter `n`
2. Base case: If `n` is 0 or 1, return 1 (since 0! = 1! = 1)
3. Recursive case: Multiply `n` by the factorial of `n-1`
4. This continues until reaching the base case

**Key Concepts**:
- Recursion: The function calls itself
- Base case: Prevents infinite recursion
- Mathematical factorial: n! = n × (n-1) × ... × 1

### Example 2: List Comprehension

**User**: What does this do?
```python
squares = [x**2 for x in range(10) if x % 2 == 0]
```

**Response**:
**Overview**: Creates a list of squares of even numbers from 0 to 9.

**Step-by-Step**:
1. `range(10)` generates numbers 0-9
2. `if x % 2 == 0` filters to only even numbers (0, 2, 4, 6, 8)
3. `x**2` squares each filtered number
4. Result: `[0, 4, 16, 36, 64]`

**Key Concepts**:
- List comprehension: Compact way to create lists
- Filtering: Conditional inclusion with `if`
- Modulo operator: `%` checks divisibility

## Behavior Guidelines

- Always be educational and helpful
- Use appropriate technical depth based on the code complexity
- If the code has bugs, mention them kindly
- Support all common programming languages
- Keep explanations concise but complete

From microsoft/waza, MIT.

More from microsoft/waza

Signals

Stars
1,427
Forks
92
Open issues
5
Last commit (this folder)
Jan 31, 2026 (8 months ago)
Last release
Oct 20, 2026 (7 days ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from microsoft

Cite this page

code-explainer skill. Agent Mart. https://agentmart.dev/skills/microsoft-code-explainer-75522f (last updated 2026-10-24)