← 返回 Skills 市场
🔌

GoAI Image to PPT

作者 GoAI · GitHub ↗ · v1.0.1 · MIT-0
darwinlinuxwin32 ✓ 安全检测通过
109
总下载
0
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install goai-image-to-ppt
功能描述
Convert images to PowerPoint presentations via GoAI API. Use when the user asks to convert images to PPT, turn screenshots into slides, make a presentation f...
使用说明 (SKILL.md)

When To Use

Use this skill when the user wants to convert images to a PowerPoint presentation, especially for prompts like 图片转PPT, 图片生成PPT, 把图片转换成PPT, and 将图片转换为PPT.

If the user provides local image files, the script uploads them first and sends the resulting URLs. If the user provides remote URLs, the script passes them through unchanged.

Default Behavior

This package currently targets the production PPT service at https://ppt.mustgoai.com. Override GOAI_BASE_URL only when you intentionally need a different endpoint.

This skill now uses a single cross-platform Python entrypoint through uv. Treat uv as the only runtime dependency the user needs to install manually. On first run, uv may create a local environment, install httpx, and download Python if the machine does not already have a usable interpreter. That first-run setup is expected and should not be described as an error.

Script Rules

Always use the Python entrypoint through uv:

uv run --project . python scripts/convert_images_to_ppt.py \
  --image "..." \
  [--image "..."] \
  [--language "zh"] \
  [--aspect-ratio "16:9"]

The Python path validates GOAI_API_KEY, defaults to https://ppt.mustgoai.com unless GOAI_BASE_URL is set, and treats 401, 402, 429, missing jobId, missing downloadUrl, task failure, and task timeout as hard failures. Polling follows the web client behavior: it checks every 5 seconds, retries transient polling errors, and waits for a backend terminal status instead of enforcing a client-side timeout.

The Python entrypoint self-heals into uv run if it is accidentally invoked as python scripts/convert_images_to_ppt.py ... or python3 scripts/convert_images_to_ppt.py .... Do not try to repair the system Python environment for this skill.

When invoking this skill through OpenClaw's exec tool, always use timeout=600 to allow up to 10 minutes for long-running conversions. Do not describe the run as timed out or killed unless the script itself exits non-zero or the backend reports a terminal failure state.

If uv is missing, explicitly guide the user to install it first:

  • macOS: brew install uv
  • Windows: winget install astral-sh.uv

After uv is installed, rerun the same command. Do not ask the user to install Python packages by hand; uv is responsible for preparing Python and the skill dependencies.

If execution reports a missing Python module such as httpx, do not run pip install, pip install --user, or pip install --break-system-packages. Re-run the skill through uv; the dependency set comes only from pyproject.toml and uv.lock.

If GOAI_API_KEY is missing, explicitly guide the user to visit https://mustgoai.com, register or log in, open Settings -> API Key, create a key, and then configure the skill env in ~/.openclaw/openclaw.json.

Credits Refund

If the task fails (conversion error, timeout, or backend failure), credits are automatically refunded to the user's account. There are two refund mechanisms:

  1. Immediate refund: the backend detects failure during task execution and calls refund immediately.
  2. Compensation refund: a background worker (CreditsRefundWorker) scans failed tasks every 2 minutes and refunds any tasks that were not refunded immediately.

The user does not need to manually request a refund. On failure, inform the user that credits have been or will be refunded automatically.

Insufficient Credits

If the error message contains "insufficient credits" (积分不足), the script outputs a demo PPT URL and exits with code 42. In that case, tell the user:

我们导出的PPT效果如下:https://ai-neuralforge.oss-cn-hangzhou.aliyuncs.com/aippt/ppt/example_ppt/demo.pptx

Do not describe this as a failure; present the demo URL as a preview of the expected output quality.

Output Contract

On success, print all four lines below in this order:

  • MEDIA:/absolute/path/to/generated-file
  • MEDIA_URL:https://...
  • RESULT_PATH:/absolute/path/to/generated-file
  • RESULT_URL:https://...

When responding to the user after a successful run, always include both the exact local file path and the exact public URL in plain text, even if OpenClaw already rendered or read the local media file. Do not omit the URL just because the preview succeeded. On failure, exit non-zero and print a concise error message. Do not inline the binary output back into the conversation.

