pptx-validation-fallback
यह क्या करती है
यह स्किल python-pptx से .pptx फ़ाइलें जाँचने का बैकअप तरीका है। यह उन लोगों के लिए है जिन्हें पक्का करना है कि जिस डेक को फ़ाइल रीडर नहीं पढ़ पा रहा, उसमें कितनी स्लाइड हैं और उनके शीर्षक क्या हैं।
कब इस्तेमाल करें
- ✓जब PowerPoint फ़ाइल पर read_file विफल हो या अधूरी जानकारी दे।
- ✓जब मुझे जाँचना है कि प्रेज़ेंटेशन में अपेक्षित संख्या में स्लाइड हैं।
- ✓जब मुझे समीक्षा के लिए सभी स्लाइड के शीर्षक सूचीबद्ध चाहिए।
Skill का लिंक
https://github.com/HKUDS/AgentPilot/blob/main/openspace/benchmarks/gdpval/skills/pptx-validation-fallback/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“जाँचिए कि मेरी प्रेज़ेंटेशन में दस स्लाइड हैं, और हर एक का शीर्षक सूचीबद्ध कीजिए। इस पर सामान्य फ़ाइल रीडर काम नहीं कर रहा।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
AI शेल से एक python-pptx स्क्रिप्ट चलाता है, जो डेक लोड करती है, स्लाइड की संख्या और हर शीर्षक छापती है, और संख्या की तुलना अपेक्षित संख्या से करती है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
PowerPoint Validation Fallback
When to Use
Use this skill when read_file fails to properly read or validate PowerPoint (.pptx) files. This provides a reliable alternative for verifying presentation contents including slide count, titles, and structure.
Procedure
Step 1: Check if read_file Failed
If read_file with filetype pptx returns errors, incomplete content, or cannot extract slide information, proceed to the fallback method.
Step 2: Use run_shell with python-pptx
Execute Python code via run_shell using the python-pptx library to inspect the presentation:
from pptx import Presentation
# Load the presentation
prs = Presentation('path/to/file.pptx')
# Get basic info
slide_count = len(prs.slides)
print(f"Total slides: {slide_count}")
# Extract slide titles
for i, slide in enumerate(prs.slides):
if slide.shapes.title:
title = slide.shapes.title.text
print(f"Slide {i+1}: {title}")
else:
print(f"Slide {i+1}: [No title]")
Step 3: Validate Structure
Check that the presentation meets expected requirements:
from pptx import Presentation
prs = Presentation('path/to/file.pptx')
# Validation checks
expected_slides = 10 # Adjust based on requirements
actual_slides = len(prs.slides)
if actual_slides >= expected_slides:
print(f"✓ Slide count OK: {actual_slides} slides")
else:
print(f"✗ Insufficient slides: {actual_slides}/{expected_slides}")
# Check for content on each slide
for i, slide in enumerate(prs.slides):
has_title = slide.shapes.title is not None
has_content = len(slide.shapes) > 1
print(f"Slide {i+1}: title={has_title}, content={has_content}")
Step 4: Extract Detailed Content (Optional)
For deeper validation, extract text content from all shapes:
from pptx import Presentation
prs = Presentation('path/to/file.pptx')
for i, slide in enumerate(prs.slides):
print(f"\n=== Slide {i+1} ===")
for shape in slide.shapes:
if hasattr(shape, "text") and shape.text.strip():
print(shape.text)
Expected Output
Successful validation should provide:
- Confirmed slide count
- List of slide titles
- Verification that each slide has expected content structure
Common Use Cases
- Verifying generated presentations have correct number of slides
- Confirming slide titles match required topics
- Validating presentation structure before delivery
- Debugging why read_file cannot parse a .pptx file
Dependencies
The python-pptx library must be available in the execution environment. Most Python environments support it via pip:
pip install python-pptx
अक्सर पूछे जाने वाले सवाल
बिना शीर्षक वाली स्लाइड कैसे संभाली जाती है?
स्क्रिप्ट एक नोट छापती है कि उस स्लाइड का कोई शीर्षक नहीं है।
स्लाइड की संख्या कैसे जाँची जाती है?
स्क्रिप्ट असली संख्या की तुलना अपेक्षित संख्या से करती है और बताती है कि जाँच पास हुई या नहीं।
फ़ाइल कौन सी लाइब्रेरी पढ़ती है?
प्रेज़ेंटेशन को python-pptx पढ़ती है।
जानकारी
लेखक का मूल विवरण
Validate PowerPoint files using python-pptx when read_file fails
repo: HKUDS/AgentPilot
लोकप्रियता
- GitHub स्टार
- 7.8k
- रैंकिंग में स्थान
- #12950
- लाइसेंस
- MIT
- अपडेट की गई
- 1/11/2026
कमेंट
- …
इस repository की और skills
agentpilot
7.8kआपके एजेंट को AgentPilot से प्रोजेक्ट को चरण-दर-चरण सुधारने में मदद करती है, जिसमें बदलाव सुझाए, परखे और स्कोर किए जाते हैं।
openspace
7.8kआपके एजेंट को OpenSpace सेट करने में मदद करती है, जो एजेंट स्किल्स सहेजता और वापस लाता है, और MCP के ज़रिए आपके AI ऐप से जुड़ता है।
rsi-arena
7.8kआपके एजेंट को AIME और Terminal-Bench जैसे मानक AI बेंचमार्क टेस्ट सेट करने और चलाने में मदद करती है, ताकि सुधार के तरीकों की तुलना हो सके।
experiment-guide
7.8kआपके एजेंट को छोटे प्रयोग बनाने, उनके नतीजे पढ़ने और जाँच के दौरान उपयोगी निष्कर्ष लिखने में मदद करती है।
मिलती-जुलती skills
feishu-doc
394kयह आपके एजेंट को document टूल से Feishu क्लाउड दस्तावेज़ पढ़ने, बनाने और बदलने में मदद करती है, जिसमें टेक्स्ट, इमेज और टेबल शामिल हैं।
feishu-drive
394kयह आपके एजेंट को बॉट के साथ साझा किए गए Feishu क्लाउड फ़ोल्डर में फ़ाइलें देखने, व्यवस्थित करने और उन पर टिप्पणी करने देती है।
feishu-perm
394kयह आपके एजेंट को Feishu फ़ाइल तक किसकी पहुंच है, यह जांचने और बदलने देती है, और आपके अनुरोध के लिए सबसे छोटी अनुमति चुनती है।