Agent skill

explain-code

Explain how code works in detail. Use when trying to understand unfamiliar code, complex logic, or system architecture.

majiayu000github.com/majiayu000GitHub ↗
claude-codeMIT
Install
npx skills add majiayu000/claude-skill-registry --skill explain-code --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 3 KB
Bundled scripts: none
Path: skills/analysis/explain-code/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

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

What's inside
Steps it walks through
  1. Input Handling
  2. Anti-Hallucination Rules
  3. Project Context
  4. Explanation Structure
  5. Guidelines
  6. What NOT to Do
  7. Process
  8. Output Format
Ships with 1 file
  • metadata.json
More from claude-skill-registry
All skills →
About this skill
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.

Keep going