mbwsims/claude-universe/explain
Claude Code and agent skill by mbwsims/claude-universe
- community
Checking that the SKILL.md file is still in the repository.
Use when the user wants a deep explanation of a specific file, module, or implementation flow: "explain this code", "walk me through this file", "why is this structured this way", or "/explain". Best for focused code understanding with history context, not for repo-wide architecture mapping, recent-change summaries, or generic "what happened?" requests.
Install
npx vskill@latest install mbwsims/claude-universe/explainSKILL.md
Explain Module
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?
Workflow
0. Gather Metrics (if available)
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.
1. Read the Code
Read the target file thoroughly. Understand:
- System purpose: Why was this file introduced, and which product capability relies on it?
- Public API: What does it export? What's the interface?
- Internal structure: How is it organized? What patterns does it use?
- Dependencies: What does it import? What does it depend on?
- Complexity: Where is the tricky logic? What's non-obvious?
2. Read the History
Use git to understand how this file evolved:
Look for:
- Major refactors: Commits that changed the structure significantly
- Bug fixes: What bugs were found? They reveal fragile areas
- Feature additions: How the module grew over time
- Author patterns: Who owns this code? Multiple authors = potential inconsistency
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.
3. Read the Context
Understand the module in context:
- What imports it? (Grep for imports)
- What does it import? (Read import statements)
- Is there a test file? What does it reveal about expected behavior?
- Is there related documentation? (README, comments, JSDoc)
4. Synthesize
Combine code reading + history + context into a structured explanation.
Report format:
Guidelines
- "Things to Know Before Changing" is the most important section. This is what
differentiates a lenskit explanation from cat file.ts. Focus on non-obvious gotchas, implicit coupling, and fragile areas.
- Don't describe every function. Describe the module's PURPOSE, PATTERNS, and PITFALLS.
- Use git history selectively. Recent commits and large refactors are informative. Hundreds
of minor commits are noise.
- If the code is straightforward and has no tricky parts, say so. Not every file needs a
deep explanation.
Related Skills
- `/impact` — Estimate the change surface before editing the module
- `/hotspots` — See if this module is a high-risk area
Additional Resources
- `references/explanation-patterns.md` — Patterns for explaining different code
archetypes (services, utilities, configuration, UI components)
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/explain/SKILL.md
Popularity
- Repository stars
- 72
- Repository forks
- 7
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/mbwsims/claude-universe/explain)