sn-ppt-tools
What it does
This skill provides fallback search and image tools that a slide deck skill can use when its built-in tools are missing or have failed. It is mainly for the PPT skill set rather than for direct use.
When to use it
- ✓When a slide deck needs web search and the built-in search tool is not available.
- ✓When a deck needs images found online and then downloaded into the project.
- ✓When a deck needs a new picture and the host's image tool has failed.
Skill link
https://github.com/OpenSenseNova/SenseNova-Skills/blob/main/skills/sn-ppt-tools/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Find and download a few photos of the Golden Gate Bridge for my slide deck.”
5 new skills a week. 1 minute to read.
How it works
The agent calls the matching script for search, image lookup, download or generation, using keys saved in a user settings file rather than in the project.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
sn-ppt-tools
这是 PPT Skill 整包自带的备用工具,不是独立内容生产流程。调用前先读
references/capability-policy.md。宿主 Agent 的等价原生工具始终优先;只有原生能力
不存在或一次实际调用确认不可用时,才调用这里的脚本。
持久配置
四个脚本每次启动都会自动加载一个用户级 .env:
- 设置了
SN_PPT_ENV_FILE时读取该文件; - OpenClaw 读取
~/.openclaw/.env; - 其他环境默认读取
~/.hermes/.env。
已有进程环境变量优先,.env 只补充缺失项。不要把 secret 写进 Skill 目录、workspace、
命令行、prompt 或 task pack。完整模板和缺失项检查通过 sn-ppt-doctor 查看。
普通搜索
python3 "$PPT_TOOLS_DIR/scripts/web_search.py" "QUERY" --num 10
配置:
- URL:
SN_PPT_WEB_SEARCH_URL;否则SN_PPT_SEARCH_BASE_URL/SERPER_BASE_URL加/search。 - Key:
SN_PPT_WEB_SEARCH_API_KEY->SN_PPT_SEARCH_API_KEY->SERPER_API_KEY。
图片搜索与下载
python3 "$PPT_TOOLS_DIR/scripts/image_search.py" "QUERY" --num 10
python3 "$PPT_TOOLS_DIR/scripts/fetch_image.py" \
"https://example.com/image.png" \
--deck-dir "$DECK_DIR" \
--output "assets/image.png" \
--referer "https://example.com/source-page"
图片搜索配置:
- URL:
SN_PPT_IMAGE_SEARCH_URL;否则SN_PPT_SEARCH_BASE_URL/SERPER_BASE_URL加/images。 - Key:
SN_PPT_IMAGE_SEARCH_API_KEY->SN_PPT_SEARCH_API_KEY->SERPER_API_KEY。
先根据搜索元数据选择候选,再下载选中的图片。不得把远程 URL 直接留在最终 deck。
图片生成
python3 "$PPT_TOOLS_DIR/scripts/image_generate.py" \
--prompt-file "$DECK_DIR/pages/page_001.prompt.txt" \
--deck-dir "$DECK_DIR" \
--output "pages/page_001.png" \
--size "2752x1536"
配置:
- URL:
SN_PPT_IMAGE_GEN_URL;否则SN_IMAGE_GEN_BASE_URL/SN_BASE_URL加/images/generations。 - Key:
SN_PPT_IMAGE_GEN_API_KEY->SN_IMAGE_GEN_API_KEY->SN_API_KEY。 - Model:
SN_PPT_IMAGE_GEN_MODEL->SN_IMAGE_GEN_MODEL。
只支持 OpenAI/SenseNova 兼容的同步 POST /images/generations 协议,响应可以是
data[].url 或 data[].b64_json。不在这里扩展其他 provider。
输出与失败
- 成功输出单行 JSON,
status为ok。 - 缺少配置输出
status=unavailable,退出码为 2。 - 请求或落盘失败输出
status=failed,退出码为 1。 - 所有图片只能写入调用方给定的绝对
DECK_DIR内。 - Key 不通过命令行传递,不写入输出、日志、task pack 或 deck 文件。
- 同一能力调用失败后不循环重试;由调用 Skill 按 policy 继续无工具路径。
FAQ
Does it replace the built-in tools?
No. The host's built-in tools always come first, and these are used only as a backup.
Where do the API keys go?
They are kept in a user-level settings file, not in the skill folder or the project.
Can I use it without a deck?
It is built for deck work, so it is mostly used alongside another PPT skill.
Details
Original description by the author
Use when another PPT Skill needs web search, image search or download, or image generation and the host Agent's equivalent native capability is absent or has failed.
Popularity
- GitHub stars
- 6.0k
- Ranking position
- #14465
- License
- MIT
- Updated
- 11/2/2026
Comments
- …
More skills from this repository
sn-code-video
6.0kTeaches your agent to make code-driven videos with Canvas, SVG, Three.js or Remotion, checked frame by frame and exported as MP4.
sn-image-base
6.0kGives other skills low-level tools to generate images, recognize picture content and optimize text using SenseNova services.
sn-image-doctor
6.0kChecks that your SenseNova-Skills setup is installed, has its Python packages and has the API keys it needs, then saves missing keys to a file.
sn-image-imitate
6.0kHelps your agent create a new image that copies a reference picture's style while changing its content to match your request.
Similar skills
feishu-doc
394kHelps your agent read, create, and edit Feishu cloud documents, including text, images, and tables, using the document tool.
feishu-drive
394kLets your agent browse, organize, and comment on files in a Feishu cloud folder that has been shared with the bot.
feishu-perm
394kHelps your agent check and change who can access a Feishu file, choosing the smallest permission that meets your request.