pptx

pptx is a skill for Claude Code, Codex from agentscope-ai/QwenPaw. It costs 185 tokens per session (6,467 once invoked), scanned A, original, Apache-2.0.

A set of instructions for working with PowerPoint presentation files, including extracting content, editing slides, and creating decks.

In plain words
What is it for?
Use it to read slide text, make thumbnail previews, edit existing decks, create presentations from scratch, or convert slides to PDF images.
Why use it?
It defines the tools and workflow needed to inspect presentations, preserve templates, and produce slides with deliberate visual design.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for qwenpaw. Also seen: built for qwenpaw.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is (cd unpacked && rm -f ../out.pptx && zip -Xr ../out.pptx .) # 从目录内部打包;先 rm,否则已删除的部件会残留.

Good fit Use it to read slide text, make thumbnail previews, edit existing decks, create presentations from scratch, or convert slides to PDF images.

Compare 6 skills from other repositories ↓
About the project

QwenPaw is a personal AI assistant that runs on a local machine or in the cloud and connects to multiple chat applications. It provides memory, file workspaces, multiple agents, skills, plugins, and integrations with language-model providers and external tools. The catalogue entries are skills that extend its capabilities.

agentscope-ai/QwenPaw · 38,316 stars · on GitHub · qwenpaw.agentscope.io

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/agentscope-ai/QwenPaw
agentmods
npx agentmods add skills/agentscope-ai/qwenpaw/pptx-zh

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 pptx

