Provides deep-dive explanations of code, modules, or features, including logic tracing and improvement suggestions.

Install

mkdir -p .claude/skills/explain-washingtonguilhardes && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/15140" && unzip -o skill.zip -d .claude/skills/explain-washingtonguilhardes && rm skill.zip

Installs to .claude/skills/explain-washingtonguilhardes

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Explain how a file, folder, or feature works
44 charsno explicit “when” trigger
Intermediate

Key capabilities

  • Break down logic of files, folders, or features
  • Explain decisions made in the code
  • Trace execution flows and data transformations
  • Identify dependencies and integrations
  • Note error handling and edge cases
  • Recognize architectural patterns

How it works

The skill analyzes the target code or feature, tracing its execution flow and data transformations, identifying dependencies, and explaining its purpose and functionality in a structured manner.

Inputs & outputs

You give it
file path, folder path, or feature description
You get back
structured explanation of functionality, purpose, and logic

When to use explain

  • Explain a complex function
  • Understand a project module
  • Trace data flow across files

About this skill

EXPLAIN Task

Persona: Execute this task as the @developer subagent. Load the persona characteristics from .rulesync/subagents/developer.md before proceeding.

Objective

Explain how file/folder/feature works. Break down logic, explain decisions, trace flows, optionally suggest improvements.

Instructions

  1. Discovery: - Ask: "What to explain? (file/folder/feature)" - Examine code and context

  2. Scope: - Ask: detail level (high-level/detailed/deep-dive), suggest improvements?, specific aspects? (data flow, error handling, performance, security)

  3. Analyze: - Read target files - Understand purpose, functionality - Trace execution flow, data transformations - Identify dependencies, integrations - Note error handling, edge cases - Recognize architectural patterns - Check related files (README, tests, types)

  4. Structured explanation: - Files: Purpose/context, imports/dependencies, main logic step-by-step, edge cases/error handling/security, non-obvious code/debt - Folders/Modules: Purpose/responsibility, structure/organization, entry points/public API, usage patterns - Features: User perspective, implementation across files (frontend→backend→database), data flow, integration points/business logic

  5. Language: - High-level → details - Analogies/examples when helpful - Define technical terms - Break complex logic into chunks - Mermaid diagrams for complex flows - Highlight "why" behind decisions

  6. Improvements (if requested): - Analyze using project standards: code quality, performance, security, architecture - Format: Priority (High/Medium/Low), Category, Current vs Suggested, Benefits/trade-offs, Effort estimate

  7. Summary: - Recap main points - Highlight takeaways - Top priority suggestions if provided - Offer deeper dive - Ask: "Explain specific part in detail or help implement improvements?"

Example Prompts

  • /explain app/api/trpc/routers/channels.ts - Produces a breakdown of the router: purpose, each procedure's logic, input validation, error handling, and database interactions.
  • /explain app/lib/auth --detail deep-dive --aspects security,data-flow - Produces a deep-dive covering the auth module's data flow from request to session, security boundaries, token handling, and dependency graph.
  • /explain "How does message sending work end-to-end?" - Traces the full flow from UI input through tRPC mutation to database write and real-time update, with a Mermaid sequence diagram.

Quality Criteria

  • Explanation covers purpose, data flow, error handling, dependencies, and architectural decisions
  • "Why" behind non-obvious design choices is surfaced, not just "what" the code does
  • Complex flows include a Mermaid diagram for visual clarity
  • All referenced files and functions use actual paths and names from the codebase
  • Technical terms are defined on first use
  • Detail level matches the requested scope (high-level stays concise, deep-dive is exhaustive)

Scope Boundaries

  • Do NOT refactor or modify any code during an explain task
  • Do NOT implement suggested improvements -- only describe them
  • Do NOT create or update tests
  • Do NOT produce spec documents or PRDs

Cross-References

  • /diagram - Generate visual flow diagrams discovered during explanation
  • /document - Persist explanations as inline comments, JSDoc, or README content
  • /audit - Run a deeper structural or quality analysis on the explained code

When not to use it

  • The task involves refactoring or modifying code
  • The task involves implementing suggested improvements
  • The task involves creating or updating tests

Limitations

  • The skill will not refactor or modify any code
  • It will not implement suggested improvements
  • It will not create or update tests

How it compares

This skill provides a structured, detailed explanation of code components, including the 'why' behind design choices and potential improvements, which goes beyond a simple code summary.

Compared to similar skills

explain side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
explain (this skill)04moNo flagsIntermediate
mlops-collaboration16moNo flagsIntermediate
sleap-support17moReviewBeginner
deepwiki-rs259moReviewIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

You might also like

mlops-collaboration

fmind

Guide to prepare MLOps projects for sharing, collaboration, and community engagement.

11

sleap-support

talmolab

Handle SLEAP GitHub support workflow for issues and discussions. Use when the user says "support", provides a GitHub issue/discussion number like "#2512", or asks to investigate a user report from talmolab/sleap. Scaffolds investigation folders, downloads posts with images, analyzes problems, and drafts friendly responses.

11

deepwiki-rs

sopaco

AI-powered Rust documentation generation engine for comprehensive codebase analysis, C4 architecture diagrams, and automated technical documentation. Use when Claude needs to analyze source code, understand software architecture, generate technical specs, or create professional documentation from any programming language.

25170

documentation-review

stacklok

Reviews documentation for factual accuracy

1194

specification-architect

adrianpuiu

A rigorous, traceability-first system that generates five interconnected architectural documents (blueprint.md, requirements.md, design.md, tasks.md, and validation.md) with complete requirements-to-implementation traceability. Use this skill when users need to architect systems, create technical specifications, or develop structured project documentation with guaranteed traceability.

1388

dbt-transformation-patterns

wshobson

Master dbt (data build tool) for analytics engineering with model organization, testing, documentation, and incremental strategies. Use when building data transformations, creating data models, or implementing analytics engineering best practices.

690

Search skills

Search the agent skills registry