/session-tools:explain [--simple|--deep|--learn] <file-or-concept>from session-tools
Explains code, concepts, or system behavior with adjustable depth levels (simple, standard, deep). Useful for understanding functions, files, or architectural decisions.
Ships in session-tools. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Explain code, concepts, or system behavior with adjustable depth levels.
Get clear explanations of:
Identify what needs explanation:
Simple (1-2 min read) → Quick summary, key points only
Standard (3-5 min read) → Purpose, how it works, key decisions
Deep (10+ min read) → Full breakdown, alternatives, trade-offs
# For file explanations
head -50 "$FILE" # See imports and structure
# For function explanations
grep -A 30 "function $NAME\|def $NAME\|fn $NAME" "$FILE"
# For module explanations
ls -la "$DIR"
cat "$DIR/index.ts" 2>/dev/null || cat "$DIR/__init__.py" 2>/dev/null
Scope: [file/function/concept/flow] Depth: [simple/standard/deep]
[1-3 sentences describing the purpose]
[Step-by-step breakdown appropriate to depth level]
| Decision | Why | Alternative |
|---|---|---|
| [choice made] | [reasoning] | [what else could work] |
// How to use this correctly
path/to/related.ts - [relationship]path/to/dependency.ts - [relationship][Additional context for understanding the broader pattern]
/explain --simple)**validateUser()** checks if the user object has required fields
(email, password) and returns a boolean. Uses regex for email format.
/explain - default)**validateUser(user: User): ValidationResult**
**Purpose**: Validates user input before database operations.
**Flow**:
1. Check required fields exist (email, password)
2. Validate email format with regex
3. Check password meets requirements (8+ chars, special char)
4. Return { valid: boolean, errors: string[] }
**Used by**: signup(), updateProfile()
/explain --deep)[All of standard, plus:]
**Design Decisions**:
- Returns ValidationResult instead of throwing to allow batch validation
- Regex chosen over library for zero dependencies
- Password rules configurable via config.ts
**Trade-offs**:
- Pro: Fast, no dependencies
- Con: Regex email validation isn't RFC-compliant
**Alternatives Considered**:
- Zod schema: More powerful but adds a dependency
- Class-validator: Better for decorators but OOP-heavy
Explain a file:
/explain src/auth/middleware.ts
Explain a function:
/explain the handleWebhook function in payments.ts
Explain a concept:
/explain how our event sourcing works
Explain with specific depth:
/explain --deep the authentication flow
/explain --simple what useCallback does
Explain for learning:
/explain --learn the repository pattern used here
$ARGUMENTS
What SKILL.md sets; muted values are Claude Code's defaults
Use when asking Claude to explain code, a function, an algorithm, or a concept.
lowThree short reads, in order
npx claudepluginhub florianbruniaux/claude-code-plugins --plugin session-tools17 skills in this plugin
/autoresearchAutonomous improvement loop: scan codebase metrics, scaffold experiment files, run agent-driven iterations until metric improves/catchupRestore context after /clear by summarizing recent commits, uncommitted changes, TODO markers and project state. Read-only./ccboardRead Claude Code usage data with the ccboard CLI: token and cost stats, recent or searchable sessions, usage reports, skill invocation counts, and the TUI or web dashboard. Use when asked about token usage, spend, session history, which skills actually ran, or how to launch ccboard. Not for editing Claude Code settings./check-cache-bugsAudit Claude Code setup for cache bugs (CC#40524): sentinel, --resume/--continue, attribution header + ArkNill B3/B4/B5/diagnoseInteractive troubleshooting assistant for Claude Code issues/handoff-createGenerate a structured handoff document from the current session. Captures scope, relevant files with line numbers, key discoveries, work completed, current status, next steps, and code snippets. Use before ending a session or handing work to another agent.2 plugins in one repository ship this exact skill · first indexed Nov 30, 2026
Other plugins' skills for the same job