Comprehensive document processing skill for reading, extracting, converting, searching, and summarizing content across multiple formats: PDF, DOCX, XLSX, PPTX, HTML, Markdown, CSV, JSON, TXT, RTF, ODT. Use when: (1) user asks to read or extract text from documents, (2) user wants to convert between document formats, (3) user needs to search within documents, (4) user asks to summarize document content, (5) user mentions processing PDF/Word/Excel/PowerPoint files, (6) user needs to analyze or ...
4 stars
0 votes
0 copies
0 views
Added November 29, 2026
businesspythonbash
Security analysis
A96/100
mediumInstalls packages at runtime which could introduce malicious dependencies
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of 175 Dxt 7035?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/winlem2024-175-dxt-7035)
---
name: document-skills
description: >
Comprehensive document processing skill for reading, extracting, converting, searching, and
summarizing content across multiple formats: PDF, DOCX, XLSX, PPTX, HTML, Markdown, CSV,
JSON, TXT, RTF, ODT. Use when: (1) user asks to read or extract text from documents,
(2) user wants to convert between document formats, (3) user needs to search within documents,
(4) user asks to summarize document content, (5) user mentions processing PDF/Word/Excel/PowerPoint
files, (6) user needs to analyze or compare document content.
---
# Document Skills
## Dependencies
Run `scripts/install_deps.py --check` to verify installed packages, or `scripts/install_deps.py` to install all.
Core dependencies:
```bash
pip install pymupdf python-docx openpyxl python-pptx beautifulsoup4 mammoth chardet striprtf
```
## Core Operations
### 1. Extract Text
Use `scripts/extract_text.py` to read content from any supported format.
```bash
python scripts/extract_text.py <file> [--sheet NAME] [--pages RANGE] [-o output.txt]
```
Examples:
```bash
python scripts/extract_text.py report.pdf --pages 1-5
python scripts/extract_text.py data.xlsx --sheet "Q1 Sales"
python scripts/extract_text.py slides.pptx -o content.txt
```
For large files, extract to a temp file then read selectively to avoid context overflow.
### 2. Convert Formats
Use `scripts/convert_format.py` to convert between formats.
```bash
python scripts/convert_format.py <input> --to <format> [-o output]
```
Supported conversions:
| Source | Targets |
|--------|---------|
| PDF | txt, md |
| DOCX | txt, md, html |
| XLSX | csv, json, txt |
| PPTX | txt, md |
| HTML | txt |
| CSV | json, xlsx |
| JSON | csv |
| TXT | pdf, docx |
### 3. Search Documents
Use `scripts/search_doc.py` to find text patterns (supports regex).
```bash
python scripts/search_doc.py <file> <pattern> [-i] [-C N]
```
Flags: `-i` case-insensitive, `-C N` show N lines of context.
### 4. Summarize Documents
For summarization, combine extraction with Claude's analysis:
1. Extract text using `scripts/extract_text.py`
2. For large documents, extract section by section (e.g., page ranges for PDF)
3. Apply Claude's summarization capabilities to the extracted content
### 5. Compare Documents
For document comparison:
1. Extract text from both documents
2. Use diff tools or Claude to identify differences
3. For XLSX: extract both sheets and compare cell-by-cell
## Workflow Decision Tree
```
User request involves a document?
├── Read/extract content? → extract_text.py
├── Convert format? → convert_format.py
├── Search for text? → search_doc.py
├── Summarize? → extract_text.py + Claude analysis
├── Compare documents? → extract both + diff/Claude analysis
└── Create new document? → convert_format.py (txt -> target format)
```
## Handling Large Documents
- PDF: Use `--pages` to extract in chunks (e.g., 1-10, 11-20)
- XLSX: Use `--sheet` to process one sheet at a time
- General: Extract to file with `-o`, then read portions as needed
## Error Handling
- Missing library errors: Run `scripts/install_deps.py` to install
- Encoding issues: Try `--encoding gbk` or `--encoding gb18030` for Chinese documents
- Corrupted files: Try alternative libraries (e.g., PyPDF2 vs pymupdf for PDF)