본문으로 건너뛰기
Skillpedia
PDF, Word, 슬라이드7.8k · #12948

pptx-file-validation

하는 일

이 스킬은 python-pptx로 슬라이드를 읽어 .pptx 파일의 내용을 확인합니다. 사용하기 전에 발표 자료에 맞는 슬라이드가 있는지 확인해야 하는 사람에게 맞습니다.

사용하는 경우

  • ✓파일 리더가 PowerPoint 파일을 읽지 못할 때.
  • ✓발표 자료의 슬라이드 수와 제목을 확인해야 할 때.
  • ✓발표 자료의 구조가 완전한지 점검하고 싶은 경우.

스킬 링크

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

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/HKUDS/AgentPilot/blob/main/openspace/benchmarks/gdpval/skills/pptx-file-validation/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“제 파일 리더가 이 PowerPoint를 열지 못합니다. 슬라이드가 몇 장인지 확인하고 각 슬라이드 제목을 나열해 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

AI는 셸에서 짧은 Python 명령을 실행해 발표 자료를 불러오고, 슬라이드 수를 세고 각 제목을 출력한 뒤, 빠진 항목이 있으면 보고합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 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
자주 묻는 질문

검사는 무엇을 보고하나요?

전체 슬라이드 수와 각 슬라이드의 제목입니다.

제목이 없으면 어떻게 표시되나요?

예제는 제목이 없는 슬라이드에 No Title 같은 자리표시를 출력합니다.

검사는 읽기만 하나요?

네, 예제는 발표 자료를 읽기만 하고 바꾸지 않습니다.

상세 정보

작성자의 원본 설명

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

repo: HKUDS/AgentPilot

인기도

GitHub 스타
7.8k
순위
#12948
라이선스
MIT
업데이트
2026. 11. 1.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