/explain
Provide clear explanations of code, concepts, and system behavior with educational clarity
$ npx -y skills add NikiforovAll/claude-code-rules --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.
Provide clear explanations of code, concepts, and system behavior with educational clarity
Command definition
explain.mdargument-hint: [target] [--level basic|intermediate|advanced] [--format text|examples|interactive] [--context domain]
description: "Provide clear explanations of code, concepts, and system behavior with educational clarity"
Target: $1, Level : $2, Format : $3, Context : $4
Behavioral Flow
1. **Analyze**: Examine target code, concept, or system for comprehensive understanding 2. **Assess**: Determine audience level and appropriate explanation depth and format 3. **Structure**: Plan explanation sequence with progressive complexity and logical flow 4. **Generate**: Create clear explanations with examples, diagrams, and interactive elements 5. **Validate**: Verify explanation accuracy and educational effectiveness
Key behaviors:
- Framework-specific explanations via Context7 integration via MCP
- Adaptive explanation depth based on audience and complexity
Tool Coordination
- **Read/Grep/Glob**: Code analysis and pattern identification for explanation content
- **TodoWrite**: Progress tracking for complex multi-part explanations
- **Task**: Delegation for comprehensive explanation workflows requiring systematic breakdown
Key Patterns
- **Progressive Learning**: Basic concepts → intermediate details → advanced implementation
- **Framework Integration**: Context7 documentation → accurate official patterns and practices
- **Multi-Domain Analysis**: Technical accuracy + educational clarity + security awareness
- **Interactive Explanation**: Static content → examples → interactive exploration
Examples
Basic Code Explanation
/explain authentication.js --level basic
# Clear explanation with practical examples for beginners
# Educator persona provides learning-optimized structure
Framework Concept Explanation
/explain react-hooks --level intermediate --context react
# Structured explanation with progressive complexity
System Architecture Explanation
/explain microservices-system --level advanced --format interactive
# Architect persona explains system design and patterns
# Interactive exploration with Sequential analysis breakdown
Security Concept Explanation
/explain jwt-authentication --context security --level basic
# Security persona explains authentication concepts and best practices
# Framework-agnostic security principles with practical examples
Boundaries
**Will:**
- Provide clear, comprehensive explanations with educational clarity
- Auto-activate relevant personas for domain expertise and accurate analysis
- Generate framework-specific explanations with official documentation integration
**Will Not:**
- Generate explanations without thorough analysis and accuracy verification
- Override project-specific documentation standards or reveal sensitive details
- Bypass established explanation validation or educational quality requirements
Read more
argument-hint: [target] [--level basic|intermediate|advanced] [--format text|examples|interactive] [--context domain] description: "Provide clear explanations of code, concepts, and system behavior with educational clarity"
Target: $1, Level : $2, Format : $3, Context : $4
Behavioral Flow
1. **Analyze**: Examine target code, concept, or system for comprehensive understanding 2. **Assess**: Determine audience level and appropriate explanation depth and format 3. **Structure**: Plan explanation sequence with progressive complexity and logical flow 4. **Generate**: Create clear explanations with examples, diagrams, and interactive elements 5. **Validate**: Verify explanation accuracy and educational effectiveness
Key behaviors:
- Framework-specific explanations via Context7 integration via MCP
- Adaptive explanation depth based on audience and complexity
Tool Coordination
- **Read/Grep/Glob**: Code analysis and pattern identification for explanation content
- **TodoWrite**: Progress tracking for complex multi-part explanations
- **Task**: Delegation for comprehensive explanation workflows requiring systematic breakdown
Key Patterns
- **Progressive Learning**: Basic concepts → intermediate details → advanced implementation
- **Framework Integration**: Context7 documentation → accurate official patterns and practices
- **Multi-Domain Analysis**: Technical accuracy + educational clarity + security awareness
- **Interactive Explanation**: Static content → examples → interactive exploration
Examples
Basic Code Explanation
/explain authentication.js --level basic # Clear explanation with practical examples for beginners # Educator persona provides learning-optimized structure
Framework Concept Explanation
/explain react-hooks --level intermediate --context react # Structured explanation with progressive complexity
System Architecture Explanation
/explain microservices-system --level advanced --format interactive # Architect persona explains system design and patterns # Interactive exploration with Sequential analysis breakdown
Security Concept Explanation
/explain jwt-authentication --context security --level basic # Security persona explains authentication concepts and best practices # Framework-agnostic security principles with practical examples
Boundaries
**Will:**
- Provide clear, comprehensive explanations with educational clarity
- Auto-activate relevant personas for domain expertise and accurate analysis
- Generate framework-specific explanations with official documentation integration
**Will Not:**
- Generate explanations without thorough analysis and accuracy verification
- Override project-specific documentation standards or reveal sensitive details
- Bypass established explanation validation or educational quality requirements
A collection of Claude Code recommendations and practices. Learn practical techniques to enhance your AI-assisted development workflow with Claude Code.
Other commands on claude-code-rules.
- /update-component-reference
description: Add plugin components to the website docs, including component reference pages, plugin index entries, and plugin READMEs argument-hint: Component or plugin to document (e.g., "skill glab", "agent code-reviewer", "plugin handbook-reflect") allowed-tools:
Open command - /version-bump
Bump versions across the monorepo during release process
Open command - /five-whys
Use the "Five Whys" root cause analysis technique to deeply understand problems.
Open command - /prompt-generator
Generate effective prompts for Claude 4.5 Sonnet to achieve user-defined outcomes
Open command - /reflect
Create a reflective analysis of the current Claude Code session, focusing on techniques, patterns, lessons learned, and workflow improvements.
Open command - /save-prompt
Generalize the current discussion into a reusable prompt and save it as a file
Open command

