explain-diff-html

explain-diff-html is a skill for Claude Code, Codex from koaning/wigglystuff. It costs 34 tokens per session (892 once invoked), scanned A, original, MIT.

A guide for producing a self-contained interactive HTML explanation of a code change, branch, or pull request. It covers the surrounding system, the changed area, and the reasoning behind the change.

In plain words
What is it for?
Use it when someone asks for a detailed, interactive explanation of a diff, branch, or pull request.
Why use it?
It turns a difficult-to-follow code difference into a structured document that explains both context and behavior.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

Good fit Use it when someone asks for a detailed, interactive explanation of a diff, branch, or pull request.

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

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-diff-html

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/koaning/wigglystuff/explain-diff-html"><img src="https://agentmods.dev/badge/skills/koaning/wigglystuff/explain-diff-html.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 34 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 892 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.00034 $0.00892
Opus 5.5 $0.00014 $0.00357
Sonnet 5.5 $0.00007 $0.00178
Haiku 4.5 $0.00003 $0.00089

Measured yesterday against content hash 5b222456fe6c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

explain-diff-html 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.

.agents/skills/explain-diff-html/SKILL.md · 89 lines

How it starts

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

Explain Diff (HTML)

Produce a self-contained HTML file that explains a code change — a diff, a branch, or a PR — with the clarity and flow of Martin Kleppmann. The reader should come away with genuine understanding, not just a summary.

Output Format

Write a single self-contained HTML file (no external dependencies) to /tmp/ with a filename starting with today's date: /tmp/YYYY-MM-DD-explanation-<slug>.html.

The file must include embedded CSS and JavaScript for interactive features. No external stylesheets or scripts.

Required Sections

The HTML page is one long page with a table of contents at the top.

1. Background

Two parts:

Deep background (skippable). Explain the existing system broadly. Assume a capable engineer who may not know this particular codebase. Context from surrounding modules, the problem domain, and relevant history.

Narrow background. Focus on the specific area the change touches. What was the state of the code before this diff? What pain points or limitations existed?

2. Intuition

The core idea of the change, explained with concrete examples and toy data. Use HTML-based diagrams throughout — never ASCII art.

Good diagram types:

  • Simplified UI mockups (use HTML/CSS elements)
  • System / data-flow diagrams showing how data moves between components
  • Before/after comparisons (use a two-column grid)
  • Annotated code snippets that highlight what changes

Use callout boxes for key concepts, definitions, and important edge cases. Mark them visually distinct from the main text.

3. Code Walkthrough

Group changes in a logical order (not file-by-file or line-by-line). For each group:

  • What was the problem / motivation
  • What the new code does
  • How it connects to the rest of the change

Use <pre> tags for code blocks. Every <pre> element must have white-space: pre-wrap or white-space: pre in its CSS — scan the output to confirm this before saving.

4. Quiz

Five interactive multiple-choice questions that test genuine understanding of the diff. Each question:

  • Has 4 options (A/B/C/D)
  • Shows correct/incorrect feedback on click (use JavaScript)
  • Includes an explanation of the correct answer
  • Is tough enough that you need to understand the substance to answer, but not a gotcha

Read the full file on GitHub · 89 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. yesterday First seen · 89 lines · 34 tokens per session scan A 5b222456fe6c

Subscribe to this mod's changes

explain-diff-html is a skill published in the GitHub repository koaning/wigglystuff (450 stars, last pushed yesterday), licensed MIT. It adds 34 tokens to every session and 892 once invoked, about $0.0001 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-10-14.

Related

Other skills, from other repositories

orbit-notion

Open Orbit briefing skill — selected by the Orbit pipeline when Notion is the user's only connected connector, or when the user explicitly scopes their daily digest to Notion. Pulls the past 24 hours of document edits, comments, mentions, and database row changes from the user's authenticated Notion connection and…

nexu-io/open-design · 117 tokens

instrument-data-to-allotrope

Convert laboratory instrument output files (PDF, CSV, Excel, TXT) to Allotrope Simple Model (ASM) JSON format or flattened 2D CSV. Use this skill when scientists need to standardize instrument data for LIMS systems, data lakes, or downstream analysis. Supports auto-detection of instrument types. Outputs include full…

anthropics/knowledge-work-plugins · 123 tokens

legal-hold

Issue, refresh, release, or report on legal holds — drafts the hold notice as .docx, updates legalhold fields in log.yaml, and calendars the next refresh. Use when the user says "issue a hold", "refresh hold", "release hold", or asks for a portfolio-wide hold status report.

anthropics/claude-for-legal · 68 tokens

baoyu-youtube-transcript

A tool for downloading the written captions, subtitles, chapter information, speaker labels, and cover image from a YouTube video using its URL or ID.

JimLiu/baoyu-skills · 107 tokens

feishu

Work with Feishu or Lark bots, docs, sheets, bitables, approval flows, and OpenAPI/MCP setup without hardcoding credentials.

Hmbown/CodeWhale · 33 tokens

read

Fetches URLs and PDFs, then summarizes or returns clean Markdown. Use when asked to read, fetch, quote, cite, convert, or save a URL or PDF. Not for local text files already in the repo.

tw93/Waza · 46 tokens