explain-code

explain-code is a skill for Claude Code, Codex from usefulmove/enso. It costs 57 tokens per session (754 once invoked), scanned A, original, MIT.

A guide for explaining unfamiliar code to an engineer who is responsible for it.

In plain words
What is it for?
Use it to explain a subsystem from its purpose and inputs through its main flow, design choices, and outputs.
Why use it?
It builds a clear mental model of why the code exists, what it does, how information moves through it, and what could break without it.

Skill for Claude CodeCodex

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

Good fit Use it to explain a subsystem from its purpose and inputs through its main flow, design choices, and outputs.

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/usefulmove/enso/explain-code"><img src="https://agentmods.dev/badge/skills/usefulmove/enso/explain-code.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 57 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 754 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.00057 $0.00754
Opus 5.5 $0.00023 $0.00302
Sonnet 5.5 $0.00011 $0.00151
Haiku 4.5 $0.00006 $0.00075

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

Security

Grade A, and why

explain-code 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.

skills/explain-code/SKILL.md · 113 lines

How it starts

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

When to Use

Use this skill when the user needs to:

  • Understand code they're accountable for
  • Learn a new codebase or subsystem
  • Build a mental model before making changes

The Explanation Structure

Present code explanations in this order:

1. Purpose (Why)

  • What problem does this solve?
  • Who uses it and when?
  • What would break if it didn't exist?

2. High-Level Function (What)

  • One-sentence summary
  • Key inputs and outputs (concepts, not types)
  • Where it sits in the system

3. Data Flow (Visual)

  • ASCII or bullet diagram
  • Start from source (hardware, user, external system)
  • End with destination
  • Label boundary crossings (HTTP, WebSocket, function call)

4. Step-by-Step Walkthrough (How)

  • Main method/function flow
  • Key state transitions
  • What each step produces for the next

5. Key Design Decisions

  • Why this approach? What are the tradeoffs?
  • Optimizations and their conditions
  • Connect back to Purpose

Example

Input Code

// WebSocket handler that echoes messages back
class EchoServer : public websocketpp::server<websocketpp::config::asio> {
public:
    void on_message(connection_hdl hdl, message_ptr msg) {
        std::string payload = msg->get_payload();
        
        // Log incoming
        std::cout << "Received: " << payload << std::endl;
        
        // Echo back with prefix
        std::string response = "Echo: " + payload;
        send(hdl, response, websocketpp::frame::opcode::text);
    }
};

Explanation

1. Purpose EchoServer lets clients verify their WebSocket connection works by sending any message and receiving it back. Used during development and for connection health checks.

2. High-Level Function When a message arrives, log it, prepend "Echo: ", and send it back to the same client.

3. Data Flow

Client (browser/terminal)
    │
    │ WebSocket text frame
    ▼
EchoServer::on_message()
    │
    ├──► Console log (side effect)
    │
    └──► send() with modified payload
              │
              ▼
         Client receives response

Read the full file on GitHub · 113 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. 1mo ago First seen · 113 lines · 57 tokens per session scan A 375056bd446d

Subscribe to this mod's changes

explain-code is a skill published in the GitHub repository usefulmove/enso (2 stars, last pushed 4mo ago), licensed MIT. It adds 57 tokens to every session and 754 once invoked, about $0.0002 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

harness

A meta-skill for designing and maintaining a project harness: a coordinated set of specialist agents, skills, and project instructions. It defines their roles, connects them to the project, and updates the setup as the work changes.

revfactory/harness · 184 tokens

last30Days

Resolve "last30Days" to a concrete ISO date range relative to your run time — a rolling 30-day window ending today. Returns inclusive civil dates plus exact UTC instants so you have temporal context without computing dates by hand. Read-only: no writes, no network. Use before a "last 30 days" / trailing-month task…

chaitanyagiri/munder-difflin · 83 tokens

thisQuarter

Resolve "thisQuarter" to a concrete ISO date range relative to your run time — this quarter so far (quarter start → today). Returns inclusive civil dates plus exact UTC instants so you have temporal context without computing dates by hand. Read-only: no writes, no network. Use before a quarter-to-date task (QTD…

chaitanyagiri/munder-difflin · 78 tokens

thisWeek

Resolve "thisWeek" to a concrete ISO date range relative to your run time — this week so far (Monday → today). Returns inclusive civil dates plus exact UTC instants so you have temporal context without computing dates by hand. Read-only: no writes, no network. Use before a week-to-date task (this week's activity…

chaitanyagiri/munder-difflin · 77 tokens

evolve

A workflow for improving an existing setup that guides coding agents. It collects results and feedback, compares the current setup with its starting version, and records useful changes.

revfactory/harness · 184 tokens

miniapp

Build a tiny interactive HTML playground only when someone asks to see, play with, or step through a mechanism.

yc-software/qm · 25 tokens