/universe:explain [file-or-module]from universe
Explains a specific file or module in depth, combining code reading with git history to reveal why it's structured the way it is.
Ships in universe. 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.
Read when SKILL.md points to them.
Produce a deep explanation of a file or module that goes beyond "what it does" to "why it's structured this way." Combines code reading with git history to understand the decisions, evolution, and context behind the code.
Most code explanations are shallow — they describe WHAT each function does. Developers already know that. What they need is: why was this decision made? What constraints shaped this structure? What should I know before changing this?
If lenskit_analyze is available, call it on the target file to get quantitative context:
churn (how often it changes), author count (how many contributors), complexity metrics,
and importer count. Use these to inform the explanation — a file with high churn and many
authors has a different story than a stable single-author module.
If lenskit_graph is also available, call it to understand the target file's position
in the dependency graph: what imports it (dependents), what it imports (dependencies),
whether it's involved in any circular dependencies, and its layer classification. This
structural context enriches the "Architecture" section of the explanation.
If unavailable, gather this context manually from git history in step 2.
Read the target file thoroughly. Understand:
Use git to understand how this file evolved:
# When was it created? How has it changed?
git log --oneline --follow -- {file}
# Who has worked on it?
git log --format='%an' -- {file} | sort | uniq -c | sort -rn
# What were the most significant changes?
git log --oneline --diff-filter=M -- {file} | head -10
Look for:
Calibration: A file with >15 changes in 6 months is high-churn. >3 authors means shared ownership (potential knowledge fragmentation). >10 importers means it is a hub. Focus git history reading on the 3 most recent structural changes and any change that modified >30% of the file. Skip trivial formatting or rename commits.
Files with no git history: If git log returns nothing (file was just created, or
the repo was initialized with a single commit containing all files), note this. For new
files, focus entirely on code structure and design decisions visible in the code itself.
For "big bang" initial commits, check if the commit message or PR description provides
context about the migration or initial design.
Understand the module in context:
Combine code reading + history + context into a structured explanation.
Report format:
## Explanation — {file}
### File Profile
| Metric | Value | Interpretation |
|--------|-------|----------------|
| Lines | {n} | {small (<100) / medium (100-300) / large (300-500) / critical (>500)} |
| Functions | {n} | {what they do at a glance} |
| Churn (6mo) | {n} changes | {stable (<5) / moderate (5-15) / high (>15)} |
| Authors (6mo) | {n} | {single owner / shared (2-3) / fragmented (>3)} |
| Dependents | {n} importers | {leaf (0) / moderate (1-10) / hub (>10)} |
| Test coverage | {yes/no/partial} | {tested functions or "no tests found"} |
Use `lenskit_analyze` data if available. Otherwise, compute from git log and grep.
### Purpose
{1-2 sentences: what this module does and why it exists}
### Key Concepts
{Explain the core abstractions, patterns, or decisions. Not a function-by-function
walkthrough — focus on the big picture and non-obvious details.}
### Architecture
{How this module fits into the broader codebase. What layer is it? What does it
depend on? What depends on it?}
### History & Evolution
{Key changes from git log. How it got to its current shape.
Recent changes that are relevant to understanding the current state.}
### Things to Know Before Changing
{Non-obvious gotchas, fragile areas, implicit assumptions, related code that
might need to change in tandem. This is the highest-value section.}
cat file.ts. Focus on non-obvious gotchas,
implicit coupling, and fragile areas./impact — Estimate the change surface before editing the module/hotspots — See if this module is a high-risk areareferences/explanation-patterns.md — Patterns for explaining different code
archetypes (services, utilities, configuration, UI components)What SKILL.md sets; muted values are Claude Code's defaults
20 skills in this plugin
/check-rulesThis skill should be used when the user asks to "check adherence", "check rule adherence", "are my rules being followed", "is Claude following my instructions", "how effective is my CLAUDE.md", "rule compliance", "instruction effectiveness", "how are my rules performing", "which rules are being violated", "audit my rules", "check my CLAUDE.md", mentions "/check-rules", or wants to know whether their coding agent instruction rules are actually being followed across Claude Code sessions./discoverUse when the user wants to infer reusable project conventions from existing code and turn them into instruction rules: "discover conventions", "infer rules from code", "what rules should I add", "generate rules from this codebase", or "/discover". This is for convention mining, not for checking rule adherence or explaining how a specific module works./dissectThis skill should be used when the user asks "when did this get complicated", "why is this file so complex", "how did this evolve", "complexity history", "trace the evolution", "what happened to this code", "dissect this file", mentions "/dissect", or wants to understand how a file or function became complex by tracing its evolution through git history./driftThis skill should be used when the user asks "has this module drifted", "is this code still doing what it was designed for", "scope creep analysis", "architectural drift", "what was this originally for", "how has this changed over time", mentions "/drift", or wants to detect when code has quietly evolved away from its original purpose./forecastThis skill should be used when the user asks "what's about to become a problem", "predict issues", "trend analysis", "which files are growing", "what's getting worse", "complexity forecast", "what should I refactor next", mentions "/forecast", or wants to predict which files are on concerning trajectories before they become critical./hotspotsThis skill should be used when the user asks to "find hotspots", "what are the riskiest files", "where do bugs hide", "churn analysis", "which files change most", "find risky code", "technical debt hotspots", mentions "/hotspots", or wants to identify the highest-risk areas of their codebase based on change frequency, complexity, and coupling.npx claudepluginhub mbwsims/claude-universe --plugin universeOther plugins' skills for the same job