
Document Parser
- 1 installs
- Updated April 17, 2026
- hamsterider-m/personal-skills
Parses PDF, DOCX, EPUB, PPTX, and XLSX files or URLs and returns the extracted text content.
About
A document parser that extracts text from common file formats following the content-bridge standard interface. A developer uses it to turn local or remote documents into plain text for downstream processing.
- Supports PDF, DOCX, EPUB, PPTX, and XLSX
- Accepts local file paths or URLs
Document Parser by the numbers
- 1 all-time installs (skills.sh)
- Ranked #565 of 688 Office & Documents skills by installs in the Skillselion catalog
- Data as of Aug 2, 2026 (Skillselion catalog sync)
npx skills add https://github.com/hamsterider-m/personal-skills --skill document-parserAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 1 |
|---|---|
| Last updated | April 17, 2026 |
| Repository | hamsterider-m/personal-skills ↗ |
What it does
Parses PDF, DOCX, EPUB, PPTX, and XLSX files or URLs and returns the extracted text content.
Files
文档解析器
解析各类文档格式,提取文本内容。
支持格式
- DOCX
- EPUB
- PPTX
- XLSX
接口
遵循 content-bridge 标准接口
使用
document-parser "/path/to/file.pdf"
document-parser "https://example.com/doc.pdf"#!/usr/bin/env python3
"""Document parser using markitdown"""
import sys
import json
from datetime import datetime
def extract(path, options=None):
"""Extract content from document"""
options = options or {}
try:
# TODO: Implement using markitdown
# For now, return placeholder
return {
"content": f"# Document Content\n\nPath: {path}\n\n(Implementation pending - use markitdown)",
"metadata": {
"source": path,
"title": path.split('/')[-1],
"date": datetime.now().isoformat(),
"extractor": "document-parser"
},
"status": "success"
}
except Exception as e:
return {
"content": "",
"metadata": {},
"status": "error",
"error": str(e)
}
if __name__ == "__main__":
if len(sys.argv) < 2:
print("Usage: document-parser <path>")
sys.exit(1)
result = extract(sys.argv[1])
print(json.dumps(result, indent=2, ensure_ascii=False))
Related skills
Office & Documentspipelines