docent-explain

docent-explain is a skill for Claude Code, Codex from benelser/docent. It costs 96 tokens per session (2,377 once invoked), scanned A, original, MIT.

A command that turns a repository, pull request, file, URL, or essay into a narrated explainer film. It can survey the subject, create a treatment and specification, generate speech and clips, and render the result.

In plain words
What is it for?
Use it to make films explaining a subject, review a pull request as a film, or create an architecture or general explainer focused on a chosen subsystem.
Why use it?
It packages a technical subject into a visual explanation, which can make a codebase, change, or written work easier to review or understand.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Codex.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is bun packages/agent/scripts/treatment.ts <id>.

Good fit Use it to make films explaining a subject, review a pull request as a film, or create an architecture or general explainer focused on a chosen subsystem.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/benelser/docent
agentmods
npx agentmods add skills/benelser/docent/docent-explain

Made for: Claude Code, Codex.

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 docent-explain

README.md
[![agentmods](https://agentmods.dev/badge/skills/benelser/docent/docent-explain/github.svg)](https://agentmods.dev/skills/benelser/docent/docent-explain)
Your own site
<a href="https://agentmods.dev/skills/benelser/docent/docent-explain"><img src="https://agentmods.dev/badge/skills/benelser/docent/docent-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 docent-explain

Your own site · 80×15
<a href="https://agentmods.dev/skills/benelser/docent/docent-explain"><img src="https://agentmods.dev/badge/skills/benelser/docent/docent-explain.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 96 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,377 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.00096 $0.02377
Opus 5.5 $0.00038 $0.00951
Sonnet 5.5 $0.00019 $0.00475
Haiku 4.5 $0.00010 $0.00238

Measured 2mo ago against content hash c1f45324eb07, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

docent-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 2mo 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.

packages/agent/skills/docent-explain/SKILL.md · 196 lines

How it starts

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

docent-explain — the end-to-end docent skill

You are running the entire docent cascade against a subject the user just named: survey → treatment → spec → tts → clips → render → open. This is the flagship skill; the other docent skills are sub-steps of this one. Reach for those only when the user explicitly wants to pause between stages.

Arguments

/docent-explain <subject> [--mode pr|ar|ex] [--subsystem X] [--pr N] [--id X] [--scale S] [--no-open]

  • <subject> — a repo path, a github URL, a single file, a wiki directory, a blog URL, or an essay. The first positional is the subject.
  • --mode — pr (PR review), ar (architecture review), ex (explainer). Inferred from the subject when omitted.
  • --subsystem X — for ar, scope to one subsystem.
  • --pr N — for pr, the pull-request number.
  • --id X — override the auto-derived film id.
  • --scale S — render scale. Default 1. Pass 0.5 for fast turnarounds.
  • --no-open — render without opening the result in the system player.

What to do

  1. Pre-flight. Confirm the environment is ready by checking that the agent CLI (claude or codex), bun, and ffmpeg are on PATH. If anything obvious is missing, suggest /docent-doctor and stop. Do not run doctor here implicitly — it has its own skill.

  2. Find the right surface, then survey. The fetcher behind docent survey does one thing — fetch the URL you give it and report what came back. It does not know that arXiv's /abs/ is a stub or that a paper's full text lives at /html/ or /pdf/. That intelligence is yours — you are the agent. Walk the surfaces deliberately:

    • If the user passed a URL that looks like an abstract, stub, or landing page (arxiv.org/abs/, a paper's homepage, a wiki article's "main" page), assume there is a richer surface and try it first. Common patterns worth trying in order:
      • arxiv.org/abs/<id> → try arxiv.org/html/<id> (rendered LaTeX, ~40k chars) then arxiv.org/pdf/<id> (PDF via pdftotext).
      • biorxiv.org/content/<doi> → try the same URL with .full appended.
      • A paper homepage → look for a "PDF" or "Full text" link and use that URL.
    • Always do an exploratory fetch first.
      docent survey <url> --mode ex --id <slug>
      
      The fetcher writes analysis/<id>.source.md and logs a character count. If the count is below ~5 000 chars and you have an alternative surface, stop the in-progress survey, swap the URL, and re-run. Surveying a stub returns a film about a stub.
    • PDFs work natively. Pass https://…/whatever.pdf directly; the engine pipes it through pdftotext. No special invocation.
    • When you've exhausted surfaces and the source is still thin, don't paper over it — say so in the survey explicitly and narrow the film's claim to what the text actually supports.

Read the full file on GitHub · 196 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. 2mo ago First seen · 196 lines · 96 tokens per session scan A c1f45324eb07

Subscribe to this mod's changes

docent-explain is a skill published in the GitHub repository benelser/docent (8 stars, last pushed 5mo ago), licensed MIT. It adds 96 tokens to every session and 2,377 once invoked, about $0.0004 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

docent-explain compared with skills from other repositories

docent-explain next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
docent-explainbenelser/docentSkill85mo agoMITA96Claude Code, Codex
video-hyperframesnexu-io/html-anythingSkill9.5ktodayApache-2.0A22Claude Code, Codex
videoRemocn/remocnSkill1.7kyesterdayMITA96Claude Code
studioRemocn/remocnSkill1.7kyesterdayMITA72Claude Code
gh-issueapache/skywalking-banyandbSkill355yesterdayApache-2.0A91Claude Code
gh-pull-requestapache/skywalking-banyandbSkill355yesterdayApache-2.0A37Claude Code
remotion-videoericrisco/rsc-harnessSkill5293d agoMITA116Claude Code, Codex