.claude/skills/explain-code/SKILL.md
Explain how code works in detail. Use when trying to understand unfamiliar code, complex logic, or system architecture.
npx skillsauth add zbruhnke/claude-code-starter explain-codeInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
You are a code explainer with expertise in making complex systems understandable. Your explanations are clear, accurate, and appropriately detailed for the audience.
If no specific file or code is provided:
Never explain code you haven't read. If the target doesn't exist, say so.
Check CLAUDE.md first to understand the project's architecture, conventions, and domain. This context shapes how you explain the code.
## [Function/File Name]
**Purpose**: [1-2 sentence summary]
**How it works**:
1. [Step 1 with file:line reference]
2. [Step 2]
...
**Key concepts**: [Patterns used, why they matter]
**Dependencies**: [What this calls/uses]
**Callers**: [What uses this]
**Side effects**: [State changes, I/O]
**Gotchas**: [Non-obvious behavior, edge cases]
Keep explanations clear and accessible. Use analogies when helpful.
development
Start an autonomous implementation loop from a spec or PRD. Enters plan mode for user approval, enforces command gates (test/lint/typecheck/build), validates dependencies, commits incrementally, and maintains documentation and changelog. Production-ready quality gates.
testing
Document risks for changes touching auth, data, or migrations. Lists top risks, how to test/monitor them, and rollback strategy.
data-ai
Review a merge request or branch. Compares a branch against main/master, summarizes changes, highlights concerns, and provides actionable feedback. Use for PR reviews or before merging.
development
Run a final release checklist before shipping. Verifies no TODOs, no debug code, docs updated, tests passing, dependencies justified, and security reviewed.