pptgen-drawio

pptgen-drawio is a skill for Codex from sidiangongyuan/codex-skills-library. It costs 80 tokens per session (4,612 once invoked), scanned A, a copy of pptgen-drawio, MIT.

A workflow for generating multi-page PowerPoint presentations from Draw.io diagrams, including thesis-defense decks and general presentations. Draw.io is a diagram format and editor that can be exported to .pptx files.

In plain words
What is it for?
Use it to build thesis-defense slides, talks, or general reports, extract styles from a template, and export the result as a PowerPoint file.
Why use it?
It provides an organised slide sequence and lets a supplied PowerPoint template guide the visual style. It also separates academic defense content from ordinary presentation content.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: mentions Codex.

Good fit Use it to build thesis-defense slides, talks, or general reports, extract styles from a template, and export the result as a PowerPoint file.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sidiangongyuan/codex-skills-library/pptgen-drawio
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add sidiangongyuan/codex-skills-library --skill pptgen-drawio
Clone the repo
git clone --depth 1 https://github.com/sidiangongyuan/codex-skills-library

Made for: Codex.

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 pptgen-drawio

README.md
[![agentmods](https://agentmods.dev/badge/skills/sidiangongyuan/codex-skills-library/pptgen-drawio/github.svg)](https://agentmods.dev/skills/sidiangongyuan/codex-skills-library/pptgen-drawio)
Your own site
<a href="https://agentmods.dev/skills/sidiangongyuan/codex-skills-library/pptgen-drawio"><img src="https://agentmods.dev/badge/skills/sidiangongyuan/codex-skills-library/pptgen-drawio/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.

agentmods 80×15 button for pptgen-drawio

Your own site · 80×15
<a href="https://agentmods.dev/skills/sidiangongyuan/codex-skills-library/pptgen-drawio"><img src="https://agentmods.dev/badge/skills/sidiangongyuan/codex-skills-library/pptgen-drawio.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 80 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,612 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 88% copy Near-identical to another mod 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.00080 $0.04612
Opus 5.5 $0.00032 $0.01845
Sonnet 5.5 $0.00016 $0.00922
Haiku 4.5 $0.00008 $0.00461

Measured today against content hash 5407b083d8c1, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

pptgen-drawio 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 today.

The scan reads SKILL.md. This mod also ships 4 executable files (scripts/analyze_pptx.py, scripts/postprocess_pptx.py, scripts/render_check.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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

This is a copy

88% identical to pptgen-drawio — 4 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/pptgen-drawio/SKILL.md · 263 lines

How it starts

The opening of the file, as written. The whole thing — 263 lines — stays where its author put it; the contents beside it link to each section on GitHub.

PPT 多页 Draw.io 生成(论文答辩 + 通用汇报)

本 skill 支持两种模式,共用 ppt_template/、scripts/、reference/ 目录,以及 Step 0 自定义模板、Step 1 确定内容与风格、Step 3 & 4 输出与导出 全流程。


模式识别

模式 使用时机 内容来源 默认页序 输出文件
论文答辩 学位论文答辩、开题、预答辩 paper-write 结构化提取 封面→目录→背景→现状→方法→创新点→实验→结论→致谢→Q&A paper-defense.drawio
通用汇报 工作汇报、产品介绍、演讲 用户消息提取/生成 封面→目录→节标题→内容页→总结→致谢→Q&A general-presentation.drawio

Step 0:用户自定义模板(可选,两种模式共用)

若用户提供了自己的 .pptx 模板文件:

  1. 模板放置:将 .pptx 放入 ppt_template/ 目录
  2. 运行样式提取:在 skill 根目录下执行:
    python scripts/analyze_pptx.py ppt_template/xxx.pptx reference/style-custom.md
    
  3. 读取 reference/style-custom.md 作为「自定义风格」继续

目录约定:ppt_template/ 存放模板、scripts/analyze_pptx.py 样式提取、reference/ 风格文件


Step 1:确定内容与风格(两种模式共用)

1.1 确定内容

  • 论文答辩:若用户只有论文全文:先调用 paper-write 的「结构化信息提取」;若已提供结构化信息:从消息中提取【论文题目】【学科方向】【答辩时长】【论文结构/目录】【各章核心内容】【创新点/贡献】等,缺失则追问
  • 通用汇报:从用户消息中提取幻灯片大纲及内容,或根据核心需求扩展为完整结构

1.2 选择风格

两种模式均可选择以下风格之一,读取对应 reference 文件获取配色、字体、版式规则与 XML 样式片段:

# 风格 主色 强调色 有无顶栏装饰 reference 文件
1 经典学术 / 商务严谨 #1B2A4A #C9A84C 有:顶栏 150px + 金线 8px reference/style1-classic-academic.md
2 现代极简 / 大字报感 #231F20 #F5C638 无,靠留白和字号差 reference/style2-minimal-bigtype.md
3 暖色学术 / 亲和力 #2C5160 #B7472A 有,同风格一结构 reference/style3-warm-academic.md
4 科技明快 / 现代前沿 #0170C1 同主色 有 reference/style4-tech-modern.md
5 自定义 从 style-custom.md 提取 看模板 reference/style-custom.md
  • 论文答辩:用户未指定时默认风格 1
  • 通用汇报:用户选择或根据语境自动推荐
  • 风格 1 / 3 / 4 是同一套版式换配色(顶栏 + 细线 + 页脚),只有风格 2 是真正不同的版式。用户想要「看起来不一样」时推风格 2;传统工科院校答辩推风格 1

Step 2:生成多页 Draw.io XML

必须先读取所选风格的 reference 文件,基于该风格生成 XML。

  • 画布:16:9(pageWidth=1920,pageHeight=1080)
  • 页序:按模式识别表中的默认页序
  • 页数:由 Step 1.1 拿到的答辩时长决定,见下面 2.1

2.1 论文答辩模式页序(按时长换算)

页数由三部分相加:

Read the full file on GitHub · 263 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. today First seen · 263 lines · 80 tokens per session scan A 5407b083d8c1

Subscribe to this mod's changes

pptgen-drawio is a skill published in the GitHub repository sidiangongyuan/codex-skills-library (28 stars, last pushed yesterday), licensed MIT. It adds 80 tokens to every session and 4,612 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 88% identical to pptgen-drawio, differing in 4 lines, and is treated as a copy.

Related

pptgen-drawio compared with skills from other repositories

pptgen-drawio next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
pptgen-drawiosidiangongyuan/codex-skills-librarySkill28yesterdayMITA80Codex
nature-downloaderYuan1z0825/nature-skillsSkill56k3d agoApache-2.0A36Codex
nature-paper2wordYuan1z0825/nature-skillsSkill56k3d agoApache-2.0A233Codex
nature-image2pptYuan1z0825/nature-skillsSkill56k3d agoApache-2.0A56Codex
nature-paper-transYuan1z0825/nature-skillsSkill56k3d agoApache-2.0A68Codex
nature-experiment-logYuan1z0825/nature-skillsSkill56k3d agoApache-2.0A45Codex
baoyu-youtube-transcriptJimLiu/baoyu-skillsSkill28k11d agoMITA107Claude Code