mcpbeat

Explain Code

agnosticui/explain-code

Explain what code does in plain English

506 tokens
context cost
the whole folder, loaded on every use
1
files
instructions only
0
copies elsewhere
how many repositories repackaged it
822
stars on the repo
on the repository, not the skill itself

Install

one command, takes just this skill from the repository
npx skills add https://github.com/AgnosticUI/agnosticui --skill explain-code

The instruction itself

as written by the author

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.md to 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

How to use it

Copy the folder

Take agnosticui/explain-code from the repository into ~/.claude/skills for personal use, or into .claude/skills inside a project.

Check the name does not clash

The agent identifies a skill by the name field in its header. Two skills with the same name cannot sit side by side — one of them will be ignored.