Skip to content
Back to skills

Write Explainer

ASecurity

Explain a bug, feature, or module to someone new to the codebase, with file:line citations

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 17, 2026
ai-agentsrustgobashgit

Security analysis

A100/100

Scanned December 3, 2026

npx -y skills add ku5ic/claude-kit --skill write-explainer --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Write Explainer?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Write Explainer
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ku5ic-write-explainer/badge)](https://www.skillsdirectory.com/skills/ku5ic-write-explainer)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: write-explainer
description: Explain a bug, feature, or module to someone new to the codebase, with file:line citations
argument-hint: "<what to explain: a bug/ticket, a debug report path, a feature or module name, a file/directory, or blank to use what's already been discussed in this conversation>"
allowed-tools:
  - Bash(git status *)
  - Bash(git diff *)
  - Bash(git log *)
  - Bash(git branch --show-current)
  - Bash(git rev-parse *)
---

# /write-explainer

Explain a bug, feature, module, or section of code to someone new to the codebase: full mechanism, file:line citations, developer to developer.

Tone and shape: `skills/kit-rules/reference/output.md` section 4, which wins over this file; the sections this file defines stay.

<!-- chat: only
In claude.ai chat, the arguments are the user's message and the material is what they pasted. Nothing can be run: if the diff, log, or text this needs isn't in the conversation, ask for it.
-->

## When to use this

The subject is already understood well enough to explain (root cause from `investigate`, a feature just built or reviewed, or a module/section of code someone needs oriented to), and the goal is understanding, not a change. Produces a citation-heavy walkthrough for a reader unfamiliar with the code. Use `/write-devnote` instead for a short peer-to-peer note on a completed change. Use a direct edit or `/plan` instead when the goal is to change code, not explain it.

## Procedure

<!-- chat: skip -->

A linked ticket or doc in the arguments is resolved as `skills/investigate` step 0 describes, before step 1 checks the conversation and memory.

<!-- chat: end -->

1. Establish the subject and source.
   - The arguments may name a debug report or bug ticket, a feature or module name, a file or directory path, or nothing at all, in which case default to whatever's already been discussed in this conversation.
   - If a file is named, read it in full.
   - If it's a bug/ticket or feature/module name with no artifact, check the conversation and project memory for matching context before asking the user to point at one.
   - If nothing can be found, stop and ask what to explain.
2. Do not trust any existing citations (from a debug report, prior conversation, or memory) at face value. Re-read every file mentioned in its current state before repeating a citation. Code moves; a prior artifact is a starting hypothesis, not a fact.
3. Identify the natural entry point for understanding the subject: for a bug, the user action or event that starts the chain; for a feature or module, where it's mounted, its main export, or the first file a reader would open. Name where the relevant state or logic actually lives, not just where it's consumed or re-exported.
4. Trace hop by hop from the entry point through the rest of the subject. At each hop, cite file:line and state what the code does and why it's written that way, not just a restatement of what it does.
5. If the subject has more than one distinct mechanism, responsibility, or (for a bug) manifestation:
   - Address each separately.
   - State explicitly why one doesn't substitute for or explain the other.

   This is usually the part a newcomer would otherwise collapse into a single story.

6. Close with the underlying design rationale or invariant tying the pieces together, if one exists. Name any known rough edge or open follow-up rather than implying the picture is fully closed.

## Output

Format:

- Structured with section headers: the point is a reader building a mental model across multiple hops, which a devnote's sentence or two is too short to need broken out that far.
- Full sentences over fragments; a newcomer needs the reasoning spelled out.
- Cite every claim as `file:line`.

Where it goes:

- Default to the reply. Only write to a file when asked; honor an exact location if one is given (e.g. "on desktop").

<!-- chat: skip -->

- Otherwise use the path `kit scratch-dir <kind> <scope-slug>` prints.

Invoking this skill sets the kit.yml `reply_limits.write.explainer` ceiling in place of the chat one.

<!-- chat: end -->

Length covers how much gets said, not how it's structured: within each header's section, paragraphs still follow `skills/kit-rules/reference/output.md` section 1, one hop or one point per paragraph, never one long undifferentiated block under a header.

## Rules

- Confidence labels: `skills/kit-rules/reference/evidence.md` section 1.
- Multiple mechanisms sharing one subject (one ticket, one feature, one module) are not automatically one story. Check before merging them into a single narrative.

<!-- chat: skip -->

Arguments: `$ARGUMENTS`

<!-- chat: end -->

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.