bento-slides
它能做什么
这项技能教智能体如何创建和编辑保存为单个 Bento HTML 文件的演示文稿。它可以从空白开始,也可以从原始材料或已有的演示文稿开始。
适用场景
- ✓当用户想要一份以单个文件形式制作的幻灯片或演示文稿的时候。
- ✓当用户有原始笔记,并希望把它们变成幻灯片的时候。
- ✓当用户想改进或更新已有的 .bento.html 演示文稿的时候。
技能链接
https://github.com/nyblnet/bento/blob/main/plugins/bento-slides/skills/bento-slides/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请根据这些会议笔记,为我做一份简短的 Bento 幻灯片,我可以在浏览器中打开。”
每周 5 个新技能,1 分钟读完。
工作原理
如果没有可以起步的演示文稿,智能体会下载最新的 Bento 应用文件,然后把幻灯片内容写入文件中的 JSON 代码块。文件的其他部分保持不变。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
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>
You 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 instead, the user
copies the JSON out (Save ▾ → Copy document JSON) and pastes your
replacement back (Save ▾ → Replace from JSON…); window.bento.loadDoc(json)
does it from the console.
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
yourself 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"
(Windows without curl: iwr https://bento.page/releases/slides/Bento_Slides.bento.html -OutFile <Topic>.bento.html.)
Then verify the download contains id="bento-doc", and write your document
into that block. The block is empty in the downloaded file — a browser
mints a showcase deck on first open, but on disk there is nothing to discard
and nothing to copy from, so do not go looking for it.
Rules 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, open it (open / xdg-open / start) — the file boots straight
into the editor with the finished deck — and look at every slide before you
report done. Text overflow, elements crowding each other, a heading that
wrapped to three lines and a chart key the renderer dropped are all invisible
in the JSON and obvious on screen. Author, render, check, fix; a deck nobody
looked at is not finished.
Workflow
Find the document. Locate the
#bento-docblock; parse its JSON. Notedoc.size(canonical 1280×720),doc.theme, existing elementids, and whetherdoc.template/doc.readonlyare set.Check
doc.collabfirst. If it carriesownerPriv,writerPrivorinvite, this deck's live-session keys are in the file you are about to read — and anything that receives the file or its JSON can join that session and write to it. That is by design: the file is the invitation. Tell the user before you continue, because only they can decide, and they may not know the deck is shared. Offer the alternative: a read-only copy, or Share → Stop sharing on a duplicate. If it has already gone somewhere, the remedy is Share → Rotate keys — removing the keys afterwards does not retract them.Read the source material the user gave you and classify each piece — is it a stat? a table? a process? a definition to expand? a photo?
Map material → 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 / feature grid → a table element
(
columnsweights +rowsofcells+ astyleobject) - consecutive slides about the same thing changing → morph: give
shared elements the same
idon both slides +transition:"morph"on the later one (Bento's signature move — reach for it liberally) - a point to drill into → a state slide (
stateOf+ elementlink) - a hero / full-slide image → full-bleed image + scrim rect + text, with ken-burns drift
- a sequence / flow / timeline → a line/
pathwith adash-marchloop, or morph a highlight through the steps - a headline number → big text +
fx:{countUp:true} - every cover / divider → at least one ambient motion
- repeated chrome / logo → keep its
idstable across slides so it morphs in place
常见问题
我需要先安装 Bento 吗?
不需要。这项技能说明,应用已内置在每个演示文稿中,智能体也可以下载它。
演示文稿内容以什么形式保存?
演示文稿内容是放在文件某个代码块中的普通 JSON。
我可以在应用中直接编辑吗?
可以。这项技能说明,用户可以从应用中复制 JSON,再把替换内容粘贴回去。
详情
作者的原始描述
Create and edit Bento presentations — single-file .bento.html decks whose document is plain JSON in a "#bento-doc" script block. Use whenever the user wants a slide deck or presentation: starting from NOTHING (it downloads the latest Bento app from bento.page automatically), from source material, or by improving an existing .bento.html. Maps content to the right feature (charts, morph transitions, state slides, ken-burns, motion paths) instead of static text slides, then writes the document JSON in place. Full schema + recipes at https://bento.page/agents.md.
repo: nyblnet/bento
热度
- GitHub 星标
- 5.6k
- 排名
- #14757
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …