Agent skill

Figure Legend Writer

by aipoch in aipoch/medical-research-skills

Writes complete, publication-grade figure legends that can stand on their own.

MITAuto-check passedResearch & Science

Install Figure Legend Writer

skills CLI
$ npx skills add aipoch/medical-research-skills --skill figure-legend-writer -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install aipoch/medical-research-skills figure-legend-writer --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/aipoch/medical-research-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/'awesome-med-research-skills/Academic Writing/figure-legend-writer' .claude/skills/figure-legend-writer && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
figure-legend-writer
GitHub stars
1.9k
Token cost
~1.5k tokens
SKILL.md length
672 words
Files
6 (incl. scripts, references)
Skills in repo
578
Repo updated
First seen
Licence
MIT

At a glance

Writes complete, publication-grade figure legends that can stand on their own.

  • Works in 3 steps: Identify Figure Details → Write the Legend → Quality Check
  • Revising figure legends for any scientific figure — bar charts
  • SKILL.md covers When to Use, Input Validation, Required Legend Elements by… and Core Workflow, plus 3 more sections
  • Runs Python scripts from its folder

What it does

Figure Legend Writer is an agent skill from aipoch/medical-research-skills. Writes complete, publication-grade figure legends that can stand on their own. Use when writing or revising figure legends for any scientific figure — bar charts, line graphs, scatter plots, box plots, heatmaps, survival curves, flow cytometry plots, western blots, microscopy images, or schematic diagrams. Also triggers on "write a figure legend for", "help me describe this figure", "my figure needs a legend", "write Figure 1 legend", or "what should a figure legend include".

Its SKILL.md is about 1.5k tokens, which your agent loads only when the skill is triggered. The skill folder holds 7 other files, including scripts and reference files (for example `eval_report_figure-legend-writer_result.json`, `references/academic_style_guide.md` and `references/legend_templates.md`).

It sits in Research & Science, covering Data visualization and Diagrams. The repository describes itself as: Hundreds of agent skills for medical research, including protocol design, data analysis, evidence insights, and academic writing. The licence is MIT.

When your agent uses it

  • Revising figure legends for any scientific figure — bar charts
  • Survival curves
  • Flow cytometry plots
  • Microscopy images

Example prompts

  • “write a figure legend for”
  • “help me describe this figure”
  • “my figure needs a legend”
  • “/figure-legend-writer”

Requirements

  • Python 3

Workflow steps

3 steps, taken from the step headings in SKILL.md.

  1. Identify Figure Details
  2. Write the Legend
  3. Quality Check

What it can do on your machine

Read from SKILL.md and the folder at commit 686e09d. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 1 file in scripts/ (Python), which the agent can run.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Figure Legend Writer loads about 1.5k tokens when it runs, and up to ~2.8k if it reads all its reference files. Until then it costs about 125 tokens; SKILL.md has 672 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~125
When it runs · the whole SKILL.md, loaded when a task matches
~1.5k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~2.8k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from aipoch/medical-research-skills at commit 686e09d, republished under its MIT licence (© aipoch). 672 words, ~1,542 tokens.

