export

export is a command for Claude Code from vigorX777/ppt-svg-generator. It costs 0 tokens per session (1,158 once invoked), scanned A, original, MIT.

A command for turning generated SVG slide files into PDF documents, editable PowerPoint files, or both. SVG is a format for drawing graphics that can be scaled without losing quality.

In plain words
What is it for?
Use it after generating SVG slides to export a presentation as a PDF, a PPTX file, or both.
Why use it?
It converts the slide graphics into common presentation formats that are easier to share, present, or edit. It also combines the individual slide files into finished documents.

Command for Claude Code

Written for Claude Code: a Claude Code command (commands/*.md).

Not installable on its own: it runs a file from its repository that does not travel with it. Clone the repository, or install whatever ships that file. The line is - 源目录: ./ppt-output/.

Install

Getting it into your agent

There is no command for this one: it runs only inside a plugin, and the catalogue could not identify which plugin ships it. The source is linked below.

Made for: Claude Code.

Wrote 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.

agentmods badge for export

README.md
[![agentmods](https://agentmods.dev/badge/commands/vigorx777/ppt-svg-generator/export.svg)](https://agentmods.dev/commands/vigorx777/ppt-svg-generator/export)
Your own site
<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="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,158 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.01158
Opus 5 $0.00000 $0.00579
Sonnet 5 $0.00000 $0.00232
Haiku 4.5 $0.00000 $0.00116

Measured 6d ago against content hash 8438f259dfdf, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

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 6d 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.

commands/export.md · 140 lines

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/ 导出文件的存放目录

前置条件

在执行导出前,必须确保:

  1. 已执行 /ppt-generate/ppt-quick
  2. ./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 指定其他位置

Read the full file on GitHub · 140 lines

Changes

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.

  1. 6d ago First seen · 140 lines · 0 tokens per session scan A 8438f259dfdf

Subscribe to this mod's changes

export is a command published in the GitHub repository vigorX777/ppt-svg-generator (258 stars, last pushed 6mo 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.