Repository navigation
explain: new plugin whose changes-high-level skill explains a change to a service as one HTML page - #7
Open
fprochazka wants to merge 1 commit into
Open
explain: new plugin whose changes-high-level skill explains a change to a service as one HTML page#7fprochazka wants to merge 1 commit into
fprochazka wants to merge 1 commit into
Conversation
fprochazka
force-pushed
the
explain-plugin
branch
3 times, most recently
from
November 19, 2026 16:54
72576cd to
99aa0de
Compare
…to a service as one HTML page The page is for a tech lead who reads it instead of the MR, ticket or document: a change map of the services and entry points involved, then every database, messaging, HTTP and other cross-system interface change in full, each labeled with what it costs to change later and how it rolls out, then placement per package, then short code internals. Tables show as diffed CREATE TABLE statements and payloads as JSON-like diffs. build.py validates the subagents' JSON against JSON Schemas, generates the overview diagrams from it so every box links to its card, and renders the fixed template, so the layout is the same on every page; CI installs jsonschema for its tests.
fprochazka
force-pushed
the
explain-plugin
branch
from
November 19, 2026 17:32
99aa0de to
c96fa4f
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
A tech lead who judges many merge requests, tickets and design documents cares most about the parts that are hard to change later: database schemas, queue topology, API contracts. The source hides them in migrations, nested DTOs and configuration classes, and a dense ticket or design document is hard to read in one pass. The new
explainplugin turns any such change into one HTML page that shows those parts in full, so the reader can judge the change without reading the source. It explains and never reviews: no findings, no verdicts, nothing posted anywhere. Reviews stay withcode-review.What it does
One skill,
explain:changes-high-level, usable as/explain:changes-high-level <source> [focus]and loaded by Claude when you ask what a change does. The source is anything the session can read that describes a change: an MR or PR, the current branch, a ticket, a document, a chat thread, a URL, a file, or pasted text.A run:
change.md. Without a diff, the page compares the proposed change with the current code and marks it as proposed.build.py merge(which also checks everypath:lineref against the code), writespage.json, generates the overview diagrams withbuild.py diagrams, renders all diagrams withmmdc, and builds the page withbuild.py page. No subagent writes HTML or SVG, and no model draws the overview diagrams.The target is about 10 minutes of wall clock for a typical change and about 15 for a large one. Every budget is in minutes; each subagent keeps its own time with
date +%s. A large change gets grouped areas and more unknowns, never more time per stage.The page has the same layout every time: a short framing of what the change is and why; a change map with the services involved (when more than one) and one flow diagram per entry point, every box linking to its card; then every cross-system interface as a card that opens with one sentence, then its diff, with what it costs to change later and how it rolls out. Tables show as their
CREATE TABLEstatement in the service's SQL dialect, diffed before and after, with notes as aligned--comments, and a second tab draws the tables and their foreign keys. Payloads show as JSON-like diffs with//comments. After the interfaces come modules and placement per package, then code internals, short. Contract files that no deep dive covered are listed at the top. The page is one self-contained file: inline SVG diagrams, inline CSS and JS, no network, light and dark mode.Where to start reading
plugins/explain/DESIGN.mdfor the purpose, the non-goals and the principles.plugins/explain/skills/changes-high-level/SKILL.md, the driver with the stages, the subagent prompts and the budgets.references/:surface.md,deep-dive.md,render.md, and the per-kinddatabase.md,messaging.md,http.md, which say how a found table, route, message or endpoint is written into the fragment so it renders as a diff. The intake and output steps live inSKILL.md.scripts/build.pywithpage.schema.jsonandcontracts.schema.json, which define what subagents may write, andassets/template.html, which owns the look.scripts/fixtures/is an invented two-area change (invoicing and shipments) used by the tests.Changes outside
plugins/explain.claude-plugin/marketplace.jsonand the root README: the marketplace entry, the dependency row (prose,diagrams) and the plugin table row..claude/rules/plugins/explain.md: the path-scoped rule that points at the design.Makefile:make testrunstest_build.py..github/workflows/check.yml: installsjsonschema, whichbuild.pyand its tests need.make testnow covers "the hook and build-script test suites".What was checked
make allpasses locally: the repository checks,claude plugin validate --strict, and the test suites, including the 55 tests intest_build.py(schemas, merge and coverage gaps, path-located validation errors, the ref check, section order, the SQL and payload diffs, the generated diagrams and their links, escaping, SVG inlining, the offline check, and the time-budget and clone rules in the skill's text).build.py mergeandbuild.py diagrams, all diagrams rendered withmmdc, thenbuild.py page, with 1700 px wide full-page screenshots in light and dark mode in headless Chrome, offline. Clicking a box in a change-flow diagram jumps to its card, and clicking a box in the relationships tab opens the SQL tab at that table.Not verified
modelandeffortset by the skill is unconfirmed.SKILL.mdor a brief is checked by using the skill on real changes, asDESIGN.mdsays.