explain-code
Provides human-readable explanations of code functionality and architecture.
Install
mkdir -p .claude/skills/explain-code && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/9103" && unzip -o skill.zip -d .claude/skills/explain-code && rm skill.zipInstalls to .claude/skills/explain-code
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 what code does in plain EnglishKey capabilities
- →Locate and read code files
- →Identify core components, framework implementations, or utilities
- →Use Grep/Glob to find related files
- →Explain high-level behavior of code
- →Describe key logic, algorithms, and patterns
- →Provide AgnosticUI-specific context
How it works
The skill reads specified code, identifies its context within AgnosticUI's architecture, and then explains its function, logic, and design choices.
Inputs & outputs
When to use explain-code
- →Understanding component logic
- →Explaining CSS-first implementations
- →Onboarding to codebases
About this skill
Usage: /explain-code PATH_OR_DESCRIPTION
Examples:
/explain-code v2/lib/src/components/Button.ts/explain-code the button ripple effect/explain-code design token system
Explain: $ARGUMENTS
Setup:
- Read
.claude/PROJECT_CONTEXT.mdto understand AgnosticUI's architecture
Process:
-
Locate and read the code:
- Identify if it's a core component, framework implementation, or utility
- Read the specified file(s)
- Use Grep/Glob to find related files if needed:
- If explaining core component, show framework usage examples
- If explaining framework story, reference core component
- If explaining utility, show where it's used
-
Understand the context:
- Where does this fit in AgnosticUI's architecture?
- Is it framework-agnostic or framework-specific?
- Does it use design tokens or CSS custom properties?
- Are there related files in other frameworks?
-
Explain clearly:
- What it does (high level, user-facing behavior)
- How it works (key logic, algorithms, patterns)
- Why it's structured this way (architectural decisions)
- AgnosticUI-specific context:
- How it fits the CSS-first approach
- Framework-agnostic vs framework-specific aspects
- Design token usage
- Accessibility considerations
- Common usage patterns with examples
- Edge cases or gotchas to be aware of
-
Provide helpful context:
- Show where it's used (examples, stories, playgrounds)
- Note framework differences if applicable
- Link to related components or utilities
- Reference relevant playbooks if they exist
Keep explanations:
- Clear and jargon-free (or explain jargon)
- Organized from high-level to details
- Focused on understanding, not just describing
- Contextualized within AgnosticUI's multi-framework architecture
When not to use it
- →When the explanation should not be jargon-free
- →When the explanation should not be contextualized within AgnosticUI's architecture
Limitations
- →Explanations must be jargon-free or explain jargon
- →Explanations must be contextualized within AgnosticUI's multi-framework architecture
How it compares
This skill provides a structured, context-aware explanation of code within the AgnosticUI framework, unlike a generic code explanation that lacks architectural context.
Compared to similar skills
explain-code side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| explain-code (this skill) | 2 | 6mo | No flags | Intermediate |
| schema-markup | 10 | 6mo | No flags | Intermediate |
| coding-standards | 7 | 2mo | Review | Intermediate |
| antfu | 6 | 3mo | Review | Intermediate |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by AgnosticUI
View all by AgnosticUI →You might also like
schema-markup
davila7
When the user wants to add, fix, or optimize schema markup and structured data on their site. Also use when the user mentions "schema markup," "structured data," "JSON-LD," "rich snippets," "schema.org," "FAQ schema," "product schema," "review schema," or "breadcrumb schema." For broader SEO issues, see seo-audit.
coding-standards
affaan-m
适用于TypeScript、JavaScript、React和Node.js开发的通用编码标准、最佳实践和模式。
antfu
antfu
Anthony Fu's opinionated tooling and conventions for JavaScript/TypeScript projects. Use when setting up new projects, configuring ESLint/Prettier alternatives, monorepos, library publishing, or when the user mentions Anthony Fu's preferences.
method-shorthand-jsdoc
EpicenterHQ
Move helper functions into return objects using method shorthand for proper JSDoc preservation. Use when factory functions have internal helpers that should expose documentation to consumers, or when hovering over returned methods shows no JSDoc.
formatting-standards
crmagz
Formatting and linting standards using GTS, ESLint, and Prettier. Use when writing or formatting TypeScript code in this project.
jsdoc
shift-editor
Add or revise source-level JSDoc for Shift APIs. Use this skill before writing or editing documentation comments for exported classes, methods, constructors, domain data structures, render frames, reactive state, or any API where caller intent, side effects, lifetime, ownership, or nullability are e