Skip to content
Development
Skill

/explain-code

Explain what code does in plain English

From plugin
agnosticui
8336 skills

Claude Code

$ npx -y skills add agnosticui/agnosticui --skill explain-code --agent claude-code

SKILL.md

explain-code.SKILL.md
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
Read more
@agnosticui
Ships withagnosticui

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.

Stars on GitHub

Momentum

stars in total
833
Star history of agnosticui/agnosticui on GitHub, a chart by star-history.com

Other skills on agnosticui.

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills11d309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc12d293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react2d252k
@facebook@facebookInstall Skill

Questions about explain-code.

Which coding agents can use explain-code?
explain-code installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.