Agent skill

Explaining Code

by bartstc in bartstc/vite-ts-react-template

Explains code with visual diagrams and analogies. An agent skill from bartstc/vite-ts-react-template.

MITAuto-check passedTesting & QA

Install Explaining Code

skills CLI
$ npx skills add bartstc/vite-ts-react-template --skill explaining-code -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install bartstc/vite-ts-react-template explaining-code --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/bartstc/vite-ts-react-template.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/explaining-code .claude/skills/explaining-code && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
explaining-code
GitHub stars
122
Used in
2 other repos
Token cost
~154 tokens
SKILL.md length
60 words
Files
1
Skills in repo
7
Repo updated
First seen
Licence
MIT

At a glance

Explains code with visual diagrams and analogies. An agent skill from bartstc/vite-ts-react-template.

  • Works in 4 steps: Start with an analogy: Compare the code… → Draw a diagram: Use ASCII art to show… → Walk through the code: Explain… → …
  • Explaining how code works
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Teaching about a codebase

What it does

Explaining Code is an agent skill from bartstc/vite-ts-react-template. Explains code with visual diagrams and analogies. Use when explaining how code works, teaching about a codebase, or when the user asks "how does this work?"

Its SKILL.md is about 150 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Testing & QA, covering Diagrams. It works with React. The repository describes itself as: This project provides a basic dev setup intended for Single Page Application (SPA) development. It contains key tools, settings for seamless DX, and an demo app presenting good… The licence is MIT.

When your agent uses it

  • Explaining how code works
  • Teaching about a codebase
  • The user asks how does this work?

Example prompts

  • “how does this work?”
  • “Use the explaining-code skill to explain code with visual diagrams and analogies. An agent skill from bartstc/vite-ts-react-template”
  • “/explaining-code”

Workflow steps

4 steps, taken from the first numbered list in SKILL.md.

  1. Start with an analogy: Compare the code to something from everyday life
  2. Draw a diagram: Use ASCII art to show the flow, structure, or relationships
  3. Walk through the code: Explain step-by-step what happens
  4. Highlight a gotcha: What's a common mistake or misconception?

What it can do on your machine

Read from SKILL.md and the folder at commit 6aa5c9c. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Explaining Code loads about 154 tokens when it runs. Until then it costs about 43 tokens; SKILL.md has 60 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~43
When it runs · the whole SKILL.md, loaded when a task matches
~154

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from bartstc/vite-ts-react-template at commit 6aa5c9c, republished under its MIT licence (© bartstc). 60 words, ~154 tokens.

