/academic-skills-food-nutrition:food-figurefrom academic-skills-food-nutrition
Analyzes food/nutrition data and recommends the best figure type, then produces submission-grade graphics in Python or R at target journal specs. Handles bar, scatter, PCA, heatmaps, and more.
Ships in academic-skills-food-nutrition. 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.
Read when SKILL.md points to them.
Turn a dataset (or a described result) into the right submission-grade figure. The chart serves the scientific logic; polish is subordinate to making the core conclusion clear, defensible, and reviewable. Original work; architecture informed by open community figure skills (see the repo README Acknowledgements).
Load reference files as needed (progressive disclosure) — don't read them all
up front. The map is in the frontmatter references list.
flowchart TD
A[Data or described result] --> B[1. Analyze the data<br/>scripts/analyze_data.py -> profile]
B --> C[2. Recommend figures<br/>references/data-to-figure.md]
C --> D[3. Figure contract<br/>references/figure-contract.md]
D --> E{Backend?}
E -- unknown --> Eq[Ask 'Python or R?' once<br/>scripts/backend_pref.py]
E -- known --> F
Eq --> F[4. Render<br/>python-guide.md OR r-guide.md + food-recipes.md]
F --> G[5. Export at journal spec<br/>references/journal-specs.md]
G --> H[6. QA<br/>references/qa-checklist.md]
H --> OUT[Journal-ready SVG/PDF/TIFF + editable source]
If the user supplies a data file (CSV/TSV/Excel) or table, profile it first:
run scripts/analyze_data.py <file> to get, per column, the type
(numeric/categorical/datetime), cardinality, missingness, distribution summary,
and the detected structure (grouping factors, repeated measures, time/dose axis,
wide sensory/composition matrix). If the user only describes a result, elicit the
same: what varies, what's measured, n, and the error type. See
references/data-to-figure.md.
From the profile, propose the best figure type(s) with a one-line rationale
each, and say what each would show. Prefer the figure that makes the paper's
claim most directly; note honest alternatives. The decision rules and a full
catalog are in references/data-to-figure.md and references/chart-types.md.
Never force a chart the data can't support (e.g. bar-of-means where a
distribution matters → box/violin + points).
Fix the conclusion, evidence logic, export needs (target journal), and review
risks (references/figure-contract.md). Open a figure trace card
(references/figure-provenance.md): the real data source, the script that makes
the figure, what it shows, and the claim it supports — so the plotted values match
the reported statistics. Choose the palette by data type
(references/color-palettes.md).
For a dense Figure 1/2-style request, first design the complete evidence story
with references/figure-story-design.md: experimental sequence, evidence
hierarchy, non-redundant panel questions, source-data map, opening schematic, and
an integrated synthesis panel. Do not start by filling a grid with chart types.
python scripts/backend_pref.py get) → ask once ("Python or R? I'll remember
this") and save it (backend_pref.py set python|r). The chosen backend does
all data graphics, preview, and export; the other may only help with data
prep/conversion.references/ai-image-generation.md.Use the selected backend's guide (python-guide.md = matplotlib/seaborn/
subplot_mosaic/statsmodels; r-guide.md = ggplot2/patchwork/ComplexHeatmap/
ggrepel + svglite/cairo_pdf/ragg) plus food-recipes.md for the food/nutrition
figure types. Start from the template library — examples/python_food_figures.py
or examples/r_food_figures.R — which has a ready function for every figure type;
adapt it to the user's data. Export vector (PDF/SVG) for line/bar/scatter and
TIFF (LZW) at the journal DPI for raster/microscopy; keep an editable source.
Pull DPI, column width, font, and format from the target journal via
references/journal-specs.md; if no journal is set, default to 300 dpi, ~90/190 mm
widths, TIFF+PDF, Arial 7–9 pt.
Run references/qa-checklist.md before delivering (error bars defined + n;
statistics shown consistently; axes honest; colorblind-safe; labels legible at
final size; matches journal spec; every panel cited). Privacy: any code or
legend you hand back must use relative paths, never local machine paths — scan
with python3 scripts/privacy_scan.py (see
food-paper/references/privacy-and-confidentiality.md).
Hand back, per figure: the file(s) (vector + raster), the figure trace card,
a self-contained caption (APA 7.0 or the journal's style — see
references/figure-provenance.md), and the plotting code. For a .tex build,
include the \includegraphics environment.
references/ai-image-generation.md) if the user asks.Reproducible, code-generated, submission-grade scientific figures for food &
nutrition. Not for dashboards or Illustrator/Figma-first artwork. A
schematic/graphical-abstract (mechanism diagram) is a drawing task: keep it in
Python/R by default, or — only if the user explicitly asks — generate it with an
AI image model (Gemini/ChatGPT/Claude) per references/ai-image-generation.md.
Data figures are always Python/R.
Called by food-paper's viz_designer at the journal spec; figures feed the
manuscript's Results.
assets/publication.mplstyle (opens in a new tab)examples/gallery/README.md (opens in a new tab)examples/gallery/ai-image-test.md (opens in a new tab)examples/gallery/captions.md (opens in a new tab)examples/gallery/data/active_packaging_dose_response.csv (opens in a new tab)examples/gallery/data/active_packaging_material.csv (opens in a new tab)examples/gallery/data/active_packaging_storage.csv (opens in a new tab)examples/gallery/data/method_calibration_standards.csv (opens in a new tab)examples/gallery/data/method_paired_measurements.csv (opens in a new tab)examples/gallery/data/method_reaction_profiles.csv (opens in a new tab)examples/gallery/data/method_recovery_precision.csv (opens in a new tab)examples/gallery/data/method_robustness_matrix.csv (opens in a new tab)examples/gallery/data/probiotic_challenge_survival.csv (opens in a new tab)examples/gallery/data/probiotic_encapsulation_properties.csv (opens in a new tab)examples/gallery/data/probiotic_storage_kinetics.csv (opens in a new tab)examples/gallery/data/sensory_overall_liking.csv (opens in a new tab)examples/gallery/data/sensory_panel_ratings.csv (opens in a new tab)examples/gallery/figures/fig1_active_packaging.pdf (opens in a new tab)examples/gallery/figures/fig2_probiotic_storage_kinetics.pdf (opens in a new tab)examples/gallery/figures/fig3_sensory_radar.pdf (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub pangenomeai/academic-skills-food-nutrition --plugin academic-skills-food-nutrition15 skills in this plugin
/agri-deep-researchDeep research producing a fully written, source-validated literature review on an agricultural question, as a senior agricultural scientist of the relevant discipline: scope, design the method, discover and screen by journal ranking, validate every source, extract and verify evidence, synthesize, stress-test, then write and format the review through an editorial and integrity loop. Same 12-subagent machinery as food-deep-research, grounded in agriculture and multidisciplinary literature (Q1/Q2 preferred, Q4 avoided). Use standalone for an agricultural deep dive, or as the engine called by agri-research. Triggers: deep research agriculture, investigate this agronomy question, agricultural literature review, state of the evidence in soil science, deep dive crop research./agri-paperMulti-subagent manuscript system for agricultural science, written as a senior agricultural scientist of the relevant discipline: understand the field, frame questions, curate data, run statistics, build figures and tables, construct the discussion, draft, polish, and self-review — journal-aware throughout. Same machinery as food-paper, grounded in agriculture literature (Q1/Q2 preferred, Q4 avoided) and agricultural reporting standards for field trials, animal work and soils. Includes a format-convert mode that reformats a finished manuscript for another journal without touching the science. Triggers: write my agronomy paper, draft an agricultural manuscript, soil science paper, horticulture paper, animal science manuscript, analyze my field trial and write it up, format for an agriculture journal, reformat my manuscript for a different journal, my agricultural paper is finished I just need the formatting.Other plugins' skills for the same job