Agent skill

Figure

by Muuuun in Muuuun/luxas

Hybrid figure pipeline (Nano Banana raster + rembg background removal + TikZ vector assembly).

MITAuto-check passedMedia & Creative

Install Figure

skills CLI
$ npx skills add Muuuun/luxas --skill figure -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install Muuuun/luxas figure --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/Muuuun/luxas.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/figure .claude/skills/figure && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
figure
GitHub stars
1.2k
Token cost
~1.2k tokens
SKILL.md length
246 words
Files
31 (incl. scripts, references)
Skills in repo
9
Repo updated
First seen
Licence
MIT

At a glance

Hybrid figure pipeline (Nano Banana raster + rembg background removal + TikZ vector assembly).

  • Produce publication-quality figures with perfect LaTeX symbol rendering and agent-friendly iteration
  • SKILL.md covers When to use which backend, The hybrid pipeline, Style consistency and Strict rules (when using this…, plus 4 more sections
  • Runs Python and Shell scripts from its folder; calls python and pip; needs GEMINI_API_KEY
  • Tasks that involve LaTeX

What it does

Figure is an agent skill from Muuuun/luxas. Hybrid figure pipeline (Nano Banana raster + rembg background removal + TikZ vector assembly). Includes a TikZ template library covering quantum circuits (quantikz), Feynman diagrams (tikz-feynman), circuits (circuitikz), molecules (chemfig), 2D/3D plots (pgfplots), energy-level diagrams, phase-space trajectories, optical setups, and pulse sequences. Use this skill to produce publication-quality figures with perfect LaTeX symbol rendering and agent-friendly iteration.

Its SKILL.md is about 1.2k tokens, which your agent loads only when the skill is triggered. The skill folder holds 33 other files, including scripts and reference files (for example `references/decision_tree.md`, `references/levelspec_schema.md` and `references/palettes.md`). Compatibility notes: Requires pdflatex + pdftoppm on PATH. Python 3.10+ with google-genai, rembg[cpu], Pillow. GEMINIAPIKEY env var for raster generation.

It sits in Media & Creative, covering LaTeX, Image generation and Data visualization. It works with LaTeX and Google Gemini. The repository describes itself as: An autonomous research colleague — from a question to a compiled manuscript, while you sleep. The licence is MIT.

When your agent uses it

  • Produce publication-quality figures with perfect LaTeX symbol rendering and agent-friendly iteration
  • Tasks that involve LaTeX
  • Tasks that involve Image generation

Example prompts

  • “/figure”

Requirements

  • Python 3
  • A Bash shell
  • A credential in GEMINI_API_KEY
  • Compatibility (from SKILL.md): Requires pdflatex + pdftoppm on PATH. Python 3.10+ with google-genai, rembg[cpu], Pillow. GEMINI_API_KEY env var for raster generation.
  • Pre-approved tools (allowed-tools): Bash(python:*), Bash(pdflatex:*), Bash(pdftoppm:*), Bash(pdfimages:*)

What it can do on your machine

Read from SKILL.md and the folder at commit 9f77cef. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Bash(python:*)
    • Bash(pdflatex:*)
    • Bash(pdftoppm:*)
    • Bash(pdfimages:*)

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 4 files in scripts/ (Python and Shell, from the files we listed), which the agent can run.

    Shell commands in SKILL.md call:

    • python
    • pip

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use pip, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • GEMINI_API_KEY

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

  • Compatibility

    Requires pdflatex + pdftoppm on PATH. Python 3.10+ with google-genai, rembg[cpu], Pillow. GEMINI_API_KEY env var for raster generation.

    From compatibility in the SKILL.md frontmatter.

Context cost

Figure loads about 1.2k tokens when it runs, and up to ~4.6k if it reads all its reference files. Until then it costs about 120 tokens; SKILL.md has 246 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~120
When it runs · the whole SKILL.md, loaded when a task matches
~1.2k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~4.6k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from Muuuun/luxas at commit 9f77cef, republished under its MIT licence (© Muuuun). 246 words, ~1,161 tokens.

Download SKILL.mdSave it as .claude/skills/figure/SKILL.md (or your agent's skills folder). This skill also uses 30 other files; get the full folder from GitHub.
name
figure
description
Hybrid figure pipeline (Nano Banana raster + rembg background removal + TikZ vector assembly). Includes a TikZ template library covering quantum circuits (quantikz), Feynman diagrams (tikz-feynman), circuits (circuitikz), molecules (chemfig), 2D/3D plots (pgfplots), energy-level diagrams, phase-space trajectories, optical setups, and pulse sequences. Use this skill to produce publication-quality figures with perfect LaTeX symbol rendering and agent-friendly iteration.
allowed-tools
Bash(python:*), Bash(pdflatex:*), Bash(pdftoppm:*), Bash(pdfimages:*)
compatibility
Requires pdflatex + pdftoppm on PATH. Python 3.10+ with google-genai, rembg[cpu], Pillow. GEMINI_API_KEY env var for raster generation.

Figure Skill

Publication-quality figures via the hybrid pipeline: let Gemini (Nano Banana) render photorealistic / textured / 3D components, let TikZ own all symbols, arrows, labels, equations, and layout. You get the visual richness of AI rendering AND the precision of code.

When to use which backend

┌─────────────────────────────────────────────────────────────────┐
│  What are you drawing?                          │ Backend       │
├─────────────────────────────────────────────────┼───────────────┤
│  Data plot (lines, bars, heatmaps from data)    │ pgfplots      │
│  Quantum circuit (Hadamard, CNOT, measure)      │ quantikz      │
│  Feynman diagram                                │ feynman       │
│  Molecule / Lewis structure                     │ chemfig       │
│  Electronic circuit (op-amp, RLC)               │ circuitikz    │
│  Atomic energy levels + transitions             │ energy_levels │
│  Phase-space trajectory                         │ phase_space   │
│  Pulse sequence (NMR / qubit timing)            │ pulse_sequence│
│  Optical bench cartoon (2D, flat)               │ optical_setup │
│  Concept schematic with textured 3D objects     │ HYBRID        │
│    (Paul trap, cavity, apparatus, animal etc.)  │               │
└─────────────────────────────────────────────────────────────────┘

For HYBRID, pick raster components sparingly: only for textured / 3D / glossy objects where TikZ would take 50+ lines of patches. Everything else → TikZ.

The hybrid pipeline

1. decide which elements are raster (3D/textured/glossy) vs vector (everything else)
2. for each raster element:
     python skills/figure/scripts/hybrid_gen.py \
       --name <outName>  --prompt "<object spec>"  --style "<style suffix>" \
       --out assets/<outName>.png
   → generates isolated-object PNG on white bg, then rembg → transparent PNG
3. write figure_X.tex starting from skills/figure/templates/<best>.tex
     - \includegraphics{assets/<outName>.png} for raster slots
     - TikZ \draw \node for all labels, arrows, equations
4. compile:    pdflatex figure_X.tex
   preview:    pdftoppm -r 200 figure_X.pdf preview -png
5. Read preview-1.png (vision) → find issues → edit .tex → recompile (≤3 iters)
6. final output: figures/figure_X.{tex,pdf}

Style consistency

ALWAYS check figures/style_guide.md first (if it exists) for mandatory palette, fonts, line weights. If absent, default to Okabe-Ito (see references/palettes.md).

Before starting, look at existing figures/*.png via Read — match their palette, font family, and panel-label style exactly.

Strict rules (when using this skill as illustrator)

  • Never originate content decisions (what data, what physics, what params).
  • Only make style/composition/rendering decisions.
  • LaTeX symbols (\ket{r}, F_{C_4}, \mu m, etc.) MUST be TikZ-native — never rely on Nano Banana to render text correctly (it can't).
  • Raster components must have NO text in the prompt ("no labels, no captions").
  • Raster components must have consistent style suffix across a figure for lighting/palette coherence.

Templates

See templates/ for starting points. Each is a complete \documentclass{standalone} ready to compile. Pick the closest match, copy to figures/, edit.

References

  • references/decision_tree.md — full decision flow for tool selection
  • references/palettes.md — Okabe-Ito, Nature, Tableau colorblind-safe palettes
  • references/pitfalls.md — package conflicts (chemfig vs tikz-cd), font fallbacks, common bugs

Scripts

  • scripts/hybrid_gen.py — Gemini image generation + rembg background removal. CLI: --name --prompt --style --out [--model gemini-2.5-flash-image] [--no-rembg]
  • scripts/requirements.txt — Python deps

First-time setup

bash
cd skills/figure
pip install -r scripts/requirements.txt
export GEMINI_API_KEY=...   # if not already set

© Muuuun, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 30 other files (scripts, references) in skills/figure of Muuuun/luxas.

  • SKILL.md
  • references/decision_tree.md
  • references/levelspec_schema.md
  • references/palettes.md
  • references/pitfalls.md
  • scripts/hybrid_gen.py
  • scripts/levelspec
  • scripts/requirements.txt
  • scripts/sync_style_guides.sh
  • style_guides/README.md
  • style_guides/_default.md
  • style_guides/biology.md
  • style_guides/chemistry.md
  • style_guides/earth.md
  • style_guides/ml.md
  • style_guides/physics.md
  • style_guides/policy.md
  • templates
  • … and 13 more

Open the folder on GitHubat commit 9f77cef

Compare with similar skills

Figure next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Figure compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Figure this skillMuuuun/luxas1.2k—~1.2kAutomated safety check: PassMIT
Generate ImageK-Dense-AI/claude-scientific-writer2.4k1 repos~3.8kAutomated safety check: NotesMIT
Generate Imageynulihao/AgentSkillOS61710 repos~1.7kAutomated safety check: NotesNone
Nano Bananajh941213/my-cc-harness126—~1kAutomated safety check: PassNone
Nanobanana Skillfeiskyer/claude-code-settings1.7k—~1.1kAutomated safety check: PassMIT
Nanobanana Image GenerationLeoYeAI/openclaw-master-skills2.2k—~4.5kAutomated safety check: PassMIT

Similar skills

  • Generate Image

    K-Dense-AI/claude-scientific-writer

    Generate or edit images with AI models through the OpenRouter Image API (Gemini, Seedream, Recraft, GPT-Image, Riverflow).

    2.4k GitHub starsUsed in 1 repo~3.8k tokens
    Media & CreativeAuto-check: notes
  • Generate Image

    ynulihao/AgentSkillOS

    Generate or edit images using AI models (FLUX, Gemini). An agent skill from ynulihao/AgentSkillOS.

    617 GitHub starsUsed in 10 repos~1.7k tokens
    Media & CreativeAuto-check: notes
  • Nano Banana

    jh941213/my-cc-harness

    REQUIRED for all image generation requests. An agent skill from jh941213/my-cc-harness.

    126 GitHub stars~1k tokensUpdated 2 mo ago
    Media & CreativeAuto-check passed
  • Nanobanana Skill

    feiskyer/claude-code-settings

    Generate or edit images via Google Gemini (nanobanana). An agent skill from feiskyer/claude-code-settings.

    1.7k GitHub stars~1.1k tokensUpdated 11 days ago
    Media & CreativeAuto-check passed
  • Nanobanana Image Generation

    LeoYeAI/openclaw-master-skills

    A skill your agent uses when the user wants to generate or edit images with Google's Nanobanana/Gemini image models using the official Gemini API shape, or when they need publication-style…

    2.2k GitHub stars~4.5k tokensUpdated 2 mo ago
    Media & CreativeAuto-check passed
  • Paper Figure Generate

    GRIND-Lab-Core/night_owl_research_agent

    Generates publication-quality figures and diagrams from output/PAPERPLAN.md for GIScience, GeoAI, and remote sensing journals (IJGIS, ISPRS JPRS, RSE, TGIS).

    106 GitHub stars~5.1k tokensUpdated 5 mo ago
    Media & CreativeAuto-check: notes

More from Muuuun/luxas

All 9 skills in this repo
  • Review

    Muuuun/luxas

    Write domain-authentic review articles that synthesize rather than stack.

    1.2k GitHub stars~2.1k tokensUpdated 1 mo ago
    Auto-check passed
  • Venue Specific

    Muuuun/luxas

    Venue-specific formatting requirements for academic journals and conferences across all disciplines.

    1.2k GitHub stars~1.9k tokensUpdated 1 mo ago
    Auto-check: notes
  • Qec Construct

    Muuuun/luxas

    Verifier-in-the-loop CONSTRUCTION of quantum error-correcting codes with transversal non-Clifford gates (CCZ/T).

    1.2k GitHub stars~1.6k tokensUpdated 1 mo ago
    Auto-check passed
  • Narrative

    Muuuun/luxas

    Narrative discipline for research reports — article-type templates (empirical / feasibility / comparison / policy-zh) and the feedback revision protocol that keeps outline, prose, and figures…

    1.2k GitHub stars~1.5k tokensUpdated 1 mo ago
    Auto-check passed
  • Memory

    Muuuun/luxas

    Cross-project research memory. An agent skill from Muuuun/luxas.

    1.2k GitHub stars~737 tokensUpdated 1 mo ago
    Auto-check passed
  • Search

    Muuuun/luxas

    Unified academic paper search, citation chains, paper download (arXiv LaTeX/PDF, Sci-Hub), figure extraction from papers, LaTeX source reading, BibTeX fetching, web search, and browser automation…

    1.2k GitHub stars~2.3k tokensUpdated 1 mo ago
    Auto-check: warnings

Questions about Figure

What does Figure do?

Hybrid figure pipeline (Nano Banana raster + rembg background removal + TikZ vector assembly). Figure is an agent skill from Muuuun/luxas. Hybrid figure pipeline (Nano Banana raster + rembg background removal + TikZ vector assembly).

When should I use Figure?

Figure fits situations like: produce publication-quality figures with perfect LaTeX symbol rendering and agent-friendly iteration; tasks that involve LaTeX; tasks that involve Image generation.

How do I install Figure in Claude Code?

Run `npx skills add Muuuun/luxas --skill figure -a claude-code`. Or copy the skill folder (skills/figure in Muuuun/luxas) into .claude/skills/figure in your project. Claude Code loads it when a task matches its description.

How do I install Figure in Codex?

Run `npx skills add Muuuun/luxas --skill figure -a codex`. Or copy the skill folder (skills/figure in Muuuun/luxas) into .agents/skills/figure in your project. Codex loads it when a task matches its description.

Can I use Figure in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add Muuuun/luxas --skill figure -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/figure, .gemini/skills/figure, .github/skills/figure and .opencode/skills/figure in your project.

What does Figure need to run?

Going by SKILL.md and its folder, Figure needs Python and a shell for the scripts in its folder, the command-line tools its instructions call (python and pip) and credentials named GEMINI_API_KEY. Our summary lists: Python 3; A Bash shell; A credential in GEMINI_API_KEY. Its frontmatter pre-approves these tools: Bash(python:*), Bash(pdflatex:*), Bash(pdftoppm:*), Bash(pdfimages:*). Compatibility (from SKILL.md): Requires pdflatex + pdftoppm on PATH. Python 3.10+ with google-genai, rembg[cpu], Pillow. GEMINI_API_KEY env var for raster generation..

Does Figure access the network?

SKILL.md contains no URLs. Its commands use pip, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Figure safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Figure use?

Figure is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Figure use?

About 1.2k tokens (SKILL.md is roughly 4.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 3.4k tokens, read only when the agent opens those files.

What are the alternatives to Figure?

Skills that share tags, products or a category with Figure: Generate Image (K-Dense-AI/claude-scientific-writer, 2.4k stars), Generate Image (ynulihao/AgentSkillOS, 617 stars), Nano Banana (jh941213/my-cc-harness, 126 stars) and Nanobanana Skill (feiskyer/claude-code-settings, 1.7k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Figure?

Muuuun (a GitHub user) maintains it in Muuuun/luxas, which has 1,169 GitHub stars. The repository holds 9 skills in this directory. The repository was last updated on September 6, 2026.

Source: Muuuun/luxas on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.