/sci-brain:how-to-review-figurefrom sci-brain
Runs a structured visual-design review of figures (matplotlib, Typst, SVG) against an 18-rule rubric, rendering to raster for inspection and citing source lines for fixes.
Ships in sci-brain. 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.
Read when SKILL.md points to them.
Keep the working directory at the user's project. Resolve this loaded SKILL.md
with Path(path).resolve() before locating resources; follow symlinks. Bare
helpers/, references/, and template paths are relative to that real skill
directory. A path written as skills/<name>/... means the installed <name>
skill's directory from the agent's skill catalog, not a path in the user's project.
Locate each dependency by its public skill name; copied skills need not be siblings.
If a dependency is absent, report the missing skill and install it before that step.
Shared writing files are bundled in how-to-write-ideas-report/references/.
Before running the examples, set REVIEW_FIGURE_DIR to the absolute directory of how-to-review-figure. Quote these variables as shown.
Run a structured visual-design review over one or more figures and print a scorecard. The skill renders the figure to a raster so it can see it, reads the source (matplotlib .py, Typst .typ, SVG) so suggestions can name the exact line or parameter to change, scores it against an 18-rule rubric, and delivers severity-ranked findings with concrete fixes.
Scope note. This judges how a figure looks — the artifact itself. It is not review-paper, which checks whether figures are referenced and discussed in the manuscript (orphan figures, undiscussed features, caption sufficiency). It is not write-paper, which authors figures figures-first. Use how-to-review-figure when a figure already exists and the user wants its visual quality assessed. For the why behind a plotting convention, consult write-paper's Figure Rulebook rather than restating it here.
The full rubric — each rule's "good looks like" and "flag when" — lives in skills/how-to-review-figure/checklist.md.
Source-aware, report-only, terminal-first.
All 11 general rules apply to every figure. The 7 scientific rules add on when the figure is a scientific plot (quantitative axes / data series). Numbering is stable: scientific IDs skip S4/S6/S10 (axes-with-units, honest-axes, show-uncertainty were considered and not selected — keep the gaps if added later).
| ID | Rule | Applies to |
|---|---|---|
| G1 | Alignment — contents align to a shared grid / baselines, not eyeballed | all |
| G2 | Proximity — related elements are physically close; unrelated ones separated | all |
| G3 | Edge padding — text and content have breathing room from the boundaries | all |
| G4 | Unified color — a limited, coherent palette; not too colorful | all |
| G5 | Clear focus — the main message stands out; not too many competing highlights | all |
| G6 | Reading order / hierarchy — the eye knows where to start and go next; the key element reads first | all |
| G7 | Consistent sizing & spacing — same-type elements share size; gutters/margins are uniform | all |
| G8 | Contrast & legibility — text and lines stand out from their background | all |
| G9 | Colorblind / grayscale-safe — no meaning carried by red-vs-green alone; survives B&W | all |
| G10 | No overlap / clipping / occlusion — nothing collides, covers data, or is cut off at edges | all |
| G11 | Consistent typography — one or two font families; a small set of sizes as a hierarchy | all |
| S1 | Text large enough — readable at the intended display size | plots |
| S2 | Lines strong enough — data lines/markers have enough weight to read | plots |
| S3 | Efficient use of space — no large empty regions; data fills the frame | plots |
| S5 | Minimize chartjunk — drop 3D effects, heavy gridlines, redundant borders, decorative fills | plots |
| S7 | Legend & direct labeling — legend unambiguous and not occluding; prefer direct labels for few series | plots |
| S8 | Cross-panel consistency — comparable subpanels share scales/axes/colors; consistent (a)(b)(c) labels | plots |
| S9 | Resolution / format adequate — vector where possible; no pixelation or blur at display size | plots |
Rank every non-pass finding so the user can triage:
Resolve target(s). Accept explicit path(s), a directory, or auto-detect (images/, figures/, then *.png|jpg|jpeg|pdf|svg|typ in the working directory). If several are found and the user did not name one, list them and ask which to review.
Establish the display context. Ask once (with a default): where will this figure appear — paper single-column / paper double-column / slide / poster / web — and the final width. This is what makes S1 (text size) and S9 (resolution) meaningful. Default if unspecified: paper double-column (~3.4 in wide).
Render to a raster you can look at (source-aware). Use the helper:
python3 "$REVIEW_FIGURE_DIR/helpers/render.py" <path> [--dpi 200] [--allow-exec]
.png/.jpg) and .pdf → read directly (the helper passes them through)..typ → compiled to PNG via typst..svg → converted to PNG via the first available of rsvg-convert / inkscape / cairosvg..py → rendered only with --allow-exec (open figures captured to PNG). Confirm with the user before passing --allow-exec; otherwise prefer an already-rendered output, or ask for a PNG.Then read the produced raster with your image-reading ability. When the source exists, also read it as text so fixes can cite a line/parameter.
Classify each figure as scientific plot (quantitative axes / data series) or general/schematic (diagram, flowchart, conceptual art). State the classification so the user can override. General rules apply to all; scientific rules add on only for plots.
Do not score a figure before you have looked at its rendered raster.
For each figure, view the render (and source, if available) and rate every applicable rule. Each finding has this shape:
{ rule: G1–G11 or S1–S9,
rating: pass | warn | fail,
location: where in the figure (panel, region, the offending element),
observation: what you see, in one sentence,
fix: a concrete change — and the source line/parameter when source is available,
severity: high | med | low (omit for pass) }
skills/how-to-review-figure/checklist.md — walk it as you score.Print, per figure:
For a multi-figure run, add a brief cross-figure summary (shared problems, inconsistencies across the set).
Then offer to save: only on a yes, write figure-review-YYYY-MM-DD.md beside the reviewed figure(s) (or a path the user gives), using the same structure. This matches the repo's dated-output convention (cf. review-paper).
Reused: the dated-output convention and severity-rubric shape from review-paper; write-paper's Figure Rulebook for the why behind plotting conventions (referenced, not restated).
New here: the render-then-look protocol (Phase 0), the general/scientific classification gate, the 18-rule visual-design rubric, and helpers/render.py (normalize any figure input to a viewable PNG).
| Mistake | Instead |
|---|---|
| Scoring a figure you never rendered | Phase 0 step 3: render and look first; ask for a PNG if rendering fails. |
| Judging "text too small" with no context | Phase 0 step 2 fixes the intended display size before S1/S9. |
| Applying scientific rules to a schematic | Classify first; S-rules add on only for plots. |
| Editing the figure or its source | Report-only — suggest, never apply. |
Running a matplotlib .py silently | Render .py only with --allow-exec after user confirmation; else use existing output or ask for a PNG. |
| Asserting a subjective taste call as fact | Mark subjective findings as opinion; ground the rest in the raster/source. |
skills/how-to-review-figure/helpers/render.py.skills/how-to-review-figure/checklist.md.review-paper (different concern).write-paper Figure Rulebook.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub quantumbfs/sci-brain --plugin sci-brain16 skills in this plugin
/autoresearchUser trigger. Use when starting, resuming, or checking an autoresearch campaign — topics, evidence base, sealed validator, then validator-scored attempt loops./brainstorm-ideasUser trigger. Use when brainstorming research ideas with a Socratic collaborator who learns your background and helps find a problem worth attacking./create-advisorUser trigger. Use when creating or updating a named advisor profile from a researcher's conversation history./dump-chat-historyUser trigger. Use when exporting original conversations from selected harnesses and dates as a faithful transcript or a topic-titled Typst and PDF field note./how-to-analyze-dialogAgentic trigger. Use when classifying exported research conversations by topic and analyzing their prompting patterns across six academic dimensions./how-to-build-kbAgentic trigger. Use when turning a list of picked papers into verified knowledge-base entries — references.bib, INDEX.md, and NOTES.md.Other plugins' skills for the same job