sn-ppt-workbench
它能做什么
这项技能在可视化编辑器中打开已完成的 HTML 演示文稿,让你查看并修改。适合已经有幻灯片、并希望在不重新生成的情况下编辑的人。
适用场景
- ✓当你有一份 HTML 幻灯片,并想在浏览器中预览或编辑时。
- ✓当你想打开当前工作区中最新的幻灯片时。
- ✓当你在远程工作,需要转发的编辑器链接时。
技能链接
https://github.com/OpenSenseNova/SenseNova-Skills/blob/main/skills/sn-ppt-workbench/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请在编辑器中打开我工作区里最新的幻灯片,让我检查一下。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体找到幻灯片文件夹,启动或复用编辑网页应用,并给你一个链接。它不会重新生成幻灯片,也不会直接编辑文件。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
sn-ppt-workbench
Start or reuse the AI PPT editing WebUI for an existing HTML slide deck. The
helper prefers Hermes/canvas/port-forward URLs when available. Without a
forwarded URL, native hosts bind to localhost by default, while Docker/WSL bind
to 0.0.0.0 so remote users can reach the WebUI through the host network.
Use Cases
- The user already generated a deck and asks to open the WebUI/editor/workbench.
- The user provides a
deck_dircontainingtask_pack.json,slides/slide_NN.html,pages/page_NNN.html, or a root-level HTML deck. - The user says to inspect or edit previously generated slides without regenerating them.
Hard Rules
- Do not run
sn-ppt-entry,sn-ppt-standard,page-html,batch-page-html, orexport. - Do not edit slide files directly. The WebUI handles user-visible editing.
- If
deck_diris missing, auto-detect only under$(pwd)/ppt_decks. Other roots are considered only when the caller explicitly passes--search-root; never scan home folders by default. - If no usable deck is found, ask the user for the absolute
deck_dir. - Workbench startup is best-effort. If it skips or fails, report the reason and do not attempt generation as a fallback.
- Prefer a forwarded/canvas URL over localhost when the user may be on SSH, IM, or another remote device.
- When launched from the unified PPT flow, use the exact absolute
task_pack.deck_dir; opening the Workbench must not create or switch tasks. - Treat
task_pack.jsonas progress/resume state andoutline.mdas the user-editable Story. Existing runtime builds may expose only part of these artifacts; report compatibility gaps instead of regenerating the deck.
Invocation
Use the helper directly:
python3 $SKILL_DIR/scripts/open_workbench.py --deck-dir "<deck_dir>" --agent-session-id "${HERMES_SESSION_KEY:-}"
On native Windows where python3 is unavailable:
python $SKILL_DIR/scripts/open_workbench.py --deck-dir "<deck_dir>" --agent-session-id "%HERMES_SESSION_KEY%"
If the user did not provide a deck path, let the helper auto-detect:
python3 $SKILL_DIR/scripts/open_workbench.py --agent-session-id "${HERMES_SESSION_KEY:-}"
Pass same-session bridge details when available:
python3 $SKILL_DIR/scripts/open_workbench.py \
--deck-dir "<deck_dir>" \
--agent-session-id "${HERMES_SESSION_KEY:-}" \
--agent-managed 1 \
--agent-provider hermes \
--agent-transport gateway \
--webui-base-url "${HERMES_WEBUI_BASE_URL:-}" \
--gateway-base-url "${HERMES_GATEWAY_BASE_URL:-}"
--agent-transport may be omitted: the helper auto-selects gateway when the
Hermes Gateway endpoint and key resolve (environment or Hermes .env files),
then webui / acp / rest when only those details exist. Explicit flags and
WORKBENCH_AGENT_TRANSPORT always win. With no resolvable bridge the bottom
chat stays read-only by design.
For non-Hermes interactive providers, pass structured bridge details instead of scraping CLI/TUI output:
python3 $SKILL_DIR/scripts/open_workbench.py \
--deck-dir "<deck_dir>" \
--agent-managed 1 \
--agent-provider openclaw \
--agent-transport rest \
--agent-base-url "${WORKBENCH_AGENT_BASE_URL:-}" \
--agent-api-key "${WORKBENCH_AGENT_API_KEY:-}"
python3 $SKILL_DIR/scripts/open_workbench.py \
--deck-dir "<deck_dir>" \
--agent-managed 1 \
--agent-provider codex \
--agent-transport acp \
--acp-command "${WORKBENCH_ACP_COMMAND:-codex-acp}"
python3 $SKILL_DIR/scripts/open_workbench.py \
--deck-dir "<deck_dir>" \
--agent-managed 1 \
--agent-provider box-agent \
--agent-transport acp \
--acp-command "${WORKBENCH_ACP_COMMAND:-${BOX_AGENT_ACP_COMMAND:-box-agent-acp}}"
When this helper runs inside Box Agent, the exported BOX_AGENT_PYTHON or
BOX_AGENT_SKILL_TOOLS_ROOT environment automatically selects box-agent,
acp, and the installed box-agent-acp command. Explicit
WORKBENCH_AGENT_* flags or environment variables still take precedence.
For WorkBuddy, pass --agent-provider workbuddy only as provider identity. Tell
the user clearly that WorkBuddy currently has no supported API or ACP interface
for the interactive workbench bridge, so the WebUI can show WorkBuddy status but
cannot send bottom-chat modification turns back to WorkBuddy.
CLI Subcommands (direct launch fallback)
When bypassing open_workbench.py and invoking the workbench launcher directly, use subcommands:
常见问题
它会重新生成我的幻灯片吗?
不会。它只打开幻灯片进行查看和可视化编辑。
它如何找到我的幻灯片?
如果没有指定文件夹,它会在当前工作区的 ppt_decks 文件夹中查找。
如果编辑器无法启动怎么办?
它会报告原因,而不会改为生成一份新的幻灯片。
详情
作者的原始描述
Use when the user asks to open, preview, inspect, or visually edit an existing SenseNova HTML presentation in the PPT Workbench, using an explicit deck_dir or the latest deck in the current workspace.
热度
- GitHub 星标
- 6.0k
- 排名
- #14466
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
sn-code-video
6.0k教你的智能体使用 Canvas、SVG、Three.js 或 Remotion 制作代码驱动的视频,逐帧检查并导出为 MP4。
sn-image-base
6.0k为其他技能提供底层工具,使用 SenseNova 服务生成图片、识别图片内容并优化文字。
sn-image-doctor
6.0k检查 SenseNova-Skills 是否已安装、Python 包是否齐全、所需 API 密钥是否配置,并把缺失的密钥保存到文件。
sn-image-imitate
6.0k帮你的智能体创建新图片,复制参考图的风格,同时把内容改为符合你要求的画面。