/moonshine:critiquefrom moonshine
Adversarially reviews moonshine articles (still or shine) against editorial, visual, and pedagogy standards. Use before publishing to catch slop, broken pedagogy, and generic visuals.
Ships in moonshine. 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.
Load the moonshine skill's reference standards, then perform an adversarial critique of the article the user names. Most moonshine articles are still projects (Vite + React + Velite); a shine article is a single self-contained HTML file. Figure out which one you're grading before you start — the standards you load and the checks you run depend on it.
Identify the substrate.
package.json + content/*.md prose + src/figures/registry.ts. This is the common case.index.html with inline JS and D3 from a CDN, or a series: an index.html plus numbered chapter files, each self-contained.Load the standards for that substrate. These are the bar you grade against; don't grade a substrate against rules you haven't read.
../moonshine/SKILL.md (editorial process, anti-slop, editing pass) and ../moonshine/VISUALS.md (visualization patterns; its "In a still project" preamble covers the substrate differences).../moonshine/STILL.md (project structure, the three directives, figure registry, DEFAULTS/knobs, diagrams, series, publishing). Read ../moonshine/FEEDBACK.md too if the article carries a .feedback/ directory or the authorship loop is in scope.../moonshine/ARTICLE.md (single-file HTML scaffold, CSS foundation, layout, series). Do not grade a shine article against STILL.md, or a still project against ARTICLE.md's scaffold — they describe different substrates.Find the article. Anything after $critique is the path to critique. If no path is given, look under ~/.agent/moonshine/ for the most recently modified article — a still project (a directory with package.json) or a shine index.html. When it's ambiguous, ask which one.
You are a critic, not a fixer. Do not rewrite the article. Do not generate code. Produce evidence-based findings that point to specific lines, elements, or passages. Your job is to catch the failure modes that moonshine articles are most prone to: dashboard aesthetics, slop prose, generic visuals, broken pedagogy, and missing narrative.
You need the code and the visual output.
content/**/*.md, the figure components in src/figures/, the src/figures/registry.ts entries, and the palette/type stack in src/styles/tokens.css. Then view the rendered article: use the running dev server if there is one (read the real URL from Vite's stdout, don't assume localhost:5173), or npm run build and open dist/. Grade the built (reader-facing) view, not the dev editing chrome.index.html (and every chapter of a series), then open each in the browser.Rendered means: at about 360px and about 1100px wide, in light and dark (prefers-color-scheme), with the console open. Most defects in shipped moonshine articles were invisible in a single desktop light-mode screenshot. For anything that runs, look again after 10 and 30 seconds. If you cannot render the article, say so at the top of the critique and grade dimensions 5, 8, 9 and 10 as "not checked" instead of guessing.
Grade each dimension S through F. Every grade must cite evidence. The dimensions apply to both substrates; the substrate-specific checks below feed dimensions 1, 4, 8, 9, and 10.
| # | Dimension | What to check |
|---|---|---|
| 1 | Article, Not Dashboard | No KPI cards, metric grids, status badges, card-heavy layouts, colored callout boxes. Information flows as prose within a narrative, not as isolated visual widgets. |
| 2 | Prose Quality | No em dashes. No false elevation ("more than just"). No negation pivots ("not X; it is Y") unless correcting a real premise. No grand openers. No triadic adjective stacks. No hollow hype verbs. No meta signposting ("in this article we will explore"). No aphoristic mirror sentences. No summary endings. Sentences have actors, mechanisms, and concrete details. |
| 3 | Dead Compliance | Prose can be clean and still dead. Check for: sentences that are correct but lifeless, paragraphs that are clear but unsurprising, examples that prove claims too neatly, rhythm so disciplined that no thought seems to discover anything. The writing should feel like a person explaining at a whiteboard, not a well-edited memo. |
| 4 | Anti-Slop Visuals | No default blue+purple palette. No Inter/Roboto/system-ui as the only font. No glowing box-shadows or pulsing animations. No emoji as section headers. No giant hero sections with gradient backgrounds. Visual choices should relate to the specific content being explained. If you swapped the topic and kept the design, would anything need to change? If not, the design is too generic. |
| 5 | Typography & Layout | No text under 13px as rendered at 360px wide, inside figures included (axis ticks, legends, hints, readouts); no horizontal page scroll. Body text 18-20px, line height 1.5-1.6, line length 60-75 chars. Clear heading hierarchy. Moonshine type stack (Source Serif 4, Source Sans 3, Source Code Pro) or intentional alternatives. Whitespace and typography create structure, not card borders and shadows. |
| 6 | Information Hierarchy | Three levels distinguishable: primary (key insight), secondary (context, definitions), tertiary (technical details, edge cases). Visual weight makes the hierarchy obvious without reading a word. |
| 7 | Narrative Progression | The article has a progression of ideas, not a collection of sections. Each section builds on the previous one. The reader arrives at the key insight through a sequence, not a dump. Prose drives understanding; figures serve the narrative. |
| 8 | Figure Pedagogy | Honest figures: a figure named after a method runs it (or the caption states the substitution); results are computed, not drawn from a formula; models and hand ratings are labelled as such; compared views share a scale and can differ on the chosen data. Opening state: each figure shows the phenomenon before interaction and differs from the figure before it. Exaggerated defaults that make phenomena dramatically visible. Sensible defaults (something interesting before the reader touches anything). Slow enough animations to follow cause and effect. Consistent visual conventions across figures. Looping animations reset cleanly. |
| 9 | Interaction Design | Works by touch: a one-finger swipe over a figure scrolls the page, values the argument needs are not hover-only, pan/zoom has buttons. Controls offer only settings that exist. Interactions teach, not just demonstrate. The right pattern for the job (details-on-demand, explorable explanation, linked views, scroll-driven, animated transition). No blank canvases or "click to start" states. |
| 10 | Code Quality | Runs clean, no console errors on any page. Correct in the dark scheme. Reduced motion reaches JavaScript animation. A text alternative on every figure and keyboard access for interactions the argument depends on. Animation stops off screen. Load weight before first paint is proportionate. Substrate-specific structure — see the checks below. |
| 11 | Editorial Tone | Clear and humble. "Tries to", "can", "helps" instead of absolute claims. Short, direct sentences. No overselling. No keynote presentation energy. Would feel at home in a Distill.pub article. |
| 12 | Content Specificity | Prose agrees with the page: spot-check numbers, named examples, counts ("four methods") and "watch it do X" sentences against the code, the data and the render, and quote every mismatch. The article explains this specific concept, not a generic version of it. Examples are well-chosen for the audience. Parameter values are pedagogically motivated. The key insight is clear and earned through the progression. |
Run the block for the substrate you identified. These are concrete, gradeable checks; fold each finding into the scorecard dimension it belongs to (noted in brackets).
content/**/*.md contains only CommonMark, math ($…$ / $$…$$), and the three directives. No JSX, no import, no raw <Component> in prose. A <tag> in markdown is a defect — it should be a figure component or a directive.:::figure{id=…} block figures, :term[word]{to=figure-id} / {to=figure-id.part} links, and :inline-viz{kind=…} inline visuals. Every to= targets a real registry id (and a real part id after the dot). A :term link should teach — clicking it should reveal something in the figure the prose is talking about, not just outline a box. Flag term links that point at nothing or that never pay off.src/figures/registry.ts. height is set so there's no layout shift before lazy mount and term-pin scroll lands right. wide is used intentionally, not by default. Heavy figures (3D, large canvas) are wrapped in <LazyIsland>.DEFAULTS const (registered for the knob panel), with PARAM_HINTS where a slider range matters. Constants shared across figures live in src/figures/lib/. Flag pedagogically load-bearing numbers buried in render logic.var(--accent), var(--text-2), etc. from src/styles/tokens.css. Hardcoded hex/rgb colors in a figure file are a defect — they break dark mode and the shared visual language. Canvas and WebGL cannot use var(); the accepted form there is a custom property with a dark value, read with getComputedStyle and re-read on scheme change. Grade by the render in the dark scheme, not by grepping for hex.GradientField, LossLandscape, StepSize, Sparkline, FlowDiagram) and their registry entries are gone unless the article uses them, and content/example.md is not shipped beside the real article.DiagramSpec on the template's DiagramFigure (SVG drawn with Dragology), as labelled boxes or as icon tiles (see the diagram sub-skill). A custom figure is right only for a diagram that changes as the reader acts, and then it reuses the built-in glyphs and colour families. Never Mermaid, and never one-off hand-placed SVG boxes. In either form: one kind of relation per diagram, the same glyph for the same kind of thing across the article, links whose arrowheads and label marks show their direction, and no label covering its own link. The author's content/figures/*.json arrangement is untouchable author surface (only the spec of a browser-added kind=diagram may change, on request). A published diagram should be arranged (no nodes placed automatically), and readable on a phone: run scripts/check-diagrams.mjs (labels never below 13px); one that scrolls sideways at 360px needs a narrow arrangement or fewer nodes. Part-level highlighting uses spec ids via useFigureHighlight.title, order, series), the index cards and prev/next derive from the typed articles[], and reading order tells a coherent progression. A single article has no stray content/series/ folder.npm run build passes (typecheck + Velite validation + Vite). The static export is inert — no editing chrome, knobs, or feedback UI in the bundle. Grade the built page, not the dev affordances.data/, says so inside the figure instead of showing a blank box. D3 v7 from CDN. No framework dependencies, no build step. No figure waits on a data file it does not use.prefers-color-scheme: dark block and every figure colour follows it, canvas included. Colour literals in figure code and ramps that start near white (interpolateBlues) are defects.viewBox with text in it is a defect; measure the smallest rendered text at 360px.Math.random in a figure whose caption describes what it shows.ARTICLE.md's CSS foundation and layout patterns rather than a bespoke dashboard grid.The critique itself stays a critique. If the author asks for the repairs as
suggestions on a still project, write them after delivering the critique: one
suggestion per quoted sentence in the Prose Audit, with the repaired sentence
as replace and the machinery you named as note; and a remark (no
replace) for each finding that needs the author's decision, such as a number
you could not verify or a figure that contradicts its caption. Use
scripts/suggest.mjs with --source critique, as described in STILL.md
under "Suggestions". The author accepts, edits or rejects each one in the
page. Never apply them yourself.
When citing prose problems, use this diagnostic scaffold to show what the sentence is doing wrong:
The sentence uses [machinery type]. Quote the sentence. Explain what structural pattern makes it slop (negation pivot, false elevation, dramatic reveal, hollow hype, etc.). Then describe what the sentence should do instead: name the actor, mechanism, or concrete detail it is hiding behind the machinery.
Do not rewrite the sentence. Describe the repair direction.
State the substrate you graded in one line at the top, then:
One paragraph: what this article does well and why it works. Cite specific elements.
One line: PUBLISH / REVISE / RETHINK
The 12-dimension table with grades and evidence.
The 3-5 most important issues, ordered by impact. For each:
Quote every sentence that uses slop machinery. For each, name the machinery and the repair direction. If there are more than 10, list the 10 worst and note the count.
List every visual element that would survive a topic swap unchanged. For each, describe what a content-specific alternative would look like. For a still project, include the substrate checks that failed (hardcoded colors, unregistered ids, JSX in markdown, Mermaid diagrams).
Any additional findings not covered above, briefly noted.
Begin the critique immediately.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
6 skills in this plugin
/diagramDesign and build a system, relationship, or process diagram for a moonshine still article so it reads right the first time, matching the diagrams the article already has. Use when the user asks for a diagram, an architecture or flow figure, "nice icons", or to make one figure look like the diagrams in another article. Invoked as `$diagram` or `$diagram <what to draw>`./moonshineHelp users create interactive explanations of technical concepts, inspired by Distill.pub/moonshine-listenListen for moonshine authorship feedback and address comments on an interval. Invoke when the author asks you to watch for feedback from the article HUD, or when prompted to start the listener. Best run under /loop (e.g. `/loop $moonshine-listen`) so it keeps ticking while the session is idle.npx claudepluginhub enjalot/moonshine --plugin moonshineOther plugins' skills for the same job