SkillsGrove
SkillsGrove/Documents bureautiques/drtranquanghung91-vn/grand-rounds/medical-figures

medical-figures

Installation

$npx skills add https://github.com/drtranquanghung91-vn/grand-rounds --skill medical-figures
$git clone --depth 1 https://github.com/drtranquanghung91-vn/grand-rounds.git /tmp/grand-rounds && mkdir -p ~/.claude/skills && cp -r /tmp/grand-rounds/skills/medical-figures ~/.claude/skills/medical-figures
Installe pour moi cette Agent Skill : https://github.com/drtranquanghung91-vn/grand-rounds/tree/91df8f3c6cf86b4d593dc64266272343fdf60290/skills/medical-figures — lis d’abord son SKILL.md et ses scripts, et ne l’installe dans mon dossier de compétences qu’après avoir vérifié qu’elle est sûre.

Résumé

Description d’origine · MITUse 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.
Le SKILL.md ci-dessous est reproduit depuis drtranquanghung91-vn/grand-rounds (commit 91df8f3) sous licence MIT. Le texte est inchangé ; seules les métadonnées d’en-tête du fichier sont omises, les images sont affichées sous forme de liens et les fichiers très longs sont tronqués. Copyright 2026 Trần Quang Hưng. Licence : LICENSE. Seul le fichier d’instructions est affiché ; consultez le dépôt d’origine pour les éventuels scripts.

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.json is 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.

Voir le texte intégral de la licence (MIT)
MIT License

Copyright (c) 2026 Trần Quang Hưng

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Voir le NOTICE
# Third-party material

The MIT licence in `LICENSE` covers this repository's code and text. These files are under
their own licences:

| Files | Source | Licence |
|-------|--------|---------|
| `examples/fictional-trial/figures/icons/t-lymphocyte.svg`, `cancerous-cell-1.svg` and the copies inlined in `figures/s02-checkpoint.svg`, `out/nova1-journal-club.html`, `skills/medical-figures/examples/checkpoint-blockade.html` and `assets/screenshots/mechanism.*` | Servier Medical Art via Bioicons (https://bioicons.com) | [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/) |
| `examples/fictional-trial/figures/icons/immuneglobuline_igG_blue.svg` and its inlined copies (same files as above) | Helicase_11 via Bioicons | [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) |
| `examples/heart-anatomy/figures/servier/*`, the illustrations embedded in `examples/heart-anatomy/figures/four-chambers.labelled.svg` and `examples/heart-anatomy/out/heart-anatomy.html`, and the heart frames in `assets/screenshots/` | Servier Medical Art (https://smart.servier.com), exported from the "Heart physiology" kit; labels added | [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) |

`examples/heart-anatomy/figures/ai/heart-chatgpt.jpg` was generated with ChatGPT (OpenAI) by
the repository author and is released under MIT with the rest of the repository.