officecli-pptx

Create, edit, and validate PowerPoint .pptx presentations using the officecli command-line tool.

Updated Aug 19, 2026
One-click install
npx skills add https://github.com/Dhanuzh/DCode-Core --skill officecli-pptx-dhanuzh
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: officecli-pptx
Source: https://github.com/Dhanuzh/DCode-Core/tree/main/crates/dcode-app/assets/builtin-skills/officecli-pptx
Command: npx skills add https://github.com/Dhanuzh/DCode-Core --skill officecli-pptx-dhanuzh

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Building or editing .pptx slide decks programmatically is error-prone: text overflows, fonts drift from theme defaults, charts pick the wrong type, and decks ship with placeholder tokens or clipped content. This Skill provides a complete workflow for creating, reading, editing, and quality-checking PowerPoint files through the officecli CLI, with enforced design standards. ## Core Features & Use Cases - Deck creation and editing: Add slides, shapes, text runs, charts, tables, pictures, connectors, animations, hyperlinks, comments, and zoom navigation via XPath-style element paths. - Reading and analysis: Inspect decks with outline, annotated, text, issues, and stats views; query elements with CSS-like selectors; render HTML/SVG previews for visual audits. - Design enforcement: Built-in typography hierarchy, font pairings, color palettes, chart-choice rules, layout patterns, and a QA gate that blocks delivery until overflow, contrast, and placeholder issues are fixed. - Use Case: Ask for a quarterly business review deck and get a branded multi-slide .pptx with a cover, section dividers, chart slides with commentary cards, speaker notes on every slide, and a validated final file. ## Quick Start Ask the assistant to create a five-slide pitch deck about your product as a .pptx file with a dark cover, one chart slide, and speaker notes on every slide.

Frequently Asked Questions about officecli-pptx

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a PowerPoint presentation from the command line?

Install officecli, then run officecli create to make the file, officecli open to start a session, and officecli add commands to insert slides, shapes, charts, and notes. Finish with officecli close and officecli validate to write and check the .pptx file.

How do I extract text and structure from an existing .pptx file?

Use officecli view with the outline, annotated, or text subcommands to dump slide titles, shapes, and table cell text. For targeted inspection, officecli get with XPath-style paths or officecli query with CSS-like selectors retrieves specific elements.

Does officecli work on Windows PowerShell?

Yes, the officecli tool itself is cross-platform and installs on Windows via an install.ps1 script. However, the skill's shell snippets are written for bash/zsh, so on Windows you must translate syntax like heredocs, &&, and grep into PowerShell equivalents before running.

Why does my slide text overflow or get clipped in shapes?

Overflow happens when the shape height is too small for the font size; the rule of thumb is minimum shape height roughly equals font points times 0.05cm. Run officecli view issues to detect shape_off_slide and text-fit problems, then grow the box or shorten the value.

Can I add charts, animations, and hyperlinks to slides?

Yes, officecli supports column, bar, line, pie, and scatter charts with named series and brand colors, plus animation presets like fade-entrance and links to URLs or other slides. Animations and zoom are runtime features, so verify them in a real presentation viewer before shipping.