Skip to content
Back to skills

Docx Text Extract

ASecurity

从DOCX文件中提取文本内容

  • 539 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 11, 2026
developmentpythongobash

Security analysis

A100/100

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

Scanned September 11, 2026

npx -y skills add cas-bigdatalab/piflow --skill docx_text_extract --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Docx Text Extract?

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

Security grade badge for Docx Text Extract
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/cas-bigdatalab-docx-text-extract/badge)](https://www.skillsdirectory.com/skills/cas-bigdatalab-docx-text-extract)

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: docx_text_extract
description: 从DOCX文件中提取文本内容
version: 1.0.0
category: document_processing
name_zh: 从DOCX文件中提取文本内容算子
input_params:
  - name: input_path
    type: docx_file
    description: 输入DOCX文件路径
  - name: output_path
    type: docx_file
    description: 输出DOCX文件路径
output_params:
  - name: output_path
    type: text_file
    description: 提取的文本文件(.txt)
tag: 数据解析
publisher: COMMUNITY
---

# docx_text_extract 技能

## 功能说明

该技能从DOCX文件中提取纯文本内容,保存为txt文件,适用于需要提取文档文本进行分析或处理的场景。

## 核心功能

- 提取DOCX中的文本内容
- 保持段落结构
- 支持UTF-8编码
- 自动创建输出目录

## 使用方法

```bash
python scripts/run_docx_text_extract.py --input_path <输入DOCX> --output_path <输出TXT>
```

## 参数说明

| 参数 | 类型 | 必填 | 默认值 | 说明 |
| :--- | :--- | :--- | :--- | :--- |
| input_path | string | 是 | - | 输入DOCX文件路径 |
| output_path | string | 是 | - | 输出TXT文件路径 |

## 示例

```bash
python scripts/run_docx_text_extract.py --input_path document.docx --output_path text.txt
```

## 注意事项

- 输出目录不存在时会自动创建
- 提取的文本会保持段落分隔
- 不支持提取图片中的文字(如需请使用OCR工具)
- 如果DOCX文件损坏或不是标准格式,可能提取失败

Files in this skill

  • SKILL.md1.4 KB
  • scripts/run_docx_text_extract.py2.5 KB
  • skill.json972 B

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.

Comments

Loading comments…