/vault-content:pptxfrom vault-content
Create a NEW .pptx or .potx from scratch. Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or presentations; reading, parsing, or extracting text from any .pptx or .potx file (even if the extracted content will be used elsewhere, like in an email or summary); editing, modifying, or updating existing presentations; combining or splitting slide files; working with templates (.potx), layouts, speaker notes, or comments. Trigger whenever the user mentions "deck," "slides," "presentation," or references a .pptx or .potx filename, regardless of what they plan to do with the content afterward. If a .pptx or .potx file needs to be opened, created, or touched, use this skill. Not for editing an existing deck - use hands-on-deck.
Ships in vault-content. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
A .pptx is a ZIP archive of XML files. Choose your approach by task:
| Task | Approach |
|---|---|
| Create a new deck | Write a pptxgenjs script — see gotchas below |
| Edit an existing deck, or build from a template | unzip → edit ppt/slides/slideN.xml → zip |
| Read content | markitdown deck.pptx (one block per slide under <!-- Slide number: N --> markers); visual grid: python scripts/thumbnail.py deck.pptx |
Paths are relative to this skill's directory. Everything else is plain Python, node, or shell.
| Script | What it does |
|---|---|
scripts/thumbnail.py deck.pptx [prefix] | Labeled grid of every slide, for picking template layouts. .pptx only. Pass prefix — it defaults to thumbnails, which overwrites the grids of any other deck done in the same directory |
scripts/add_slide.py unpacked/ slide2.xml [--after slideN.xml] | Duplicate a slide (or a slideLayoutN.xml) with all the package bookkeeping. Also takes a .pptx directly with -o out.pptx |
scripts/clean.py unpacked/ | Delete slides, media, and rels no longer referenced. Run after <p:sldIdLst> is final |
scripts/office/validate.py deck.pptx [--original src.pptx] | Schema, relationship, content-type, chart and slide checks; each failure names its fix. Pass --original for any template-derived deck — it baselines the schema checks against the template, so the template's own XSD errors don't read as yours |
scripts/office/soffice.py --headless --convert-to pdf deck.pptx | LibreOffice wrapper — bare soffice hangs in this sandbox |
pptxgenjs is preinstalled — do not run npm install first; write the script and require('pptxgenjs') directly. Only if that require fails: npm install pptxgenjs. The model knows the API; these are the footguns:
pres.layout before adding slides. The default canvas is LAYOUT_16x9 = 10" × 5.625", not 13.3" wide. Coordinates past the edge are written, not clamped — the shape just isn't on the slide. (LAYOUT_WIDE is 13.3" × 7.5".)#, never 8 digits. color: "FF0000". Both "#FF0000" and alpha baked into the hex ("00000020") corrupt the file. For translucency: transparency: 0-100 on fills and images, opacity: 0.0-1.0 on shadows — each is silently ignored on the other.shadow/options object across two add* calls — build a fresh object each time.offset must be ≥ 0 — a negative offset corrupts the file. To cast a shadow upward, use angle: 270 with a positive offset.letterSpacing is silently ignored — the real option is charSpacing.bullet: true on each item, never a literal • (renders double bullets). Set breakLine: true on every array item except the last. Space bulleted paragraphs with paraSpaceAfter, not lineSpacing (huge gaps).new pptxgen() per output file — never reuse an instance.rectRadius only works on ROUNDED_RECTANGLE, not RECTANGLE.margin: 0 whenever text must align with a shape, line, or icon at the same x.slide.addNotes("...") (plain text, once per slide), never in a text box on the slide.addChart() for everything PowerPoint can chart (pass an array of {type, data, options} for combos). For PowerPoint-native features the library doesn't expose (trendlines, error bars), compute the extra series yourself or post-process the generated OOXML — do not fall back to a rendered image. Only chart types PowerPoint has no native form for (Sankey, network, chord) go in as images.showTitle + title, showValue: true + dataLabelPosition, chartColors: [...] from your palette, and quiet the frame (catAxisLabelColor/valAxisLabelColor, valGridLine: { color, size }, catGridLine: { style: "none" }, showLegend: false for a single series).dataLabelPosition must be ctr, inEnd, or inBase. outEnd corrupts the file.secondaryValAxis/secondaryCatAxis needs both valAxes and catAxes on the chart options, two entries each. Without them pptxgenjs writes axis ids it never declares, and PowerPoint discards that chart and reports the file as corrupt. Supplying only valAxes is not enough.writeFile(), run python scripts/office/validate.py deck.pptx. It reports the two chart faults above and the slide-XML defects PowerPoint refuses, and names the fix for each. Fix them in your generator, not by hand-editing the packed XML.<p:presentation>. pptxgenjs writes <p:notesMasterIdLst> right after <p:sldIdLst> and points both masters at one theme part. PowerPoint reads that happily — move the element and the same deck becomes unopenable.react-icons to SVG (ReactDOMServer.renderToStaticMarkup), rasterize with sharp at ≥256px, and insert via addImage({ data: "image/png;base64," + buf.toString("base64") }) — the image/png;base64, prefix is required (react-icons, react, react-dom, and sharp are preinstalled — npm install react-icons react react-dom sharp only if a require fails).Pick layouts first: python scripts/thumbnail.py template.pptx template-thumbs writes a labeled grid of every slide and prints the file(s) it created — template-thumbs.jpg, split into template-thumbs-N.jpg past 12 slides. Always pass that second argument, named after the deck. It defaults to thumbnails, so two decks thumbnailed in one directory silently overwrite each other's grids — the first deck's are simply gone (template analysis only — visual QA needs the full-resolution renders from Converting to Images; it only accepts .pptx, so copy a .potx to a .pptx name first). Use it with markitdown to map each content section onto a template slide, and vary the layouts — don't put every section on the same title-and-bullets slide.
python3 -c "import sys,zipfile; zipfile.ZipFile(sys.argv[1]).extractall('unpacked')" deck.pptx
python scripts/add_slide.py unpacked/ slide2.xml --after slide2.xml # duplicate a slide (or slideLayoutN.xml); prints the new slide's path
# reorder / delete slides = edit <p:sldIdLst> in ppt/presentation.xml
python scripts/clean.py unpacked/ # after deletions: removes orphaned slides, media, rels
# edit slide content in ppt/slides/slideN.xml
(cd unpacked && rm -f ../out.pptx && zip -Xr ../out.pptx .) # zip from INSIDE the dir; rm first or deleted parts survive
python scripts/office/validate.py out.pptx --original deck.pptx
add_slide.py copies a slide file verbatim, so duplicating after you edit clones the edited content; and clean.py deletes any slide missing from <p:sldIdLst>, including one you just wrote.add_slide.py does every registration a new slide needs and reports what it made (Created ppt/slides/slide17.xml from slide2.xml). It also works directly on a file: add_slide.py deck.pptx slide2.xml -o out.pptx — pass -o, or it rewrites the input deck in place. A duplicated slide still references its source's chart/SmartArt/embedded-object parts rather than cloning them, so editing one slide's chart changes the other's.python-pptx, three things it won't do: duplicate a slide (its only entry point is add_slide(layout)), preserve formatting through text_frame.text = "..." (that collapses the paragraph to a single unstyled run — assign run.text instead), or read the SVG/EMF most template art uses (add_picture raises UnidentifiedImageError)..ppt must be converted first: python scripts/office/soffice.py --headless --convert-to pptx file.ppt. .potx templates unpack and pack identically — keep the .potx extension on the output.When filling in a template:
defusedxml.minidom — round-tripping OOXML through xml.etree.ElementTree rewrites namespace prefixes and corrupts the deck.<a:p> per list item — never concatenate items into a single paragraph. Copy the sibling <a:pPr> to preserve spacing, and put b="1" on the <a:rPr> of titles, section headers, and inline labels (Status:, Owner:).<a:buChar>, <a:buAutoNum> (numbered), or <a:buNone> to override — never a literal • in the text.xml:space="preserve" on its <a:t>.Don't create boring slides. Plain bullets on a white background won't impress anyone. Consider ideas from this list for each slide.
Choose colors that match your topic — don't default to generic blue. Use these palettes as inspiration:
| Theme | Primary | Secondary | Accent |
|---|---|---|---|
| Midnight Executive | 1E2761 (navy) | CADCFC (ice blue) | FFFFFF (white) |
| Forest & Moss | 2C5F2D (forest) | 97BC62 (moss) | F5F5F5 (cream) |
| Coral Energy | F96167 (coral) | F9E795 (gold) | 2F3C7E (navy) |
| Warm Terracotta | B85042 (terracotta) | E7E8D1 (sand) | A7BEAE (sage) |
| Ocean Gradient | 065A82 (deep blue) | 1C7293 (teal) | 21295C (midnight) |
| Charcoal Minimal | 36454F (charcoal) | F2F2F2 (off-white) | 212121 (black) |
| Teal Trust | 028090 (teal) | 00A896 (seafoam) | 02C39A (mint) |
| Berry & Cream | 6D2E46 (berry) | A26769 (dusty rose) | ECE2D0 (cream) |
| Sage Calm | 84B59F (sage) | 69A297 (eucalyptus) | 50808E (slate) |
| Cherry Bold | 990011 (cherry) | FCF6F5 (off-white) | 2F3C7E (navy) |
Every slide needs a visual element — image, chart, icon, or shape. Text-only slides are forgettable.
Layout options:
Data display:
Visual polish:
Font names you write into the .pptx are rendered by the user's PowerPoint, not by this environment. Your visual QA renders via LibreOffice, which substitutes fonts it doesn't have — and for some fonts the substitute has different widths, so your QA preview can show text overflow (or fit) that the real deck won't have. To keep your QA trustworthy:
| Element | Size |
|---|---|
| Slide title | 36-44pt bold |
| Section header | 20-24pt bold |
| Body text | 14-16pt |
| Captions | 10-12pt muted |
margin: 0 on the text box or offset the shape to account for paddingFFFFFF) or the user's brand palette; avoid warm-neutral defaults like F5F5DC, FAF0E6, FAEBD7, FFF8E1Your first render usually has a few real issues — overlaps, overflow, misalignment. Find and fix those, re-render only the slides you changed, and stop.
markitdown output.pptx
Check for missing content, typos, wrong order.
When using templates, check for leftover placeholder text:
markitdown output.pptx | grep -iE "\bx{3,}\b|lorem|ipsum|\bTODO|\[insert|this.*(page|slide).*layout"
If grep returns results, fix them before declaring success.
python scripts/office/validate.py output.pptx # built from scratch
python scripts/office/validate.py output.pptx --original src.pptx # built from a template
If the deck came from a template, always pass --original. A template may itself
contain parts the XSD rejects, so a bare run can report failures you never caused — and
a genuine regression can hide among them. --original baselines
the schema and slide checks against the template, suppressing errors it already had.
The structural checks — relationships, content types, charts — ignore --original and
report template-inherited problems either way, so read those on their own merits.
pptxgenjs emits chart XML PowerPoint refuses to open, and every other tool accepts: python-pptx opens those decks, LibreOffice renders them, the XSD passes them. Every failure names its fix. Fix it in the generator and rebuild.
Convert the slides to images (see Converting to Images) and inspect every one. After staring at the generating code you tend to see what you expect rather than what rendered, so look at the images fresh (a subagent works well for this if you have one). User-visible defects to look for:
Convert presentations to individual slide images for visual inspection:
python scripts/office/soffice.py --headless --convert-to pdf output.pptx
rm -f slide-*.jpg
pdftoppm -jpeg -r 150 output.pdf slide
ls -1 "$PWD"/slide-*.jpg
Pass the absolute paths printed above directly to the view tool. The rm clears stale images from prior runs. pdftoppm zero-pads based on page count: slide-1.jpg for decks under 10 pages, slide-01.jpg for 10-99, slide-001.jpg for 100+.
After fixes, rerun all four commands above — the PDF must be regenerated from the edited .pptx before pdftoppm can reflect your changes.
pptxgenjs (npm, preinstalled — install only if require('pptxgenjs') fails) · markitdown[pptx], Pillow, defusedxml, lxml (pip — text dump, thumbnail, clean, validate) · LibreOffice (soffice, auto-configured for sandboxed environments via scripts/office/soffice.py) · pdftoppm (Poppler)
LICENSE.txt (opens in a new tab)scripts/__init__.py (opens in a new tab)scripts/add_slide.py (opens in a new tab)scripts/clean.py (opens in a new tab)scripts/office/helpers/__init__.py (opens in a new tab)scripts/office/helpers/pptx_chart.py (opens in a new tab)scripts/office/helpers/pptx_slide.py (opens in a new tab)scripts/office/helpers/pptx_theme.py (opens in a new tab)scripts/office/schemas/ISO-IEC29500-4_2016/dml-chart.xsd (opens in a new tab)scripts/office/schemas/ISO-IEC29500-4_2016/dml-chartDrawing.xsd (opens in a new tab)scripts/office/schemas/ISO-IEC29500-4_2016/dml-diagram.xsd (opens in a new tab)scripts/office/schemas/ISO-IEC29500-4_2016/dml-lockedCanvas.xsd (opens in a new tab)scripts/office/schemas/ISO-IEC29500-4_2016/dml-main.xsd (opens in a new tab)scripts/office/schemas/ISO-IEC29500-4_2016/dml-picture.xsd (opens in a new tab)scripts/office/schemas/ISO-IEC29500-4_2016/dml-spreadsheetDrawing.xsd (opens in a new tab)scripts/office/schemas/ISO-IEC29500-4_2016/dml-wordprocessingDrawing.xsd (opens in a new tab)scripts/office/schemas/ISO-IEC29500-4_2016/pml.xsd (opens in a new tab)scripts/office/schemas/ISO-IEC29500-4_2016/shared-additionalCharacteristics.xsd (opens in a new tab)scripts/office/schemas/ISO-IEC29500-4_2016/shared-bibliography.xsd (opens in a new tab)scripts/office/schemas/ISO-IEC29500-4_2016/shared-commonSimpleTypes.xsd (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub yhyu13/agentskillsvault --plugin vault-content12 skills in this plugin
/agent-browserBrowser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web apps, or automating any browser task. Triggers include requests to "open a website", "fill out a form", "click a button", "take a screenshot", "scrape data from a page", "test this web app", "login to a site", "automate browser actions", or any task requiring programmatic web interaction./aigc-image-controlAI 生图可控工作流。把"参考图"变成可复用的产线:参考海报→同系列新海报(风格迁移)、参考图→可复用提示词、人物/品牌 IP 角色资产一致性、二维场景→可探索 3D。核心纪律是「定·拆·探·锁·收」:找参考、拆规则、探变量、锁不变量、验收结果;并把观察与推断分开,不猜艺术家/seed/模型参数。 Use when 用户说"参考这张图做一张…"、要用同一视觉系统批量出系列海报、要把参考图反推成提示词、要保持角色/品牌 IP 多图一致、要把插画或场景图转成 3D,或吐槽"AI 生图风格漂移 / 换发型像换个人 / 文字全是乱码 / 只会照搬配色"。 Triggers: 参考图, 风格迁移, 系列海报, 图生提示词, 反推 prompt, 角色一致性, 角色设定表, IP 资产, 多角度设定, 2D 转 3D, Marble, image-to-prompt, poster-style-transfer. 不适用:AI 视频生成(用 aigc-video-creation)、界面/网页视觉方向(用 taste-imagegen-web / taste-redesign)、代码绘制海报或插画(用 canvas-design / anatomy)。/aigc-video-creationAIGC 视频生成的全流程创作 skill。从核心技术原理(扩散模型 + VAE + DiT)、三种生成模式(文生视频 / 图生视频 / 图文混合)、平台选型框架(TapNow 类"一画布"工作台 vs Runway/Pika/Sora 等点状工具)、万能提示词公式【主体+动作+环境+情绪+镜头+风格+规格】、9 个质感提升提示词技巧、6 类常见翻车与避坑、5 步审美进阶法。Use when "Ask an AI model is missing a supported tool" 时 — 即"用 AI 生成视频 / 文生视频 / 图生视频 / 视频提示词怎么写 / 选哪个 AI 视频工具 / 视频翻车了怎么修 / AI 视频怎么有电影感"这类问题。Triggers: AI 视频生成、AIGC 视频、文生视频、图生视频、视频提示词、电影感 AI 视频、AI 短片、TapNow、视频审美。不适用:真人拍摄 / 后期剪辑(用传统剪辑 skill)、直播推流。/blog-to-linkedin-postLinkedIn posts only. Convert a long-form blog article into LinkedIn-ready professional posts with a clear point of view, source-grounded golden quote, last-30-day trend adaptation, current LinkedIn rule checks, and a primary visual concept or generated image. Use when the user asks for blog to LinkedIn, LinkedIn post, LinkedIn copywriting, blog repurposing for LinkedIn, professional thought leadership, or blog content repurposing for LinkedIn. Not for Twitter/X - use blog-to-twitter-post./blog-to-twitter-postTwitter/X posts only. Convert a long-form blog article into Twitter/X-ready posts with a sharp content angle, source-grounded golden quote, trend adaptation from the last 30 days, current X platform-rule checks, and a primary visual concept or generated image. Use when the user asks for blog to Twitter, blog to X post, Twitter/X content repurposing, X copywriting, blog repurposing for X, or social post exposure from a blog. Not for LinkedIn - use blog-to-linkedin-post./booth-kiosk-deck何时调:要做展位/评审现场「全自动循环口播演示」——HTML kiosk deck(Edge TTS 口播 + 字幕 + 词级动作点)或配套 HyperFrames MP4。触发词:展位演示、自动循环播放、口播 PPT、booth deck、kiosk demo、演示自动播放、口播文字稿。不调:可交互点击原型(走 mock-devops-platform 那套单文件 HTML)、真人手动翻页的幻灯(frontend-slides)、纯宣传片(ai-video-production / video-use)。确认单通过后目标 15 分钟出全套。