Generate Figures Gallery
SkillDev toolsGenerates an HTML gallery of all project figures with captions and source notebooks. Use when reviewing figures.
Instructions available. Your AI can read the instructions. Execution depends on the setup they require.
Account requirements not reviewed. Check the skill instructions before use; ahel provides instructions and does not run this skill.
Add ahel to your AI once: Claude, ChatGPT, Cursor, Claude Code or Codex. Then ask it to use this.
Then ask your AI: use the Generate Figures Gallery skill
What this skill tells your AI
The instructions your AI receives, as published by brycewang-stanford/auto-empirical-research-skills in skills/29-quarcs-lab-project20XXy/dot-claude/skills/figures-gallery/SKILL.md and read by ahel’s review.
Create an HTML gallery page displaying all project figures with their captions and source notebooks.
Steps
-
Scan
images/for all image files:- Supported formats:
.png,.jpg,.jpeg,.svg,.pdf - Record each file's name, path, and modification date
- Supported formats:
-
Scan all registered notebooks (from
_quarto.yml) for cells withfig-labels:- Extract the cell label (e.g.,
fig-sample,fig-event-study) - Extract the caption from
#| fig-cap:or*| fig-cap:directives - Record the source notebook path
- Extract the cell label (e.g.,
-
Generate an HTML gallery page with:
- A title and generation timestamp
- For each figure from
images/:- Image thumbnail (or placeholder for PDFs)
- Filename as caption
- File size and dimensions (if determinable)
- For each figure from notebooks:
- The cell label
- The caption (from cell directive)
- The source notebook name
- The embed shortcode:
{{< embed notebooks/<name>.ipynb#<label> >}}
- Simple CSS styling for a grid layout
-
Save the gallery to
_manuscript/figures-gallery.html(the_manuscript/directory is gitignored, so this output won't be committed). -
Report:
- File path to the gallery
- Count of figures from
images/ - Count of figure cells from notebooks
- Command to open:
open _manuscript/figures-gallery.html
Error handling
- If
images/does not exist or is empty, note it and continue with notebook figures. - If no notebooks have
fig-labeled cells, note it and continue withimages/files. - If both sources are empty, report "No figures found in the project."
Signals
- GitHub stars
- 4k
- Forks
- 531
- Last commit
- Sep 2026
Advanced
- Item type
- skill
- Key
figures-gallery- Source
- github.com/brycewang-stanford/auto-empirical-research-skills
github.com/brycewang-stanford/auto-empirical-research-skills
Related picks
Skill · agricidaniel
The pick for Markdownmarkdown-formatter
Skill · nvidia
The pick for Markdowngolden-pdf-ch
Skill · yusufkaraaslan
The pick for PDFpdf-co-automation
Skill · composio-community
The pick for PDFrseng-notebooks
Skill · fdiblen
The pick for Notebooksexecute
Skill · brycewang-stanford
The pick for Notebooks