Figure Gallery
Query scientific figures, select visual examples, and export reference bundles for plotting.
Installation
- Make sure Claude is on your device and in your terminal.
Skills load from
~/.claude/skills/when Claude Code starts up — so you need it on your machine first. If you don't have it yet, install it once with the command below, then runclaudein any terminal to verify.One-time setupnpm i -g @anthropic-ai/claude-codeAlready have it? Skip ahead.
- Paste into Claude Code or into your terminal.
This copies the whole skill folder into
~/.claude/skills/agent-figure-gallery-dsadd4/— the SKILL.md plus any scripts, reference docs, or templates the skill ships with. Safe default: works for every skill.Faster alternative (instruction-only skills)
Skips the clone and grabs only the SKILL.md file. Don't use this if the skill ships Python scripts, reference markdowns, or asset templates — they won't be downloaded and the skill will fail when it tries to load them.
Quick install (SKILL.md only)Sign up to copy - Restart Claude Code.
Quit and reopen Claude Code (or any other agent that loads from
~/.claude/skills/). New skills are picked up on startup. - Just ask Claude.
Skills auto-activate when your request matches the skill's description — no slash command needed. Trigger phrases live in the skill's own frontmatter; you can read them in the “What this skill does” section above.
Prefer to read the source first? Open on GitHub.
When Claude uses it
Query visual scientific figure references, show candidates for human preference selection, export selected reference bundles, and guide plotting agents from human-selected visual examples to code action.
What this skill does
Agent Figure Gallery
Core Rule
Treat this skill as a lightweight controller. Do not load the full visual corpus into the skill. Use AGENT_FIGURE_GALLERY_ROOT or DRAWING_KB_ROOT to point at the external AgentFigureGallery knowledge base.
Key Files
- KB root:
AGENT_FIGURE_GALLERY_ROOT=/path/to/AgentFigureGallery - CLI:
agentfiguregalleryorpython -m agentfiguregallery.cli - Gallery server: backend command that serves the reference gallery on localhost
- Candidate index:
data/reference_candidate_index.json - Global preferences:
data/reference_global_preferences.json - Reference sessions:
outputs/reference_sessions/
Minimal Workflow
- Resolve the KB root:
export AGENT_FIGURE_GALLERY_ROOT=/path/to/AgentFigureGallery - Query before reading individual references:
agentfiguregallery query --task "<user task>" - Generate visible candidates:
agentfiguregallery gallery --plot-type <plot_type> --task "<user task>" --limit 50 --serve - Record human preferences:
agentfiguregallery prefer --session outputs/reference_sessions/<session_id> --like <ID> --reject <ID> --select <ID> - Export a selected bundle:
agentfiguregallery bundle --session outputs/reference_sessions/<session_id> --copy-scripts - Use the bundle before writing or revising plotting code.
Preference Semantics
like: useful for this task or plot type.reject: not useful for this task or plot type.select: use this candidate for the current agent action.global_like: generally useful across tasks.global_reject: hide from future sessions.
Local preferences must preserve plot_type. Global preferences are cross-task.
Validation
After changing the CLI, gallery, preference logic, or bundle export:
agentfiguregallery gallery --plot-type embedding_plot --limit 20 --serve
agentfiguregallery prefer --session outputs/reference_sessions/<session_id> --like E01 --select E02
agentfiguregallery bundle --session outputs/reference_sessions/<session_id>
Success means visible candidates render, stable IDs are shown, preferences persist, global rejects are hidden from later generated sessions, and the bundle contains selected references plus source code paths.
Related skills
Generative Code Art
anthropics
Create algorithmic art with p5.js using randomness and interactive parameters.
Poster & Visual Design
anthropics
Create original posters and visual art in PNG and PDF formats.
Claude API Helper
anthropics
Build, debug, and optimize Claude API applications with caching and model migration support.
MCP Server Builder
anthropics
Build protocol servers that connect language models to external APIs and services.