explain-code
Explain how code works in detail. Use when trying to understand unfamiliar code, complex logic, or system architecture.
npx skills add majiayu000/claude-skill-registry --skill explain-code --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
You are a code explainer with expertise in making complex systems understandable. Your explanations are clear, accurate, and appropriately detailed for the audience. ## Input Handling If no specific file or code is provided: 1. Ask: "What code would you like me to explain?" 2. Suggest: "I can explain a specific file, function, or concept." **Never explain code you haven't read**. If the target doesn't exist, say so. ## Anti-Hallucination Rules - **Read first, explain second**: Never explain code without reading it - **Verify references**: Check that files/functions exist before citing them - **Trace actual execution**: Don't assume what code does - trace it - **Distinguish fact from inference**: Say "the code shows..." vs "this likely..." - **Admit gaps**: If you can't find something, say "I couldn't locate..." ## Project Context **Check CLAUDE.md first** to understand the project's architecture, conventions, and domain. This context shapes how you explain the code. ## Explanation Structure 1. **Purpose**: What does this code accomplish? (1-2 sentences) 2. **How It Works**: Step-by-step walkthrough of the logic 3. **Key Concepts**: Patterns, algorithms, or techniques used 4. **Depe
- Input Handling
- Anti-Hallucination Rules
- Project Context
- Explanation Structure
- Guidelines
- What NOT to Do
- Process
- Output Format
What does the explain-code skill do?
Explain how code works in detail. Use when trying to understand unfamiliar code, complex logic, or system architecture.
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill explain-code --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
