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/generateWrote 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/generate)<a href="https://agentmods.dev/commands/vigorx777/ppt-svg-generator/generate"><img src="https://agentmods.dev/badge/commands/vigorx777/ppt-svg-generator/generate/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/generate"><img src="https://agentmods.dev/badge/commands/vigorx777/ppt-svg-generator/generate.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.02404 |
| Opus 5.5 | $0.00000 | $0.00962 |
| Sonnet 5.5 | $0.00000 | $0.00481 |
| Haiku 4.5 | $0.00000 | $0.00240 |
Grade A, and why
generate 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.
Copies of this mod
1 near-identical copy found in the catalogue:
- generate — 100% identical, 2 lines differ
How it starts
The opening of the file, as written. The whole thing — 312 lines — stays where its author put it; the contents beside it link to each section on GitHub.
/ppt-generate 命令 - SVG 批量生成
命令说明
根据页面结构和设计规范,批量生成符合 PPT 兼容性要求的 SVG 文件。
触发方式
/ppt-generate
或者用户说:
- "生成 SVG 文件"
- "开始生成 PPT"
- "批量生成所有页面"
前置条件
生成前需要确认以下信息已准备好:
| 信息 | 来源 | 必需 |
|---|---|---|
| 页面结构 | /ppt-analyze 输出 |
✅ |
| 设计规范 | /ppt-design 输出 |
✅ |
| 输出目录 | 默认 ./ppt-output/ |
可选 |
如果缺少前置信息,提示用户先执行相应命令,或引导用户快速提供。
执行流程
Step 1: 确认生成配置
🚀 准备生成 SVG 文件
📋 生成配置:
- 总页数: [X] 页
- 风格: [风格名称]
- 输出目录: ./ppt-output/
- 文件命名: slide-01-cover.svg, slide-02-intro.svg ...
⚙️ 将应用以下 PPT 兼容性规范:
┌────────────────────────────────────────────────────────────────┐
│ 1️⃣ 圆角矩形: 使用 <path> + 贝塞尔曲线,避免 rx 属性丢失 │
│ 2️⃣ 字体优先: Microsoft YaHei, SimHei, PingFang SC │
│ 3️⃣ 文字定位: 使用 style 属性,手动计算居中位置 │
│ 4️⃣ 颜色格式: #RRGGBB + fill-opacity,避免 rgba() │
│ 5️⃣ 阴影效果: 移除 filter,在 PPT 中手动添加 │
└────────────────────────────────────────────────────────────────┘
确认开始生成?[Y/n]
Step 2: 创建输出目录
mkdir -p ./ppt-output
Step 3: 逐页生成 SVG
对于每一页,按以下流程生成:
3.1 确定页面类型
根据页面清单中的类型,加载对应的模板:
- 封面页 → page-templates.md#封面页
- 观点页 → page-templates.md#观点页
- 图表页 → page-templates.md#图表页
- 流程页 → page-templates.md#流程页
- 总结页 → page-templates.md#总结页
- 结束页 → page-templates.md#结束页
3.2 应用设计规范
- 应用配色方案
- 应用字体规范
- 应用间距系统
3.3 填充内容
- 根据页面清单中的内容要点
- 生成标题、正文、要点列表等
- 添加视觉元素(图表、图标、装饰等)
3.4 应用兼容性规范
必须严格遵循(参考 svg-compatibility.md):
<!-- ❌ 错误写法 -->
<rect rx="24" fill="rgba(1,107,255,0.1)"/>
<text text-anchor="middle" dominant-baseline="middle">文字</text>
<!-- ✅ 正确写法 -->
<path d="M24,0 L...Z" fill="#016BFF" fill-opacity="0.1"/>
<text style="font-family:Microsoft YaHei,SimHei,sans-serif;">文字</text>
3.5 SVG 基础结构
每个 SVG 文件的基础结构:
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1920 1080" width="1920" height="1080">
<defs>
<!-- 渐变定义 -->
<linearGradient id="brandGradient" x1="0%" y1="0%" x2="100%" y2="0%">
<stop offset="0%" stop-color="[主色]" stop-opacity="1"/>
<stop offset="100%" stop-color="[次色]" stop-opacity="1"/>
</linearGradient>
</defs>
<!-- 背景 -->
<rect width="1920" height="1080" fill="[背景色]"/>
<!-- ========== 页面内容 ========== -->
<!-- [在此生成具体内容] -->
<!-- ========== 页面内容结束 ========== -->
<!-- 页码 -->
<text x="1840" y="1040" style="font-family:Microsoft YaHei,SimHei,sans-serif;" font-size="18" fill="[次要文字色]" text-anchor="end">
[当前页]/[总页数]
</text>
</svg>
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 · 312 lines · 0 tokens per session scan A 8deab425c28f
generate 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 2,404 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.
generate compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| generatevigorX777/ppt-svg-generator | Command | 262 | 8mo ago | MIT | A | 0 | Claude Code |
| checklistgithub/spec-kit | Command | 148k | yesterday | MIT | A | 13 | Claude Code |
| clarifygithub/spec-kit | Command | 148k | yesterday | MIT | A | 27 | Claude Code |
| specifygithub/spec-kit | Command | 148k | yesterday | MIT | A | 13 | Claude Code |
| analyzegithub/spec-kit | Command | 148k | yesterday | MIT | A | 26 | Claude Code |
| convergegithub/spec-kit | Command | 148k | yesterday | MIT | A | 35 | Claude Code |
| implementgithub/spec-kit | Command | 148k | yesterday | MIT | A | 14 | Claude Code |