PowerPoint Automation
Automate common PowerPoint/WPS Presentation operations on Windows via COM (read text/notes/outline, export PDF/images, replace text, insert/delete slides, unify font/size/theme, ex…
Fadeloo
@fadeloo
What This Skill Does
Python script that automates common PowerPoint and WPS Presentation operations on Windows via COM. Supports reading text/notes/outlines, exporting to PDF or images, replacing text, inserting/deleting slides, unifying fonts, applying themes, and extracting embedded media.
Replaces manual slide-by-slide editing and repetitive formatting tasks by exposing a single command-line interface for common presentation operations.
When to Use It
- Extract all slide text from a PowerPoint file for content review
- Export a presentation to PDF for distribution or archiving
- Replace outdated company name or product references across all slides
- Unify font name and size across an entire presentation to match brand guidelines
- Insert or delete a slide at a specific position in a presentation
- Extract all embedded images from a presentation for reuse
Install
$ openclaw skills install @fadeloo/tiangong-wps-ppt-automationWPS/PowerPoint Automation (Windows)
Use the bundled Python script to control PowerPoint or WPS Presentation via COM.
Requirements
- Windows with Microsoft PowerPoint or WPS Presentation installed.
- Python + pywin32 (
python -m pip install pywin32).
Quick start
python {baseDir}/scripts/wps_ppt_automation.py read --input "C:\path\file.pptx"
python {baseDir}/scripts/wps_ppt_automation.py export --input "C:\path\file.pptx" --format pdf --output "C:\path\out.pdf"
Commands
read
Extract all slide text.
python {baseDir}/scripts/wps_ppt_automation.py read --input "C:\path\file.pptx" --output "C:\path\out.txt"
notes
Extract speaker notes.
python {baseDir}/scripts/wps_ppt_automation.py notes --input "C:\path\file.pptx" --output "C:\path\notes.txt"
outline
Export slide titles as outline.
python {baseDir}/scripts/wps_ppt_automation.py outline --input "C:\path\file.pptx" --output "C:\path\outline.txt"
export
Export to PDF or images (PNG).
python {baseDir}/scripts/wps_ppt_automation.py export --input "C:\path\file.pptx" --format pdf --output "C:\path\out.pdf"
python {baseDir}/scripts/wps_ppt_automation.py export --input "C:\path\file.pptx" --format images --outdir "C:\out\slides"
replace
Find/replace text across slides.
python {baseDir}/scripts/wps_ppt_automation.py replace --input "C:\path\file.pptx" --find "old" --replace "new" --save "C:\path\out.pptx"
slides
Insert or delete slides.
python {baseDir}/scripts/wps_ppt_automation.py insert-slide --input "C:\path\file.pptx" --index 2 --save "C:\path\out.pptx"
python {baseDir}/scripts/wps_ppt_automation.py delete-slide --input "C:\path\file.pptx" --index 3 --save "C:\path\out.pptx"
font
Unify font name/size across slides.
python {baseDir}/scripts/wps_ppt_automation.py font --input "C:\path\file.pptx" --name "Microsoft YaHei" --size 20 --save "C:\path\out.pptx"
theme
Apply a theme (.thmx).
python {baseDir}/scripts/wps_ppt_automation.py theme --input "C:\path\file.pptx" --theme "C:\path\theme.thmx" --save "C:\path\out.pptx"
extract-images
Export embedded images.
python {baseDir}/scripts/wps_ppt_automation.py extract-images --input "C:\path\file.pptx" --outdir "C:\out\images"
Notes
- If WPS is installed, try
--app wps; otherwise default uses PowerPoint. - Use
--visible trueif you need to watch the UI. - Avoid batch usage; this skill is for single-presentation operations.
Top skills in this category
Edge TTS
@i3130002Text-to-speech conversion using node-edge-tts npm package for generating audio from text. Supports multiple voices, languages, speed adjustment, pitch control, and subtitle generation. Use when: (1) User requests audio/voice output with the "tts" trigger or keyword. (2) Content needs to be spoken rather than read (multitasking, accessibility, driving, cooking). (3) User wants a specific voice, speed, pitch, or format for TTS output.
TuriX Computer Use
@tongyu-yanComputer Use Agent (CUA) for macOS automation using TuriX. Use when you need to perform visual tasks on the desktop, such as opening apps, clicking buttons, or navigating UIs that don't have a CLI or API.
Word Automation
@fadelooAutomate common Word/WPS document operations on Windows via COM (read text, replace, insert, headings, headers/footers, page breaks, merge, split, export to PDF/TXT, add/replace images). Use for single-document actions (no batch).
ClickUp
@shubhs0707Interact with ClickUp project management platform via REST API. Use when working with tasks, spaces, lists, assignees, or any ClickUp workflow automation. Handles pagination, subtasks, and common query patterns. Use for task management, reporting, automation, or any ClickUp-related queries.
Office Automation
@xiaoheizp科特船长 - 办公自动化脚本,Excel/Word/文件批量处理