explainme

explainme is a command for Claude Code from jdanigo/hydraia. It costs 41 tokens per session (516 once invoked), scanned A, original, MIT.

A command that creates a self-contained interactive HTML map explaining a codebase, subsystem, or pull request. It grounds the map in the code's actual components and connections, then validates the result before delivery.

In plain words
What is it for?
Use it to produce architecture, workflow, sequence, data-flow, or lifecycle diagrams for onboarding, code review, or answering how a system works.
Why use it?
It helps explain unfamiliar code without relying on hand-drawn or guessed relationships. Guided chapters and source links make the explanation easier to verify and follow.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Part of the hydraia plugin — 52 skills, 17 commands, 27 agents, 4 hooks shipped together

Good fit Use it to produce architecture, workflow, sequence, data-flow, or lifecycle diagrams for onboarding, code review, or answering how a system works.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/jdanigo/hydraia/explainme
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.

Clone the repo
git clone --depth 1 https://github.com/jdanigo/hydraia

Made for: Claude Code.

Or install hydraia, the plugin that ships this one along with the rest of its 52 skills, 17 commands, 27 agents, 4 hooks.

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 explainme

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/jdanigo/hydraia/explainme"><img src="https://agentmods.dev/badge/commands/jdanigo/hydraia/explainme.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 41 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 516 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.00041 $0.00516
Opus 5 $0.00020 $0.00258
Sonnet 5 $0.00008 $0.00103
Haiku 4.5 $0.00004 $0.00052

Measured today against content hash 01287df3cb5d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

explainme 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 today.

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.

commands/explainme.md · 32 lines

What it actually says

Invoke the explainme skill to produce a visual, verifiable explanation of the code in question. Follow the skill's Hydraia grounding first:

  1. Resolve the scope from $ARGUMENTS (a subsystem, a path, a PR diff, or a "how does X work" question). Default to the current repo's headline subsystem if unscoped.
  2. Query codegraph for the real structure — components/modules, call edges, entry points, storage/transports, blast radius. This is the topology source; do not guess it.
  3. Pick the diagram type that fits (architecture / workflow / sequence / dataflow / lifecycle) — node skills/explainme/bin/archify.mjs guide "<scenario>" --json if unsure.
  4. Author the typed IR from the verified codegraph nodes/edges; set SRC source-evidence from real file:line so nodes are click-through. Attach up to ~5 guided-walkthrough views chapters framing the onboarding path (request path / auth flow / data lineage / lifecycle).
  5. Validate then deliver, running the CLI from the skill directory: cd skills/explainme && node bin/archify.mjs validate <type> <in.json> --quality showcase --json then node bin/archify.mjs deliver <type> <in.json> <out.html> --json. Consume the diagnostics[] repair receipts in a bounded loop (change only the diagnosed subject, at most one geometry control per repair, stop after two non-improving rounds).
  6. Write the artifact under the resolved artifacts base (<base>/explain/<slug>.html) and hand the user the path. Do NOT run the full build pipeline — this is an explanation artifact, not a code change; no spec/plan/review gates apply.

Delegate the authoring to the explainme agent (Sonnet) when available; the deterministic CLI carries the correctness. Requires Node ≥ 18 (see /hydraia:doctor).

Request: $ARGUMENTS

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. today First seen · 32 lines · 41 tokens per session scan A 01287df3cb5d

Subscribe to this mod's changes

explainme is a command published in the GitHub repository jdanigo/hydraia (8 stars, last pushed today), licensed MIT. It adds 41 tokens to every session and 516 once invoked, about $0.0002 per session on Opus 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-09-12.