Download SKILL.mdSave it as .claude/skills/figure-legend-writer/SKILL.md (or your agent's skills folder). This skill also uses 5 other files; get the full folder from GitHub.
name
figure-legend-writer
description
Writes complete, publication-grade figure legends that can stand on their own. Use when writing or revising figure legends for any scientific figure — bar charts, line graphs, scatter plots, box plots, heatmaps, survival curves, flow cytometry plots, western blots, microscopy images, or schematic diagrams. Also triggers on "write a figure legend for", "help me describe this figure", "my figure needs a legend", "write Figure 1 legend", or "what should a figure legend include".
license
MIT
author
AIPOCH

Source: https://github.com/aipoch/medical-research-skills

Figure Legend Generator

You are a biomedical writing specialist for figure legends. Your output is a complete, self-contained figure legend that allows a reader to understand the figure without referring to the main text.

When to Use

  • Writing figure legends for any scientific chart, graph, image, or diagram
  • Ensuring legends include all required elements (sample size, grouping, statistics, abbreviations)
  • Revising legends that are too brief, too verbose, or missing key methodological details
  • Adapting legend style to match journal requirements (structured vs free-form)

Input Validation

This skill accepts:

  • A figure description, image, or verbal explanation of what the figure shows
  • Optionally: figure number, figure type, sample size, statistical test used, significance thresholds, abbreviations

Out-of-scope:

  • Fabricating statistical results, sample sizes, or methodological details not provided by the user
  • Interpreting the scientific meaning of the findings (for that, use discussion-section-architect)

"Figure Legend Generator writes the legend text. Describe what the figure shows and I will write the legend."

Required Legend Elements by Figure Type

Every legend should be self-contained and include the elements appropriate to the figure type:

Universal Elements (all figure types)
  1. Figure number and brief title: Figure 1. [Concise description of what the figure shows]
  2. What is shown: a 1–2 sentence description of the content (what is on each axis, what groups are compared)
  3. Sample description: n = X per group or n = X total; specify biological vs technical replicates if relevant
  4. Key abbreviations: define all abbreviations used in the figure at first mention in the legend
  5. Statistics: state the statistical test, what the significance markers mean (*P < 0.05, **P < 0.01, ***P < 0.001), and whether bars represent mean ± SEM, mean ± SD, or median (IQR)
  6. Representative/panel note: if the figure shows representative data from N experiments, state this
Figure-Type-Specific Elements
Figure typeKey additional elements
Bar / column chartError bar type (SEM, SD, 95% CI); what each bar represents; comparison tested
Line graphX-axis time unit; what each line represents; error bar type
Scatter plotWhat each dot represents; regression line and R²/correlation coefficient if shown
Box plotBox = median + IQR, whiskers = [define range]; outlier definition
HeatmapColor scale meaning; normalization method (e.g., z-score per row); clustering method if applicable
Survival / KM curveEndpoint definition; censoring rule; log-rank or Cox test; number at risk table location
Flow cytometryWhat was gated; gating strategy reference; percentage shown; representative of N experiments
Western blotLoading control; antibody (or note that full blot is in supplement); normalization method
Microscopy / IHCScale bar; magnification; stain / antibody; representative of N samples
Schematic / diagramBrief statement of what the diagram depicts; source of components if applicable
Forest plotOR/HR/RR definition; heterogeneity (I² and Q-test); fixed vs random effects model
Show full SKILL.md (224 more words)Show less

Core Workflow

Step 1 — Identify Figure Details

Ask the user to provide (or infer from description):

  • What type of figure is it?
  • What does each panel/axis/group show?
  • How many samples per group / total N?
  • What statistical test was used? What do significance markers represent?
  • What do error bars represent?
  • Any abbreviations in the figure that need defining?

If critical details (N, statistics) are missing, insert explicit placeholders rather than inventing them.

Step 2 — Write the Legend

Follow this structure:

Figure X. [Brief title — what the figure shows in ≤15 words].

[Panel-by-panel or grouped description of what is shown. State axes, 
groups compared, and data type. Include sample size and replicate info.] 
[Statistical note: test used, significance thresholds, what error bars represent.] 
[Abbreviation definitions.] [Representative data statement if applicable.]

For multi-panel figures, address each panel separately:

(A) [Panel A description]. (B) [Panel B description]. ...
Step 3 — Quality Check
  • Legend is self-contained — a reader could understand the figure without the main text
  • Sample size (n) is stated
  • Error bar type is defined
  • Statistical test and significance threshold are stated
  • All abbreviations appearing in the figure are defined in the legend
  • Scale bars defined for microscopy images
  • No statistical results fabricated — placeholders used for missing values

Placeholder Convention

When information is missing, use explicit placeholders:

  • [n = X per group] — for sample size
  • [AUTHOR: specify error bar type — SEM or SD]
  • [AUTHOR: specify statistical test]
  • [P < 0.05 = *; exact thresholds to be verified]

Hard Rules

  • Never fabricate sample sizes, p-values, or statistical tests not provided by the user
  • Never invent abbreviation definitions — ask if uncertain
  • Never shorten a legend to the point where it loses self-sufficiency

References

→ Templates by chart type: references/legend_templates.md → Academic style guide: references/academic_style_guide.md

© aipoch, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 5 other files (scripts, references) in awesome-med-research-skills/Academic Writing/figure-legend-writer of aipoch/medical-research-skills.

  • SKILL.md
  • eval_report_figure-legend-writer_result.json
  • references/academic_style_guide.md
  • references/legend_templates.md
  • requirements.txt
  • scripts/main.py

Open the folder on GitHubat commit 686e09d

Compare with similar skills

Figure Legend Writer next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Figure Legend Writer compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Figure Legend Writer this skillaipoch/medical-research-skills1.9k—~1.5kAutomated safety check: PassMIT
Engineering Figure Agentheyu-233/engineering-figure-agent307—~1.1kAutomated safety check: PassMIT
Scientific Schematicsjaechang-hits/SciAgent-Skills374—~3.8kAutomated safety check: PassCC-BY-4.0
Plotting AgentAr9av/PaperOrchestra6791 repos~2.3kAutomated safety check: PassCustom licence
Academic Figurejoshua-zyy/academic-paper-writer115—~816Automated safety check: PassMIT
Scientific SchematicsK-Dense-AI/scientific-agent-skills48k1 repos~5.1kAutomated safety check: NotesMIT

Similar skills

  • Engineering Figure Agent

    heyu-233/engineering-figure-agent

    A skill your agent uses when the user needs engineering or research-paper figures: system architecture diagrams, algorithm workflows, hardware schematics, benchmark charts, ablation plots, figure…

    307 GitHub stars~1.1k tokensUpdated 4 mo ago
    Research & ScienceAuto-check passed
  • Scientific Schematics

    jaechang-hits/SciAgent-Skills

    Designing scientific schematics, diagrams, and graphical abstracts.

    374 GitHub stars~3.8k tokensUpdated 12 days ago
    Research & ScienceAuto-check passed
  • Plotting Agent

    Ar9av/PaperOrchestra

    Step 2 of the PaperOrchestra pipeline (arXiv:2604.05018). An agent skill from Ar9av/PaperOrchestra.

    679 GitHub starsUsed in 1 repo~2.3k tokens
    Research & ScienceAuto-check passed
  • Academic Figure

    joshua-zyy/academic-paper-writer

    Create, revise, or audit academic data/result figures for CS/AI/ML papers.

    115 GitHub stars~816 tokensUpdated 6 days ago
    Data & AnalyticsAuto-check passed
  • Scientific Schematics

    K-Dense-AI/scientific-agent-skills

    Generates scientific diagram drafts using Nano Banana 2 AI with smart iterative refinement.

    48k GitHub starsUsed in 1 repo~5.1k tokens
    DevelopmentAuto-check: notes
  • Scholar Conceptual

    joshzyj/open-scholar-skill

    Build original theoretical frameworks and produce publication-quality conceptual diagrams for social science research.

    168 GitHub stars~5.3k tokensUpdated 22 days ago
    DevelopmentAuto-check passed

More from aipoch/medical-research-skills

All 578 skills in this repo
  • Academic Poster Generator

    aipoch/medical-research-skills

    Complete workflow for generating academic research posters from PDF literature; use when you need to extract paper content from PDFs and produce a LaTeX-based poster…

    1.9k GitHub stars~2.2k tokensUpdated 24 days ago
    Auto-check passed
  • Diagnostic Study Quality Assessment Quadas

    aipoch/medical-research-skills

    Analyzes clinical diagnostic accuracy studies for bias using the QUADAS-2 tool.

    1.9k GitHub stars~1.4k tokensUpdated 24 days ago
    Auto-check passed
  • Exploratory Data Analysis

    aipoch/medical-research-skills

    Perform comprehensive exploratory data analysis on scientific data files across 200+ file formats.

    1.9k GitHub stars~3.7k tokensUpdated 24 days ago
    Auto-check passed
  • Iso Certification

    aipoch/medical-research-skills

    A toolkit for preparing ISO 13485:2016 certification documentation for medical device QMS.

    1.9k GitHub stars~1.8k tokensUpdated 24 days ago
    Auto-check passed
  • Journal Skills

    aipoch/medical-research-skills

    Recommends target journals for manuscript submission by analyzing the paper topic/abstract and the journal distribution of similar PubMed literature; use when users ask for journal…

    1.9k GitHub stars~1.7k tokensUpdated 24 days ago
    Auto-check passed
  • Latex Posters

    aipoch/medical-research-skills

    Creates academic-poster writing packages for LaTeX using beamerposter, tikzposter, or baposter.

    1.9k GitHub stars~1.3k tokensUpdated 24 days ago
    Auto-check passed

Questions about Figure Legend Writer

What does Figure Legend Writer do?

Writes complete, publication-grade figure legends that can stand on their own. Figure Legend Writer is an agent skill from aipoch/medical-research-skills. Writes complete, publication-grade figure legends that can stand on their own.

When should I use Figure Legend Writer?

Figure Legend Writer fits situations like: revising figure legends for any scientific figure — bar charts; survival curves; flow cytometry plots; microscopy images.

How do I install Figure Legend Writer in Claude Code?

Run `npx skills add aipoch/medical-research-skills --skill figure-legend-writer -a claude-code`. Or copy the skill folder (awesome-med-research-skills/Academic Writing/figure-legend-writer in aipoch/medical-research-skills) into .claude/skills/figure-legend-writer in your project. Claude Code loads it when a task matches its description.

How do I install Figure Legend Writer in Codex?

Run `npx skills add aipoch/medical-research-skills --skill figure-legend-writer -a codex`. Or copy the skill folder (awesome-med-research-skills/Academic Writing/figure-legend-writer in aipoch/medical-research-skills) into .agents/skills/figure-legend-writer in your project. Codex loads it when a task matches its description.

Can I use Figure Legend Writer in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add aipoch/medical-research-skills --skill figure-legend-writer -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/figure-legend-writer, .gemini/skills/figure-legend-writer, .github/skills/figure-legend-writer and .opencode/skills/figure-legend-writer in your project.

What does Figure Legend Writer need to run?

Going by SKILL.md and its folder, Figure Legend Writer needs Python for the scripts in its folder. Our summary lists: Python 3.

Does Figure Legend Writer access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Figure Legend Writer safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Figure Legend Writer use?

Figure Legend Writer is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Figure Legend Writer use?

About 1.5k tokens (SKILL.md is roughly 6.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 1.2k tokens, read only when the agent opens those files.

What are the alternatives to Figure Legend Writer?

Skills that share tags, products or a category with Figure Legend Writer: Engineering Figure Agent (heyu-233/engineering-figure-agent, 307 stars), Scientific Schematics (jaechang-hits/SciAgent-Skills, 374 stars), Plotting Agent (Ar9av/PaperOrchestra, 679 stars) and Academic Figure (joshua-zyy/academic-paper-writer, 115 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Figure Legend Writer?

aipoch (a GitHub organization) maintains it in aipoch/medical-research-skills, which has 1,937 GitHub stars. The repository holds 578 skills in this directory. The repository was last updated on September 17, 2026.

Source: aipoch/medical-research-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.