slash command · Design & Frontend
Code Explain
by wshobson
Explain complex code, algorithms, and design patterns with step-by-step breakdowns, visual diagrams, and interactive examples
- Claude Code
- Codex
- ★ 43k on GitHub
- Updated 2026-11-18
- MIT
Calyban is a free desktop app. It checks Code Explain for red flags before installing, lets you choose the agent and folder, and undoes it in one click.
Install Code Explain manually
Prefer the terminal? This does the same thing as Calyban's install.
Claude Code
mkdir -p ~/.claude/commands
curl -fsSL https://raw.githubusercontent.com/wshobson/agents/42203085cfc5736204bf0f6d436dff7e1da0bf3f/plugins/code-documentation/commands/code-explain.md -o ~/.claude/commands/code-explain.mdCodex
mkdir -p ~/.codex/prompts
curl -fsSL https://raw.githubusercontent.com/wshobson/agents/42203085cfc5736204bf0f6d436dff7e1da0bf3f/plugins/code-documentation/commands/code-explain.md -o ~/.codex/prompts/code-explain.mdStart a new Claude Code & Codex session afterwards so it picks up the change.
Similar slash commands
Gan Designaffaan-mRun a generator/evaluator design loop for frontend or visual work with bounded iterations and scoring.React Buildaffaan-mFix React build failures (Vite, webpack, Next.js, CRA, Parcel, esbuild, Bun) incrementally — JSX/TSX compile errors, hydration mismatches, server/client component boundary failures, missing types. Invokes the…Design PlannextlevelbuilderGenerate a concrete design system (tokens, style, type, UX) before building UIDesign ReviewnextlevelbuilderRun the 7-phase design review (WCAG AA, responsive, interaction) on a page or URLExport DiagramcathrynlaveryExport a diagram-design HTML file to .svg, .png, and optionally .pdf next to the sourceDoctorcathrynlaveryRun one-shot environment diagnostics for Diagram Design readiness
Guides
Listed in the public Calyban catalog. Code Explain is made by wshobson, not Calyban. Inclusion isn't an endorsement and safety checks aren't a guarantee.