# explain-for-dumb

Adopt this skill: https://proskills.md/skills/other/motleywildside-explain-for-dumb

Page: https://proskills.md/skills/other/motleywildside-explain-for-dumb
This document is the public skill bundle for that page. It contains SKILL.md and every helper file the catalog carries. No login is required.

## File: SKILL.md
size: 3341
upstream: https://github.com/motleywildside/explain-for-dumb/blob/HEAD/SKILL.md

```text
---
name: explain-for-dumb
description: Explains code changes (branch diff vs master, or uncommitted changes) in plain human language, no scary jargon — so the user understands what an agent (or they) actually changed. Two modes - a "for dummies" story (what was, what happened, how it was done) or a per-file walkthrough. Use when the user says "explain-for-dumb", "explain my changes", "what did the agent do", "walk me through the diff", or wants a plain-language recap of a PR/diff.
---

# Explain For Dumb

Explain code changes so a person who delegated the implementation (and may not know the codebase deeply) can stay aligned with what now lives in the codebase. The reader is smart but tired — no jargon walls, no line-by-line diff recitals.

The goal is to restore context and understanding, not to replace tests or code review.

**Answer in the language the user is speaking in this session.**

## Step 1 — Decide WHAT to explain (scope)

Run:
- `git branch --show-current`
- `git status --porcelain` (uncommitted = staged + unstaged + untracked)

Then:

1. **On master/main:**
   - Uncommitted changes exist → explain only those.
   - Working tree clean → say there is nothing to explain and stop. Do not invent work.
2. **On a feature branch:**
   - Uncommitted changes exist → **ask the user** (AskUserQuestion): explain the whole branch diff vs master, or only the uncommitted changes.
   - Clean tree → explain the whole branch diff vs master, no question needed.

Getting the branch diff: `git diff $(git merge-base master HEAD)...HEAD` (use `origin/master` if there is no local `master`). For uncommitted: `git diff HEAD` plus untracked files' contents.

## Step 2 — Ask which mode (always ask, AskUserQuestion)

1. **For dummies** — one coherent story, not a file list:
   - **Before:** how things worked / what was broken before.
   - **After:** what works now / what the user-visible outcome is.
   - **How it was done:** the approach in everyday analogies, almost no code, every term explained the moment it appears.
2. **Per-file walkthrough** — go file by file:
   - What this file is responsible for (one sentence).
   - What changed in it and why.
   - Each new/changed function in human words: "here is function X — it exists to …". No jargon; if a technical word is unavoidable, explain it inline in parentheses.
   - Link files as clickable markdown links **with line anchors to the changed code**: `[file.tsx:42](relative/path/file.tsx#L42)`, or a range `[file.tsx:42-51](relative/path/file.tsx#L42-L51)` for a function/block. Point at the actual changed hunk, not just the file.

## Step 3 — Actually understand before explaining

- Read the surrounding code of changed hunks, not just the diff — explanations must be true, not guessed. Read callers/usages of new functions when their purpose isn't obvious from the diff.
- Explain intent and meaning, never paraphrase the diff line by line.
- Huge diffs (~30+ files): group changes into logical chunks (feature area / concern) and walk the chunks; don't grind through every file.

## Step 4 — Wrap up (both modes)

End with:
- **Summary:** 3–5 bullet points of what changed overall.

Do NOT add a code-review section (risks, suspicious spots, "things to watch out for") — this skill explains changes, it doesn't review them.
```

## File: README.md
upstream: https://github.com/motleywildside/explain-for-dumb/blob/HEAD/README.md

````text
# explain-for-dumb

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)
[![Claude Code](https://img.shields.io/badge/Claude_Code-skill-6C47FF?logo=anthropic&logoColor=white)](https://claude.com/claude-code)
[![npx skills](https://img.shields.io/badge/npx_skills-add-2ea44f?logo=npm&logoColor=white)](https://skills.sh)

A [Claude Code](https://claude.com/claude-code) skill that helps you stay aligned with your codebase after delegating work to an agent.

Ask an agent to fix a bug, then step away. When you return, you don't want to read every line it touched — but you also don't want to merge code you can no longer explain. This skill reads the actual changes, understands them, and tells you what happened like you're a smart but tired human being.

Delegating implementation should not mean delegating understanding. `explain-for-dumb` helps you quickly regain the context you need to review, trust, and own the change.

![A coding agent explaining a bug fix](docs/explain-for-dumb-hero.png)

## What it does

- Figures out **what to explain**: the whole branch diff vs `master`, or just your uncommitted changes (it asks when both exist).
- Asks **how you want it explained**:
  - **For dummies** — one coherent story: how things worked before, what works now, and how it was done, in everyday analogies with almost no code.
  - **Per-file walkthrough** — file by file: what each file is responsible for, what changed and why, every new function in human words, with clickable links pointing at the exact changed lines.
- Actually **reads the surrounding code**, not just the diff — so explanations are true, not guessed.
- Answers **in whatever language you're speaking** in the session.
- Ends with a short 3–5 bullet summary.
- Never turns into a code review — no "risks", no "things to watch out for". It explains, it doesn't judge.

The goal is not to replace tests or review. It is to make agent-written changes understandable before you decide what to do with them.

## Install

### For humans

The easiest way — via the [skills.sh](https://skills.sh) CLI:

```bash
npx skills add MotleyWildside/explain-for-dumb
```

Or manually. Personal install — available in **all** your projects:

```bash
mkdir -p ~/.claude/skills/explain-for-dumb
curl -o ~/.claude/skills/explain-for-dumb/SKILL.md \
  https://raw.githubusercontent.com/MotleyWildside/explain-for-dumb/main/SKILL.md
```

Per-project install — checked into the repo, so the whole team gets it:

```bash
mkdir -p .claude/skills/explain-for-dumb
curl -o .claude/skills/explain-for-dumb/SKILL.md \
  https://raw.githubusercontent.com/MotleyWildside/explain-for-dumb/main/SKILL.md
```

Restart Claude Code (or start a new session) and the skill is picked up automatically.

### For agents

If you are an AI agent reading this: install the skill yourself by fetching
`https://raw.githubusercontent.com/MotleyWildside/explain-for-dumb/main/SKILL.md`
and writing it to `~/.claude/skills/explain-for-dumb/SKILL.md` (user-wide) or
`.claude/skills/explain-for-dumb/SKILL.md` (project-wide).

If you are a human who'd rather delegate: paste this into your Claude Code session:

```
Install the skill from https://github.com/MotleyWildside/explain-for-dumb
into ~/.claude/skills/explain-for-dumb/SKILL.md
```

## Usage

In a Claude Code session, just say any of:

- `/explain-for-dumb`
- "explain my changes"
- "what did the agent do?"
- "walk me through the diff"

Claude will detect the scope (branch vs uncommitted), ask which mode you want, and explain.

## Examples

### "For dummies" mode

You: *"what did the agent do?"*

> **Before:** the app asked the server for the user list every time you opened the page, even if you opened it five times in a row — like calling the pizza place to re-read the menu on every visit.
>
> **After:** the list is fetched once and remembered for five minutes. The page opens instantly on repeat visits.
>
> **How it was done:** a small "memory box" (a cache) was added between the page and the server. Before calling the server, the page now checks the box first. If the menu is already there and less than five minutes old — use it; otherwise call the server and put the fresh copy in the box.
>
> **Summary:**
> - Added caching for the user list (5-minute lifetime)
> - Page no longer hits the server on every open
> - One new file with the cache logic, two files updated to use it

### Per-file walkthrough mode

You: *"walk me through the diff"*

> **[useUsers.ts:12-38](src/hooks/useUsers.ts#L12-L38)** — this file is responsible for fetching the user list for the page.
> New function `getCachedUsers` — it exists to answer "do we already have a fresh copy?" before bothering the server. "Fresh" means younger than 5 minutes (the `TTL` constant — time-to-live, i.e. how long a saved copy is trusted).
>
> **[UsersPage.tsx:47](src/pages/UsersPage.tsx#L47)** — the page itself. One-line change: it now calls `getCachedUsers` instead of `fetchUsers`, so it goes through the memory box first.

### It knows when there's nothing to say

You: *"explain my changes"* (on a clean `master`)

> You're on `master` and the working tree is clean — there's nothing to explain. Nothing was invented to look busy. 🙂

### It works in your language

The skill always answers in the language you're speaking in the session. Ask in Spanish — get the story in Spanish:

> **Antes:** la aplicación pedía la lista de usuarios al servidor cada vez que abrías la página...

## License

MIT — see [LICENSE](LICENSE).
````
