/diffler:dfafrom diffler
Walks users through code changes by creating walkthroughs with one stop per real decision. Useful for code review explanations and presenting diffs.
Ships in diffler. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Walk the human through $ARGUMENTS, or through everything you changed in
this review when $ARGUMENTS is empty:
review_status. It lists the repo's walkthroughs. When one of
them is about the change you are presenting, call get_walkthrough with
its id and revise it, passing that id to publish_walkthrough; when
the change is a different one, publish a new walkthrough without an id.
review_status names the repo; if it is not the repository you mean,
call list_instances, then use_instance with that repo, and start over.
If the change spans another git repository, call open_project with its
path, then pass that project's name as project when publishing about it.
A walkthrough is pinned to the commit it is published at, so publish it
once the code it describes is the code checked out; once the branch has
moved on, revise it so the stops point at the revision it is on now.get_diff. It shows whichever review is open right
now: the working tree, or the commit, range, or PR you're reviewing.
publish_walkthrough records that same review, so the walkthrough
renders it too. A walkthrough works on a
clean tree too: with nothing changed, publish over the working tree and
anchor each stop to the file as it stands, to explain existing code.path#symbol
where a symbol exists, path:start-end otherwise), a title, and a body
written as the section below says. A stop's span is the lines a marker
would highlight, usually three to fifteen; a whole function only when the
whole function is the decision. A bare path only when the file itself is.
A stop is a topic, not just a span: use notes for a second remark on
another part of the same region, or a diagram beside the prose, each
anchored in the stop's own file (path:line or path:start-end, or
omitted to sit at the region's first line).
Say each decision once. No overview stop that lists what the stops after
it will say, and no closing stop that repeats them: the title is the
overview, and a map of the whole change belongs in the summary below, not
a stop.
A stop opens its file's whole diff with the reader's cursor on its span.
A stop with no anchor is a text stop: the reader sees its text alone,
between the stops around it. Use one only for context that points at no
code, and write all of its text in its body.A mermaid flowchart for a branch, a state, or data moving through
steps. subgraph id[Title] … end outlines a group of nodes.
A mermaid sequenceDiagram for who calls whom over time:
participant A as Label, A->>B: text for a call, B-->>A: text for
its reply, Note over A,B: text, and alt/else/end for a branch.
link B: label @ path#symbol makes <cr> on any message to B open
that code.
A callstack fence for how a call path changed, as one tree: one
frame per line, two spaces of indent per depth, + or - right before
the label of an added or removed frame, and an optional @ path#symbol
after it that <cr> opens:
handle_request @ src/http.rs#handle_request
- legacy_auth
+ authenticate @ src/auth.rs#authenticate
skipped.summary: what the reader meets first. One short paragraph saying
what the change does, plus one diagram of the simplest shape that explains
it (step 4 says which kind fits), five to eight nodes, participants or
frames, naming real files or functions. It never lists the stops and
never repeats their titles: the stops are the detail, the summary is the
shape.publish_walkthrough, read its receipts, fix a refusal and
republish. When you revise, pass each surviving stop's and note's id
from get_walkthrough so it keeps its comment and the thread hanging off
it; one whose id you leave out is deleted.wait_for_feedback in a loop: it carries feedback on every review, so
check each comment's source. One starting walkthrough- is a reply on a
stop or note of that walkthrough, arriving as a reply on that comment; the
id names which one. Answer in its thread with reply_comment. Revise the
walkthrough with publish_walkthrough when asked to change it, and keep
waiting. Once you have received a diffler channel event this session, end
your turn: new comments arrive on their own.Every diffler tool call already shows in the human's status bar. Before a
stretch of work no tool call covers, such as reading the code around the
change or drafting the stops, call report_activity with a few words for it.
The human reads the title in a sidebar about thirty characters wide and the body in a narrow card while looking at the code.
infra runs first because ...".Example:
Missing owner list
- `MissingDecision` is raised when `OWNER_EMAILS` is empty.
- A default would silently migrate the rows an owner still has to claim.
- The run stops and names what is missing, at build time, never at login.
Write for a narrow card beside the code:
infra runs first because Y." Do not open every
sentence the same way. Cutting words does not make text clearer.compute_overrides, SHEET_PERMISSIONS,
MissingDecision. The card renders markdown; bare identifiers read as prose.If the diffler tools are missing, the TUI isn't running: ask the human to
run diffler in the repository first.
What SKILL.md sets; muted values are Claude Code's defaults
3 skills in this plugin
/dfCheck the diffler review and respond to the human's feedback. Use when the user says "check diffler", invokes /df, or asks to look at review comments./dfrReview a change in diffler and leave comments on real problems, never submit. Use when the user invokes /dfr, asks the agent to review a pull request or change in diffler, or wants review comments left for them instead of an explanation of what changed.npx claudepluginhub matheusfillipe/diffler --plugin difflerOther plugins' skills for the same job