/sci-brain:write-slidesfrom sci-brain
Builds scientific slide decks using Typst and the Touying-based sci-brain-slides template. Handles outline, theme selection, and PDF compilation.
Ships in sci-brain. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Keep the working directory at the user's project. Resolve this loaded SKILL.md
with Path(path).resolve() before locating resources; follow symlinks. A path
written as skills/<name>/... means the installed <name> skill's directory from
the agent's skill catalog. Locate dependencies by public skill name.
The slide template, gallery, layouts, and style documentation come from
GiggleLiu/sci-brain-slides.
Use release v0.1.0, package @preview/sci-brain-slides:0.1.0, with Typst
0.14.0 or newer. Check typst --version and typst fonts; the upstream
starter uses DejaVu Sans, with math and monospace fonts bundled with Typst.
Build a PDF talk from an agreed outline, using the upstream template's setup()
API. The upstream repository owns the slide components and their tests. This
skill owns the research context, presentation workflow, and final deck review.
For an actual manuscript, use write-paper; for an in-paper figure, use
how-to-review-figure with the figure's authoring tools.
Read the relevant manuscript or docs/discussion/*-brainstorm-ideas-log.md.
Resolve the project KB using how-to-download-ref when needed. Reuse figures
from $KB/.figures/, the manuscript, or earlier talks, and verify that claims
and citations match the source.
Capture the topic, audience, talk duration, and main claim. Propose sections with one claim and a figure idea for each. Get outline approval before composing the deck; an already approved outline can be reused.
Initialize from the published Typst package. Typst downloads v0.1.0 and its pinned dependencies automatically:
mkdir -p slides
typst init @preview/sci-brain-slides:0.1.0 slides/my-talk
Use a new deck directory rather than overwriting an existing talk. Record the package version and compile command alongside the deck so collaborators can repeat the setup. The first build needs network access; later builds can reuse Typst's package cache.
Read the v0.1.0 layout guide and style tokens for the API and design examples matching this release. Browse the gallery PDF for component examples; the gallery is maintained upstream and is not included in the registry package.
Use academic by default; dark for a dark presentation background, minimal
for a restrained monochrome deck, vibrant for colorful teaching material, or
brand with an explicit primary color. Keep one theme throughout the talk.
The generated main.typ reads theme and text-size from CLI inputs.
The package binds colors, typography, layouts, and gadgets together:
#import "@preview/sci-brain-slides:0.1.0": *
#let deck = setup(theme: "academic", text-size: 22pt)
#let (twocol,) = deck.layouts
#show: deck.theme.with(config-info(
title: [Talk title], author: [Your name], institution: [Your lab],
))
#title-slide()
== State the result in the slide title
#twocol([The evidence.], [What the evidence establishes.])
#focus-slide[The main takeaway.]
Bind only the layouts and gadgets used by the talk. deck.palette supplies
colors and deck.sizes supplies typography. For a custom brand, use
setup(theme: "brand", primary: rgb("#aa1e2b"), text-size: 22pt).
| Slide purpose | Upstream layout or component |
|---|---|
| Figure with interpretation | spread and figbox |
| Comparison | twocol or threecol |
| Main equation or statement | hero |
| Related concepts | cards |
| Results table | data_table |
| Definition or theorem | definition or theorem |
| Closing statement | focus-slide |
== starts a content slide; = starts a section divider. Use #pause for
stepwise reveals. Pass image content such as image("figures/result.svg") to
image helpers so paths resolve relative to the talk. Optional diagrams and
annotations use the upstream cetz-gadgets() and pin-gadgets() APIs; consult
the release's layout guide before using them.
Compile from the project root so project figures and the canonical bibliography remain accessible to the deck:
typst compile slides/my-talk/main.typ slides/my-talk/main.pdf \
--root . --input theme=academic --input text-size=22
Inspect the rendered pages, including all reveals. Check that each title states its slide's claim, figures and equations are legible, captions explain how to read the evidence, and no content overflows. Split or shorten an overfull slide; the template does not automatically shrink text. Keep emphasized quantities with their units and use the source's own figures when available.
Run how-to-review-figure on figure-heavy slides. If the talk needs a
bibliography, use the resolved $KB/references.bib, with a path relative to the
.typ file. Report the source and PDF paths, package version, build command,
and any verification that could not be completed.
Report template defects and propose component changes in
the upstream repository.
Keep template source and API documentation there rather than copying them into
this skill. Talks already using @preview/sci-brain-slides:0.1.0 can use the
registry package without source changes: remove the old --package-path
argument from their build command and any TYPST_PACKAGE_PATH override pointing
to that checkout. Existing talks with their own zoo/ copy can still compile; migrate
those talks individually to the package import and setup() API when requested.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
typst, touying, slide-deck, scientific-presentation, pdf-generation
npx claudepluginhub quantumbfs/sci-brain --plugin sci-brain16 skills in this plugin
/autoresearchUser trigger. Use when starting, resuming, or checking an autoresearch campaign — topics, evidence base, sealed validator, then validator-scored attempt loops./brainstorm-ideasUser trigger. Use when brainstorming research ideas with a Socratic collaborator who learns your background and helps find a problem worth attacking./create-advisorUser trigger. Use when creating or updating a named advisor profile from a researcher's conversation history./dump-chat-historyUser trigger. Use when exporting original conversations from selected harnesses and dates as a faithful transcript or a topic-titled Typst and PDF field note.Other plugins' skills for the same job