explain

A command for explaining code, programming concepts, and how systems behave. It adjusts the explanation to a chosen level and can present it as text, examples, or an interactive explanation.

In plain words
What is it for?
Use it to understand code, architecture, framework concepts, or other technical subjects. For example, it can explain React Hooks at a basic, intermediate, or advanced level.
Why use it?
It helps turn complex code or system behavior into explanations suited to the reader's knowledge. This is useful when documentation or knowledge transfer is needed.

Command

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 commands/drag88/claude-dev-framework/explain
Clone the repo
git clone --depth 1 https://github.com/drag88/claude-dev-framework
Per session 14 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 321 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00014 $0.00321
Opus 5 $0.00007 $0.00161
Sonnet 5 $0.00003 $0.00064
Haiku 4.5 $0.00001 $0.00032

Measured yesterday against content hash 9f8035b3c16e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

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 yesterday.

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/explain.md · 44 lines

What it actually says

/cdf:explain - Code and Concept Explanation

Triggers

  • Code understanding and documentation requests for complex functionality
  • System behavior explanation needs for architectural components
  • Educational content generation for knowledge transfer
  • Framework-specific concept clarification requirements

Usage

/cdf:explain [target] [--level basic|intermediate|advanced] [--format text|examples|interactive] [--context domain]

Behavioral Flow

  1. Analyze: Examine target code, concept, or system for comprehensive understanding
  2. Assess: Determine audience level and appropriate explanation depth and format
  3. Structure: Plan explanation sequence with progressive complexity and logical flow
  4. Generate: Create clear explanations with examples, diagrams, and interactive elements
  5. Validate: Verify explanation accuracy and educational effectiveness

Key behaviors:

  • Adaptive explanation depth based on audience and complexity
  • Use judgement on conventions already in the repo; delegate via /cdf:task with role framing only when multi-file fan-out is warranted.

Examples

/cdf:explain react-hooks --level intermediate --context react

Boundaries

Will:

  • Provide clear, comprehensive explanations with educational clarity
  • Generate framework-specific explanations grounded in official documentation

Will Not:

  • Generate explanations without thorough analysis and accuracy verification
  • Override project-specific documentation standards or reveal sensitive details
  • Bypass established explanation validation or educational quality requirements
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. yesterday First seen · 44 lines · 14 tokens per session scan A 9f8035b3c16e

Subscribe to this mod's changes

explain is a command published in the GitHub repository drag88/claude-dev-framework (2 stars, last pushed 1mo ago), licensed MIT. It adds 14 tokens to every session and 321 once invoked, about $0.0001 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-08-31.