officecli-pptx
What it does
This skill guides the AI agent in working with .pptx presentation files through the officecli tool. It is for anyone who builds, reads or changes slide decks.
When to use it
- βWhen you want a new slide deck or presentation created from your content.
- βWhen you need text or speaker notes pulled out of an existing PowerPoint file.
- βWhen you want to edit a template, change layouts or combine slide files.
Skill link
https://github.com/iOfficeAI/OfficeCLI/blob/main/skills/officecli-pptx/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βCan you turn these bullet points into a clean 8-slide presentation with speaker notes?β
5 new skills a week. 1 minute to read.
How it works
The agent uses officecli to read the slide structure and make edits to slides, text, shapes and notes, and then checks the result.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
OfficeCLI PPTX Skill
Setup
If officecli is missing:
- macOS / Linux:
curl -fsSL https://d.officecli.ai/install.sh | bash - Windows (PowerShell):
irm https://d.officecli.ai/install.ps1 | iex
Verify with officecli --version (open a new terminal if PATH hasn't picked up). If install fails, download a binary from https://github.com/iOfficeAI/OfficeCLI/releases.
β οΈ Help-First Rule
This skill teaches what good slides look like, not every command flag. When a property name, enum value, or alias is uncertain, consult help BEFORE guessing.
officecli help pptx # List all pptx elements
officecli help pptx <element> # Full element schema (e.g. shape, chart, animation, connector, zoom, group)
officecli help pptx <verb> <element> # Verb-scoped (e.g. add shape, set slide)
officecli help pptx <element> --json # Machine-readable schema
Help reflects the installed CLI version. When skill and help disagree, help is authoritative. Triggers to run help immediately: UNSUPPORTED props: warning, unknown animation preset, connector.shape= enum drifts, prop-vs-alias (lineWidth vs line.width, color vs font.color).
Shell & Execution Discipline
Shell quoting (zsh / bash). ALWAYS quote element paths ("/slide[1]/...") β zsh globs unquoted [1] to no matches found. Escaping happens at three layers β keep them separate (the CLI handles the second for you):
- Shell.
$in a value still belongs to the shell β single-quote the whole value:--prop text='$15M'. Double-quoted"$15M"gets expanded toM. The CLI does NOT unescape\$for you. - CLI (
text=). The two-char escapes\nand\tARE interpreted, consistently across pptx / docx / xlsx β\nis a line / paragraph break,\tis a tab. To produce a literal backslash-n in text, double it (\\n); this is rarely what you want. - JSON (batch heredoc). The recipes below pipe
cat <<EOF | officecli batchunquoted so$SLIDE/$FILEexpand inside the body. That same unquoted heredoc also expands a literal$in a value:"$1.42"silently becomes.42and"$2.4B"becomes.4B($1/$2are empty shell params). Escape currency as\$β"text":"\$1.42"β which still lets$SLIDEexpand.\n/\tinside the JSON work either way. A fully-quoted<<'EOF'protects every$but then$SLIDEwon't expand, so only use it when the body has no shell variables. After writing money values,view textand confirm the$survived.
If in doubt, view text after writing and compare character-for-character.
Incremental execution. One command β check exit code β continue. A 50-command script that fails at command 3 cascades silently. After any structural op (new slide, chart, animation, connector) run get before stacking more.
Requirements for Outputs
These are the deliverable standards every deck MUST meet. Violating any one = not done, regardless of content quality.
All decks
One idea per slide. If a slide needs a second title to explain what it covers, split it. Dense "everything about X" slides lose the audience inside 3 seconds. Use a section divider to group related one-idea slides, not a mega-slide.
Explicit type hierarchy β do NOT rely on theme defaults. Theme defaults drift between masters. Set sizes explicitly on every text shape.
| Element | Minimum | Typical | Min shape height |
|---|---|---|---|
| Slide title | β₯ 36pt bold | 36β44pt | β₯ 2cm |
| Section / subtitle | β₯ 20pt | 20β24pt | β₯ 1.2cm |
| Body text | β₯ 18pt | 18β22pt | β₯ 1cm |
| Caption / axis label | β₯ 10pt muted | 10β12pt | β₯ 0.6cm |
Rule of thumb: min shape height β font_pt Γ 0.05cm. An 18pt sublabel in a 0.8cm-tall box will overflow β view annotated catches this.
Title must be β₯ 2Γ body size (36pt over 20pt works; 28pt over 20pt looks timid). Four legit exceptions to body β₯ 18pt: chart axis labels, legends, footer / page number, and β€ 5-word KPI sublabels (e.g. "Active users"). Descriptive sentences must be β₯ 18pt. Left-align body; center only titles and hero numbers. If "the cards won't fit", drop cards instead of shrinking font.
Two fonts max, one palette. One heading font + one body font (e.g. Georgia + Calibri) β a third display face is fine only for big numerals or the cover title, as long as that heading+body pair stays intact. One dominant brand color (60β70% weight) + one supporting + one accent. Ne
FAQ
Do I need PowerPoint installed?
No. The skill says officecli works without any Office installation.
Can it read speaker notes?
Yes. The skill covers speaker notes, comments and layouts.
Where are exact property names found?
The skill says to use the officecli help command, which is the authoritative source.
Details
Original description by the author
Use this skill any time a .pptx file is involved -- as input, output, or both. This includes: creating slide decks, pitch decks, or presentations; reading, parsing, or extracting text from any .pptx file; editing, modifying, or updating existing presentations; combining or splitting slide files; working with templates, layouts, speaker notes, or comments. Trigger whenever the user mentions 'deck', 'slides', 'presentation', 'pitch', or references a .pptx filename.
repo: iOfficeAI/OfficeCLI
Popularity
- GitHub stars
- 33k
- Ranking position
- #9135
- License
- Apache-2.0
- Updated
- 10/30/2026
Comments
- β¦
More skills from this repository
officecli
33kLets your agent create, read, check and edit Word, Excel and PowerPoint files with the officecli tool, without needing Office installed.
morph-ppt-3d
33kHelps your agent build a PowerPoint deck with a 3D GLB model and smooth Morph transitions between slides.
morph-ppt
33kHelps your agent make a PowerPoint file with smooth Morph transitions, where shapes move, grow or rotate between slides.
officecli-academic-paper
33kHelps your agent format a research paper, thesis or manuscript as a Word file with citations, equations and journal-style layout.
Similar skills
feishu-doc
394kHelps your agent read, create, and edit Feishu cloud documents, including text, images, and tables, using the document tool.
feishu-drive
394kLets your agent browse, organize, and comment on files in a Feishu cloud folder that has been shared with the bot.
feishu-perm
394kHelps your agent check and change who can access a Feishu file, choosing the smallest permission that meets your request.