Skywork-ppt by skyworkai/skywork-skills
npx skills add https://github.com/skyworkai/skywork-skills --skill Skywork-ppt四项能力:生成、模板仿制、编辑现有 PPT 以及本地文件操作。
在使用此技能前,必须完成认证。首先运行认证脚本:
# 认证:检查环境变量令牌 / 缓存的令牌 / 浏览器登录
python3 <skill-dir>/scripts/skywork_auth.py || exit 1
令牌优先级:
SKYBOT_TOKEN → 如果已设置,则直接使用~/.skywork_token → 通过 API 验证,如果有效则使用重要提示 - 登录 URL 处理:如果脚本输出包含以 [LOGIN_URL] 开头的行,你必须立即将该 URL 以可点击消息的形式发送给用户(例如"请打开此链接登录:")。用户可能处于浏览器无法自动打开的环境中,因此务必呈现登录 URL。
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
| 用户意图 | 使用路径 |
|---|
| 根据主题、一组要求或参考文件生成新的 PPT | 第 1 层 — 生成 |
| 使用现有的 .pptx 作为布局/样式模板来创建新演示文稿 | 第 2 层 — 仿制 |
| 编辑现有 PPT:修改幻灯片、添加幻灯片、更改样式、拆分/合并 | 第 4 层 — 编辑 |
| 删除/重新排序/提取/合并本地文件中的幻灯片(无需后端) | 第 3 层 — 本地操作 |
此技能需要 Python 3 ( >=3.8)。在任何脚本之前运行以下命令以定位有效的 Python 二进制文件并安装依赖项。
PYTHON_CMD=""
for cmd in python3 python python3.13 python3.12 python3.11 python3.10 python3.9 python3.8; do
if command -v "$cmd" &>/dev/null && "$cmd" -c "import sys; exit(0 if sys.version_info >= (3,8) else 1)" 2>/dev/null; then
PYTHON_CMD="$cmd"
break
fi
done
if [ -z "$PYTHON_CMD" ]; then
echo "ERROR: Python 3.8+ not found."
echo "Install on macOS: brew install python3 or visit https://www.python.org/downloads/"
exit 1
fi
echo "Found Python: $PYTHON_CMD ($($PYTHON_CMD --version))"
$PYTHON_CMD -m pip install -q --break-system-packages python-pptx
echo "Dependencies ready."
完成此检查后,在所有后续命令中将
python替换为发现的$PYTHON_CMD(例如python3)。
✅ workflow_generate.md loaded. — 然后继续。$PYTHON_CMD。--files。请参阅下面的 --files 说明。reference-file 文件。重要:将 exec 工具的
yieldMs设置为600000(10 分钟)。
.pptx 路径和下载 URL。$PYTHON_CMD。.pptx 的绝对路径;如果不明确,请询问用户。TEMPLATE_URL。--files。请参阅下面的 --files 说明。reference-file 文件。重要:将 exec 工具的
yieldMs设置为600000(10 分钟)。
.pptx 路径、下载 URL 以及所使用的模板文件名。当用户想要使用自然语言修改现有 PPT 时,使用此层。需要 PPTX 的 OSS/CDN URL(来自之前的生成或上传)。
$PYTHON_CMD。--pptx-url 运行脚本:$PYTHON_CMD scripts/run_ppt_write.py "edit instruction" \
--language Chinese \
--pptx-url "https://cdn.example.com/file.pptx" \
-o /absolute/path/output.pptx
重要:将 exec 工具的
yieldMs设置为600000(10 分钟)。
# 检查幻灯片数量和标题
$PYTHON_CMD scripts/local_pptx_ops.py info --file my.pptx
# 删除幻灯片(基于 1 的索引;支持范围如 3,5,7-9;省略 -o 以原地覆盖)
$PYTHON_CMD scripts/local_pptx_ops.py delete --file my.pptx --slides 3,5,7-9 -o trimmed.pptx
# 重新排序幻灯片(必须列出每个幻灯片,不能省略)
$PYTHON_CMD scripts/local_pptx_ops.py reorder --file my.pptx --order 2,1,4,3,5
# 将一部分幻灯片提取到新文件中
$PYTHON_CMD scripts/local_pptx_ops.py extract --file my.pptx --slides 1-3 -o subset.pptx
# 合并多个文件
$PYTHON_CMD scripts/local_pptx_ops.py merge --files a.pptx b.pptx -o merged.pptx
在你采取任何行动之前,立即阅读 workflow_local.md!!!
Insufficient benefit. Please upgrade your account at {url} 的消息,这意味着用户的权益等级不满足此技能的要求。当你检测到上述情况时,使用用户当前的语言回复 — 不要回显英文消息。使用以下模式:
[立即升级 →](url) 的链接或其对应语言的等效形式。at https://... 部分)。python3 / python 必须在 PATH 上pip install python-pptx --break-system-packages(环境检查步骤会自动安装所有必需的依赖项。)
| 场景 | 使用 |
|---|---|
| 根据主题或现有参考文件生成 PPT | 第 1 层 |
| 仿制现有 .pptx 的布局/样式 | 第 2 层 |
| 通过自然语言编辑/修改现有 PPT | 第 4 层 |
| 删除/重新排序/提取/合并本地 .pptx 文件(无需后端) | 第 3 层 |
每周安装量
104
仓库
GitHub 星标
54
首次出现
6 天前
安全审计
安装于
codex103
opencode103
kimi-cli102
gemini-cli102
amp102
cline102
Four capabilities: generate , template imitation , edit existing PPT , and local file operations.
Before using this skill, authentication must be completed. Run the auth script first:
# Authenticate: checks env token / cached token / browser login
python3 <skill-dir>/scripts/skywork_auth.py || exit 1
Token priority :
SKYBOT_TOKEN → if set, use directly~/.skywork_token → validate via API, if valid, use itIMPORTANT - Login URL handling : If script output contains a line starting with [LOGIN_URL], you MUST immediately send that URL to the user in a clickable message (e.g. "Please open this link to log in: "). The user may be in an environment where the browser cannot open automatically, so always surface the login URL.
| User intent | Which path |
|---|---|
| Generate a new PPT from a topic, set of requirements or reference files | Layer 1 — Generate |
| Use an existing .pptx as a layout/style template to create a new presentation | Layer 2 — Imitate |
| Edit an existing PPT: modify slides, add slides, change style, split/merge | Layer 4 — Edit |
| Delete / reorder / extract / merge slides in a local file (no backend) | Layer 3 — Local ops |
This skill requires Python 3 ( >=3.8). Run the following before any script to locate a valid Python binary and install dependencies.
PYTHON_CMD=""
for cmd in python3 python python3.13 python3.12 python3.11 python3.10 python3.9 python3.8; do
if command -v "$cmd" &>/dev/null && "$cmd" -c "import sys; exit(0 if sys.version_info >= (3,8) else 1)" 2>/dev/null; then
PYTHON_CMD="$cmd"
break
fi
done
if [ -z "$PYTHON_CMD" ]; then
echo "ERROR: Python 3.8+ not found."
echo "Install on macOS: brew install python3 or visit https://www.python.org/downloads/"
exit 1
fi
echo "Found Python: $PYTHON_CMD ($($PYTHON_CMD --version))"
$PYTHON_CMD -m pip install -q --break-system-packages python-pptx
echo "Dependencies ready."
After this check, replace
pythonwith the discovered$PYTHON_CMD(e.g.python3) in all subsequent commands.
✅ workflow_generate.md loaded. — then proceed.$PYTHON_CMD.--files. See the --files note below.reference-file file of ≤ 2000 words.Important : set exec tool
yieldMsto600000(10 minutes).
.pptx path and the download URL.$PYTHON_CMD..pptx from the user's message; ask the user if it's unclear.TEMPLATE_URL from the output.--files. See the --filesreference-file file of ≤ 2000 words.Important : set exec tool
yieldMsto600000(10 minutes).
.pptx path, the download URL, and the template filename used.Use this layer when the user wants to modify an existing PPT using natural language. Requires an OSS/CDN URL of the PPTX (from a previous generation or upload).
Detailed workflow - Read workflow_edit.md immediately before any action you do!!!
Environment check — run the check above to get $PYTHON_CMD.
Get PPTX URL — from the user's message or upload a local file first.
Run the script with --pptx-url:
$PYTHON_CMD scripts/run_ppt_write.py "edit instruction" \
--language Chinese \
--pptx-url "https://cdn.example.com/file.pptx" \
-o /absolute/path/output.pptx
Important : set exec tool
yieldMsto600000(10 minutes).
# Inspect slide count and titles
$PYTHON_CMD scripts/local_pptx_ops.py info --file my.pptx
# Delete slides (1-based index; supports ranges like 3,5,7-9; omit -o to overwrite in place)
$PYTHON_CMD scripts/local_pptx_ops.py delete --file my.pptx --slides 3,5,7-9 -o trimmed.pptx
# Reorder slides (must list every slide, no omissions)
$PYTHON_CMD scripts/local_pptx_ops.py reorder --file my.pptx --order 2,1,4,3,5
# Extract a subset of slides into a new file
$PYTHON_CMD scripts/local_pptx_ops.py extract --file my.pptx --slides 1-3 -o subset.pptx
# Merge multiple files
$PYTHON_CMD scripts/local_pptx_ops.py merge --files a.pptx b.pptx -o merged.pptx
Read workflow_local.md immidiately before any action you do!!!
Insufficient benefit. Please upgrade your account at {url}, meaning the user's benefit level does not meet the requirement for this skill.When you detect the above, reply in the user's current language — do not echo the English message. Use this pattern:
[Upgrade now →](url) or the equivalent in their language .at https://... part).python3 / python must be on PATHpip install python-pptx --break-system-packages(The environment check step installs all required dependencies automatically.)
| Scenario | Use |
|---|---|
| Generate a PPT from a topic or existing reference files | Layer 1 |
| Imitate the layout/style of an existing .pptx | Layer 2 |
| Edit/modify an existing PPT via natural language | Layer 4 |
| Delete / reorder / extract / merge local .pptx files (no backend) | Layer 3 |
Weekly Installs
104
Repository
GitHub Stars
54
First Seen
6 days ago
Security Audits
Gen Agent Trust HubPassSocketPassSnykWarn
Installed on
codex103
opencode103
kimi-cli102
gemini-cli102
amp102
cline102
AI Elements:基于shadcn/ui的AI原生应用组件库,快速构建对话界面
66,200 周安装
markdown-to-pdf转换工具:支持语法高亮和自定义CSS的PDF生成器
246 周安装
MoE训练专家混合模型教程:降低5倍成本实现SOTA模型(Mixtral/DeepSeek)
239 周安装
DeepSearch深度研究代理系统:AI驱动的多轮迭代网络搜索与智能分析工具
103 周安装
Playwright端到端测试指南:最佳实践、定位器策略与CI集成
244 周安装
微信公众号文章格式化工具 - 一键将Markdown转为精美HTML,AI科技主题,效率提升15倍
103 周安装
App Store优化 (ASO) 完整指南:提升移动应用在苹果和谷歌商店的排名与下载量
245 周安装