/explain
Explain a code file, function, or concept in clear, structured language.
$ npx -y skills add rohitg00/awesome-claude-code-toolkit --agent claude-codeHow it fires
How this command gets triggered: by you, by Claude, or both.
- Fires itselfClaude auto-loads it when your prompt matches the work.
- You can call itInvoke it directly when you want it.
- Slash command
/explain
Context preview
What this command does when you run it.
Explain a code file, function, or concept in clear, structured language.
Command definition
explain.mdExplain a code file, function, or concept in clear, structured language.
Steps
1. Read the target code (file path, function name, or code block). 2. Determine the audience level from context (junior, mid, senior, non-technical). 3. Analyze the code structure:
- Purpose: What problem does this code solve?
- Inputs: What data does it receive and from where?
- Processing: What transformations or logic does it apply?
- Outputs: What does it produce or modify?
- Side effects: What external state does it change?
4. Break down complex sections:
- Explain algorithms step by step.
- Clarify language-specific idioms or patterns.
- Describe the data flow through the code.
5. Identify design patterns in use (Observer, Strategy, Factory, etc.). 6. Note any non-obvious behavior, gotchas, or edge cases. 7. Provide analogies for complex concepts when appropriate.
Format
## <File/Function Name>
### Purpose
<one-sentence summary>
### How It Works
1. <step-by-step explanation>
### Key Concepts
- <pattern/concept>: <explanation>
### Gotchas
- <non-obvious behavior to be aware of>
### Dependencies
- <what this code depends on>
- <what depends on this code>
Rules
- Explain the "why" not just the "what"; anyone can read the code.
- Use concrete examples with real values from the codebase.
- Avoid jargon unless explaining it; match the audience level.
- Keep explanations under 100 lines; link to deeper resources for complex topics.
- Do not restate code as prose; explain the intent and reasoning behind it.
Read more
Explain a code file, function, or concept in clear, structured language.
Steps
1. Read the target code (file path, function name, or code block). 2. Determine the audience level from context (junior, mid, senior, non-technical). 3. Analyze the code structure:
- Purpose: What problem does this code solve?
- Inputs: What data does it receive and from where?
- Processing: What transformations or logic does it apply?
- Outputs: What does it produce or modify?
- Side effects: What external state does it change?
4. Break down complex sections:
- Explain algorithms step by step.
- Clarify language-specific idioms or patterns.
- Describe the data flow through the code.
5. Identify design patterns in use (Observer, Strategy, Factory, etc.). 6. Note any non-obvious behavior, gotchas, or edge cases. 7. Provide analogies for complex concepts when appropriate.
Format
## <File/Function Name> ### Purpose <one-sentence summary> ### How It Works 1. <step-by-step explanation> ### Key Concepts - <pattern/concept>: <explanation> ### Gotchas - <non-obvious behavior to be aware of> ### Dependencies - <what this code depends on> - <what depends on this code>
Rules
- Explain the "why" not just the "what"; anyone can read the code.
- Use concrete examples with real values from the codebase.
- Avoid jargon unless explaining it; match the audience level.
- Keep explanations under 100 lines; link to deeper resources for complex topics.
- Do not restate code as prose; explain the intent and reasoning behind it.
The most comprehensive toolkit for Claude Code -- 135 agents, 35 curated skills (+400,000 via SkillKit), 42 commands, 176+ plugins, 20 hooks, 15 rules, 7 templates, 15 MCP configs, 26 companion apps, 53 ecosystem entries, and more.
Repo: rohitg00/awesome-claude-code-toolkit
Other commands on rohitg00-claude-code-toolkit.
- /adr
Write an Architecture Decision Record documenting a significant technical decision.
Open command - /design-review
Conduct a structured design review of a module, feature, or system component.
Open command - /diagram
Generate Mermaid diagrams from codebase analysis or description.
Open command - /migrate
Plan and execute a framework or library migration incrementally.
Open command - /plan
Create a structured implementation plan for the requested feature or change.
Open command - /refactor
Perform a systematic refactoring of the specified code area.
Open command

