Skip to content
Back to skills

Doc Handler

ASecurity

读取和编辑 Word、PDF、Excel 文档。使用 python-docx、pdfplumber、openpyxl

  • 21 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 7, 2026
toolspythonbash

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 7, 2026

npx -y skills add modbender/skill-library-mcp --skill doc-handler --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Doc Handler?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Doc Handler
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/modbender-doc-handler/badge)](https://www.skillsdirectory.com/skills/modbender-doc-handler)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: doc-handler
description: 读取和编辑 Word、PDF、Excel 文档。使用 python-docx、pdfplumber、openpyxl
read_when:
  - 读取文档
  - 编辑文档
  - 解析 PDF
  - 处理 Excel
---

# doc-handler - 文档处理工具

## 功能

| 功能 | 命令 |
|------|------|
| 读取 Word | `python3 -m doc_handler read docx 文件` |
| 读取 PDF | `python3 -m doc_handler read pdf 文件` |
| 读取 Excel | `python3 -m doc_handler read xlsx 文件` |
| 写入 Word | `python3 -m doc_handler write docx 文件 "内容"` |

## 使用示例

```bash
# 读取 Word 文档
python3 -c "from docx import Document; d = Document('file.docx'); print('\\n'.join([p.text for p in d.paragraphs]))"

# 读取 PDF
python3 -c "import pdfplumber; with pdfplumber.open('file.pdf') as pdf: print(pdf.pages[0].extract_text())"

# 读取 Excel
python3 -c "import pandas; df = pandas.read_excel('file.xlsx'); print(df)"
```

## 依赖

- python-docx
- pdfplumber
- openpyxl
- pandas

Files in this skill

  • SKILL.md1016 B
  • doc_handler.py1.6 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in tools →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.