DOCX and PPTX Text Extraction

SkillFiles & storage

Extract text from DOCX and PPTX files using python-docx and python-pptx for content analysis.

Available today. Use it from your connected AI after setup.

Connect ahel once, and every AI you use reads what you have installed.

Then ask your AI: use the DOCX and PPTX Text Extraction skill

What this skill tells your AI

The instructions your AI receives, as published by cxcscmu/skilllearnbench in skills/b1-one-shot-claude-opus-4-6/organize-messy-files/docx-pptx-extraction/SKILL.md and read by ahel’s review.

DOCX Extraction

from docx import Document

def extract_docx_text(filepath, max_paragraphs=50):
    doc = Document(filepath)
    text = "\n".join(p.text for p in doc.paragraphs[:max_paragraphs])
    return text

PPTX Extraction

from pptx import Presentation

def extract_pptx_text(filepath, max_slides=5):
    prs = Presentation(filepath)
    text = ""
    for i, slide in enumerate(prs.slides[:max_slides]):
        for shape in slide.shapes:
            if shape.has_text_frame:
                text += shape.text_frame.text + "\n"
    return text

Tips

  • DOCX paragraphs include headings and body text
  • PPTX text is in shapes within slides
  • Always wrap in try/except for robustness

Signals

GitHub stars
83
Forks
5
Last commit
Jul 2026
Advanced
Catalog kind
skill
Gateway key
docx-pptx-extraction
Source
github.com/cxcscmu/skilllearnbench