Introduction¶
A common workflow for creating presentation materials involves manually adjusting layouts in PowerPoint or asking a model to generate text that you then paste into slides. However, .pptx files are essentially OOXML (Open Office XML) files packaged in a ZIP archive; modifying a single page often requires touching multiple parts, including layouts, relationship tables, and chart XML. Creating a deck from scratch using scripts can easily lead to pitfalls such as incorrect color formats or improper chart axis declarations, often resulting in file corruption errors when opened.
Below, we introduce the “Presentation Assistant” (@org-02qudk26/pptx) available on SkillHub. It integrates the workflows for creating, editing, and reading presentation files into an Agent Skill. By selecting pptxgenjs or unpacking and modifying XML based on the task, and including scripts for thumbnails, page manipulation, and validation, it aims to reduce repetitive operations and produce .pptx files that open correctly.
What is this?¶
The “Presentation Assistant” is an Agent Skill designed for office efficiency, located at @org-02qudk26/pptx, with the current version 1.0.0. The SkillHub page is maintained by the publisher Zhiyu Technology (org-02qudk26, enterprise certified). The description states: Used for creating and modifying presentation files, helping users reduce repetitive operations and obtain results ready for immediate use.
The Skill utilizes the universal SKILL.md format. The documentation within the package states that the content is organized from the skills/pptx directory of the GitHub repository anthropics/skills and does not represent endorsement by the original authors or SkillHub. Users should verify licenses and terms before use. The SkillHub category is office-efficiency, with subcategories including “PPT Generation” and “Workflow Automation”; the tag is requires_api_key=false, meaning no additional API Key is needed.
Core Features¶
The Skill description stipulates that it should be enabled whenever a task involves .pptx or .potx (input, output, or both), including creating new decks, parsing and extracting text, modifying drafts, merging/splitting, templates, and notes/comments.
According to the official documentation, the methods are categorized by task type as follows:
| Task | Approach |
|---|---|
| Create New Presentation | Write a pptxgenjs script to generate |
| Edit Existing File or Template-based | Unpack \(\rightarrow\) Modify ppt/slides/slideN.xml \(\rightarrow\) Repack |
| Read Content | markitdown deck.pptx; use thumbnail script for layout preview |
The scripts provided with the Skill (paths are relative to the Skill root directory) include:
scripts/thumbnail.py: Generates a slide grid with page number annotations to facilitate selecting template layouts.scripts/add_slide.py: Copies slides or layouts and handles internal package relationships.scripts/clean.py: Cleans up unreferenced pages, media, and relationships after finalizing the<p:sldIdLst>.scripts/office/validate.py: Validates schemas, relationships, charts, etc.; recommended to add--originalwhen deriving from a template.scripts/office/soffice.py: LibreOffice headless conversion (e.g., converting to PDF).
The documentation also covers common pptxgenjs pitfalls (layout dimensions, hex colors, chart dual axes, validation after writing to disk), OOXML considerations for template filling, and design constraints regarding color schemes and layouts. Before delivery, it requires Content QA (markitdown), File QA (validate.py), and Visual QA (converting to images to check for overflow and alignment).
Installation and Activation¶
First, confirm that the SkillHub CLI is installed on your local machine. If not installed, follow the official installation instructions to perform a full installation or install just the CLI:
command -v skillhub && skillhub --version
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash
When installing the Skill, it is mandatory to use --dir to point to the current Agent’s skills directory. Otherwise, it defaults to ./skills/, which the Agent might not recognize. The installation coordinates for this Skill are @org-02qudk26/pptx:
skillhub install pptx --namespace org-02qudk26 --dir <your skills directory>
Common client path examples (subject to SkillHub installation documentation):
- Cursor:
~/.cursor/skills/ - Claude Code:
~/.claude/skills/ - Codex:
~/.codex/skills/or.agents/skills/under the project
After installation, restart or refresh according to the requirements of each client to ensure the Skill is loaded.
Typical Usage¶
1. Generate and Validate from Scratch¶
The documentation requires: The environment has pptxgenjs pre-installed, so you can directly require it; run the validation script after generation. The process is illustrated below (specific charts and layouts are implemented in your script):
node your-deck-script.js # Use pptxgenjs inside the script to write output.pptx
python scripts/office/validate.py output.pptx
markitdown output.pptx
2. Unpack and Edit Based on Template¶
When selecting layouts, generate thumbnails first, and use a different prefix for each deck to avoid the default thumbnails overwriting each other:
python scripts/thumbnail.py template.pptx template-thumbs
python3 -c "import sys,zipfile; zipfile.ZipFile(sys.argv[1]).extractall('unpacked')" deck.pptx
python scripts/add_slide.py unpacked/ slide2.xml --after slide2.xml
python scripts/clean.py unpacked/
(cd unpacked && rm -f ../out.pptx && zip -Xr ../out.pptx .)
python scripts/office/validate.py out.pptx --original deck.pptx
3. Visual Inspection¶
Convert the presentation to PDF and then export as JPEG to facilitate checking page-by-page for text clipping or element overlap:
python scripts/office/soffice.py --headless --convert-to pdf output.pptx
rm -f slide-*.jpg
pdftoppm -jpeg -r 150 output.pdf slide
Regarding dependencies, the Skill documentation lists: pptxgenjs, markitdown[pptx], Pillow, defusedxml, lxml, LibreOffice (soffice), pdftoppm (Poppler), etc. On the Node side, run npm install only if require fails.
Use Cases and Notes¶
Who it is for: Developers or professionals in product and operations who need to complete tasks like “make a presentation page / modify a pptx from a client / fill content from a template” within a conversation. It is for those who want the Agent to unpack and validate via scripts following a fixed workflow, rather than just outputting Markdown for manual pasting.
Limitations and Notes:
- The README states it targets efficiency scenarios for non-technical users, but the Skill content leans towards engineering (OOXML,
pptxgenjs, command-line QA). In practice, it still relies on the availability of the Agent and local dependencies. - If using
python-pptx, the documentation notes that it cannot reliably copy slides, cannot preserve styles viatext_frame.text =, and has limited support for certain SVG/EMF assets. - When deriving from templates, always add
--originaltovalidate.pyto avoid misjudging XSD issues inherent to the template as errors introduced by the current modification. - Legacy
.pptfiles must first be converted to.pptxviasoffice.pybefore processing.
Conclusion¶
The “Presentation Assistant” consolidates the creation, editing, reading, and pre-delivery QA of .pptx files into a set of reproducible steps. It is suitable for handling deck-related tasks when attached to Agents that support Skills, such as Cursor. Official entries:
- SkillHub Page: https://www.skillhub.cn/skills/org-02qudk26/pptx
- API Coordinates: https://api.skillhub.cn/org-02qudk26/pptx
Installation Guide: https://skillhub.cn/install/skillhub.md