README.md
[![agentmods](https://agentmods.dev/badge/skills/agentscope-ai/qwenpaw/pptx-zh/github.svg)](https://agentmods.dev/skills/agentscope-ai/qwenpaw/pptx-zh)
Your own site
<a href="https://agentmods.dev/skills/agentscope-ai/qwenpaw/pptx-zh"><img src="https://agentmods.dev/badge/skills/agentscope-ai/qwenpaw/pptx-zh/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 pptx

Your own site · 80×15
<a href="https://agentmods.dev/skills/agentscope-ai/qwenpaw/pptx-zh"><img src="https://agentmods.dev/badge/skills/agentscope-ai/qwenpaw/pptx-zh.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 185 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,467 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. ✓ AI security review Fable 5.1 · 6 Sept 2026 📄 Read the review 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.00185 $0.06467
Opus 5.5 $0.00074 $0.02587
Sonnet 5.5 $0.00037 $0.01293
Haiku 4.5 $0.00018 $0.00647

Measured 4d ago against content hash 75b259c154e4, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

pptx 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 4d ago.

The scan reads SKILL.md. This mod also ships 15 executable files (scripts/__init__.py, scripts/add_slide.py, scripts/clean.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.

src/qwenpaw/agents/skills/pptx-zh/SKILL.md · 247 lines

How it starts

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

重要说明: 所有 scripts/ 路径均相对于本技能目录。 运行方式: cd {this_skill_dir} && python scripts/... 或使用 execute_shell_command 的 cwd 参数。

PPTX 创建、编辑与分析

前置依赖

  • pptxgenjs (npm, 已预装 — 仅当 require('pptxgenjs') 失败时才安装): 从零创建演示文稿
  • markitdown[pptx]: 从演示文稿提取文本
  • Pillow: 生成缩略图网格
  • defusedxml、lxml: clean/validate/thumbnail 脚本使用的 XML 解析库
  • LibreOffice (soffice): 演示文稿转 PDF(通过 scripts/office/soffice.py 为沙箱环境自动配置)
  • pdftoppm (poppler-utils): PDF 转图片,用于缩略图/视觉工作流
  • 如果 pdftoppm 不可用,Python 备用路径可能使用 pdf2image。
  • 在 Windows 上,依赖项必须已安装并在 PATH 中可用;如缺失,请报告依赖问题并停止(不要反复重试)。

.pptx 文件是 XML 文件的 ZIP 压缩包。按任务选择方法:

任务 方法
创建新演示文稿 编写 pptxgenjs 脚本 — 见下方注意事项
编辑现有演示文稿,或基于模板构建 unzip → 编辑 ppt/slides/slideN.xml → zip
读取内容 markitdown deck.pptx(在 <!-- Slide number: N --> 标记下每张幻灯片一个文本块);视觉网格:python scripts/thumbnail.py deck.pptx

脚本

路径均相对于本技能目录。其余都是普通 Python、node 或 shell。

脚本 功能
scripts/thumbnail.py deck.pptx [prefix] 带标签的每张幻灯片网格图,用于挑选模板版式。仅限 .pptx。务必传 prefix — 默认值是 thumbnails,会覆盖同一目录里其他演示文稿的网格图
scripts/add_slide.py unpacked/ slide2.xml [--after slideN.xml] 复制一张幻灯片(或 slideLayoutN.xml)并完成所有包内登记。也支持直接传 .pptx 配合 -o out.pptx
scripts/clean.py unpacked/ 删除不再被引用的幻灯片、媒体和关系。在 <p:sldIdLst> 定稿之后运行
scripts/office/validate.py deck.pptx [--original src.pptx] Schema、关系、内容类型、图表和幻灯片检查;每条失败信息都给出修复方法。模板衍生的文件务必传 --original — 它会把 schema 检查与模板基线对比,避免模板自身的 XSD 错误被算到你头上
scripts/office/soffice.py --headless --convert-to pdf deck.pptx LibreOffice 封装 — 直接调 soffice 在本沙箱中会挂起

使用 pptxgenjs 创建 — 注意事项

pptxgenjs 已预装 — 不要先运行 npm install;直接编写脚本并 require('pptxgenjs')。仅当 require 失败时才运行 npm install pptxgenjs。模型已了解该 API;以下是常见的坑:

  • 添加幻灯片之前先设置 pres.layout。 默认画布是 LAYOUT_16x9 = 10" × 5.625",不是 13.3" 宽。超出边界的坐标会被直接写入而不是截断 — 形状只是不在幻灯片上。(LAYOUT_WIDE 是 13.3" × 7.5"。)
  • 十六进制颜色:绝不带 #,绝不用 8 位。 color: "FF0000"。"#FF0000" 和把 alpha 写进十六进制("00000020")都会损坏文件。半透明效果:填充和图片用 transparency: 0-100,阴影用 opacity: 0.0-1.0 — 用错位置会被静默忽略。
  • pptxgenjs 会原地修改选项对象(首次使用时把值转换为 EMU)。绝不在两个 add* 调用之间共享同一个 shadow/选项对象 — 每次都新建对象。
  • 阴影 offset 必须 ≥ 0 — 负偏移会损坏文件。要向上投影,用 angle: 270 配正偏移。
  • letterSpacing 会被静默忽略 — 真正的选项是 charSpacing。
  • 列表: 每个列表项设 bullet: true,绝不用字面 •(会渲染出双项目符号)。除最后一项外,每个数组元素都要设 breakLine: true。项目符号段落之间用 paraSpaceAfter 控制间距,不要用 lineSpacing(会出现巨大空隙)。
  • 每个输出文件一个 new pptxgen() — 绝不复用实例。
  • rectRadius 只对 ROUNDED_RECTANGLE 有效,对 RECTANGLE 无效。
  • 不支持渐变填充 — 改用渐变图片作为背景。
  • 文本框自带内边距 — 文本与形状、线条或图标需要同 x 对齐时,设置 margin: 0。
  • 演讲者备注放在 slide.addNotes("...") 中(纯文本,每张幻灯片一次),绝不要放在幻灯片上的文本框里。
  • 图表尽量用原生图表。 PowerPoint 能绘制的图表都用 addChart()(组合图传 {type, data, options} 数组)。库未暴露的 PowerPoint 原生功能(趋势线、误差线)就自己计算额外的数据序列或对生成的 OOXML 做后处理 — 不要退回渲染图片。只有 PowerPoint 没有原生形式的图表类型(Sankey、网络图、弦图)才用图片。
  • 默认图表渲染得很素 — 无标题、无数据标签、配色过时。设置 showTitle + title、showValue: true + dataLabelPosition、从你的调色板取 chartColors: [...],并把图表框架调安静(catAxisLabelColor/valAxisLabelColor、valGridLine: { color, size }、catGridLine: { style: "none" }、单系列时 showLegend: false)。
  • 堆叠柱状图/条形图上 dataLabelPosition 必须是 ctr、inEnd 或 inBase。 outEnd 会损坏文件。
  • 使用 secondaryValAxis/secondaryCatAxis 的组合系列,需要在图表选项上同时提供 valAxes 和 catAxes,各两项。 缺了它们 pptxgenjs 会写入它从未声明的轴 id,PowerPoint 会丢弃该图表并报告文件损坏。只给 valAxes 不够。
  • writeFile() 之后,运行 python scripts/office/validate.py deck.pptx。 它会报告上面两类图表问题和 PowerPoint 拒绝打开的幻灯片 XML 缺陷,并给出每条的修复方法。在生成器里修,不要手改打包后的 XML。
  • 绝不要重排 <p:presentation> 的子元素。 pptxgenjs 会把 <p:notesMasterIdLst> 写在 <p:sldIdLst> 之后,并让两个母版指向同一个主题部件。PowerPoint 能正常读取 — 移动该元素后同一份文件就打不开了。
  • 图标: 用 react-icons 渲染成 SVG(ReactDOMServer.renderToStaticMarkup),用 sharp 以 ≥256px 栅格化,然后通过 addImage({ data: "image/png;base64," + buf.toString("base64") }) 插入 — image/png;base64, 前缀是必需的(react-icons、react、react-dom、sharp 已预装 — 仅当 require 失败时才 npm install react-icons react react-dom sharp)。

Read the full file on GitHub · 247 lines

Files

What ships with it

55 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 4d ago Changed · +8 lines · +20 tokens per session 75b259c154e4
  2. 3mo ago First seen · 239 lines · 165 tokens per session scan A 2176f8c4fde0

Subscribe to this mod's changes

pptx is a skill published in the GitHub repository agentscope-ai/QwenPaw (38,316 stars, last pushed 3d ago), licensed Apache-2.0. It adds 185 tokens to every session and 6,467 once invoked, about $0.0007 per session on Opus 5.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

pptx compared with skills from other repositories

pptx next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
pptxagentscope-ai/QwenPawSkill38k3d agoApache-2.0A185Claude Code, Codex
knowledge-builderlimecloud/limeSkill1.5k11d agoGPL-3.0A33Claude Code, Codex
pdf_readlimecloud/limeSkill1.5k11d agoGPL-3.0A19Claude Code
transcription_generatelimecloud/limeSkill1.5k11d agoGPL-3.0A21Claude Code
typesettinglimecloud/limeSkill1.5k11d agoGPL-3.0A21Claude Code
morph-pptiOfficeAI/OfficeCLISkill34k10d agoApache-2.0A169Claude Code, Codex
officecli-academic-paperiOfficeAI/OfficeCLISkill34k10d agoApache-2.0A141Claude Code, Codex