Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

bento-slides

БесплатноЗапускает вложенные скриптыНе проверен

Use when creating or editing Bento (`.bento.html`) slide decks, including any request for a single-file HTML slide deck.

sammcjот sammcj★ 175 звёзд на GitHub

Об этом скилле

Authoring Bento decks

A Bento deck is one self-contained .bento.html file: a compressed app runtime plus the document as plain JSON in one block:

<script type="application/bento+json" id="bento-doc"> { "format":"bento/slides", ... } </script>
  • Edit that block only, in place. Only upgrade_deck.mjs replaces the runtime.
  • render_check.mjs --write writes the block for you. A hand-written splice must escape every < in the JSON as its unicode escape (a backslash followed by u003c), so the block never contains a literal </script> and a build script can find the block's end at the first </script> after the opening tag.
  • Chat context (no filesystem): the user copies the JSON out (Save > Copy compact JSON) and pastes your replacement back (Save > Replace from JSON). window.bento.loadDoc(json) does the same from the console.

Before touching an existing deck

  • Ask the user to close the deck in their browser. A save from the open tab overwrites your edit. Autosave keeps a recovery snapshot in IndexedDB keyed by docId, so a stale tab offers to "restore" the old version on the next open; tell the user to pick Discard.
  • If the #bento-doc block contains "format":"bento/enc", the deck is password-encrypted. Stop and tell the user; plain JSON written over it destroys the ciphertext. upgrade_deck.mjs is the one script that works on it, and it leaves the ciphertext intact.
  • Check the runtime: node scripts/upgrade_deck.mjs <deck> --check.
    • Exit 2: the deck is behind. Tell the user and offer the upgrade. On yes, run it without --check, then render_check.mjs (unless encrypted), because rendering can change between versions.
    • Exit 1 on the manifest: re-run outside the sandbox.
  • Leave collab as found. Keys mint at creation and every save writes them, so nearly every saved deck carries ownerPriv: anyone with the file can join its live session.
    • Deleting collab severs the owner from their own room while sent copies keep the old one.
    • Tell the user once that the file contains session keys. Hand-outs: Share > View-only copy. Leaked file: Share > Reset access.
    • Every save also stamps CRDT state into collab.sync; the next open merges it with the room, so elements a script deleted come back. render_check.mjs --write drops collab.sync. If edits still reappear, the owner's other tabs are in the room: set collab.on to false and have the user Share > Reset access.
    • Otherwise set collab.on to false only when the user asks to stop sharing. Change that one field and keep the keys.

Starting from nothing

The user does not need Bento installed; the app ships inside every deck. Fetch the latest 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"

Verify the download contains id="bento-doc". The block is empty on disk (a browser mints a demo deck on first open), so there is nothing to discard. Omit docId and collab. render_check.mjs --write saves freshly minted keys with sharing off (collab.on:false); the user turns sharing on with Share. Never author a collab object: one without keys never gets any, so Share silently connects nothing.

Starting from a theme

When the user asks for a themed deck or names a theme from bento-themes, use the local clone at ~/git/sammcj/bento-themes if it exists (it may hold unreleased work). Otherwise clone it there: git clone https://github.com/sammcj/bento-themes ~/git/sammcj/bento-themes.

  • Pick a theme from the repo README (one section per theme) and themes/<name>/preview/*.png.
  • Shell: fetch the latest release as in "Starting from nothing". A theme's own .bento.html holds the older runtime it was built on.
  • Document: start doc.json from themes/<name>/<Name>.doc.json (full form). Keep theme, fonts, assets, present, meta and layouts. Delete collab, docId and template so the deck is not a template and --write saves it with sharing off.
  • Slides: copy the demo slide for each layout you need (its element ids match the layout), give it a unique slide id, and replace its text, data and notes. A layout with a detail state needs its state slide copied too, with stateOf and link updated. Theme layouts carry no role, so compact role placement does not apply.

Workflow

Create a task per step below, each with its completion criterion, then work them to completion.

  1. Read the references. references/agents-1.2.12.md (element shapes, chart/state/hidden-slide rules, column arithmetic) and references/format-reference.md (compact form, fields since 1.0.18, runtime rules). Every key, generated from the runtime: https://bento.page/schema/slides.json.
  2. Find the document (existing deck). Parse the #bento-doc JSON. Note doc.size, doc.theme, element ids, `do
Полный SKILL.md на GitHub

Установить bento-slides в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

CHANGELOG.mdCLAUDE.mdevals/trigger.jsonreferences/agents-1.2.12.mdreferences/format-reference.mdreferences/motion.mdscripts/bento_file.mjsscripts/inflate_runtime.mjsscripts/render_check.mjsscripts/upgrade_deck.mjs

FAQ

Что делает скилл bento-slides?

Use when creating or editing Bento (`.bento.html`) slide decks, including any request for a single-file HTML slide deck.

Как установить скилл bento-slides?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл bento-slides запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить bento-slides с