Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/vigorX777/ppt-svg-generatornpx agentmods add commands/vigorx777/ppt-svg-generator/exportWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/commands/vigorx777/ppt-svg-generator/export)<a href="https://agentmods.dev/commands/vigorx777/ppt-svg-generator/export"><img src="https://agentmods.dev/badge/commands/vigorx777/ppt-svg-generator/export/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/commands/vigorx777/ppt-svg-generator/export"><img src="https://agentmods.dev/badge/commands/vigorx777/ppt-svg-generator/export.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00000 | $0.01158 |
| Opus 5.5 | $0.00000 | $0.00463 |
| Sonnet 5.5 | $0.00000 | $0.00232 |
| Haiku 4.5 | $0.00000 | $0.00116 |
Grade A, and why
export scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 140 lines — stays where its author put it; the contents beside it link to each section on GitHub.
/ppt-export 命令 - 导出为 PDF/PPTX
命令说明
将生成的 SVG 页面批量导出为可直接演示的 PDF 文档或可编辑的 PPTX 幻灯片文件。
触发方式
/ppt-export [--format=pdf|pptx|both] [--output=目录]
或者使用自然语言:
- "导出为 PDF"
- "导出为 PPTX"
- "生成 PDF 和 PPTX"
- "把 SVG 导出成 PPT"
参数说明
| 参数 | 可选值 | 默认值 | 说明 |
|---|---|---|---|
--format |
pdf, pptx, both |
both |
指定导出的文件格式 |
--output |
目录路径 | ./ppt-output/ |
导出文件的存放目录 |
前置条件
在执行导出前,必须确保:
- 已执行
/ppt-generate或/ppt-quick。 ./ppt-output/目录下已存在生成的 SVG 文件(文件名符合slide-XX-xxx.svg规范)。
依赖安装
导出功能需要 Node.js 环境和相关依赖包。首次使用前,请在 scripts/ 目录下执行:
cd scripts/
npm install
这将自动安装:
playwright- 跨平台浏览器自动化(用于 PDF 导出)pdf-lib- PDF 文件合并pptxgenjs- PPTX 生成
💡 安装过程会自动下载 Chromium 浏览器(约 150MB),用于 SVG 渲染。
跨平台支持
| 平台 | 状态 | 说明 |
|---|---|---|
| macOS | ✅ 支持 | Intel 和 Apple Silicon 均可 |
| Windows | ✅ 支持 | Windows 10/11 |
| Linux | ✅ 支持 | Ubuntu, Debian, CentOS 等 |
执行流程
Step 1: 扫描 SVG 文件
系统将扫描输出目录中的所有 SVG 文件,并按自然数顺序进行排序。
🔍 正在扫描 SVG 文件...
📄 发现 12 个页面 (slide-01-cover.svg ... slide-12-ending.svg)
Step 2: 确认导出配置
🚀 准备导出文件
📋 导出配置:
- 源目录: ./ppt-output/
- 目标格式: [pdf | pptx | both]
- 输出路径: ./ppt-output/slides-2024-05-20.pdf
Step 3: 执行转换脚本
系统将根据选定的格式运行对应的导出脚本:
3.1 导出为 PDF
使用 Playwright 渲染 SVG 并生成高质量 PDF。
node scripts/export_pdf.js ./ppt-output/ [--output=路径]
3.2 导出为 PPTX
使用 pptxgenjs 生成包含矢量图形的幻灯片。
node scripts/export_pptx.js ./ppt-output/ [路径]
Step 4: 命名与冲突处理
- 自动命名: 默认使用
slides-YYYY-MM-DD.pdf/pptx。 - 冲突处理: 如果文件名已存在,将自动递增编号,如
slides-YYYY-MM-DD-2.pdf。
Step 5: 完成反馈
✅ 导出完成!
📄 生成文件:
- 📂 ./ppt-output/slides-2024-05-20.pdf
- 📂 ./ppt-output/slides-2024-05-20.pptx
🎉 您现在可以打开文件进行演示或进一步编辑了。
错误处理
| 现象 | 可能原因 | 解决方案 |
|---|---|---|
| ❌ 未发现 SVG 文件 | 尚未执行生成命令 | 请先执行 /ppt-generate |
| ❌ 缺少依赖 | 未安装 npm 包 | 运行 cd scripts && npm install |
| ❌ Chromium 未安装 | Playwright 浏览器缺失 | 运行 npx playwright install chromium |
| ❌ 权限不足 | 目标目录不可写 | 请检查目录权限或使用 --output 指定其他位置 |
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2mo ago First seen · 140 lines · 0 tokens per session scan A 8438f259dfdf
export is a command published in the GitHub repository vigorX777/ppt-svg-generator (262 stars, last pushed 8mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,158 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
export compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| exportvigorX777/ppt-svg-generator | Command | 262 | 8mo ago | MIT | A | 0 | Claude Code |
| openeigenweltlabs/legalwork | Command | 132 | yesterday | MIT | A | 9 | Claude Code |
| brief-compliance-checkflonat/flonat-research | Command | 149 | 3d ago | MIT | A | 45 | Claude Code |
| docsnyldn/claude-octopus | Command | 4.4k | yesterday | MIT | A | 13 | Claude Code |
| cti-report7onez/cti-expert | Command | 622 | 15d ago | none | A | 45 | Claude Code |
| render-figuresbraininahat/brains-in-a-hat | Command | 4 | 18d ago | MIT | A | 17 | Claude Code |
| cheatsheetOPTIMETA/PAIDEIA | Command | 92 | 3mo ago | MIT | B | 29 | Claude Code |