Look at a rendered figure and record whether it is honest, complete and consistent with the results and the manuscript. Use when `manuscript-guard check` reports figure-unreviewed, figure-review-stale, figure-alt-missing, figure-alt-long, figure-alt-number, figure-alt-binding or caption-line-unnamed, when writing a figure's alternative text, after re-rendering a figure, or before a submission build.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Figure Review?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/basilechretien-figure-review)
---
name: figure-review
description: Look at a rendered figure and record whether it is honest, complete and consistent with the results and the manuscript. Use when `manuscript-guard check` reports figure-unreviewed, figure-review-stale, figure-alt-missing, figure-alt-long, figure-alt-number, figure-alt-binding or caption-line-unnamed, when writing a figure's alternative text, after re-rendering a figure, or before a submission build.
---
# Reviewing a figure
There is a class of error in figures that no parser reaches. A truncated axis that makes a
small difference look decisive. A legend naming a series the plot no longer contains. Two
panels drawn at different scales and set side by side. A caption describing the figure the
author meant to make. Every number can trace back to the results and the picture can still
mislead.
That is the gap this skill fills, and it is why the review must be done by **looking at the
rendered figure**, not by reading its source. Reading the script tells you what the author
intended to draw; only the image tells you what a reader will see.
## Before you start
Run `manuscript-guard check` and note which figures are unreviewed or stale. Then, for each
one, gather three things: the rendered figure, the results values it should be showing, and
the manuscript passage that refers to it.
Every figure the paper places is reviewed: one the analysis renders into `figures/` and the
manuscript binds, and one placed the ordinary way, with LaTeX's `\includegraphics` (found
through `\graphicspath`, a name with no extension as graphicx finds it), as a Markdown image,
or as a picture `init --from` brought from Word into `manuscript/media/`. A placed figure is
known by its path from the project's root, `manuscript/<folder>/chart.pdf`, and its records stand
beside it as an emitted figure's stand beside it in `figures/`: `chart.review.yaml` and
`chart.guard.yaml`. The numbers a placed figure draws are not traced to the results, so read
them against `results/` under `values-match-results` with particular care; `check` names
each such figure in one note (`figure-untraced`). A figure written or linked outside the
project is reviewed where it is, its records kept there, out of the project's history, and
another note names it (`figure-outside-project`): copy the file into the project instead.
```bash
manuscript-guard check --json # which figures need a review
```
Read the raster export if there is one — a PNG or TIFF beside the vector file. It is what a
reader sees, and it exposes crowding and clipping that the vector source hides. If only a
vector exists, render one; do not review a figure you have not seen.
## What to check
Seven checks, all required. Recording one as passed without a note is the same as not
having done it, so write what you actually saw in each case.
| id | The question |
|---|---|
| `values-match-results` | Does every number shown match `results/`, to the digit? Do the marks sit where those values belong on the scale? |
| `axes-labelled-and-scaled` | Do axes carry units? Is a log or truncated scale declared rather than left to be inferred? |
| `caption-agrees` | Does the caption describe the figure that is actually drawn — the same panels, the same series, the same comparison? Does the figure draw the comparison the text headlines, against the same comparator? Does the legend name what the caption names? |
| `legend-and-marks-explained` | Is every mark, colour, line style and series accounted for? Is anything drawn that nothing names? Does the legend state n, and whether it counts biological or technical replicates; what the error bars or ribbons are (SD, SE or a CI, and its level); any smoothing; what each significance marker means, and whether it was corrected for multiple comparisons? Where intervals are drawn at separate time points, does it say they are not an interval for the change between them? |
| `no-unexplained-number` | Is anything visible that is neither a result nor part of the scale? |
| `scale-not-misleading` | Does the visual encoding overstate the finding? Baseline not at zero, area used for a linear quantity, a ratio on a linear axis? A bar of means for a small sample with no points drawn, which hides how the data are spread? `check` reports one its script draws (`figure-bars-of-means`); a figure with no script is yours to see. |
| `readable-and-accessible` | Legible at print size? Does any information depend on colour alone? Do the lines, markers and shading that carry meaning stand out from what is beside them, at a contrast of at least 3:1 (WCAG 2.2, success criteria 1.4.1 and 1.4.11)? Does its alternative text (`alt:` in its guard file) say what is drawn and its main message, as you see them? `check` reads the colours of an SVG or PDF figure and says which pairs a colour-vision deficiency or grey print makes one (`figure-colours-confused`, `figure-greyscale-confused`); look at those pairs in the figure. |
The check that most often finds something is `caption-agrees`, because the text and the
figure are edited at different times and drift apart quietly. Read the manuscript sentence
that refers to the figure and compare it, word by word, against what is drawn. A sentence
promising "against the comparators" beside a single-row plot is the archetype.
Then read the sentence that gives the paper's headline, in the Abstract and the Results, and
find its comparison in the figure. Where the text reports the result against the strictest
of several comparators and the figure draws only the weakest, the figure shows a larger
effect than the text claims, and every reader who looks at the figure alone takes that one
away. Record it as a `fail` finding under `caption-agrees` and set the verdict to `concerns`:
the figure draws the headline's comparator, or the text headlines what the figure draws.
The legend and the caption are read alone by many readers, so under
`legend-and-marks-explained` also ask whether they define every symbol, abbreviation and
unit the figure shows, name the comparator, and say what each line, band and marker stands
for and how it is drawn. `check` warns of a caption that points at "the line" or "the curve"
and never says which (`caption-line-unnamed`): name the mark by its style and by what it
marks, "below the dashed line of equal shares". The manuscript-writing skill's
references/clarity.md says what a display that stands alone carries.
## The alternative text
A reader who cannot see the figure hears its alternative text and nothing else of it. It is
written once, in the figure's guard file, `figures/<name>.guard.yaml` or, for a placed figure,
the `<name>.guard.yaml` beside its file. The build writes an emitted figure's into the picture
in Word; `submit` lists every figure's in `alt-text.md` for a portal that asks for it apart.
```yaml
alt: >-
Forest plot of the reporting odds ratio of hepatic injury for example-drug on a log
scale: {{results.ror.point}} (95% CI {{results.ror.ci_low}} to {{results.ror.ci_high}}),
with the whole interval to the right of the dashed line of no association.
```
Write what the figure shows and what it says, in a sentence or two:
- the kind of figure and what it plots ("Kaplan-Meier curves of time to first event in the
two arms", "Forest plot of the odds ratio by subgroup"), and the scale where it matters
(a log scale, an axis that starts above zero);
- the main message a sighted reader takes from it, with the values that carry it, each by
binding, `{{results.key}}`: a number typed here is held as one typed into the prose is,
and `check` fails it (`figure-alt-number`);
- not "A figure showing ...", "Image of ...", the file name or the legend copied out. The
legend is read to everyone already. Leave the detail to it and to the text: a figure
whose every value matters wants a table, in the supplement if need be.
Keep it short. Journals that ask for alternative text usually want a few hundred characters
at most, and the profile's `alt_text_max_chars` says how many; `check` counts it as printed.
`check` says when a figure has none: a note while drafting, a warning from internal review,
and a failure at submission where the journal's profile says it requires one
(`figures.alt_text: required`). Whether the text is right is yours to read against the
figure, under `readable-and-accessible`.
## Recording it
Once you have looked at the figure, have the toolkit start the record:
```bash
manuscript-guard review --record-figure forest --by "<who looked at it>" --verdict pass
```
For a placed figure, give its path from the project's root, `--record-figure
manuscript/figs/chart.pdf`, or its name where no other figure has it. That writes
`<name>.review.yaml` beside the figure's file with the figure's content digest, which has to be
the toolkit's and not a plain file hash, because it deliberately ignores render metadata and
generated element ids. It also lists all seven checks as `ok: false`, each with the question
it asks, so the file is a to-do list. `--by` is required, because the record's whole content
is that a particular person or model looked at a particular rendering. An agent gives its
model as `<provider>/<model>`, with the name its provider gives the model, which is how the
record says a model looked and how the AI-use statement is held to it. The verdict is `pass`
or `concerns`. The command refuses to overwrite a record; to record a fresh reading, delete
the old file first.
Then finish the file by hand. Set each check to `ok: true` and replace its question with what
you saw. A check left `ok: false` fails the gate, and the gate names each one.
```yaml
schema: manuscript-guard/figure-review/1
figure: forest.svg
content_sha256: <written by the command>
reviewed_by: <provider>/<model> for a model, or a person's name
reviewed_on: <YYYY-MM-DD>
caption_checked_against: manuscript/main.md # optional, not written by the command
verdict: pass # or: concerns
checks:
- id: values-match-results
ok: true
note: What you saw, specifically.
# ... all seven
findings: # optional, not written by the command
- severity: warn # fail | warn | info
message: What is wrong and what would fix it.
where: Which part of the figure.
```
`verdict: concerns` fails the build. Use it when something must change before submission.
Use a `warn` finding for something a reader should know about that does not block.
When one figure is exported in several formats, review it once: the record belongs to the
preferred file, vector before raster, and covers all of them.
## Honesty
The gate enforces that a review exists, that it covered all seven checks, and that it
applies to the figure as it now stands. It cannot tell whether the review was any good.
A review recorded without looking is worse than no review, because it converts an
unexamined figure into one the build calls examined. If you cannot see the figure, say so
and stop; do not record a review from the source code.