explain

explain is a skill for Claude Code from harnessprotocol/harness-kit. It costs 95 tokens per session (2,215 once invoked), scanned A, original, Apache-2.0.

A structured code explainer for understanding files, folders, functions, classes, or broader code flows in an unfamiliar project.

In plain words
What is it for?
Use it to walk through a file or directory, understand a named function or class, or trace a cross-cutting process such as payment handling or webhook dispatch.
Why use it?
It maps how code fits together and adjusts the explanation to the size of the subject, so you can find where to begin.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions CLAUDE.md.

Part of the explain plugin — 1 skill shipped together

Good fit Use it to walk through a file or directory, understand a named function or class, or trace a cross-cutting process such as payment handling or webhook dispatch.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/harnessprotocol/harness-kit/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 harnessprotocol/harness-kit --skill explain
Clone the repo
git clone --depth 1 https://github.com/harnessprotocol/harness-kit

Made for: Claude Code.

Or install explain, the plugin that ships this one along with the rest of its 1 skill.

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/harnessprotocol/harness-kit/explain/github.svg)](https://agentmods.dev/skills/harnessprotocol/harness-kit/explain)
Your own site
<a href="https://agentmods.dev/skills/harnessprotocol/harness-kit/explain"><img src="https://agentmods.dev/badge/skills/harnessprotocol/harness-kit/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 explain

Your own site · 80×15
<a href="https://agentmods.dev/skills/harnessprotocol/harness-kit/explain"><img src="https://agentmods.dev/badge/skills/harnessprotocol/harness-kit/explain.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 95 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,215 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Anti-Refusal · line 160
    Skill instructs the agent to omit warnings, disclaimers, or ethical commentary. Stripping safety caveats hides risk from the user and is a common jailbreak preamble.
    Fix: Remove instructions that suppress warnings, disclaimers, or ethical commentary. Let the agent surface safety-relevant caveats to the user.
How audits are shown
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.00095 $0.02215
Opus 5.5 $0.00038 $0.00886
Sonnet 5.5 $0.00019 $0.00443
Haiku 4.5 $0.00010 $0.00221

Measured 1mo ago against content hash c2bf0b98b232, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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/explain/skills/explain/SKILL.md · 219 lines

How it starts

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

Structured Code Explainer

Overview

Produce layered explanations of code — files, directories, functions, classes, or cross-cutting concepts. Designed for developers working in unfamiliar parts of a codebase.

Core principles:

  1. Adaptive depth. A single function gets a focused deep-dive. A directory gets a map first, then the user picks where to zoom.
  2. Project-aware. If the project has a CLAUDE.md, reference its Architecture section to ground explanations in the project's own terminology.
  3. Conversation output. Explanations go to the conversation, not files. The user can ask to save if they want.

When to Use

User types /explain followed by:

  • File path → explain that file
  • Directory path → map the directory structure, then explain key components
  • Function or class name → find the definition, explain it in context
  • Natural language concept → search the codebase for relevant files and explain the concept/flow

Invocation Examples

/explain src/auth/middleware.ts
/explain the payment processing flow
/explain src/services/
/explain OrderProcessor.process
/explain how webhooks get dispatched

Workflow Order (MANDATORY)

You MUST follow this order. No skipping steps.


Step 1: Parse Input

Classify the argument:

Type Detection Example
File path Has file extension or resolves to a file src/auth/middleware.ts
Directory path Resolves to a directory (or ends with /) src/services/
Symbol name Looks like a function, class, or method (CamelCase, dot notation, ::) OrderProcessor.process
Concept Natural language, doesn't resolve to a file or directory the payment processing flow

If ambiguous (e.g., auth could be a directory or a concept), check the filesystem first. If it resolves to a file or directory, treat it as that. Otherwise, treat it as a concept.


Step 2: Gather Context

For a file path:

  1. Read the target file
  2. Identify imports/dependencies — read the most important ones (up to 5 files)
  3. Search for callers — search for the filename or its key exports across source files in the codebase (filter to relevant file types like *.ts, *.py, *.go, etc. to avoid noise from docs, tests, and build output)
  4. Limit total files read to ~10 to stay focused

Read the full file on GitHub · 219 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. 1mo ago First seen · 219 lines · 95 tokens per session scan A c2bf0b98b232

Subscribe to this mod's changes

explain is a skill published in the GitHub repository harnessprotocol/harness-kit (10 stars, last pushed today), licensed Apache-2.0. It adds 95 tokens to every session and 2,215 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

Other skills, from other repositories

learn-from-fix

Capture Elixir/Ecto/LiveView lessons and Hex API rules. Use after corrections or when asked to document learning, record a lesson, prevent a fixed mistake, or remember package guidance with --library.

oliver-kriska/claude-elixir-phoenix · 46 tokens

elixir-idioms

OTP/BEAM patterns and Elixir idioms — GenServer, Supervisor, Task, Registry, pattern matching, with chains, pipes. Use when designing processes or debugging BEAM issues.

oliver-kriska/claude-elixir-phoenix · 44 tokens

examples

Provide Phoenix, LiveView, Ecto, OTP, or Oban examples. Use when asked for sample code, a walkthrough, a proper implementation, or expected workflow output. Pair with domain skills. NOT for debugging, direct changes, best-practice advice, or audits.

oliver-kriska/claude-elixir-phoenix · 57 tokens

learn

Guided, hands-on course teaching architects how to use Codex or Claude Code — six short modules, each built around an exercise on a bundled sandbox project (a fictional Brooklyn art museum expansion). Resumable across sessions via PROGRESS.md. Use when the user runs $learn or /as:learn, says they're new to AI-assisted…

AlpacaLabsLLC/skills-for-architects · 80 tokens

intro

Walk through the Elixir/Phoenix plugin commands, workflow, and features in 6 interactive sections. Use when a new user wants to learn what the plugin offers or needs a refresher on available commands.

oliver-kriska/claude-elixir-phoenix · 44 tokens

architecture-knowledge

Explain US architecture professional-practice terms, phases, deliverables, roles, delivery methods, AIA contract families, CSI documentation systems, or NCS at a high level. Use for questions such as “what is a CD set?” or “what does 50% CDs mean?”; do not use for code/jurisdiction, outline-spec, agreement-scope, or…

AlpacaLabsLLC/skills-for-architects · 83 tokens