Code and Concept Explanation
Deliver clear, comprehensive explanations of code functionality, concepts, or system behavior.
When to use
-
User asks to explain code or function
-
System behavior understanding needed
-
Concept or pattern explanation requested
-
Learning or educational context
-
Code walkthrough or tutorial needed
Instructions
Usage
/sc:explain [target] [--level basic|intermediate|advanced] [--format text|diagram|examples]
Arguments
-
target
-
Code file, function, concept, or system to explain
-
--level
-
Explanation complexity (basic, intermediate, advanced)
-
--format
-
Output format (text, diagram, examples)
-
--context
-
Additional context for explanation
Execution
-
Analyze target code or concept thoroughly
-
Identify key components and relationships
-
Structure explanation based on complexity level
-
Provide relevant examples and use cases
-
Present clear, accessible explanation with proper formatting
Claude Code Integration
-
Uses Read for comprehensive code analysis
-
Leverages Grep for pattern identification
-
Applies Bash for runtime behavior analysis
-
Maintains clear, educational communication style