aperivue/medsci-skills/make-figures
Claude Code and agent skill by aperivue/medsci-skills
- community
Checking that the SKILL.md file is still in the repository.
Use when a paper needs publication-ready figures or a visual abstract. Makes ROC, forest, calibration, Kaplan-Meier and Bland-Altman plots, CONSORT/STARD/PRISMA flow diagrams, confusion matrices, pipeline diagrams and journal visual abstracts, checking the journal's AI-image policy first.
Install
npx vskill@latest install aperivue/medsci-skills/make-figuresSKILL.md
The same SKILL.md was published earlier as aperivue/medsci-skills/make-figures.
Make-Figures Skill
Data Privacy Check
Before reading any data file, check whether it might contain Protected Health Information (PHI):
- If
*_deidentified.*files exist in the working directory, use those preferentially. - If only raw CSV/Excel files exist (no
*_deidentified.*counterpart), ask the user, in their
language, whether the data contains patient identifiers (names, national ID / RRN, contact details, etc.) and, if so, to de-identify it first with the /deidentify skill.
- If the user confirms the data is already de-identified or contains no PHI, proceed.
Reference Files
- Figure specifications:
${CLAUDE_SKILL_DIR}/references/figure_specs.md— read it before
generating any figure (journal dimensions, DPI, file formats, palettes, font sizes, panel layouts, caption format).
- Figure style:
${CLAUDE_SKILL_DIR}/../analyze-stats/references/style/figure_style.mplstyle
Journal AI-Image Policies (CRITICAL — check BEFORE generation)
| Journal family | Policy on AI-generated images | Disclosure required | |
|---|---|---|---|
| JACC family (incl. JACC: Asia, JACC Imaging, JACC EP, JACC BTS) | Prohibited without prior Editor-in-Chief permission (JACC pathway, PMC10167500) | Cover-letter pre-submission inquiry + ICMJE-style declaration | |
| NEJM | AI image generation prohibited | N/A | |
| Radiology / Radiology AI | Allowed with disclosure | Manuscript disclosure block | |
| Springer Nature (Nature Portfolio, BMC, Springer journals) | Allowed only when the visual is derived from independently verifiable data, source material, methods or code; AI visuals without verifiable inputs are "opaque" and not permitted. Charts from datasets and author-reviewed code-generated figures are the policy's own allowed examples (AI in manuscript preparation) | Declare model and purpose; disclose non-generative image edits in the caption | |
| Elsevier journals (publisher policy) | Explanatory images (flow charts, schematics) allowed. Data visualizations only when directly derived from the underlying data by reproducible methods. Primary research images, including radiology scans and patient images, must not be created or altered with AI. AI images produced as part of the research methods are permitted. Graphical abstracts: dedicated illustration tools, not general-purpose generative AI (Generative AI policies for journals) | Caption + AI disclosure statement (explanatory); Methods (data visualizations, research-method use) | |
| Lancet family | Disclosure required, generation discouraged | Manuscript disclosure | |
| Default (target unknown) | Treat as prohibited until confirmed | N/A |
Publisher pages set the floor; a journal's own guide can be stricter (JACC is an Elsevier journal). Check the target journal's guide as well as its publisher's.
Hard rule: For JACC, NEJM, or any "unknown" target journal, never use Gemini / DALL-E / Midjourney / Stable Diffusion / Nano Banana to create images that will appear in figures, Central Illustrations, or graphical abstracts. AI text-editing of the manuscript prose remains acceptable subject to standard disclosure.
Default workflow when AI images are not allowed
- SMART Servier Medical Art — https://smart.servier.com/, CC BY 4.0, free, 3,000+ vector medical icons (anatomy, organs, ethnicity-specific human figures, drugs, devices). Commercial / journal use allowed. Required attribution (1 line in figure legend OR methods):
> Anatomical icons modified from SMART Servier Medical Art (CC BY 4.0).
- NIAID BioArt (https://bioart.niaid.nih.gov) — public domain (US Govt), microbiology / immunology / lab-tech focus.
- BioRender (https://www.biorender.com) — institutional license usually required; use the exported "Publication-ready" PNG/TIFF and cite per BioRender publication policy.
- For "diseased" variants not directly available (e.g., calcified vessel from a clean vessel): reuse the healthy asset and overlay disease markers via matplotlib
scatter/Circle/PathPatch. Keeps the entire pipeline non-AI and reproducible.
Even when AI images are allowed, experienced reviewers recognise AI-generated illustrations (small decorative icons that add no information, overly uniform layouts, generic clip-art style). For high-impact submissions, prefer Servier / BioArt / BioRender + matplotlib overlays over AI.
Assets inside a co-author's figure. A policy check on an assembled figure as a whole never asks where its icons and illustrations came from. Before it enters the package, start from whatever source record exists, ask the co-author for the rest, and record the source of every embedded raster or vector asset per asset, as CITATION.md does below. Keep an asset only when both the right to use it for this purpose and the target journal's image policy are confirmed, with the attribution required. Otherwise (unknown origin, clip art bundled with office software, a generative tool) establish the source or replace it with an independently made drawing or an asset from the sources above; redrawing an unsourced picture to resemble it clears nothing. Record what was replaced, and check each embedded raster's pixel dimensions against its printed size.
When the manuscript is itself about AI. If the paper's argument concerns the reliability, provenance, oversight or detection of AI output, this skill's editorial rule is no generative-AI asset as decoration or illustration, even where the journal would accept one. A model output under study is different: preserve the original file, apply to the published panel only what leaves the result unchanged (de-identification, cropping, labelling), and record what was done and how it was produced.
Asset directory convention
Composition scripts should load only from _assets_servier/ and _assets_data/. If a script imports from _assets_ai/, treat it as a policy violation for JACC/NEJM/unknown targets.
AI Image Generation (Optional)
AI illustration is a supplementary option: every figure and visual abstract can be completed without an API key. If GEMINI_API_KEY is set, generate_image.py can generate illustrations (procedural schematics, anatomical illustrations), subject to the policy table and hard rule above:
If GEMINI_API_KEY is not set, use ${CLAUDE_SKILL_DIR}/references/medical_illustration_sources.md.
Visual Abstract / Graphical Abstract
European Radiology made graphical abstracts mandatory for all Original Articles from first revision (Jan 2025); other journals encourage or accept them (status list in template_guide.md). Check the target journal profile (write-paper/references/journal_profiles/) for its visual abstract requirements before starting.
Workflow
- Check journal template. Look for an official PPTX template in
${CLAUDE_SKILL_DIR}/references/visual_abstract_templates/{journal}.pptx. If no journal-specific template exists, use medsci_default.pptx.
- Extract content from the manuscript:
- Title: Full article title
- Hypothesis/Question: Derived from Key Point 1 or study objective (max 1 sentence)
- Methodology: Brief flowchart or ≤3 bullets, <6 words each
- Visual element: Study's own figure (ROC curve, flow diagram, representative image)
- Badges: Patient cohort (N=...) | Modality/organ | Single/Multi-center
- Main finding: Derived from Key Point 3 (<20 words)
- Citation: Journal (year) Authors; DOI
- Select visual element (priority order):
- Study's own figures (ROC, flow diagram, representative image) — always preferred
- Free illustration from Servier Medical Art or NIAID BioArt
(see ${CLAUDE_SKILL_DIR}/references/medical_illustration_sources.md)
- Manual drawing in PPT/Keynote/Figma
- AI generation via
generate_image.py --style medical(only if GEMINI_API_KEY set) - Generate using the script:
``bash python ${CLAUDE_SKILL_DIR}/scripts/generate_visual_abstract.py \ --template medsci_default \ --title "Article Title" \ --hypothesis "Research question" \ --methods "Method 1|Method 2|Method 3" \ --finding "Main finding statement" \ --citation "Eur Radiol (2026) Author A et al; DOI:..." \ --visual figures/fig1_roc_curve.png \ --badges "N=450|CT chest|Multi-center" \ --output figures/visual_abstract.pptx ``
- Review with user. Open the PPTX to verify layout and content. Iterate.
- Export. PPTX is the primary deliverable. For PNG: open in PowerPoint/Keynote → export,
or use LibreOffice CLI (soffice --headless --convert-to png).
Design: one page, landscape (16:9) or per the journal template; three sections (study question → key method → main result); the study's actual figures rather than generic graphics; minimal text; no decorative clip-art.
When the abstract reuses manuscript material, also check before export:
- Text inside a reused figure. If the journal sets a minimum text size or a typeface for text
in the graphical abstract, check each label of the figure at the scale it is placed, not at its original size. If labels fall short, place the graphic without its text and set the labels again as required; a figure that fills the frame can still carry labels below the minimum.
- Notation, not only values. Beside each number, compare the statistic it is (median, mean),
what its row and column headings say it compares, which stage or condition it belongs to when the manuscript reports several, and any footnote that defines it. Every number can match the manuscript tables while a heading or a dropped qualifier or footnote changes what it means.
- Table orientation. If transposing a manuscript table would put metrics with different units
or decimal places into one column, keeping the manuscript table's orientation avoids that.
Available Templates
| Template | File | Use When | |
|---|---|---|---|
| MedSci Default | medsci_default.pptx | Any journal without an official template | |
| JACC Central Illustration | jacc_central_illustration.pptx | JACC family journals (use --type central-illustration) |
Using a journal's own template. We do not redistribute journals' templates (e.g., European Radiology's EURA-GA-Jan2025.pptx): download it and pass its absolute path:
--template takes an absolute path to any .pptx. The script locates the fields by their text content rather than by shape name, so a journal's own template works unmodified. If the path does not exist it falls back to medsci_default.pptx.
To add a new journal template: see ${CLAUDE_SKILL_DIR}/references/visual_abstract_templates/template_guide.md.
Central Illustration vs Visual Abstract
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 84 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/make-figures/SKILL.md
Popularity
- Repository stars
- 315
- Repository forks
- 75
- 7-day trend score
- 29
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/aperivue/medsci-skills/make-figures)