Agent skill pack · MIT · open source

Publication-ready scientific figures from the AI agent you already use.

A skill pack for Codex, Claude Code and the other coding agents it finds. Your agent plans what a figure should carry, writes a precise brief for its own image tool, and then checks every label, colour and line with the scripts that come with it. No image API, no API key.

npx scifig-agents setup
rag-architecture.webp
A RAG system architecture figure made with scifig: offline indexing, online answering, and panels on security, evaluation and maintenance.

Features

What it does

One skill for the whole path from an idea or a data file to a file a journal accepts.

Figures from your agent's image tool

Graphical abstracts, mechanisms, pathways, workflows, roadmaps, frameworks, model and system architectures, from layouts per figure type, a six-layer content plan, tested styles and a measured palette.

Text that is checked

OCR compares every label with the brief. A misspelling read the same way twice is a verdict to fix, not a guess to wave away.

A measured look

Fill colour and line weight are measured against published figures, not judged by eye, and corrected with targeted edits.

Larger figures

The same image tool redraws a figure tile by tile to 1.6–2.1 times its size, with real detail rather than interpolation.

Charts from your data

matplotlib at a journal's column width and fonts, colour-blind-safe, as vector PDF. Your data never passes through an image model.

Diagrams that must be exact

PRISMA and CONSORT flows, circuits, plasmid maps and phylogenetic trees are drawn in code, with every count checked.

Files ready to submit

TIFF, PNG and PDF at a journal's width and dpi, multi-panel figures, editable PPTX and SVG, pre-submission checks and legend drafts.

Journal rules, dated

Figure specifications of 10 publishers and AI-image policies of 9, so the agent asks where a figure is going before it draws.

How it works

How a figure is made

  1. You ask in plain words, and say where the figure is going: a journal, slides, a poster.
  2. The agent plans what the figure carries, taking the facts of your own work only from what you said.
  3. It writes a brief that leaves the image tool nothing to guess: every element, its wording, its colours and every connector.
  4. The image tool draws it. The bundled scripts read back every label and measure colour and line weight.
  5. Faults are fixed with targeted edits. The hand-over gives the file's size, what was checked, what was assumed, and the brief and edits for an AI disclosure.

Get started

Install

Needs Node.js 20.12 or later, and uv for the Python scripts. In a terminal, setup lets you pick the skills folders, shows what it will change and asks before it writes anything.

  • npx scifig-agents setuppick folders in a list, review, confirm
  • npx scifig-agents setup --dry-runshow the plan only
  • npx scifig-agents doctorwhat is installed where, image tools, uv
  • npx scifig-agents uninstallremove only what setup installed

It detects 29 coding agents. Codex's image_gen is tested end to end. Antigravity has generate_image but has not been run yet. Agents without an image tool draw concept figures in code; charts, checks and exports work everywhere. See the supported agents.

Open the file