Download SKILL.mdSave it as .claude/skills/explaining-code/SKILL.md (or your agent's skills folder).
name
explaining-code
description
Explains code with visual diagrams and analogies. Use when explaining how code works, teaching about a codebase, or when the user asks "how does this work?"

When explaining code, always include:

  1. Start with an analogy: Compare the code to something from everyday life
  2. Draw a diagram: Use ASCII art to show the flow, structure, or relationships
  3. Walk through the code: Explain step-by-step what happens
  4. Highlight a gotcha: What's a common mistake or misconception?

Keep explanations conversational. For complex concepts, use multiple analogies.

© bartstc, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .agents/skills/explaining-code of bartstc/vite-ts-react-template.

Open the folder on GitHubat commit 6aa5c9c

Used in 2 other repositories

We found 5 copies of this SKILL.md (exact, near-identical or edited) in other folders, from 2 other GitHub owners. This page covers the copy in bartstc/vite-ts-react-template, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Explaining Code next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Explaining Code compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Explaining Code this skillbartstc/vite-ts-react-template1222 repos~154Automated safety check: PassMIT
Update Web Assetsgarfiec/Librechat-Mobile112—~1.8kAutomated safety check: NotesMIT
Reactflow Expertcuriositech/some_claude_skills243—~2.1kAutomated safety check: NotesMIT
Evolutionary Modular Architecturetech-leads-club/agent-skills7k—~3.7kAutomated safety check: PassCC-BY-4.0
Markstream Custom ComponentsSimon-He95/markstream-vue3k—~955Automated safety check: PassMIT
Technology Stack Blueprint Generatorgithub/awesome-copilot40k1 repos~2.5kAutomated safety check: PassMIT

Similar skills

  • Update Web Assets

    garfiec/Librechat-Mobile

    Update the third-party JavaScript vendored into the app for the artifact, diagram, and math WebViews (KaTeX, mermaid, marked, highlight.js, Tailwind, Babel, React).

    112 GitHub stars~1.8k tokensUpdated today
    Frontend & DesignAuto-check: notes
  • Reactflow Expert

    curiositech/some_claude_skills

    Builds DAG visualizations using ReactFlow v12 with custom nodes, ELKjs auto-layout, Zustand state management, and live state updates via WebSocket.

    243 GitHub stars~2.1k tokensUpdated 1 mo ago
    Frontend & DesignAuto-check: notes
  • Evolutionary Modular Architecture

    tech-leads-club/agent-skills

    Guides design of modular-monolith platforms with DDD, flat-by-aggregate modules, anti-corruption layers, outbox events and resilience, plus an architecture document with SVG diagrams.

    7k GitHub stars~3.7k tokensUpdated 17 days ago
    DevelopmentAuto-check passed
  • Markstream Custom Components

    Simon-He95/markstream-vue

    Override built-in Markstream node renderers and add trusted custom tags across Vue, React, Svelte, and Angular.

    3k GitHub stars~955 tokensUpdated 2 days ago
    DevelopmentAuto-check passed
  • Official

    Comprehensive technology stack blueprint generator that analyzes codebases to create detailed architectural documentation.

    40k GitHub starsUsed in 1 repo~2.5k tokens
    DevelopmentAuto-check passed
  • Antigravity Manager

    Draculabo/AntigravityManager

    Comprehensive guide to Antigravity Manager architecture, workflows, and development.

    2.4k GitHub stars~793 tokensUpdated today
    Frontend & DesignAuto-check passed

More from bartstc/vite-ts-react-template

  • GitHub Actions Templates

    bartstc/vite-ts-react-template

    Create production-ready GitHub Actions workflows for automated testing, building, and deploying applications.

    122 GitHub starsUsed in 14 repos~1.9k tokens
    Auto-check passed
  • Commit Work

    bartstc/vite-ts-react-template

    Create high-quality git commits: review/stage intended changes, split into logical commits, and write clear commit messages (including Conventional Commits).

    122 GitHub starsUsed in 3 repos~623 tokens
    Auto-check passed
  • Playwright Page Objects

    bartstc/vite-ts-react-template

    A skill your agent uses when creating page objects or refactoring Playwright E2E tests for better maintainability with Page Object Model patterns.

    122 GitHub stars~1k tokensUpdated yesterday
    Auto-check: notes
  • Writing Spec

    bartstc/vite-ts-react-template

    Collaboratively write a feature spec with the developer. An agent skill from bartstc/vite-ts-react-template.

    122 GitHub stars~3.4k tokensUpdated yesterday
    Auto-check passed
  • Building Blocks

    bartstc/vite-ts-react-template

    Frontend building block catalog — typed patterns for components, hooks, queries, mutations, stores, and models.

    122 GitHub stars~2.1k tokensUpdated yesterday
    Auto-check passed
  • Test Building Blocks

    bartstc/vite-ts-react-template

    Test building block catalog — typed patterns for Storybook play-function tests, Vitest hook tests, Vitest unit tests, MSW handlers, and test data fixtures.

    122 GitHub stars~1.5k tokensUpdated yesterday
    Auto-check passed

Works with

Questions about Explaining Code

What does Explaining Code do?

Explains code with visual diagrams and analogies. An agent skill from bartstc/vite-ts-react-template. Explaining Code is an agent skill from bartstc/vite-ts-react-template. Explains code with visual diagrams and analogies.

When should I use Explaining Code?

Explaining Code fits situations like: explaining how code works; teaching about a codebase; the user asks how does this work?.

How do I install Explaining Code in Claude Code?

Run `npx skills add bartstc/vite-ts-react-template --skill explaining-code -a claude-code`. Or copy the skill folder (.agents/skills/explaining-code in bartstc/vite-ts-react-template) into .claude/skills/explaining-code in your project. Claude Code loads it when a task matches its description.

How do I install Explaining Code in Codex?

Run `npx skills add bartstc/vite-ts-react-template --skill explaining-code -a codex`. Or copy the skill folder (.agents/skills/explaining-code in bartstc/vite-ts-react-template) into .agents/skills/explaining-code in your project. Codex loads it when a task matches its description.

Can I use Explaining Code in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add bartstc/vite-ts-react-template --skill explaining-code -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/explaining-code, .gemini/skills/explaining-code, .github/skills/explaining-code and .opencode/skills/explaining-code in your project.

What does Explaining Code need to run?

SKILL.md names no scripts, command-line tools or credentials: Explaining Code is instructions for the agent only.

Does Explaining Code access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Explaining Code safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Explaining Code use?

Explaining Code is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Explaining Code use?

About 154 tokens (SKILL.md is roughly 616 characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Explaining Code?

Skills that share tags, products or a category with Explaining Code: Update Web Assets (garfiec/Librechat-Mobile, 112 stars), Reactflow Expert (curiositech/some_claude_skills, 243 stars), Evolutionary Modular Architecture (tech-leads-club/agent-skills, 7k stars) and Markstream Custom Components (Simon-He95/markstream-vue, 3k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Explaining Code?

bartstc (a GitHub user) maintains it in bartstc/vite-ts-react-template, which has 122 GitHub stars. The repository holds 7 skills in this directory. The repository was last updated on October 6, 2026.

Source: bartstc/vite-ts-react-template on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.