Agent figure gallery

From FOURTEEN1416/academic-agent-toolkit · View interactive version

Agent figure gallery is an AI agent skill from the GitHub repository FOURTEEN1416/academic-agent-toolkit. 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.

How to use this skill

Skill file

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

Minimal Workflow

  1. Resolve the KB root:

```bash

export AGENT_FIGURE_GALLERY_ROOT=/path/to/AgentFigureGallery

```

  1. Query before reading individual references:

```bash

agentfiguregallery query --task "<user task>"

```

  1. Generate visible candidates:

```bash

agentfiguregallery gallery --plot-type <plot_type> --task "<user task>" --limit 50 --serve

```

  1. Record human preferences:

```bash

agentfiguregallery prefer --session outputs/reference_sessions/<session_id> --like <ID> --reject <ID> --select <ID>

```

  1. Export a selected bundle:

```bash

agentfiguregallery bundle --session outputs/reference_sessions/<session_id> --copy-scripts

```

  1. Use the bundle before writing or revising plotting code.

Preference Semantics

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.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.