bento-slides
БесплатноЗапускает вложенные скриптыНе проверенUse when creating or editing Bento (`.bento.html`) slide decks, including any request for a single-file HTML slide deck.
от 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.mjsreplaces the runtime. render_check.mjs --writewrites the block for you. A hand-written splice must escape every<in the JSON as its unicode escape (a backslash followed byu003c), 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-docblock contains"format":"bento/enc", the deck is password-encrypted. Stop and tell the user; plain JSON written over it destroys the ciphertext.upgrade_deck.mjsis 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, thenrender_check.mjs(unless encrypted), because rendering can change between versions. - Exit 1 on the manifest: re-run outside the sandbox.
- Exit 2: the deck is behind. Tell the user and offer the upgrade. On yes, run it without
- Leave
collabas found. Keys mint at creation and every save writes them, so nearly every saved deck carriesownerPriv: anyone with the file can join its live session.- Deleting
collabsevers 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 --writedropscollab.sync. If edits still reappear, the owner's other tabs are in the room: setcollab.ontofalseand have the user Share > Reset access. - Otherwise set
collab.ontofalseonly when the user asks to stop sharing. Change that one field and keep the keys.
- Deleting
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.htmlholds the older runtime it was built on. - Document: start
doc.jsonfromthemes/<name>/<Name>.doc.json(full form). Keeptheme,fonts,assets,present,metaandlayouts. Deletecollab,docIdandtemplateso the deck is not a template and--writesaves 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, withstateOfandlinkupdated. Theme layouts carry norole, so compact role placement does not apply.
Workflow
Create a task per step below, each with its completion criterion, then work them to completion.
- Read the references.
references/agents-1.2.12.md(element shapes, chart/state/hidden-slide rules, column arithmetic) andreferences/format-reference.md(compact form, fields since 1.0.18, runtime rules). Every key, generated from the runtime: https://bento.page/schema/slides.json. - Find the document (existing deck). Parse the
#bento-docJSON. Notedoc.size,doc.theme, elementids, `do
Установить bento-slides в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
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 запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic