digest:explain

digest:explain is a skill for Claude Code from shdennlin/agent-plugins. It costs 83 tokens per session (885 once invoked), scanned A, original, MIT.

A command for explaining unfamiliar existing code, including how it works, why it was designed that way, or where a bug came from. It combines code reading with the project’s version history.

In plain words
What is it for?
Use it to explain a file, module, function, directory, bug, or the findings from the current investigation to a chosen audience.
Why use it?
It helps a developer understand current behavior and design decisions without reconstructing the history alone. The result is a self-contained HTML explainer with diagrams.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the digest plugin — 3 skills, 3 commands shipped together

Good fit Use it to explain a file, module, function, directory, bug, or the findings from the current investigation to a chosen audience.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/shdennlin/agent-plugins/explain
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.

Any agent
npx skills add shdennlin/agent-plugins --skill explain
Clone the repo
git clone --depth 1 https://github.com/shdennlin/agent-plugins

Made for: Claude Code.

Or install digest, the plugin that ships this one along with the rest of its 3 skills, 3 commands.

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 digest:explain

README.md
[![agentmods](https://agentmods.dev/badge/skills/shdennlin/agent-plugins/explain/github.svg)](https://agentmods.dev/skills/shdennlin/agent-plugins/explain)
Your own site
<a href="https://agentmods.dev/skills/shdennlin/agent-plugins/explain"><img src="https://agentmods.dev/badge/skills/shdennlin/agent-plugins/explain/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for digest:explain

Your own site · 80×15
<a href="https://agentmods.dev/skills/shdennlin/agent-plugins/explain"><img src="https://agentmods.dev/badge/skills/shdennlin/agent-plugins/explain.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 83 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 885 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00083 $0.00885
Opus 5.5 $0.00033 $0.00354
Sonnet 5.5 $0.00017 $0.00177
Haiku 4.5 $0.00008 $0.00089

Measured 5d ago against content hash 61c05761e816, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

digest:explain scanned grade A with 0 findings 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/digest/skills/explain/SKILL.md · 30 lines

How it starts

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

Explain

Explain code or a change. Examples: $explain src/auth/, $explain "why saga here?", $explain #42, $explain feat/auth --print.

Every flag and target form is listed by ../../scripts/classify-target.sh --help (relative to this directory); that help is the single list. In short: -f/--for <audience>, -t/--teach, -p/--print, -a/--as <kind>. Every target writes a self-contained HTML explainer to the project root (explain-<slug>-<YYYY-MM-DD>.html) with a one-paragraph conclusion; --print writes nothing and answers in chat.

Teach mode

With --teach: read only, in chat, no files, no command with side effects (an existing test or a read-only command is fine). Use the named target; with none, apply the empty-target rule below.

  1. Infer the reader's purpose and background from the conversation and -f; pick one to three concepts that help them review, debug or understand the work.
  2. Read the diff, code or findings; read or run (if read-only) a test or one example to follow the user's action to its observable result. Check history for the rationale when it matters and label unsupported rationale as inference; for an external standard, use its authoritative source to separate its rules from the project's choices.
  3. Open with a short plain-language definition tied to this change; show one test, example or observation and what a mistake would look like; say whether the evidence was read or executed; add a small diagram only if it helps. Expand in follow-ups.

Process

  1. Classify with the script. Run ../../scripts/classify-target.sh with the raw arguments on stdin. It prints JSON (audience, teach, print, forced, target, kind, slug, resolved_line, branch, base, on_base, diff_empty, gh_ok). Never classify the target yourself. Print resolved_line first.
  2. Empty target, first match wins: the conversation holds a finding → conversation mode (inline: read ../../templates/html-explainer.md, write the page, check it with ../../scripts/check-explainer.sh <file> --kind state and fix what it reports); else on_base is false, base is set and diff_empty is false → explain the current branch against its base; else print Nothing to explain from this conversation yet. Pass a path, symbol, question, #PR, or branch: /digest:explain <target> and stop.
  3. pr with gh_ok false: print gh is unavailable or not logged in, so PR #<n> cannot be read. Pass the branch name instead: /digest:explain <branch> and stop.
  4. Otherwise dispatch the explain agent. Output mode is print when print is true, else html.

Read the full file on GitHub · 30 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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 Changed · -12 lines · -36 tokens per session 61c05761e816
  2. 3mo ago First seen · 42 lines · 119 tokens per session scan A 600ddf4637c1

Subscribe to this mod's changes

digest:explain is a skill published in the GitHub repository shdennlin/agent-plugins (3 stars, last pushed 5d ago), licensed MIT. It adds 83 tokens to every session and 885 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

digest:explain compared with skills from other repositories

digest:explain next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
digest:explainshdennlin/agent-pluginsSkill35d agoMITA83Claude Code
systematic-debuggingopen-metadata/OpenMetadataSkill16ktodayApache-2.0A37Claude Code
log-error-digestzebbern/claude-code-guideSkill4.7ktodayMITA71Claude Code, Codex
observability-audit-sessionsIBM/mcp-context-forgeSkill4.9ktodayApache-2.0A64Claude Code, Codex
cwv-optimizeradobe/skillsSkill342todayApache-2.0A112Claude Code
ci-fixersipyourdrink-ltd/bernsteinSkill1.2kyesterdayApache-2.0A15Claude Code, Codex
diagnosing-missing-recordingsPostHog/posthogSkill41ktodaynoneA76Claude Code, Codex