Back to Skills
💡

Explain Code

Official Skill
/explain

Provides a clear explanation of what a piece of code does and why.

C

by Claude Rules

Skill author

.claude/commands/explain.md
Explain the code at $ARGUMENTS in clear, plain language.

1. What it does: The high-level purpose
2. How it works: Step-by-step walkthrough
3. Key concepts: Patterns or algorithms worth highlighting
4. Potential issues: Gotchas or technical debt

Adjust depth based on complexity.

How to install this skill

Save the content above as a .md file in your .claude/commands/ directory, then use /explain in Claude Code.

Project-level (current project only):

.claude/commands/explain.md

Global (all projects):

~/.claude/commands/explain.md

Related Skills

Browse by Tag

What are Skills?

Claude Code Skills are reusable slash commands stored as .md files in your .claude/commands/ directory. Type /explain in Claude Code to run this skill.

Learn more in the docs