medical-figures
Skill19 starsChanged 16 days agoMITView on GitHub
Use when a medical slide needs a figure: reusing a Kaplan–Meier curve, forest plot or diagram from a paper PDF, drawing a CONSORT/PRISMA flow, trial schema, timeline or algorithm, charting trial data, finding a licensed anatomical or molecular illustration, or animating a mechanism, pathophysiology or drug action.
In this repository13 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- audit-deckSkill
- deck-grillingSkill
- deck-planningSkill
- evidence-auditSkill
- evidence-researchSkill
- grill-deckSkill
- html-deck-buildingSkill
- medical-deckSkill
- pptx-deck-buildingSkill
- slop-auditSkill
- template-matchingSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 60
Run each with --help.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Medical figures
Overview
A figure is evidence. Its numbers come from evidence/claims.json, its shapes from a
source, and its provenance goes into figures/manifest.json. Choose the cheapest route
that keeps it exact:
| Need | Route | Reference |
| A figure that exists in the source PDF (KM, forest plot, CONSORT) | Lift the vectors, recolour to the theme; never redraw a curve | reuse-from-pdf.md |
| A diagram the paper describes but doesn't draw well (trial schema, flow, timeline, algorithm) | Rebuild as SVG from claims only | diagrams.md |
| A comparison of numbers (rates, subgroup effects) | Chart from claims: dot/dumbbell, bars, forest | diagrams.md |
| Anatomy, organs, cells, molecules, devices | Libraries first: Servier Medical Art at full resolution, Bioicons, NIH BioArt. Then AI (ChatGPT or Gemini, whichever account the user has), checked against a reference. Never hand-coded organs | illustrations.md, ai-images.md |
| Labels on any picture | Editable labels in columns with leader lines, never baked into pixels | scripts/label_figure.py |
| A mechanism or physiology that unfolds over time (binding, signalling, blood flow) | Motion graphic built from Bioicons parts and animated in CSS (HTML only): click-stepped or looping like a video; static step panels for PPTX | motion.md, examples/checkpoint-blockade.html |
Rules
- No invented data. A curve, bar or box number that is not in
claims.jsonis not drawn. A CONSORT box with an unknown number shows "not reported". - Reused figures keep their content. You may recolour, crop to one panel, and add overlays (a marker at 24 months, a shaded interval). You may not delete censor ticks, numbers at risk or axis labels. Overlays use values from claims.
- Credit every figure with a short source line in the deck (
Source: Long GV et al. N Engl J Med 2026; Fig. 1A). Do not describe what you did to it on the slide ("recoloured", "redrawn"): that goes in the manifest. - Colours follow the entity. Intervention and control keep one colour each throughout
the deck. Take colours from
theme/theme.json. - Format. HTML decks inline SVG (animate with transforms; see
motion.md). PPTX decks take SVG (PowerPoint 2019+) with a PNG fallback at 300 dpi.
Manifest: figures/manifest.json
{"figures": [{
"file": "s05-km-rfs.svg", "slide": 5, "kind": "reused-vector",
"source": "long2026", "locator": "p. 6, Fig. 1A",
"licence": "© NEJM; reused for non-commercial education with citation",
"modifications": "cropped to panel A; arm colours mapped to theme; curves split into a separate layer",
"claims": ["c07", "c08"]
}]}kind is one of reused-vector, reused-raster, rebuilt, chart, illustration,
ai-generated, animation. AI-generated entries also record tool, prompt, date,
checked_against and issues (ai-images.md). A licence field that is empty or "unknown" is a finding for the audit.
Script
scripts/pdf_figures.py(PyMuPDF):list,extract,raster,colors,split.scripts/label_figure.py(Pillow): image + label spec → SVG with non-overlapping labels.scripts/bioicons.py(standard library): search and fetch Bioicons with credits.
Run each with --help.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

