Alterlab scientific slides

From AlterLab-IEU/AlterLab-Academic-Skills · View interactive version

Alterlab scientific slides is an AI agent skill from the GitHub repository AlterLab-IEU/AlterLab-Academic-Skills. Builds slide decks for research talks with no API key — editable PowerPoint generated from a deck plan (python-pptx) or LaTeX Beamer, slide visuals drawn as code and rendered locally, plus slide structure, design templates, timing guidance, and visual validation of every page. Optional AI-generated

How to use this skill

Skill file

Scientific Slides

Overview

Scientific presentations are a critical medium for communicating research, sharing findings, and engaging with academic and professional audiences. This skill provides comprehensive guidance for creating effective scientific presentations, from structure and content development to visual design and delivery preparation.

Key Focus: Oral presentations for conferences, seminars, defenses, and professional talks.

Design philosophy: scientific presentations should be visually engaging and research-backed — audiences remember what they see far better than dense text, so avoid text-heavy slides. Great scientific presentations combine:

When to Use This Skill

This skill should be used when:

Does NOT Trigger

| Scenario | Use Instead |

|----------|-------------|

| A research poster with no format named, or any LaTeX poster | alterlab-latex-posters |

| A poster explicitly in PowerPoint/PPTX or HTML | alterlab-pptx-posters |

| Auto-generating a narrated presentation video, website, or poster from a finished paper | alterlab-paper-2-web |

| A single standalone technical diagram or schematic for a slide | alterlab-scientific-schematics |

| Reviewing or critiquing someone else's talk deck | alterlab-peer-review |

| Writing a journal manuscript section (Results, Discussion) as full prose, even from a talk's findings | alterlab-scientific-writing |

Hand-off rule. When the request matches a row above, open your answer by naming that skill by its exact id (for example alterlab-latex-posters) and saying in one line why it fits better, then stop applying this skill's procedure. Name it even when you also need to ask for missing input. If only part of the request is out of scope, name the skill for that part and do only the in-scope part. A brief general pointer is fine; the named skill does the work.

Building the Deck (no API key)

Two keyless implementations; pick by content:

image, two_column and takeaway layouts, citations, speaker notes) and build an editable 16:9

deck in one consistent theme with scripts/build_deck.py. It warns on more than 4 bullets,

bullets over 12 words, long titles, and fails on a missing figure.

assets/beamer_template_{conference,seminar,defense}.tex, write native LaTeX for equations

and pseudocode, compile with pdflatex. Guide: references/beamer_guide.md.

Slide visuals come from three keyless sources: the user's own figures (placed as they are —

never redraw data), data plots made with matplotlib at slide size, and concept graphics drawn as

SVG and rendered with scripts/generate_slide_image.py visual.svg -o slides/visual.png. Run it

with a description instead of a file to get the slide design brief.

Key conventions (apply to every deck):

Minimal example

{"theme": {"primary": "#1B2A4A", "accent": "#0072B2"},
 "footer": "A. Researcher - EDM 2027",
 "slides": [
  {"layout": "title", "title": "Predicting Student Dropout", "subtitle": "A. Researcher, University", "notes": "Hook..."},
  {"layout": "image", "title": "Calibrated model beats the baseline", "image": "figures/auc.png",
   "caption": "AUC 0.87 vs 0.79", "citation": "Nested 5-fold CV"},
  {"layout": "takeaway", "title": "Take-home", "message": "One sentence the audience keeps"}]}
uv run --python ">=3.11" --with python-pptx --with pillow python scripts/build_deck.py deck.json -o talk.pptx
soffice --headless --convert-to pdf talk.pptx            # LibreOffice, for the visual review
uv run --python ">=3.11" --with pymupdf python scripts/pdf_to_images.py talk.pdf review/slide

Full plan format and options: references/scripts_and_prompts.md.

Optional: AI-generated slide images

With OPENROUTER_API_KEY set, `generate_slide_image.py "slide description" -o slides/01.png

--backend ai asks Nano Banana Pro (google/gemini-3-pro-image`) for a complete slide image

(--visual-only for a visual; --attach the previous slide or a data figure as reference),

reviewed by Gemini 3.1 Pro (google/gemini-3.1-pro-preview) against the 6.5/10 slide threshold,

at most 2 iterations; slides_to_pdf.py combines the images. Use it when the user wants

image-designed slides; the slides are pictures, so text is not editable and the model may

garble words or numbers. Prompts and attached figures are sent to Google via OpenRouter, so keep

unpublished data out unless that is acceptable. Without the key --backend ai exits 2 and names

the keyless route. Models can be overridden with ALTERLAB_IMAGE_MODEL / ALTERLAB_REVIEW_MODEL.

Protocol: references/nano_banana_workflows.md.

