/explain-code
Explain what code does in plain English
$ npx -y skills add agnosticui/agnosticui --skill explain-code --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
- Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
- You can call itInvoke it directly when you want it.
- Slash command
/explain-code
Context preview
The summary Claude sees to decide when to auto-load this skill.
Explain what code does in plain English
SKILL.md
explain-code.SKILL.mdname: explain-code
description: Explain what code does in plain English
disable-model-invocation: true
allowed-tools: Read, Grep, Glob
**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:** 1. Read `.claude/PROJECT_CONTEXT.md` to understand AgnosticUI's architecture
**Process:**
2. **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
3. **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?
4. **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
5. **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
Read more
name: explain-code description: Explain what code does in plain English disable-model-invocation: true allowed-tools: Read, Grep, Glob
**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:** 1. Read `.claude/PROJECT_CONTEXT.md` to understand AgnosticUI's architecture
**Process:**
2. **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
3. **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?
4. **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
5. **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
AgnosticUI Local (v2) is a CLI-based UI component library that copies components directly into your project. Works with AI tools, agent-driven UIs, and prompt-ready workflows.
Repo: agnosticui/agnosticui
Other skills on agnosticui.
- /check-accessibility
Review component for accessibility issues
Open skill - /fix-github-issue
Fix a GitHub issue by number. Use when asked to fix GitHub issues.
Open skill - /implement-ag-playbook
Implement a playbook from its PROMPT specification files. Supports both single-framework (PROMPT-REACT.md, etc.) and 3-framework (PROMPT-3-FRAMEWORKS.md) modes.
Open skill - /implement-github-feature
Design and implement a new feature or component from a GitHub issue. Use for net-new functionality, not bug fixes.
Open skill - /update-component-docs
Update component documentation when code changes
Open skill

