pptgen-drawio

pptgen-drawio is a skill for Claude Code, Codex from xstongxue/best-skills. It costs 80 tokens per session (4,532 once invoked), scanned A, original, Apache-2.0.

A tool for generating multi-page Draw.io presentations and exporting them as PowerPoint files. It supports thesis-defence slides and general presentation decks, with optional PowerPoint templates.

In plain words
What is it for?
It is for turning a thesis or presentation outline into slides such as introductions, methods, results, conclusions, summaries, and question-and-answer pages.
Why use it?
Creating a complete presentation from research or a report requires organising content, choosing a consistent style, and producing the final file.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It is for turning a thesis or presentation outline into slides such as introductions, methods, results, conclusions, summaries, and question-and-answer pages.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/xstongxue/best-skills/pptgen-drawio
About the project

best-skills is a collection of reusable skills for coding agents, including tools for writing papers, creating diagrams and presentations, generating code documentation, and other tasks. Users install its skills into agents such as Cursor, Claude Code, Codex, or OpenClaw so those agents can recognize relevant requests and run the corresponding workflows. The catalogue entries are examples of the skills included in the collection.

xstongxue/best-skills · 2,814 stars · on GitHub

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 xstongxue/best-skills --skill pptgen-drawio
Clone the repo
git clone --depth 1 https://github.com/xstongxue/best-skills

Made for: Claude Code, 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/xstongxue/best-skills/pptgen-drawio/github.svg)](https://agentmods.dev/skills/xstongxue/best-skills/pptgen-drawio)
Your own site
<a href="https://agentmods.dev/skills/xstongxue/best-skills/pptgen-drawio"><img src="https://agentmods.dev/badge/skills/xstongxue/best-skills/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/xstongxue/best-skills/pptgen-drawio"><img src="https://agentmods.dev/badge/skills/xstongxue/best-skills/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,532 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00080 $0.04532
Opus 5 $0.00040 $0.02266
Sonnet 5 $0.00016 $0.00906
Haiku 4.5 $0.00008 $0.00453

Measured 13d ago against content hash 20293c9f511b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, 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 13d ago.

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.

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

How it starts

The opening of the file, as written. The whole thing — 259 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 · 259 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. 13d ago First seen · 259 lines · 80 tokens per session scan A 20293c9f511b

Subscribe to this mod's changes

pptgen-drawio is a skill published in the GitHub repository xstongxue/best-skills (2,814 stars, last pushed 18d ago), licensed Apache-2.0. It adds 80 tokens to every session and 4,532 once invoked, about $0.0004 per session on Opus 5. 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.

Related

Other skills, from other repositories

LaTeX工具

A tool for creating, compiling, and checking mathematical modelling papers written in LaTeX, a document system often used for technical writing.

XiaoMaColtAI/math-modeling-skill · 46 tokens

pdf

Use this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple PDFs into one, splitting PDFs apart, rotating pages, adding watermarks, creating new PDFs, filling PDF forms, encrypting/decrypting PDFs, extracting images, and…

XiaoMaColtAI/math-modeling-skill · 92 tokens

DOCX工具

A tool for creating, editing, checking, and converting Microsoft Word DOCX files. It also handles LaTeX research papers, mathematical formulas, tables, tracked changes, and comments.

XiaoMaColtAI/math-modeling-skill · 49 tokens

Excel工具

A guide for using Excel tools to read, write, and recalculate spreadsheet files. It includes a rule for treating the first row as data when a spreadsheet has no column headings.

XiaoMaColtAI/math-modeling-skill · 25 tokens

officecli-word-form

Use this skill to create fillable Word forms (.docx) with real Content Controls (SDT) + legacy FormField checkboxes + MERGEFIELD mail-merge placeholders + document protection. Trigger on: 'fillable form', 'form fields', 'content controls', 'SDT', 'word form', 'fill in', 'only editable fields', 'protect document'…

iOfficeAI/OfficeCLI · 224 tokens

officecli-academic-paper

Use this skill to build academic-style .docx output: journal / conference / thesis chapters carrying formal citation style (APA, Chicago, IEEE, MLA), numbered equations, figure & table cross-references, footnotes/endnotes, bibliography, or multi-column journal layout. Trigger on: 'research paper', 'journal paper'…

iOfficeAI/OfficeCLI · 141 tokens