Zum Inhalt springen
Skillpedia
PDF, Word & Folien7.8k · #12948

pptx-file-validation

Was er macht

Dieser Skill prüft den Inhalt einer .pptx-Datei, indem er ihre Folien mit python-pptx liest. Er richtet sich an Menschen, die bestätigen müssen, dass eine Präsentation die richtigen Folien hat, bevor sie genutzt wird.

Wann du ihn nutzt

  • ✓Wenn der Dateileser eine PowerPoint-Datei nicht lesen kann.
  • ✓Wenn ich die Folienanzahl und die Titel eines Decks bestätigen muss.
  • ✓Wenn ich prüfen möchte, dass der Aufbau einer Präsentation vollständig ist.

Link zum Skill

https://github.com/HKUDS/AgentPilot/blob/main/openspace/benchmarks/gdpval/skills/pptx-file-validation/SKILL.md

Kopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.

So nutzt du ihn

Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.

Fertige Nachricht zum Einfügen

Nutze diesen Skill, um mir zu helfen: https://github.com/HKUDS/AgentPilot/blob/main/openspace/benchmarks/gdpval/skills/pptx-file-validation/SKILL.md Lies die SKILL.md unter diesem Link und folge ihren Anweisungen für meine Aufgabe.
Soll deine KI Skills wie diesen selbst finden?Installiere den kostenlosen Skillpedia-MCP: eine Zeile, und sie durchsucht vor jeder Aufgabe 15.000+ Skills.In 1 Minute installieren →

Beispielanfrage an deine KI

“Mein Dateileser kann diese PowerPoint nicht öffnen. Bitte prüfe, wie viele Folien sie hat, und liste den Titel jeder Folie auf.”

5 neue Skills pro Woche. 1 Minute Lesezeit.

So funktioniert es

Die KI führt ein kurzes Python-Skript über die Shell aus, das die Präsentation lädt, die Folien zählt und den Titel jeder Folie ausgibt, und meldet dann fehlende Elemente.

Technischer Inhalt (originale SKILL.md)

Originaltext des Autors, auf Englisch, direkt von 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_file fails 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
Häufige Fragen

Was berichtet die Prüfung?

Die Gesamtzahl der Folien und den Titel jeder Folie.

Wie werden fehlende Titel angezeigt?

Das Beispiel gibt für Folien ohne Titel einen Platzhalter wie No Title aus.

Ist die Prüfung nur lesend?

Ja. Das Beispiel liest die Präsentation und verändert sie nicht.

Details

Originalbeschreibung des Autors

Validate PowerPoint files using python-pptx when standard file readers fail

repo: HKUDS/AgentPilot

Beliebtheit

GitHub-Sterne
7.8k
Platz im Ranking
#12948
Lizenz
MIT
Aktualisiert
1.11.2026

Ist dieser Skill nützlich?

0

Anmelden um abzustimmen.

Kommentare

  • …

Weitere Skills aus diesem Repository

Ähnliche Skills