generate

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

A command that creates SVG files for every slide in a presentation, using the page structure and design rules prepared earlier.

In plain words
What is it for?
Use it to generate a complete set of slide SVGs from an analyzed presentation plan and save them in an output folder.
Why use it?
It removes the need to draw and export each slide separately while applying formatting choices intended to keep the files compatible with presentation software.

Command for Claude Code

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

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is - 输出目录: ./ppt-output/.

Good fit Use it to generate a complete set of slide SVGs from an analyzed presentation plan and save them in an output folder.

Compare 6 commands from other repositories ↓
Install

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.

Clone the repo
git clone --depth 1 https://github.com/vigorX777/ppt-svg-generator
agentmods
npx agentmods add commands/vigorx777/ppt-svg-generator/generate

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 generate

README.md
[![agentmods](https://agentmods.dev/badge/commands/vigorx777/ppt-svg-generator/generate.svg)](https://agentmods.dev/commands/vigorx777/ppt-svg-generator/generate)
Your own site
<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="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 2,404 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.02404
Opus 5 $0.00000 $0.01202
Sonnet 5 $0.00000 $0.00481
Haiku 4.5 $0.00000 $0.00240

Measured 8d ago against content hash 8deab425c28f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

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

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

  • generate — 100% identical, 2 lines differ
commands/generate.md · 312 lines

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 确定页面类型

根据页面清单中的类型,加载对应的模板:

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>

Read the full file on GitHub · 312 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. 8d ago First seen · 312 lines · 0 tokens per session scan A 8deab425c28f

Subscribe to this mod's changes

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