ppt-cli

ppt-cli is a skill for Claude Code, Codex from trsdn/mcp-server-ppt. It costs 66 tokens per session (10,916 once invoked), scanned A, original, from a forked repository, MIT.

A command-line tool and usage guide for automating Microsoft PowerPoint on Windows. It can create and modify slides, shapes, text, charts, animations, and transitions through scripts or agent commands.

In plain words
What is it for?
Creating, reading, formatting, exporting, and saving PowerPoint presentations through CLI commands, including bulk operations with batch mode.
Why use it?
It lets a coding agent build or edit presentations without manually clicking through PowerPoint. It also documents the required Windows and PowerPoint setup and a compact workflow.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/trsdn/mcp-server-ppt/ppt-cli
Any agent
npx skills add trsdn/mcp-server-ppt --skill ppt-cli
Clone the repo
git clone --depth 1 https://github.com/trsdn/mcp-server-ppt

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 ppt-cli

README.md
[![agentmods](https://agentmods.dev/badge/skills/trsdn/mcp-server-ppt/ppt-cli.svg)](https://agentmods.dev/skills/trsdn/mcp-server-ppt/ppt-cli)
Your own site
<a href="https://agentmods.dev/skills/trsdn/mcp-server-ppt/ppt-cli"><img src="https://agentmods.dev/badge/skills/trsdn/mcp-server-ppt/ppt-cli.svg" alt="Measured on agentmods" height="20"></a>
Per session 66 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 10,916 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin fork From a forked repository.
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 $0.00066 $0.10916
Opus 5 $0.00033 $0.05458
Sonnet 5 $0.00013 $0.02183
Haiku 4.5 $0.00007 $0.01092

Measured today against content hash d3a0c2a59948, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

ppt-cli 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 today.

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/ppt-cli/SKILL.md · 838 lines

How it starts

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

PowerPoint Automation with pptcli

Preconditions

  • Windows host with Microsoft PowerPoint installed (2016+)
  • Uses COM interop — does NOT work on macOS or Linux
  • Install: dotnet tool install --global PptMcp.CLI

Workflow Checklist

Step Command When
1. Session session create/open Always first
2. Slides slide create/duplicate If needed
3. Add content shape, text, chart Add shapes, text, charts
4. Save & close session close --save Always last

10+ commands? Use pptcli -q batch --input commands.json — sends all commands in one process with automatic session management. See Rule 8.

CRITICAL RULES (MUST FOLLOW)

⚡ Building dashboards or bulk operations? Skip to Rule 8: Batch Mode — it eliminates per-command process overhead and auto-manages session IDs.

Rule 1: NEVER Ask Clarifying Questions

Execute commands to discover the answer instead:

DON'T ASK DO THIS INSTEAD
"Which file should I use?" pptcli -q session list
"Which slide has the content?" pptcli -q slide list --session <id>
"What shapes are on this slide?" pptcli -q shape list --session <id>

You have commands to answer your own questions. USE THEM.

Rule 2: Always End With a Text Summary

NEVER end your turn with only a command execution. After completing all operations, always provide a brief text message confirming what was done. Silent command-only responses are incomplete.

Rule 3: Session Lifecycle

Creating vs Opening Files:

# NEW file - use session create
pptcli -q session create C:\path\newfile.pptx  # Creates file + returns session ID

# EXISTING file - use session open
pptcli -q session open C:\path\existing.pptx   # Opens file + returns session ID

CRITICAL: Use session create for new files. session open on non-existent files will fail!

CRITICAL: ALWAYS use the session ID returned by session create or session open in subsequent commands. NEVER guess or hardcode session IDs. The session ID is in the JSON output (e.g., {"sessionId":"abc123"}). Parse it and use it.

Read the full file on GitHub · 838 lines

Files

What ships with it

8 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. today Changed d3a0c2a59948
  2. 4d ago First seen · 838 lines · 66 tokens per session scan A 0216b051e987

Subscribe to this mod's changes

ppt-cli is a skill published in the GitHub repository trsdn/mcp-server-ppt (36 stars, last pushed today), licensed MIT. It adds 66 tokens to every session and 10,916 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. It comes from a forked repository.