If a diagram or figure would aid comprehension, invoke the alterlab-scientific-schematics skill (diagrams) or alterlab-generate-image skill (images). Figures are optional — add them only where they improve clarity.

Core Workflow

  1. Plan — define talk type, duration, audience, venue. Use alterlab-research-lookup to gather 8-15 papers for citations and outline the narrative arc (Hook → Context → Gap → Approach → Results [40-50% of time] → Implications → Closure).
  2. Choose implementation — PowerPoint via build_deck.py (default), LaTeX Beamer (math-heavy), or, with a key and on request, AI slide images.
  3. Build visual-first — every slide needs a strong visual; text is supporting (3-4 bullets, 4-6 words, 24-28pt body / 36-44pt titles). Modern palette, high contrast (7:1 preferred), 40-50% white space.
  4. Validate visually — export to PDF (soffice --headless --convert-to pdf talk.pptx, or the Beamer PDF), convert to images with uv run --python ">=3.11" --with pymupdf python scripts/pdf_to_images.py talk.pdf review/slide, Read each image, inspect for overflow/overlap/small fonts/contrast, iterate until clean. Run uv run --python ">=3.11" --with pymupdf --with pypdf --with python-pptx python scripts/validate_presentation.py talk.pdf --duration N (on the PDF, and on the .pptx when there is one) for slide count vs duration, file size, font sizes (body text under 18 pt, footer and citation text under 12 pt; PDF sizes scaled to a 7.5-inch slide height), bullet counts (PPTX), and, on a PDF, every text line past a slide edge — including a line placed wholly off the slide, which no rendered image shows. Log each finding it reports alongside what you see in the images. Contrast is judged visually from the images, not by the script.

Read the status, not just the issue list. The validator tracks every check (--json prints them) and ends with one status: valid (exit 0: every requested check ran, no issue), invalid (exit 1: a check found an issue, e.g. text off a slide, an unreadable file), blocked (exit 2: a required check could not run: python-pptx / pymupdf / pdflatex missing, file not found, or an unsupported format such as legacy .ppt), partial (exit 3: required checks passed but coverage is incomplete: an optional check such as --render was skipped, a PPTX run's font size could not be resolved, or a PDF has no text layer). Only valid is a pass; report blocked/partial to the user with the named check rather than calling the deck clean. On a .pptx the font check resolves each run's effective size through run → paragraph → shape list style → layout and master placeholders → master text styles → presentation default (times any autofit fontScale), inside groups and table cells; chart/SmartArt text is checked only on the exported PDF. --render (optional) also renders the .pptx with LibreOffice and runs the PDF text checks on it.

  1. Practice — 3-5 times with a timer (~1 slide/min), set checkpoints, never skip conclusions.

Routing — where to look

| You need… | Go to |

|-----------|-------|

| Script options (build_deck.py, generate_slide_image.py, slides_to_pdf.py, validate_presentation.py, pdf_to_images.py), deck-plan format, prompt-writing templates | references/scripts_and_prompts.md |

| Optional AI slide-image workflow: formatting-consistency protocol, citation & figure-attachment rules, worked command examples | references/nano_banana_workflows.md |

| Capability detail: structure, design principles, data-viz for slides, talk-type guidance, implementation options, visual-review steps, timing, validation checklist | references/core_capabilities.md |

| End-to-end 6-stage development process, integration with other skills, common pitfalls (content/design/timing) | references/development_workflow.md |

| Deep dives on structure | references/presentation_structure.md |

| Deep dives on slide design | references/slide_design_principles.md |

| Adapting figures for slides | references/data_visualization_slides.md |

| Talk-type specifics (conference/seminar/defense/grant/journal-club) | references/talk_types_guide.md |

| LaTeX Beamer reference | references/beamer_guide.md |

| Visual review/iteration workflow | references/visual_review_workflow.md |

Assets: Beamer templates (assets/beamer_template_{conference,seminar,defense}.tex), assets/powerpoint_design_guide.md, assets/timing_guidelines.md.

Key Principles

  1. Visual-First Design — every slide needs a strong visual element; avoid text-only slides.
  2. Research-Backed — use alterlab-research-lookup to find 8-15 papers, cite 3-5 in intro and 3-5 in discussion; cite only papers you actually retrieved.
  3. Modern Aesthetics — contemporary palette matching topic, not default themes.
  4. Minimal Text — 3-4 bullets, 4-6 words each (24-28pt), let visuals tell the story.
  5. Structure — follow the story arc, spend 40-50% on results.
  6. High Contrast — 7:1 preferred for professional appearance.
  7. Timing — practice 3-5 times, ~1 slide/minute, never skip conclusions.

Combine compelling visuals with research-backed context — slides are visual support, not a replacement for your talk.

Part of the AlterLab Academic Skills suite.

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.