跳到正文
Skillpedia
PDF、Word 与幻灯片6.0k · #14466

sn-ppt-workbench

它能做什么

这项技能在可视化编辑器中打开已完成的 HTML 演示文稿,让你查看并修改。适合已经有幻灯片、并希望在不重新生成的情况下编辑的人。

适用场景

  • ✓当你有一份 HTML 幻灯片,并想在浏览器中预览或编辑时。
  • ✓当你想打开当前工作区中最新的幻灯片时。
  • ✓当你在远程工作,需要转发的编辑器链接时。

技能链接

https://github.com/OpenSenseNova/SenseNova-Skills/blob/main/skills/sn-ppt-workbench/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/OpenSenseNova/SenseNova-Skills/blob/main/skills/sn-ppt-workbench/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 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_dir containing task_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

  1. Do not run sn-ppt-entry, sn-ppt-standard, page-html, batch-page-html, or export.
  2. Do not edit slide files directly. The WebUI handles user-visible editing.
  3. If deck_dir is 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.
  4. If no usable deck is found, ask the user for the absolute deck_dir.
  5. Workbench startup is best-effort. If it skips or fails, report the reason and do not attempt generation as a fallback.
  6. Prefer a forwarded/canvas URL over localhost when the user may be on SSH, IM, or another remote device.
  7. When launched from the unified PPT flow, use the exact absolute task_pack.deck_dir; opening the Workbench must not create or switch tasks.
  8. Treat task_pack.json as progress/resume state and outline.md as 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.

repo: OpenSenseNova/SenseNova-Skills

热度

GitHub 星标
6.0k
排名
#14466
许可证
MIT
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能