
sn-ppt-doctor
Use when diagnosing PPT Skill setup or failures involving source parsing, Playwright or Chromium rendering, HTML-to-PPTX export, Workbench startup, or bundled search and image-tool configuration.
- Installs
- 138
- Last 24h
- —
- Trending rank
- —
- Security
- Not audited
Install
Works with every agent the skills CLI supports.
npx skills add https://github.com/opensensenova/sensenova-skills --skill sn-ppt-doctor- 01
Install
Run the command in your project. The CLI asks which agents to install for.
- 02
Describe the task
Ask your agent for something this skill covers. It loads sn-ppt-doctor automatically when relevant.
- 03
Review the result
The agent follows the SKILL.md steps, scripts and references bundled with the skill.
SKILL.md
The instructions your agent reads when the skill is triggered.
sn-ppt-doctor
这是按需运行的能力与本地依赖检查,不是 Entry 的强制前置。Doctor 分开报告:
- 当前 Agent 的普通搜索、图片搜索和图片生成原生工具是否注册、配置或实际验证;
- PPT 整包自带的
sn-ppt-tools是否存在并已配置。
Doctor 不检查或恢复 sn_agent_runner.py,不写 .env,也不把可选媒体能力变成硬门槛。
持久配置
PPT 内置工具与 Doctor 自动读取:
- Hermes:
~/.hermes/.env - OpenClaw:
~/.openclaw/.env - 自定义:先设置
SN_PPT_ENV_FILE=/absolute/path/to/file
已有进程变量优先于文件值。推荐配置:
# 搜索和搜图共用;默认请求 google.serper.dev
SN_PPT_SEARCH_API_KEY="<search-api-key>"
# OpenAI/SenseNova 兼容的同步 /images/generations 接口
SN_PPT_IMAGE_GEN_URL="https://your-host/images/generations"
SN_PPT_IMAGE_GEN_API_KEY="<image-generation-api-key>"
SN_PPT_IMAGE_GEN_MODEL="<image-generation-model>"
用户只需编辑一次文件,不需要每次启动 Hermes 前执行 export。Doctor 输出实际读取的文件、
已采用的变量名和缺失字段,但不得输出 key 值。
检查内容
- 当前 workspace 是否可写,
<pwd>/ppt_decks是否可用; pypdf、python-docx是否可用于附件解析;- Standard HTML 渲染所需的 Python Playwright 是否存在;
- 当前解释器缺少 Playwright 时,先保留 bare Python 的 pip 安装路径,再检查已安装的
uv toolPlaywright 是否可作为可选隔离环境; - Playwright Chromium 是否已经安装并能实际启动(不是只检查脚本文件);
- Node.js 是否可用于 Workbench 和 Static 默认 HTML -> PPTX 兼容版导出;
- HTML -> PPTX 所需的 npm、
pptxgenjs、echarts、Node Playwright 是否可解析,以及该 Playwright 的 Chromium 是否能实际启动; - Standard 渲染脚本、PPTX exporter 和 Workbench runtime 是否存在;
python-pptx是否可用于 Creative 整页图片打包。sn-ppt-tools的四个脚本是否存在;- 内置普通搜索、图片搜索和图片生成的 URL 是否有效,key/model 是否已配置;
- 实际加载的
.env路径、无效行和缺失字段。
原生工具有效性
工具出现在 Agent 工具列表中不等于可用。 Doctor 必须使用以下状态:
| 状态 | 含义 |
|---|---|
absent | 当前 Agent 没有对应工具 |
present_unverified | 工具已注册,但没有配置检查或成功调用证据 |
misconfigured | 工具或已知配置检查明确报告缺少 URL、key、model 等 |
available | 无费用 config/health 检查通过,或一次真实调用成功 |
failed | 真实调用已经失败 |
运行 Doctor Skill 的 Agent 必须:
- 检查当前实际工具列表,没有工具时写
absent。 - 有工具时先寻找该工具暴露的 config/health 状态;明确缺配置时写
misconfigured。 - 没有无费用检查时只能写
present_unverified,不得因工具名称存在就写available。 - 用户要求完整检查时,普通搜索和搜图各做一次最小真实调用。
- 生图真实探测可能收费,必须先获得用户明确同意;未探测前保持
present_unverified,除非已有明确缺配置证据。
本地脚本无法读取 Agent 工具注册表,所以只报告 Bundled 配置事实,并在 native_media
中返回 agent_inspection_required。Doctor Skill 负责把 Native 与 Bundled 两层并列呈现,
再给出 effective source:
- 经过验证的 Native;
- 否则已配置或已探测成功的 Bundled;
- 两者都不可确认时为 None。
缺少某个可选依赖只影响对应能力,不应阻止其他出口。例如没有 Node 时仍可使用宿主原生 PPTX 能力;HTML -> PPTX 失败时仍保留 HTML。
调用
python3 "$SKILL_DIR/ppt_doctor/check_environment.py"
默认命令不联网,只检查 Bundled 配置。显式探测 Bundled 搜索接口:
python3 "$SKILL_DIR/ppt_doctor/check_environment.py" --probe-search
Bundled 图片生成可能收费,只有用户明确要求时才执行:
python3 "$SKILL_DIR/ppt_doctor/check_environment.py" \
--probe-image-generation \
--probe-output-dir "/absolute/existing/directory"
Doctor 只报告,不安装依赖、不写 secret、不修改任务目录。standard_html.status 只有在
渲染脚本、Python Playwright 和 Chromium 实际启动都通过时才是 available;否则
playwright_chromium.install_hint 给出准备命令。报告中的 python_source 为
current_interpreter 或 uv_tool。前者始终先检查,缺包时的主安装提示保留
python -m pip install -r requirements.txt;只有当 Doctor 实际检测到已安装的 uv-tool
Playwright 时,才使用 uv tool run --from playwright python ...。
html_to_pptx_environment.status 只有在
导出脚本、Node 包和 Node Playwright Chromium 均可实际运行时才是 available,缺失时同样
给出准备命令。缺少媒体配置时仍以退出码 0 完成报告,并显示应编辑的 .env 路径和缺失项。
FAQ
What does the sn-ppt-doctor skill do?
Use when diagnosing PPT Skill setup or failures involving source parsing, Playwright or Chromium rendering, HTML-to-PPTX export, Workbench startup, or bundled search and image-tool configuration.
How do I install sn-ppt-doctor?
Run npx skills add https://github.com/opensensenova/sensenova-skills --skill sn-ppt-doctor in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/sn-ppt-doctor/ (personal) or .claude/skills/sn-ppt-doctor/ (project).
Which AI agents can use sn-ppt-doctor?
Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.
Is sn-ppt-doctor safe to install?
No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.
Who maintains sn-ppt-doctor?
It is published by opensensenova in opensensenova/sensenova-skills. It has 138 recorded installs.
More from opensensenova/sensenova-skills
sn-image-base
opensensenova/sensenova-skills
Base-layer skill for the SenseNova-Skills project, providing low-level APIs for image generation, recognition (VLM), and text optimization (LLM). This skill does not preprocess inputs; it only calls backend services and returns results. This skill is not user-facing and is intended for upper-layer skills only.
sn-infographic
opensensenova/sensenova-skills
Generates professional infographics with various layout types and visual styles. Analyzes content, recommends layout and style, and generates publication-ready infographics. Use when user asks to create "infographic", "信息图", "visual summary", or "可视化".
sn-ppt-standard
opensensenova/sensenova-skills
仅在 sn-ppt-entry 与 sn-ppt-story 已准备绝对 DECKDIR 和 outline.md 后使用;生成每页独立 HTML(1600×900)、渲染 PNG、逐页讲稿、present.html,并按 staticpostprocess 选择生成由 Standard 自有 exporter 转换的 PPTX。present.html 始终是必交付产物,缺失即技术故障,不得交付;staticpostprocess 含 pptx 时 PPTX 同为必交付产物(缺一即技术故障),且只能由 Standard 自有 exporter 生成;仅当用户明确要求只要 HTML(staticpostprocess 为 [])时,PPTX 才可不交付。
sn-ppt-entry
opensensenova/sensenova-skills
Use when a user asks to create a presentation, slide deck, PPT, or PPTX from a query and optional files, or to resume an existing SenseNova presentation task.
sn-md-to-html-report
opensensenova/sensenova-skills
将 Markdown 报告、研究笔记、行业分析、战略备忘录、技术白皮书、复盘、周报等长文档,重组并创作为有编辑判断、网页美感和证据秩序的自包含 HTML 专题页。用户要求“转成 HTML”“网页化报告”“美化报告”“做成专题页”“便于分享”“提升可读性/设计感”“把报告做成网页”时使用。必须先写 plan.md 再写 HTML,保留原文事实断言和结论强度,不套模板,不做机械 Markdown 转换。
sn-image-doctor
opensensenova/sensenova-skills
Environment diagnostic skill for SenseNova-Skills project. Checks that sn-image-base is properly installed and configured, validates dependencies and environment variables. Prompts user to configure missing required variables and saves them to .env file. After configuration, reloads environment and suggests agent restart if needed.
Popular frontend & design skills
setup-matt-pocock-skills
mattpocock/skills
Configure this repo for the engineering skills: set up its issue tracker, triage label vocabulary, and domain doc layout. Run once before first use of the other engineering skills.
frontend-design
anthropics/skills
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.
prototype
mattpocock/skills
Build a throwaway prototype to answer a design question. Use when the user wants to sanity-check whether a state model or logic feels right, or explore what a UI should look like.
ui-taste
uizze.sh
Give your coding agent better UI taste. Build and polish web and iOS interfaces with Uizze's anti-ui-slop playbooks and optional real-product references. Use for UI design, implementation, redesign, critique, or a final visual review in Claude Code, Codex, Cursor, or Copilot.
hyperframes-animation
heygen-com/hyperframes
All animation knowledge for HyperFrames — atomic motion rules, multi-phase scene blueprints, scene transitions, broader motion-design techniques, AND the seven runtime adapters (GSAP default, plus Lottie, Three.js, Anime.js, CSS keyframes, Web Animations API, TypeGPU). Use for any motion or animation task: pick 2-4 rules and compose, or load a blueprint, or look up runtime-specific API (e.g. GSAP eases / Lottie player / Three.js mixer). Also covers auditing an existing composition's choreography (animation map) and 24 named text-animation effects. HyperFrames-native: single paused timeline, seek-safe, deterministic.
hyperframes-core
heygen-com/hyperframes
The HyperFrames composition contract — build one renderable project. Use for composition structure, the data- timing attributes, class="clip", tracks, sub-compositions, variables, framework-owned media playback, deterministic-render rules, and validation. Read before writing composition HTML.