cli-anything-wps

Automates WPS Office documents and generates PPTX presentations from JSON data via COM interfaces.

Updated Sep 21, 2026
Ready to run
npx skills add https://github.com/tangyixiao/tangyixiao-skills --skill cli-anything-wps-tangyixiao
💬 Prompt for ChatGPT / Claude Chat▼
Please help me install this Agent Skill.
Skill: cli-anything-wps
Source: https://github.com/tangyixiao/tangyixiao-skills/tree/main/cli-anything-wps
Command: npx skills add https://github.com/tangyixiao/tangyixiao-skills --skill cli-anything-wps-tangyixiao

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pywin32.

What problem does it solve? Manually building data-driven PowerPoint presentations and editing WPS Office documents is repetitive and slow. This Skill automates WPS Writer, Calc, and Impress through COM interfaces, turning structured JSON data and matplotlib charts into finished PPTX and PDF decks. ## Core Features & Use Cases - JSON-Driven PPT Generation: Define slides as JSON elements (text, images, tables, cards) and build 12-15 page decks with WPS COM automation, exporting both PPTX and PDF. - CLI Document Control: Create and edit WPS Writer documents, Calc spreadsheets, and Impress slides from the command line with commands for headings, cells, slides, styles, and exports. - Design Presets & Quality Review: Apply academic, consultant, business, or tech color presets and audit decks across five quality dimensions including visual, proofreading, and PPTX/PDF parity. - Use Case: Search enrollment data for a university, generate matplotlib charts, write a data.json describing 12 slides, then run a build script to produce a branded admissions presentation in PPTX and PDF. ## Quick Start Ask the AI to use cli-anything-wps to build a 12-page PPTX presentation from a JSON data file with charts, then export it to PDF.

Frequently Asked Questions about cli-anything-wps

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

FAQPage Schema
How do I generate a PowerPoint presentation from JSON data in Python?▼

Define slides as a JSON file with typed elements such as text, image, table, and cards, then run a build script that drives WPS Impress through COM automation. The workflow outputs both PPTX and PDF formats.

How to automate WPS Office from the command line?▼

Install the package with pip install -e . and use the cli-anything-wps command groups: document, writer, calc, impress, style, preset, export, and session. A --json flag returns machine-readable output for agent use.

Does WPS COM automation work on macOS or Linux?▼

No, this approach requires Windows because it relies on COM automation via pywin32. You also need WPS Office 12.0 or later and Python 3.10+ installed on the machine.

Why does my WPS build script fail or hang during generation?▼

Running WPS processes often conflict with new COM sessions. Kill existing instances first with taskkill //F //IM wps.exe //T, and validate your data.json parses correctly before running the build script.

What layout constraints apply when generating slides with JSON elements?▼

All elements must fit the 960x540 canvas with y plus height at most 518. Titles are limited to 4 characters, and the first content element must start at y of 76 or more to keep a 24pt gap below the title.