<< All versions

Skill v1.0.1

currentAutomated scan100/100
cameronbracken/waterology-research/figure-style

+9 new

──Details
PublishedNovember 7, 2026 at 10:54 PM
Content Hashsha256:6e3b26c1e664ffeb...
Git SHA19abb7423de4
Bump Typepatch
Compare with v1.0.0
──Files
Files (1 file, 3.1 KB)
SKILL.md3.1 KBactive
SKILL.md · 63 lines · 3.1 KB

name: figure-style description: > Apply scientific plotting and figure-quality rules to a single plot or panel. Use when drawing, cleaning, labeling, or reviewing a plot for a research artifact, paper, or report. metadata: version: "1.0.1"


Figure Style

Use writing-style for labels, annotations, and captions. Run waterology config context figure-style for optional local design guidance. Project and local choices take precedence over the example stack below.

Apply when producing, revising, or reviewing a scientific plot. This is the research figure layer. Read the shared visual design if it has not already been read; general chart requests start with data-visualization rather than loading every scientific figure workflow.

If the CLI is unavailable, use the shared local preferences resolver with this skill name, including common preferences and matching local guidance.

Checklist:

  1. Chart type from the data and claim, not from decoration. A distribution

wants a density or ECDF, not a bar of means; a time series over water years wants a line, not a scatter.

  1. Label axes with units, define any transformation (log flow, standardized

anomaly), and show uncertainty or replicate structure when it exists (ribbons, error bars, or the raw ensemble behind a mean).

  1. Color carries meaning only. Use it for real grouping, keep palettes

colorblind-safe (Okabe-Ito for categories, viridis for sequential), and keep the mapping consistent across panels.

  1. Separate figures with whitespace, not container chrome. Do not add a

border, rounded box, background card, or shadow around a plot unless the boundary encodes information. For report HTML, use the bundled assets/report-figure.css or an equivalent borderless wrapper.

  1. Render and inspect text, tick labels, legends, clipping, and

overplotting before saving. Inspect the target width and a narrower layout; source inspection is not evidence that the rendered text fits.

  1. Save the code and data to regenerate it, not just the image. A polished

plot with unverifiable data is not acceptable; preserve provenance first.

Only for requested interactive plots, use interactive-graphics, which loads the Plotly layout reference and helpers when Plotly is chosen. Static figure work does not require the interactive layer.

Stack defaults (match a project's existing style first):

  • ggplot2 with a clean theme (theme_minimal() or a project theme), native

pipe |>, \(x) lambdas, formatted with air. Use r-code-style when writing R.

  • Light mode for print, vector output (PDF or SVG) for simple figures and

PNG for dense ones. For interactive/dark contexts use plotly or bokeh.

  • In Quarto, import figures generated by scripts, add a caption, and never

hand-type a computed number into the caption or annotation — pull it from the data. Use document conventions only when editing the document source.

← v1.0.0All versions