explain

explain is a skill for Claude Code, Codex from MinhThang1009/dotclaude. It costs 47 tokens per session (940 once invoked), scanned B, original, MIT.

A guide for explaining code, algorithms, or system architecture to someone who does not already know the subject.

In plain words
What is it for?
Use it to explain a file, function, algorithm, or architecture by examining its callers, related types, tests, and relevant history.
Why use it?
It builds understanding from the overall purpose to the important details, using surrounding code and tests to avoid incomplete explanations.

Skill for Claude CodeCodex

Part of the feature-dev plugin — 2 skills, 3 agents shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/minhthang1009/dotclaude/explain
Any agent
npx skills add MinhThang1009/dotclaude --skill explain
Clone the repo
git clone --depth 1 https://github.com/MinhThang1009/dotclaude

Made for: Claude Code, Codex.

Or install feature-dev, the plugin that ships this one along with the rest of its 2 skills, 3 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for explain

README.md
[![agentmods](https://agentmods.dev/badge/skills/minhthang1009/dotclaude/explain.svg)](https://agentmods.dev/skills/minhthang1009/dotclaude/explain)
Your own site
<a href="https://agentmods.dev/skills/minhthang1009/dotclaude/explain"><img src="https://agentmods.dev/badge/skills/minhthang1009/dotclaude/explain.svg" alt="Measured on agentmods" height="20"></a>
Per session 47 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 940 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00047 $0.00940
Opus 5 $0.00023 $0.00470
Sonnet 5 $0.00009 $0.00188
Haiku 4.5 $0.00005 $0.00094

Measured 5d ago against content hash 04b59fffb00a, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade B, and why

explain scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Strips warnings and disclaimersmediumAnti-refusal

Omitting safety caveats hides risk from the user and is a common jailbreak preamble.

- **Do not lecture**. Explain only what was asked, do not narrate the history of the language.
plugins/feature-dev/skills/explain/SKILL.md · 111 lines

How it starts

The opening of the file, as written. The whole thing — 111 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Skill: Explain code

You are called to explain code/algorithms/concepts to the user. Goal: the user understands why the code works the way it does, not just what it does.

Step 1: Identify the subject

Depending on $ARGUMENTS:

  • File path → explain that file
  • Function/class/symbol name → find with Grep, explain it
  • Open-ended question ("how does the auth system work") → explore the codebase, synthesize

Step 2: Read enough context

Do NOT read 1 file and then explain. Minimum:

  • The main file
  • Callers of this file/function (Grep the function name in the codebase)
  • Related types/interfaces
  • Corresponding tests (tests are often the best living documentation)
  • Git log for the file → is there any important historical context?

Step 3: Structure the explanation

Follow the inverted pyramid model (top-down):

1. One-sentence summary

"This code does X by doing Y."

2. The big picture (3-5 sentences)

  • Where does it live in the system?
  • Who calls it? What does it call?
  • When does it run? How often?

3. Go into the details

  • Walk through each important part
  • Each code block gets a short note on WHY, not repeating WHAT
  • Flag anything confusing or counter-intuitive

4. Concrete examples

  • For a specific input, trace through the code — what is the output?
  • Edge cases: empty input, large input, invalid input → behavior?

5. Pitfalls & gotchas

  • Are there any places that are easy to misunderstand?
  • Are there any implicit assumptions?
  • Are there any related TODO/FIXME items?

Step 4: Format

Depending on explanation length:

Short (< 5 sentences): write plain prose, no headings needed.

Medium (5-15 sentences): use bullets or 2-3 clear paragraphs.

Long (> 15 sentences or architectural explanation): use headings, for example:

## TL;DR
[1-2 sentences]

## Big picture
[Diagram if possible — use ASCII art or Mermaid]

## Details
### Part A: [name]
...

### Part B: [name]
...

## Trace example
Input: ...
Output: ...
[step-by-step]

## Notes
- ...

Read the full file on GitHub · 111 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 111 lines · 47 tokens per session scan B 04b59fffb00a

Subscribe to this mod's changes

explain is a skill published in the GitHub repository MinhThang1009/dotclaude (20 stars, last pushed 1mo ago), licensed MIT. It adds 47 tokens to every session and 940 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it B with 1 finding (strips warnings and disclaimers). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

hr-onboarding

A new-hire onboarding plan as a single page — first week schedule, buddy + manager intro, learning track, equipment checklist, and "you're set when…" outcomes. Use when the brief mentions "onboarding", "new hire", "first week plan", or "入职".

nexu-io/open-design · 62 tokens

book-mirror

Take any book (EPUB/PDF), produce a personalized chapter-by-chapter analysis. Each chapter is preserved in detail (The Chapter) and mirrored back to the reader's actual life (The Mirror) using brain context. The mirror observes and resonates — a friend pointing out parallels, NOT a consultant rearranging the reader's…

garrytan/gbrain · 138 tokens

miniapp

Build a tiny interactive HTML playground only when someone asks to see, play with, or step through a mechanism.

yc-software/qm · 25 tokens

eli5

Explain research, papers, or technical ideas in plain English with minimal jargon, concrete analogies, and clear takeaways. Use when the user says "ELI5 this", asks for a simple explanation of a paper or research result, wants jargon removed, or asks what something technically dense actually means.

companion-inc/feynman · 63 tokens

deck-course-module

暖纸背景 + Playfair, 左侧学习目标常驻, 含 MCQ 自测页.

nexu-io/html-anything · 25 tokens

best-practices

Searchable knowledge base of 152+ programming best practices across 30+ languages and frameworks. BM25-powered search over curated resources from industry leaders (Google, Airbnb, Uber, Mozilla, Shopify, OWASP).

dereknguyen269/programing-best-practices · 0 tokens