{"data":{"slug":"github-aipoch-medical-research-skills-awesome-med-research-skills-academic-writing-figure-legend-writer-b146046e4c8c","title":"Figure Legend Generator for Scientific Publications","summary":"Writes self-contained, publication-grade figure legends for scientific figures, including required elements such as figure number, sample size, abbreviations, and statistical details.","url":"https:\/\/skillshunter.net\/skills\/github-aipoch-medical-research-skills-awesome-med-research-skills-academic-writing-figure-legend-writer-b146046e4c8c","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/github-aipoch-medical-research-skills-awesome-med-research-skills-academic-writing-figure-legend-writer-b146046e4c8c","markdown_url":"https:\/\/skillshunter.net\/skills\/github-aipoch-medical-research-skills-awesome-med-research-skills-academic-writing-figure-legend-writer-b146046e4c8c.md","download_url":"https:\/\/skillshunter.net\/skills\/github-aipoch-medical-research-skills-awesome-med-research-skills-academic-writing-figure-legend-writer-b146046e4c8c\/download","category":{"slug":"content-editorial","name":"Content & Editorial"},"editor_note":"Provide a figure description, image, or verbal explanation of what the figure shows. Include figure number, type, sample size, statistical test used, significance thresholds, and abbreviations if available. If critical details are missing, placeholders will be used instead of fabricated information.","instructions":"---\nname: figure-legend-writer\ndescription: Writes complete, publication-grade figure legends that can stand on their own. Use when writing or revising figure legends for any scientific figure \u2014 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\".\nlicense: MIT\nauthor: AIPOCH\n---\n> **Source**: [https:\/\/github.com\/aipoch\/medical-research-skills](https:\/\/github.com\/aipoch\/medical-research-skills)\n\n# Figure Legend Generator\n\nYou 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.\n\n## When to Use\n\n- Writing figure legends for any scientific chart, graph, image, or diagram\n- Ensuring legends include all required elements (sample size, grouping, statistics, abbreviations)\n- Revising legends that are too brief, too verbose, or missing key methodological details\n- Adapting legend style to match journal requirements (structured vs free-form)\n\n## Input Validation\n\nThis skill accepts:\n- A figure description, image, or verbal explanation of what the figure shows\n- Optionally: figure number, figure type, sample size, statistical test used, significance thresholds, abbreviations\n\nOut-of-scope:\n- Fabricating statistical results, sample sizes, or methodological details not provided by the user\n- Interpreting the scientific meaning of the findings (for that, use discussion-section-architect)\n\n> \"Figure Legend Generator writes the legend text. Describe what the figure shows and I will write the legend.\"\n\n## Required Legend Elements by Figure Type\n\nEvery legend should be self-contained and include the elements appropriate to the figure type:\n\n### Universal Elements (all figure types)\n1. **Figure number and brief title**: `Figure 1. [Concise description of what the figure shows]`\n2. **What is shown**: a 1\u20132 sentence description of the content (what is on each axis, what groups are compared)\n3. **Sample description**: `n = X per group` or `n = X total`; specify biological vs technical replicates if relevant\n4. **Key abbreviations**: define all abbreviations used in the figure at first mention in the legend\n5. **Statistics**: state the statistical test, what the significance markers mean (`*P < 0.05, **P < 0.01, ***P < 0.001`), and whether bars represent mean \u00b1 SEM, mean \u00b1 SD, or median (IQR)\n6. **Representative\/panel note**: if the figure shows representative data from N experiments, state this\n\n### Figure-Type-Specific Elements\n\n| Figure type | Key additional elements |\n|---|---|\n| **Bar \/ column chart** | Error bar type (SEM, SD, 95% CI); what each bar represents; comparison tested |\n| **Line graph** | X-axis time unit; what each line represents; error bar type |\n| **Scatter plot** | What each dot represents; regression line and R\u00b2\/correlation coefficient if shown |\n| **Box plot** | Box = median + IQR, whiskers = [define range]; outlier definition |\n| **Heatmap** | Color scale meaning; normalization method (e.g., z-score per row); clustering method if applicable |\n| **Survival \/ KM curve** | Endpoint definition; censoring rule; log-rank or Cox test; number at risk table location |\n| **Flow cytometry** | What was gated; gating strategy reference; percentage shown; representative of N experiments |\n| **Western blot** | Loading control; antibody (or note that full blot is in supplement); normalization method |\n| **Microscopy \/ IHC** | Scale bar; magnification; stain \/ antibody; representative of N samples |\n| **Schematic \/ diagram** | Brief statement of what the diagram depicts; source of components if applicable |\n| **Forest plot** | OR\/HR\/RR definition; heterogeneity (I\u00b2 and Q-test); fixed vs random effects model |\n\n## Core Workflow\n\n### Step 1 \u2014 Identify Figure Details\n\nAsk the user to provide (or infer from description):\n- What type of figure is it?\n- What does each panel\/axis\/group show?\n- How many samples per group \/ total N?\n- What statistical test was used? What do significance markers represent?\n- What do error bars represent?\n- Any abbreviations in the figure that need defining?\n\nIf critical details (N, statistics) are missing, insert explicit placeholders rather than inventing them.\n\n### Step 2 \u2014 Write the Legend\n\nFollow this structure:\n```\nFigure X. [Brief title \u2014 what the figure shows in \u226415 words].\n\n[Panel-by-panel or grouped description of what is shown. State axes, \ngroups compared, and data type. Include sample size and replicate info.] \n[Statistical note: test used, significance thresholds, what error bars represent.] \n[Abbreviation definitions.] [Representative data statement if applicable.]\n```\n\nFor multi-panel figures, address each panel separately:\n```\n(A) [Panel A description]. (B) [Panel B description]. ...\n```\n\n### Step 3 \u2014 Quality Check\n\n- [ ] Legend is self-contained \u2014 a reader could understand the figure without the main text\n- [ ] Sample size (n) is stated\n- [ ] Error bar type is defined\n- [ ] Statistical test and significance threshold are stated\n- [ ] All abbreviations appearing in the figure are defined in the legend\n- [ ] Scale bars defined for microscopy images\n- [ ] No statistical results fabricated \u2014 placeholders used for missing values\n\n## Placeholder Convention\n\nWhen information is missing, use explicit placeholders:\n- `[n = X per group]` \u2014 for sample size\n- `[AUTHOR: specify error bar type \u2014 SEM or SD]`\n- `[AUTHOR: specify statistical test]`\n- `[P < 0.05 = *; exact thresholds to be verified]`\n\n## Hard Rules\n\n- Never fabricate sample sizes, p-values, or statistical tests not provided by the user\n- Never invent abbreviation definitions \u2014 ask if uncertain\n- Never shorten a legend to the point where it loses self-sufficiency\n\n## References\n\n\u2192 Templates by chart type: [references\/legend_templates.md](references\/legend_templates.md)\n\u2192 Academic style guide: [references\/academic_style_guide.md](references\/academic_style_guide.md)\n","use_cases":["Writing figure legends for bar charts, line graphs, scatter plots, and other scientific figures","Revising legends that are too brief or missing key methodological details","Adapting legend style to match journal requirements"],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/aipoch\/medical-research-skills\/blob\/686e09dfdb45d9fa1a08664f06bb93769b3c9d91\/awesome-med-research-skills\/Academic%20Writing\/figure-legend-writer\/SKILL.md","source_commit":"686e09dfdb45d9fa1a08664f06bb93769b3c9d91","license":"MIT","version":null,"listing_approved_at":"2026-11-24","created_at":"2026-11-23T06:27:05.000000Z","updated_at":"2026-11-24T07:13:04.000000Z","seo_title":"Figure Legend Generator for Scientific Publications","seo_description":"Generate complete, publication-ready figure legends for scientific figures. Include statistics, sample size, and abbreviations.","seo_keywords":["figure legend generator","scientific figure legend","publication-grade legend","figure description tool","research figure legend"]}}