pptx-file-validation
What it does
This skill checks the contents of a .pptx file by reading its slides with python-pptx. It is for people who need to confirm a presentation has the right slides before using it.
When to use it
- ✓When the file reader fails to read a PowerPoint file.
- ✓When I need to confirm the slide count and titles of a deck.
- ✓When I want to check that a presentation's structure is complete.
Skill link
https://github.com/HKUDS/AgentPilot/blob/main/openspace/benchmarks/gdpval/skills/pptx-file-validation/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
“My file reader cannot open this PowerPoint. Please check how many slides it has and list each slide title.”
5 new skills a week. 1 minute to read.
How it works
The AI runs a short Python command through the shell that loads the presentation, counts the slides and prints each slide's title, then reports any missing items.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
PPTX File Validation Workflow
This skill provides a reliable method to validate PowerPoint (.pptx) files when the built-in read_file function fails or returns insufficient information.
When to Use
read_filefails to read a .pptx file- You need to verify presentation contents (slide count, titles, structure)
- Standard file readers return incomplete or unreadable data
Step-by-Step Instructions
Step 1: Detect read_file Failure
Attempt to read the PowerPoint file using read_file. If it fails, returns garbled content, or doesn't provide the structural information you need, proceed to Step 2.
Step 2: Use run_shell with python-pptx
Execute a Python script using run_shell with the python-pptx library to inspect the presentation:
python3 -c "
from pptx import Presentation
prs = Presentation('path/to/file.pptx')
print(f'Total slides: {len(prs.slides)}')
for i, slide in enumerate(prs.slides, 1):
print(f'Slide {i}: {slide.shapes.title.text if slide.shapes.title else \"[No Title]\"}')
"
Step 3: Parse and Validate Output
Analyze the output to verify:
- Slide count matches expected number
- Slide titles align with required topics
- Structure is complete and properly formatted
Step 4: Report Validation Results
Document the validation findings, including:
- Total number of slides
- List of slide titles
- Any missing or problematic content
Example Usage
# In your agent workflow
run_shell(command="python3 -c \"from pptx import Presentation; prs = Presentation('output.pptx'); print(f'Slides: {len(prs.slides)}'); [print(f'{i}: {s.shapes.title.text}') for i, s in enumerate(prs.slides, 1) if s.shapes.title]\"")
Prerequisites
Ensure python-pptx is available in the environment:
pip install python-pptx
Benefits
- Reliable: Works when built-in readers fail
- Detailed: Provides slide-by-slide breakdown
- Programmatic: Easy to parse and validate against requirements
- Lightweight: No need for PowerPoint software installation
FAQ
What does the check report?
The total number of slides and the title of each slide.
How are missing titles shown?
The example prints a placeholder such as No Title for slides without one.
Is the check read only?
Yes, the example reads the presentation and does not change it.
Details
Original description by the author
Validate PowerPoint files using python-pptx when standard file readers fail
repo: HKUDS/AgentPilot
Popularity
- GitHub stars
- 7.8k
- Ranking position
- #12948
- License
- MIT
- Updated
- 11/1/2026
Comments
- …
More skills from this repository
agentpilot
7.8kHelps your agent improve a project step by step by preparing a task and running the AgentPilot loop that proposes, tests and scores changes.
openspace
7.8kHelps your agent set up OpenSpace, a tool that stores and fetches agent skills, and connect it to your AI app through MCP.
rsi-arena
7.8kHelps your agent set up and run standard AI benchmark tests, such as AIME and Terminal-Bench, to compare different improvement methods.
experiment-guide
7.8kHelps your agent plan small experiments, read their results and record findings while it investigates how to improve a program.
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.