A local-first multi-agent app development platform, built on PenguinHarness
name: bento-slides description: Create and edit Bento presentations — self-contained .bento.html decks whose document is JSON. Use whenever the user wants a slide deck or presentation: from scratch, from source material, or by improving an existing file.
Authoring Bento decks
A Bento deck is one self-contained .bento.html file. The document is plain JSON in a single block:
<script type="application/bento+json" id="bento-doc"> { "format":"bento/slides", ... } </script>
Edit that block only, in place. Escape every < in the JSON as \u003c so it can never contain a literal </script>. Leave the rest of the file — the compressed runtime — untouched. In a chat context the user copies the JSON out instead (Save ▾ → Copy document JSON) and pastes the replacement back (Save ▾ → Replace from JSON…); window.bento.loadDoc(json) does the same from the console.
Adapted from the Bento project's own skill, https://bento.page/skills/bento-slides/SKILL.md (MIT, © 2026 The Bento/Suite authors). The authoritative schema and recipe reference is https://bento.page/agents.md.
Before you start
If the user's message only invokes this skill (e.g. "use bento-slides skill") without a concrete request, ask what deck they want before doing anything: the topic, the source material to build it from, and whether to start from scratch or edit an existing .bento.html. Do not download anything or write a document until the goal is clear.
Starting from nothing
The user does not need Bento installed — the app ships inside every deck. When there is no .bento.html to edit, fetch the latest signed release and author into it:
# name the file after the deck's topic, e.g. Q4_Review.bento.html
curl -fsSL https://bento.page/releases/slides/Bento_Slides.bento.html -o "<Topic>.bento.html"
On Windows without curl: iwr https://bento.page/releases/slides/Bento_Slides.bento.html -OutFile <Topic>.bento.html.
Verify the download contains id="bento-doc", then replace that block's JSON — it ships with a showcase deck, which is discarded. For a fresh document:
- Fetch https://bento.page/agents.md before authoring and start from its "Minimal valid document" skeleton.
sizeandtheme(includingtheme.fontFamily) are required; the app will not boot without them. - Fully specify element fields as the skeleton shows — shapes need
stroke/strokeWidth, text needsfontFamily/align/valign. Missing fields render wrong or not at all. - Omit
docIdandcollabentirely. The app mints a fresh identity and dormant collaboration credentials on first open.
When done, offer to open it (open / xdg-open / start): the file boots straight into the editor with the finished deck. Aim for one pass from request to opened deck.
Workflow
- Find the document. Locate the
#bento-docblock and parse its JSON. Notedoc.size(canonical 1280×720),doc.theme, existing elementids, and whetherdoc.template/doc.readonlyare set. - Read the source material the user gave you and classify each piece — a stat, a table, a process, a definition to expand, a photo.
- Map material to a feature; do not default to bullet text. This is the step that makes it a Bento deck rather than a slideshow of paragraphs:
- numbers to compare visually (trend, magnitude, share) — a chart element
- a comparison, spec, pricing or feature grid — a table element (
columnsweights,rowsofcells, astyleobject) - consecutive slides about the same thing changing — morph: give shared elements the same
idon both slides andtransition:"morph"on the later one (Bento's signature move; reach for it liberally) - a point to drill into — a state slide (
stateOfplus an elementlink) - a hero or full-slide image — full-bleed image, scrim rect and text, with ken-burns drift
- a sequence, flow or timeline — a line or
pathwith adash-marchloop, or morph a highlight through the steps - a headline number — big text with
fx:{countUp:true} - every cover and divider — at least one ambient motion
- repeated chrome or a logo — keep its
idstable across slides so it morphs in place - a demo clip, recording or soundbite — a media element (
kind: video|audio); embed short clips as a data URI, link big ones by URL to keep the file small
- Author using the schema, keeping https://bento.page/agents.md open for the element shapes, the morph / chart / state / ken-burns snippets and the gotchas. Respect one accent colour, at most two typefaces, 96px side margins (right-most x ≤ 1184), and write speaker notes on every slide.
- Self-audit before finishing:
- any numbers rendered as text that should be a chart?
- do consecutive slides on one subject share ids and
transition:"morph"? - at least one motion moment (ken-burns, loop, count-up), especially on the cover?
- a drill-down that would work better as a state slide?
- one accent colour, at most two typefaces, 96px margins?
- speaker notes on every slide?
- Write back the edited
#bento-docblock (escaping<as\u003c), or return the replacement JSON. Never regenerate the whole HTML file.
Critical gotchas
- Charts: bar and line series
datamust be plain numbers —{value,…}item objects coerce to 0, and only pie takes{name,value}. Colour by series, not per bar.optionis pure JSON: template formatters only ({b}/{c}/{d}), never functions. - Morph needs deterministic, stable ids shared across the slides that should animate together. Different ids mean no morph — the elements just cut.
- Images and fonts must be embedded as data URIs in
doc.assetsand referenced by"asset:<key>", so the file stays self-contained. - Media: a
mediaelement (kind: video|audio) embeds short clips as a data URI insrc, or references a URL for big files.autoplayruns only in present mode and needsmuted:truefor video. Do not embed large videos — they bloat the file. - Never regenerate
docIdwhen editing an existing deck; it is the document's identity. Fresh decks omit it and the app mints one. template:truemeans every open mints a fresh deck;readonly:truemeans the file boots straight into the show with no editor.
Working examples of every technique: open any template at https://bento.page and read its #bento-doc block.