# Food figure

> Food figure is an open-source agent skill for design and media. Turns a food or nutrition dataset into journal-ready figures in Python or R. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/PangenomeAI/academic-skills-food-nutrition/tree/main/food-figure
- **Repository:** https://github.com/pangenomeai/academic-skills-food-nutrition
- **GitHub stars:** 49
- **License:** MIT
- **Skill name:** food-figure
- **Collection:** https://github.com/PangenomeAI/academic-skills-food-nutrition
- **Categories:** [design and media](https://ai-powered.com/categories/design-and-media), [health and science](https://ai-powered.com/categories/health-and-science)
- **Listing updated:** 2026-12-03

## About

Food-Figure is a figure-making workflow for food and nutrition manuscripts. It starts by profiling a user's data file to detect grouping factors, repeated measures and time or dose axes, then recommends the figure types that best match the paper's claim, from bar, box and violin plots to Bland–Altman, PCA/PLS-DA, heatmaps, forest plots and microscopy panels. Once a figure is chosen, the skill works through a figure contract, a provenance card linking each plot to its source data, and a palette choice suited to the data type.

Rendering is done in Python (matplotlib, seaborn, statsmodels) or R (ggplot2, patchwork, ComplexHeatmap), using template scripts for each figure type. Output is exported as vector PDF or SVG for line and scatter graphics, and as LZW-compressed TIFF at the target journal's resolution for raster or microscopy images. A QA checklist covers error bars and sample sizes, statistics consistency, colorblind-safe colours and legibility at final size, and a privacy scan keeps code paths relative.

The skill expects a dataset in CSV, TSV or Excel form, or a verbal description of the result, plus a choice of Python or R that it remembers after the first request. Optional AI image generation is available only for conceptual schematics and never for data-bearing figures.

## When your agent uses it

> Comprehensive figure system for food & nutrition manuscripts: analyzes the user's data, recommends the best figure(s) to make, then produces submission-grade graphics in Python or R at the target journal's spec. Handles all common scientific figure types (bar/box/violin, line/kinetic, scatter/regression, Bland–Altman, radar/sensory, chromatograms, TPA/rheology, dose–response, survival, PCA/PLS-DA, heatmaps/clustering, forest, microscopy plates, multi-panel). Use to make, create, design, revise, audit, or recommend figures/charts/plots for a food-science paper, or to work out what to plot from a dataset. If Python or R isn't chosen, ask once and remember it. Triggers: make a figure, create a figure, design a figure, what figure should I make, recommend a chart, plot my data, analyze my data and plot it, chart my results, food science figure, journal figure, scientific plotting, data visualization for a manuscript.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Runs Python and R scripts](https://github.com/PangenomeAI/academic-skills-food-nutrition/tree/HEAD/food-figure)
- [No network calls found in its scripts](https://github.com/PangenomeAI/academic-skills-food-nutrition/tree/HEAD/food-figure)
- [Includes binary files](https://github.com/PangenomeAI/academic-skills-food-nutrition/tree/HEAD/food-figure)
- [License: MIT](https://github.com/PangenomeAI/academic-skills-food-nutrition/tree/HEAD/food-figure)

## Features

- **Data profiling:** Analyzes column types, missingness and grouping structure to inform figure choice.
- **Figure recommendation:** Suggests the figure types that best support the paper's central claim, with rationale.
- **Journal-spec export:** Exports vector or TIFF files at the target journal's dimensions, DPI and fonts.
- **Python and R templates:** Provides ready plotting functions for many food-science figure types in both languages.
- **Figure provenance cards:** Records the data source, script and claim behind each figure to keep values consistent.
- **Pre-submission QA:** Checks error bars, sample sizes, palettes, label legibility and privacy-safe paths.

## Good for

- Recommend which chart best shows my sensory panel results
- Make a Bland–Altman plot comparing two measurement methods
- Create a multi-panel figure for my food science manuscript
- Plot my rheology or TPA data at journal specifications
- Build a PCA or PLS-DA scores plot for my composition dataset

## Install

### Claude Code

This skill ships in the `academic-skills-food-nutrition` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add PangenomeAI/academic-skills-food-nutrition
/plugin install academic-skills-food-nutrition@academic-skills-food-nutrition
```

Or copy only this skill to `~/.claude/skills/food-figure`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/PangenomeAI/academic-skills-food-nutrition.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/food-figure &&
cp -R "$tmp/food-figure" ~/.claude/skills/food-figure &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/food-figure` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/food-figure` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/PangenomeAI/academic-skills-food-nutrition.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/food-figure &&
cp -R "$tmp/food-figure" ~/.agents/skills/food-figure &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/food-figure` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/food-figure` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/PangenomeAI/academic-skills-food-nutrition.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/food-figure &&
cp -R "$tmp/food-figure" ~/.cursor/skills/food-figure &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/food-figure` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/PangenomeAI/academic-skills-food-nutrition.git --path food-figure
```

Or copy the folder to `~/.gemini/skills/food-figure` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/food-figure`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/PangenomeAI/academic-skills-food-nutrition.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/food-figure &&
cp -R "$tmp/food-figure" ~/.copilot/skills/food-figure &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/food-figure` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/PangenomeAI/academic-skills-food-nutrition.git
```

Then copy `academic-skills-food-nutrition/food-figure` into your agent's skills folder as `food-figure`. Agents that support SKILL.md read one folder per skill.

## FAQ

### Which languages does the skill use for plotting?

Data figures are always produced with Python or R. The skill asks once which one to use and remembers the choice.

### Can Food figure generate figures from an AI image model?

Only for conceptual schematics such as mechanism diagrams, and only if the user explicitly asks. Data-bearing figures are never made with AI image models.

### What file formats does Food figure export?

Line, bar and scatter figures are exported as vector PDF or SVG; raster and microscopy figures as TIFF with LZW compression at the journal's DPI.

### What happens if no journal is specified?

It defaults to 300 dpi, column widths of about 90 and 190 mm, TIFF and PDF outputs, and Arial at 7 to 9 pt.

### How do I install Food figure in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/food-figure to use it in all your projects, or to .claude/skills/food-figure in one project. Or install the academic-skills-food-nutrition plugin, which includes it: /plugin marketplace add PangenomeAI/academic-skills-food-nutrition, then /plugin install academic-skills-food-nutrition@academic-skills-food-nutrition.

### Does Food figure run scripts?

Yes. It runs Python and R scripts. No network calls were found in its scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Food figure?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Food figure?

The closest alternatives to Food figure are Scientific figure, Food pipeline, Food research, Prepare figma design and Scientific writer.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Scientific figure](https://ai-powered.com/skills/scientific-figure): Scientific figure is an open-source agent skill for health and science.
- [Food pipeline](https://ai-powered.com/skills/food-pipeline): Food pipeline is an open-source agent skill for writing style.
- [Food research](https://ai-powered.com/skills/food-research): Food research is an open-source agent skill for health and science.
- [Prepare figma design](https://ai-powered.com/skills/prepare-figma-design): Prepare figma design is an open-source agent skill for design and media.
- [Scientific writer](https://ai-powered.com/skills/scientific-writer): Scientific writer is an open-source agent skill for health and science.
- [Food deep research](https://ai-powered.com/skills/food-deep-research): Food deep research is an open-source agent skill for health and science.

---
Source: https://ai-powered.com/skills/food-figure
