agentsclimarketplace

Figures gallery

Skill brycewang-stanford/Auto-Empirical-Research-Skills/skills/29-quarcs-lab-project20XXy/dot-claude/skills/figures-gallery

Generates an HTML gallery of all project figures with captions and source notebooks. Use when reviewing figures.From its SKILL.md

Install
npx -y skills add brycewang-stanford/Auto-Empirical-Research-Skills --skill figures-gallery

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.

SKILL.md

1.8 KB, 410 tokens by cl100k_base, as published. Nobody here has run it

Generate Figures Gallery

Create an HTML gallery page displaying all project figures with their captions and source notebooks.

Steps

  1. Scan images/ for all image files:

    • Supported formats: .png, .jpg, .jpeg, .svg, .pdf
    • Record each file's name, path, and modification date
  2. Scan all registered notebooks (from _quarto.yml) for cells with fig- 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
  3. 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
  4. Save the gallery to _manuscript/figures-gallery.html (the _manuscript/ directory is gitignored, so this output won't be committed).

  5. 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 with images/ files.
  • If both sources are empty, report "No figures found in the project."

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 326,144. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.