Critically review an existing or proposed Stencila figure artifact for structural correctness, caption quality, layout, overlay annotation safety, cross-references, measurement validity, and approval readiness. Use when asked to review, critique, assess, audit, validate, or improve a figure block, multi-panel figure, subfigure grid, executable chart figure, caption, SVG overlay, ROI annotation, scale bar, panel labeling, or figure plan.
Review an existing or proposed Stencila figure artifact for correctness, clarity, and approval readiness. The artifact may be a full .smd document, a single figure block, a patch or diff, a caption draft, an overlay snippet, a rendered screenshot, or a sufficiently concrete figure plan.
This is a review-only skill. Its primary mode is assess and report: identify concrete issues, risky assumptions, missing verification, and approval blockers. Do not create a brand-new figure from scratch by default. If the user explicitly asks for a corrective example after the review, keep it minimal and tightly scoped to the findings you already reported.
Use the local references in this skill directory when you need condensed syntax or review guidance:
references/figure-structure-review.md — figure fences, captions, subfigures, layouts, and cross-reference checksreferences/overlay-review-rules.mdreferences/snap-tool.md — full snap tool reference for visual verification| Input | Required | Description |
|---|---|---|
| Figure artifact to review | Required | A .smd document, figure block, patch, diff, screenshot, rendered route, or figure plan |
| Review goal | Required | What the user wants assessed: correctness, clarity, approval readiness, caption quality, overlay placement, etc. |
| Surrounding document context | Optional | Nearby text, references, related figures, or house style conventions |
| Rendering access | Optional | A served route or other way to visually inspect the rendered figure with snap |
| Calibration or orientation facts | Optional | Known scale-bar calibration, measurements, or compass semantics needed to judge scientific correctness |
| Acceptance criteria | Optional | Standards such as journal style, publication constraints, or project-specific figure conventions |
When used standalone, these inputs come from the user or the agent's prompt. When used within a workflow, the workflow's stage prompt will specify how to obtain them.
| Output | Description |
|---|---|
| Figure review report | Evidence-based findings on structure, captioning, layout, annotations, and approval readiness |
| Prioritized issues | Findings organized by severity such as blocking, important, and optional |
| Verification status | What was checked statically, what was visually verified with snap, and what remains pending |
| Minimal corrective example | Optional small snippet only when explicitly requested after the review |
snap.Evaluate the artifact against these dimensions:
::: figure fences used correctly?::: figure blocks indented by four spaces?<s:*> components, is xmlns:s="https://stencila.io/svg" declared?viewBox define a coherent coordinate system for all annotations?snap, or are they pending?snapUse snap when a Stencila server and route are available. snap is the evidence source for rendered placement, spacing, clipping, and annotation overlap.
snapsnap checks for figure reviewsnap(route: "/docs/", selector: "stencila-figure", screenshot: true)Prefer the rendered directory route when the source file is index.*, main.*, or README.*; for example, docs/README.md, docs/main.md, and docs/index.md all render at "/docs/".
snap is unavailableIf snap cannot be run, do not fabricate rendered findings. Instead:
snap command the user should run once the route is availableIdentify the review input and desired output.
Read the surrounding context before judging details.
Classify the figure type and review scope.
Check structure and syntax first.
references/figure-structure-review.md to confirm fence structure, caption placement, subfigure indentation, and layout usage.Review caption, panel order, and references.
Review overlays and annotations.
references/overlay-review-rules.md to assess component usage, scope, clutter, and coordinate coherence.When useful, structure the response like this:
Each finding should be evidence-based. Use source snippets and snap results as evidence when available. Do not make speculative claims about rendering, measurements, or scientific semantics.
Input: Review this .smd figure for publication readiness. I am worried about panel labels and overlay clutter.
Output:
::: figure [2] block with two subfigures and SVG overlays<s:badge label="A"> / <s:badge label="B"> even though subfigure labels are already automatic, so the rendered figure will likely show duplicate letteringInput: Audit this microscopy figure for annotation correctness.
Output:
<s:scale-bar> and <s:compass> components20 μm but the artifact provides no calibration linking viewBox units or pixels to real distance, so the measurement is unsupported and should not be approved as-isN/S E/W semantics with no evidence that geographic orientation is meaningful for this imagesnapInput: Critique this Plotly figure with annotations.
Output:
svg overlaywidth and height, so responsive resizing may cause the overlay viewBox to drift out of alignment with the chartsnap(route: "/docs/", selector: "stencila-figure", screenshot: true) to confirm overlay alignment.smd.snap command to run later.snap, rendering-related findings remain static-analysis judgments rather than visually confirmed defects.xmlns:s, inconsistent viewBox assumptions, unclear annotation targets, and overly brittle coordinate repetition.Check measurement safety explicitly.
Visually verify with snap when possible.
snap to confirm source concerns that depend on rendering.snap was not run, keep the review honest about what remains unverified.Separate findings by severity and evidence.
Produce the review in the right shape.
snap results or pending)Keep corrective authoring secondary and explicitly requested.