/figures:figure-biblefrom figures
Scaffolds and validates a figures/theme.json for consistent figure styling across papers, grants, or posters. Run before any figure generation skill to set palette, typography, and image-model preferences.
Ships in figures. 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; scripts run unread.
Authors one figures/theme.json per project: the palette, typography, composition rules, and image-model preferences that every figure, icon, and plot should share.
This is step zero.
Run it before any generation skill produces output, not after.
figures/theme.json exists yet.check_svg.py/check_raster.py finding palette_off) and the project has no bible to point them at.Skip it for a single one-off figure with no reuse; the generation skill's own defaults are fine there.
Both scripts live in scripts/ (relative to this skill's base directory) and import the plugin's shared lib/theme.py by resolving their own path, so they work from a plugin install or a checkout.
Scaffold a theme:
uv run python scripts/init_theme.py --journal nature --out figures/theme.json \
--preset okabe-ito --font Helvetica \
--style "flat vector, minimal" --negative "gradients,shadows"
--journal is required: nature, science, cell, pnas, poster, or slide (drives the default page width and minimum text size).
--preset picks a starting palette: okabe-ito (default, colorblind-safe 8-color set), tol-bright, wong (alias of okabe-ito), or neuro-flat (navy/terracotta/cream plus three accents).
Override individual roles with --primary, --accent, --neutral (hex).
Add reference images for style transfer with repeated --reference img.png.
Set the image-model defaults with --codex-model and --codex-effort.
Re-running with --force overwrites an existing file; without it, the script refuses to clobber a theme someone already tuned.
Validate a theme (CI, pre-commit, or before trusting an edited theme.json):
uv run --with jsonschema python scripts/validate_theme.py figures/theme.json
Add --json for a machine-readable {"valid": bool, "problems": [...], "checked": [...]}.
Exit 0 means valid.
Exit 1 prints the list of problems.
Exit 2 is a usage or IO error (file missing, not JSON).
jsonschema is optional; without --with jsonschema, validation falls back to a hand-written structural check covering the same required keys, hex format, and enums.
See references/theme-fields.md for the full field table (type, default, meaning) and examples/nature-neuro.theme.json for a complete worked theme.
figures:ai-full-figure, figures:transparent-icons, figures:scientific-figure, figures:svg-primitives, figures:plot-styling) read palette, typography, style_tokens/negative_tokens, composition, text, and model_preferences from the theme to build prompts and defaults consistently.
Invoke them by their fully qualified names through the host's skill-invocation mechanism once the bible exists.figures:figure-qa, and directly check_svg.py/check_raster.py) accepts --palette figures/theme.json in place of a preset name, so palette-compliance findings are checked against the project's own bible instead of a hardcoded allow-list.plugins/figures/lib/theme.py is the single implementation shared by all of the above: load_theme, validate_theme, palette_hexes, theme_defaults, resolve_palette, JOURNAL_PROFILES, PALETTE_PRESETS.A project keeps exactly one figures/theme.json, checked into version control alongside the figures it governs.
Do not scaffold a second theme for a second figure in the same paper; edit the existing one instead, then re-run validate_theme.py.
Multiple themes are appropriate only across genuinely separate projects (a paper and an unrelated poster), never within one.
references/theme-fields.md: full field table with types, defaults, and validation rulesexamples/nature-neuro.theme.json: a complete, valid theme for a Nature-format neuroscience paperscripts/init_theme.py: scaffold a new themescripts/validate_theme.py: validate an existing theme../../lib/theme.py: shared implementation used by this skill, the generators, and figure-qa../../schemas/theme.schema.json: the draft-07 JSON Schema itselfWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
8 skills in this plugin
/ai-full-figureUse this skill when the user asks to "generate an AI figure", "make an AI-generated figure", "make a poster figure", "make a presentation figure", "generate a figure with AI", "generate figure panels with Codex", "make a multi-panel AI figure", "AI background for a figure", or wants a pictorial figure or panel (brain scene, apparatus, anatomy, pipeline illustration) rendered by gpt-image-2 through the Codex CLI with large verbatim titles and panel letters, then QA'd and iterated until it passes. Expects a theme from figures:figure-bible. Data plots, axes, numerals, and equations go to figures:plot-styling or figures:svg-primitives instead./figure-qaUse this skill to QA a scientific figure for journal compliance, alignment, palette correctness, and text legibility. Triggers on "QA this figure", "check this figure", "review my figure", "is this figure paper-ready", "validate figure", "check the text in this figure", or when invoked after a figures skill produces output (unless the caller passes no-qa). Dispatches on input type (SVG, raster PNG/JPG/TIFF, Python plot script, or composed-figure directory), runs the programmatic checks including OCR of expected strings and palette compliance against the project theme, adds a vision rubric pass, and returns a report with a machine-readable JSON verdict that drives the generate, QA, fix loop.npx claudepluginhub neuromechanist/research-skills --plugin figuresOther plugins' skills for the same job