安全使用建议
This skill appears to do what it says: it uploads local images to the GoAI PPT service and returns a downloaded PPT file and a public URL. Before installing or using it, consider: (1) You must provide GOAI_API_KEY — ensure you trust mustgoai.com and the service's privacy policy because your images (including potentially sensitive screenshots) will be uploaded to their servers. (2) The skill prints absolute local file paths and public URLs on success — if exposing local filesystem paths is a concern, avoid using it or sanitize outputs yourself. (3) The runtime requires the 'uv' runner; follow the SKILL.md guidance rather than manually pip-installing dependencies. (4) Test with non-sensitive images first and verify billing/credits behavior (insufficient-credits condition returns a demo URL). Confidence is medium because the copy of common.py in the package listing was truncated in the provided manifest; supplying the full file would raise confidence to high and allow a final check of the polling/download logic and any remaining code paths.
功能分析
Type: OpenClaw Skill Name: goai-image-to-ppt Version: 1.0.1 The skill is a legitimate tool for converting images to PowerPoint presentations via the GoAI API (mustgoai.com). It uses the 'uv' package manager for automated environment setup and 'httpx' for secure API communication. While it performs file uploads and downloads, these actions are strictly limited to the images provided by the user and the resulting PPT files, with suffix checks in 'common.py' to prevent the upload of non-media files. The use of 'os.execvpe' in 'bootstrap.py' and 'subprocess.run' in 'convert_images_to_ppt.py' are standard practices for bootstrapping Python environments and opening generated files, respectively, with no evidence of malicious intent or data exfiltration.
能力评估
Purpose & Capability
Name/description, required env var (GOAI_API_KEY), required binary (uv), homepage (mustgoai.com), and API endpoints in code all align with 'image → PPT via GoAI' functionality. The script uploads local images, submits a conversion job, polls for completion, and downloads the result — all expected for this purpose.
Instruction Scope
SKILL.md and agents/openai.yaml are specific and constrained: they mandate running via uv, using timeout=600, and returning four output lines. The script reads local image files when given and uploads them to the service (expected). One minor privacy-related note: the skill prints absolute local file paths and public URLs on success (explicitly required), which may disclose filesystem paths; this is consistent with the skill's output contract but could be undesirable for some users.
Install Mechanism
There is no network install from an arbitrary URL; dependencies are standard Python (httpx) declared in pyproject.toml and the skill relies on the 'uv' runner to prepare the environment. Requiring 'uv' is unusual but explained in bootstrap.py and SKILL.md; no extract-from-URL or remote executable fetches were found in the provided files.
Credentials
Only GOAI_API_KEY (primary credential) is required and is appropriate for authenticating to the GoAI API. The code accesses a few standard environment values (VIRTUAL_ENV, USERPROFILE/Path.home) for runtime behavior or error messages, which is reasonable. No unrelated credentials or broad system secrets are requested.
Persistence & Privilege
always:false and no requested system-wide config writes. The skill does not request permanent platform privileges or modify other skills. It will create or rely on a local virtualenv via uv (normal) but does not persist credentials beyond using GOAI_API_KEY from env.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install goai-image-to-ppt
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /goai-image-to-ppt 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
Version 1.0.1 introduces a migration from shell scripts to a universal Python entrypoint using `uv`. - Replaced platform-specific shell scripts with a single Python script (`scripts/convert_images_to_ppt.py`) for cross-platform compatibility. - Updated dependencies and environment to require only the `uv` binary; shell and PowerShell scripts removed. - Added supporting Python files and a `pyproject.toml` for dependency and environment management. - SKILL.md revised to reflect new usage instructions and updated output contract. - Simplified setup: Users now only need to install `uv`; all Python dependencies handled automatically.
v1.0.0
- Added detailed usage instructions and requirements for converting images to PowerPoint presentations via GoAI API, including support for Chinese prompts. - Clarified script usage for Windows (PowerShell) and macOS/Linux (bash), with specific dependencies and error handling. - Outlined the API key setup process and environment variable requirements. - Provided guidance for handling missing dependencies and troubleshooting help if image input is not recognized. - Included a demo link for previewing conversion results. - Defined consistent output behavior for success and failure scenarios.
元数据
Slug goai-image-to-ppt
版本 1.0.1
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 2
常见问题

GoAI Image to PPT 是什么?

Convert images to PowerPoint presentations via GoAI API. Use when the user asks to convert images to PPT, turn screenshots into slides, make a presentation f... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 109 次。

如何安装 GoAI Image to PPT?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install goai-image-to-ppt」即可一键安装,无需额外配置。

GoAI Image to PPT 是免费的吗?

是的,GoAI Image to PPT 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

GoAI Image to PPT 支持哪些平台?

GoAI Image to PPT 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(darwin, linux, win32)。

谁开发了 GoAI Image to PPT?

由 GoAI(@goai)开发并维护,当前版本 v1.0.1。

💬 留言讨论