/nature-paper-hub:nature-figurefrom nature-paper-hub
Generates publication-quality scientific figures for top-tier journals (Nature, Science, Cell) using Python/matplotlib or R/ggplot2. Handles multi-panel layouts, Nature color palettes, correct typography, and SVG/PDF/PNG export.
Ships in nature-paper-hub. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Generate multi-panel scientific figures that meet Nature portfolio visual standards: correct typography, semantic colour palette, accessible design, and editable SVG output.
Activate when user mentions:
| Format | Width | Resolution |
|---|---|---|
| Single column | 89 mm (3.5 in) | 300 DPI min |
| 1.5 column | 120 mm (4.7 in) | 300 DPI min |
| Double column | 183 mm (7.2 in) | 300 DPI min |
| Line art | any | 600 DPI |
| Final submission | PDF or TIFF | vector preferred |
NATURE_COLORS = {
"blue": "#4878CF",
"red": "#D65F5F",
"green": "#6ACC65",
"orange": "#EE854A",
"purple": "#956CB4",
"teal": "#82C6E2",
"brown": "#D5BB67",
"gray": "#8C8C8C",
# Colorblind-safe primary pair:
"cb_blue": "#0072B2",
"cb_orange":"#E69F00",
}
If user provides a CSV, Excel, or JSON data file:
python3 ${CLAUDE_PLUGIN_ROOT}/scripts/auto_figure.py \
--input <data_file> \
--output ~/Downloads/figure_<date>.pdf \
--title "[figure title]" \
--xlabel "X axis label" \
--ylabel "Y axis label" \
--type [auto|line|bar|scatter|heatmap|box]
The script auto-detects column types, chooses appropriate chart type, applies Nature style, and saves PDF + PNG.
Ask the user:
import matplotlib.pyplot as plt
import matplotlib.gridspec as gridspec
import numpy as np
# --- Nature style settings ---
plt.rcParams.update({
'font.family': 'Arial',
'font.size': 8,
'axes.linewidth': 0.8,
'axes.spines.top': False,
'axes.spines.right': False,
'xtick.major.width': 0.8,
'ytick.major.width': 0.8,
'xtick.major.size': 3,
'ytick.major.size': 3,
'xtick.direction': 'out',
'ytick.direction': 'out',
'figure.dpi': 300,
'savefig.dpi': 300,
'savefig.bbox': 'tight',
'savefig.pad_inches': 0.05,
'pdf.fonttype': 42, # editable text in PDF
'ps.fonttype': 42,
})
COLORS = {
"blue": "#4878CF", "red": "#D65F5F", "green": "#6ACC65",
"orange": "#EE854A", "purple": "#956CB4", "teal": "#82C6E2",
"cb_blue": "#0072B2", "cb_orange": "#E69F00",
}
# --- Figure layout ---
fig = plt.figure(figsize=(7.2, 4.0)) # double column, adjust height
gs = gridspec.GridSpec(1, 3, figure=fig, wspace=0.4, hspace=0.4)
ax_a = fig.add_subplot(gs[0])
ax_b = fig.add_subplot(gs[1])
ax_c = fig.add_subplot(gs[2])
# --- Panel labels ---
for ax, label in zip([ax_a, ax_b, ax_c], ['a', 'b', 'c']):
ax.text(-0.15, 1.05, label, transform=ax.transAxes,
fontsize=8, fontweight='bold', va='top', ha='right')
# --- YOUR DATA GOES HERE ---
# ax_a: ...
# ax_b: ...
# ax_c: ...
plt.savefig('figure1.pdf', format='pdf')
plt.savefig('figure1.png', dpi=300)
print("Saved: figure1.pdf, figure1.png")
library(ggplot2)
library(patchwork)
# Nature theme
theme_nature <- function() {
theme_classic(base_size = 8, base_family = "Arial") +
theme(
axis.line = element_line(linewidth = 0.5),
axis.ticks = element_line(linewidth = 0.5),
axis.ticks.length = unit(2, "pt"),
strip.background = element_blank(),
legend.key.size = unit(3, "mm"),
plot.margin = margin(2, 2, 2, 2, "mm")
)
}
nature_colors <- c(
blue = "#4878CF", red = "#D65F5F", green = "#6ACC65",
orange = "#EE854A", purple = "#956CB4", teal = "#82C6E2"
)
# --- YOUR PLOTS ---
# p1 <- ggplot(...) + theme_nature()
# p2 <- ggplot(...) + theme_nature()
# combined <- p1 | p2
# ggsave("figure1.pdf", combined, width = 183, height = 80, units = "mm", dpi = 300)
Before outputting, check:
Generate the corresponding figure legend text:
Use solid lines with markers; different line styles + colours for groups.
Prefer horizontal bars for many categories; overlay individual data points.
Use plt.bar() with edgecolor='black', linewidth=0.5.
Include regression line with 95% CI if showing correlation. State Pearson/Spearman r and p-value on plot.
Use diverging colourmap (e.g., RdBu_r) for correlation; sequential for intensity.
Always include colourbar with label and units.
Always overlay individual data points (stripplot or geom_jitter).
State n per group.
Recommend using BioRender (biorender.com) or Inkscape for schematics. Export as SVG and embed in figure.
Provide the user with:
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub yang1bai/nature-paper-hub --plugin nature-paper-hub7 skills in this plugin
/nature-citationStrict Nature/CNS-family citation retrieval, verification, and export. Given a topic, claim, or list of papers, finds real citations, verifies DOIs, checks retraction status, and exports in BibTeX, RIS, ENW, or Zotero RDF format. Trigger when user needs citations, wants to verify references, or needs to export a reference list./nature-integrity-checkPre-submission and post-revision integrity verification for top-tier journal manuscripts (Nature, Science, Cell, PNAS, ACS, Wiley families). Runs 5-phase protocol: citation integrity (calls nature-citation upstream), data & statistical claims cross-check, figure integrity, research integrity statements (auto-generates Data Availability, Code Availability, CRediT with 14 roles, Competing Interests, Ethics approval templates), and originality signals. Produces structured PASS/FAIL/WARNING report with CRITICAL/MAJOR/MINOR classification. Two modes: pre-review (before reviewer simulation, fix up to 3x on FAIL) and final-check (IRON RULE: zero CRITICAL to proceed to export). Trigger keywords: 完整性检查, integrity check, 投稿前检查, pre-submission check, 检查完整性, verify integrity, 投稿前验证./nature-paper2pptConvert a scientific paper into a presentation deck (PPTX). Generates structured Chinese or bilingual slides for journal clubs, group meetings, or conference talks. Trigger when user wants to make slides from a paper or present research findings./nature-paper-hubFull-pipeline assistant for submitting to 19 top journals — the Nature portfolio (12) plus Science, Cell, PNAS, JACS, ACS Nano, Angewandte Chemie and Advanced Materials. Covers journal selection, literature review, manuscript drafting, figure generation, citation verification, integrity checking, pre-submission reviewer simulation, submission audit, cover letter, export (LaTeX/Word/PPTX) and reviewer rebuttal. Trigger when the user wants to write, revise, format, review, or submit a research paper to any top-tier journal (Nature / Science / Cell / PNAS / ACS / Wiley families), or needs help with any part of the academic writing and submission process./nature-readerFull-paper bilingual reader for top-tier journal papers (Nature, Science, Cell, PNAS, ACS, Wiley families). Converts a PDF or URL into a structured, annotated Markdown document with Chinese translation, figure grounding, source anchors, and section summaries. Trigger when user wants to read, translate, or annotate a scientific paper./nature-reviewer-simPre-submission peer review simulation calibrated to top-tier journals (Nature, Science, Cell, PNAS, ACS, Wiley families). Deploys 7 specialist agents (field analyst, EIC, methodology reviewer, domain reviewer, perspective reviewer, devils advocate, editorial synthesizer) to simulate the full peer review process. Outputs structured reviewer reports, an Editorial Decision Letter, and a Revision Roadmap. Supports three modes: full (all 7 agents, default), quick (EIC only, ~15 min), and re-review (R&R traceability matrix for post-revision verification). Trigger keywords: 模拟审稿, reviewer simulation, pre-submission review, simulate peer review, 审稿模拟, 投稿前审稿, review my paper, 帮我审稿, 预审稿.Other plugins' skills for the same job