test-driven-development
OBobra/superpowers298k2,631 new stars in the last 7 days
Create/audit publication plots, visual abstracts and imaging panels with render QA; not tables or decks. CN: 统计图、ROC、森林图、影像图版
Use this skill to build figures that pass Radiology's technical and editorial bar: correct file format and resolution, legible typography, color-blind-safe palettes, honest axes, and the specific chart types imaging-AI reviewers expect (ROC, calibration, decision-curve, forest/SROC, Kaplan-Meier, Bland-Altman), plus de-identified annotated imaging panels.
.svg (or .pdf); secondary is a
≥ 300 dpi raster (TIFF/PNG). Keep text as text (svg.fonttype='none'), not outlines,
so editors can re-typeset.| File | Open when |
|---|---|
| references/radiology-figure-guidelines.md | File format, resolution, size, fonts, color, panel labelling, de-identification rules |
| references/chart-types.md | Choosing/parameterising the right statistical chart (ROC, calibration, DCA, forest, KM, Bland-Altman, heatmap) |
| references/imaging-panels.md | Building montages: windowing, arrows, insets, scale bars, anonymisation, panel layout |
| references/api.md | The matplotlib rcParams preamble, color palette, and reusable helper functions (ROC/calibration/forest/KM) |
| references/design-theory.md | Typography, layout grid, color-blind-safe palettes, anti-redundancy, accessibility |
| references/color-systems.md | Picking ONE palette (Okabe-Ito / NPG / Morandi) and mapping color→meaning so every figure matches |
| references/survival-figures.md | Kaplan-Meier integrity (curve ↔ numbers-at-risk ↔ censoring), numbers-at-risk done right, time-dependent (IPCW) ROC/calibration/DCA, incremental-value framing |
| references/figure-set-consistency.md | Unifying palette/fonts/axes across all figures, and cross-validating every figure number against the manuscript tables and data before export |
| references/nature-figure-spec.md | Target is a Nature-portfolio venue instead of Radiology — column widths (89/183 mm), lowercase panel letters, RGB, legend word cap, Extended Data/Source Data display-item split |
| references/figure-intent-and-render-qa.md | Full figure set planning, crowded/colliding labels, DCA/KM/heatmap layout problems, final-size render review, source-data crosswalk, or premium academic visual polish |
| references/journal-family-visual-style.md | Target journal family is known, the user supplied author-guide PDFs/classic articles, or the figure set needs Nature/npj or European Radiology visual taste |
| references/backend-and-geometry-qa.md | Choosing Python vs R, using survival/nomogram/ComplexHeatmap conventions, or auditing white background, excessive whitespace, edge clipping, and export geometry |
Choose the requested scope first: advisory explains/designs a figure, audit inspects existing
figures and reports findings, and create-edit produces or changes artifacts. Audit may render a
temporary preview for inspection; it does not authorize rewriting originals. Generate scripts and
exports only for create-edit or an explicitly requested artifact. Use only applicable QA items:
conceptual diagrams and flowcharts need not have numerical axes, confidence intervals or sample n.
journal-family-visual-style.md and apply the
target family's panel lettering, legend density, graphical abstract, table, and source-data
conventions.figure-intent-and-render-qa.md and create the figure intent table plus source-data
crosswalk before drawing.backend-and-geometry-qa.md: reuse the project's existing
Python/R stack; otherwise default to Python for general imaging panels and consider R for
survival/nomogram/ComplexHeatmap workflows where it is the established project route.backend-and-geometry-qa.md (R).panel_letter()/add_panel_letter() (api.md) with the case set for
the confirmed venue — never hardcode chr(65+i) per script..svg/.pdf (editable text where possible) and a 300–600 dpi raster on an
explicit opaque white canvas; check legibility at final print width.scripts/audit_figure_export.py on raster exports, then visually
inspect the final render for text/number/legend overlap and semantic errors before returning.For advisory/audit scope, return only the requested plan or evidence-linked findings and applicable QA status. The script and file requirements below apply to artifact creation/editing. A diagnostic render is not proof that statistical, de-identification or submission checks passed.
Figure plan — what each panel shows and why; the chart type chosen.Figure intent / source-data crosswalk — for full figure sets or submission figures,
show what claim each panel supports and where the data came from.Script — a single runnable .py or .R using the selected backend theme; data inputs
clearly marked (real vs example).Files — editable figure.svg/figure.pdf + figure.png/.tiff at ≥ 300 dpi.QA notes — fonts embedded as text, color-blind check, axis honesty, n shown,
de-identification confirmed for any image panel, final-size render checked for no
overlap/clipping, and venue-family visual style checked when applicable..svg/.pdf with text retained
where possible and a ≥ 300 dpi raster on an opaque white canvas.radiology-stats.radiology-reporting.radiology-writing.radiology-data.radiology-paper2ppt with the editable asset, source locator and transformation limits.radiology-prereview.radiology-table /
radiology-pipeline; upload package → radiology-submission.OBobra/superpowers298k2,631 new stars in the last 7 days
MAmattpocock/skills288k10,178 new stars in the last 7 days
AFaffaan-m/ECC278k4,046 new stars in the last 7 days
Audit accessibility on Web, iOS, and Android to meet WCAG 2.2, with keyboard navigation and screen-reader support.
AFaffaan-m/ECC278k4,046 new stars in the last 7 days
AFaffaan-m/ECC278k4,046 new stars in the last 7 days
FIfirecrawl/firecrawl191k2,010 new stars in the last 7 days