Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsCommunityBlog
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Authors
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

ProTermsPrivacyRefunds
Back to skills

Read Word Documents With Chinese

ASecurity

Read Microsoft Word documents (.docx and .doc) with Chinese support. Extract text, search keywords, and save as UTF-8 text files. No Microsoft Word installation required.

19 stars
0 votes
0 copies
0 views
Added 9/19/2026
ai-agentspythongobashapisecurity

Works with

terminalapi

Security Analysis

A96/100
mediumInstalls packages at runtime which could introduce malicious dependencies

Scanned 9/19/2026

Install to Claude Code

$npx -y skills add rondoflow/rondoflow --skill read-word-documents-with-chinese --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Read Word Documents With Chinese?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Read Word Documents With Chinese
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/rondoflow-read-word-documents-with-chinese/badge)](https://www.skillsdirectory.com/skills/rondoflow-read-word-documents-with-chinese)

More formats (shields.io, HTML) on the badges page.

Download with Pro
Files
SKILL.md
---
name: read-word-documents-with-chinese
description: "Read Microsoft Word documents (.docx and .doc) with Chinese support. Extract text, search keywords, and save as UTF-8 text files. No Microsoft Word installation required."
category: "Community"
author: community
version: "1.0.0"
icon: puzzle
---

# Read Word Document

A professional tool for reading Microsoft Word documents, supporting both modern .docx and legacy .doc formats with full Chinese language support.

## Features

- **Read .docx files** - Word 2007 and later format
- **Read .doc files** - Word 97-2003 format via OLE parsing
- **Auto format detection** - Automatically identifies file type
- **Full Chinese support** - Handles Chinese encoding correctly
- **Keyword search** - Search for keywords across all paragraphs
- **Export to text** - Save as UTF-8 text files
- **Document analysis** - Get document statistics and info
- **No Word required** - Works without Microsoft Word installation

## Installation

### Prerequisites

```bash
pip install python-docx olefile
```

### Install Skill

```bash
# Copy to your OpenClaw skills directory
cp -r read-word ~/.openclaw/skills/
```

## Usage

### Command Line

```bash
# Basic reading (shows first 100 paragraphs)
python ~/.openclaw/skills/read-word/read_word.py "document.docx"

# Show more content
python ~/.openclaw/skills/read-word/read_word.py "document.docx" --limit 200

# Search for keywords
python ~/.openclaw/skills/read-word/read_word.py "document.docx" --search "keyword1,keyword2"

# Save as text file
python ~/.openclaw/skills/read-word/read_word.py "document.docx" --output "output.txt"

# Show document info only
python ~/.openclaw/skills/read-word/read_word.py "document.docx" --info
```

### Python API

```python
# Method 1: Import functions
import sys
sys.path.insert(0, '~/.openclaw/skills/read-word')
from read_word import read_word_document, search_in_document

# Read document
paragraphs = read_word_document("document.docx")
for para in paragraphs:
    print(para)

# Search keywords
results = search_in_document("document.docx", ["keyword1", "keyword2"])
```

## Examples

### Example 1: Read and Analyze
```python
from read_word import read_word_document

paragraphs = read_word_document("report.docx")
print(f"Document has {len(paragraphs)} paragraphs")

# Show first 10 paragraphs
for i, p in enumerate(paragraphs[:10]):
    print(f"{i+1}. {p}")
```

### Example 2: Search Keywords
```python
from read_word import search_in_document

# Find paragraphs containing "kitchen" or "feng shui"
results = search_in_document("book.docx", ["kitchen", "feng shui"])
for r in results:
    print(r)
```

### Example 3: Batch Processing
```python
from pathlib import Path
from read_word import read_word_document

desktop = Path.home() / "Desktop"
for doc_file in desktop.glob("*.docx"):
    paragraphs = read_word_document(doc_file)
    print(f"{doc_file.name}: {len(paragraphs)} paragraphs")
```

## API Reference

### `read_word_document(filepath)`
Read a Word document and return a list of paragraphs.

**Parameters:**
- `filepath` (str|Path): Path to the Word document

**Returns:**
- `list`: List of paragraph strings

**Raises:**
- `FileNotFoundError`: If file doesn't exist
- `ValueError`: If file format is not supported

### `search_in_document(filepath, keywords)`
Search for keywords in a Word document.

**Parameters:**
- `filepath` (str|Path): Path to the Word document
- `keywords` (list): List of keywords to search for

**Returns:**
- `list`: Matching paragraphs with format "[Paragraph N] content"

### `save_as_text(paragraphs, output_path)`
Save paragraphs to a UTF-8 text file.

**Parameters:**
- `paragraphs` (list): List of paragraph strings
- `output_path` (str|Path): Output file path

### `analyze_document(filepath)`
Analyze document and return statistics.

**Returns:**
- `dict`: Contains filename, size, paragraphs count, total characters

## Troubleshooting

### Error: ModuleNotFoundError: No module named 'docx'
**Solution:** `pip install python-docx`

### Error: Legacy .doc file shows garbled text
**Reason:** OLE parsing has limitations with complex formatting
**Solution:** Convert .doc to .docx using Microsoft Word, then read

### Error: Chinese characters display incorrectly
**Reason:** Terminal encoding issue
**Solution:** Use `--output` to save to file, then open with editor

## File Support

| Format | Extension | Support Level |
|--------|-----------|---------------|
| Word 2007+ | .docx | Full |
| Word 97-2003 | .doc | Partial (text only) |
| Word 95/6.0 | .doc | Not supported |
| Rich Text | .rtf | Not supported |

## Permissions

- **Read:** User-specified Word documents
- **Write (optional):** Output .txt files when using `--output`
- **Network:** None

## Security

Risk Level: **LOW** - Local file operations only, no network access, original files are never modified.

## Changelog

### v1.0.0 (2026-03-20)
- Initial release
- Support .docx and .doc formats
- Keyword search functionality
- Text export capability
- Chinese encoding support

## Author

叶文洁 (Ye Wenjie) - Created for reading Feng Shui books and Word documents

## License

MIT License

Attribution

rondoflowrondoflow
View sourceMore from rondoflow →
SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

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 (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Related Skills

Caveman

Ultra-compressed communication mode that cuts output tokens while keeping technical accuracy. Levels: lite, full, ultra and the wenyan variants. Use for /caveman, "caveman mode", "talk like caveman", "be brief" or "less tokens".

1074701 votes

Hyperplan

Adversarial multi-agent planning skill. Self-orchestrates 5 hostile category members (unspecified-low, unspecified-high, deep, ultrabrain, artistry) via team-mode for ruthless cross-critique debate, distills only the defensible insights, then MANDATORILY hands the distilled insight bundle to the `plan` agent for executable plan formalization. Use when planning needs maximum rigor and surfacing of weak assumptions, blind spots, and over-engineering. Triggers: 'hyperplan', 'hpp', '/hyperplan', ...

693621 votes

Mcp Code Execution

Routes multi-tool workflows through MCP servers for large datasets and pipelines. Use when Bash tool overhead is limiting throughput on data-heavy tasks.

3351 votes

catchup

Recovers the conversation and failed tool calls of a previous Codex, Claude Code, Antigravity, Cline, Copilot CLI, Cursor, DeepSeek Harness, Kimi, OpenCode, Pi Agent, or ZCode session. Use when the user says "catch up", "what did the last session do", "get me up to speed", "I switched agents", asks to recover/summarize a previous session before continuing, or asks to diagnose or report a catchup failure. Do NOT use for the current conversation, git history, or any non-agent log.

691 votes

math-skill

A comprehensive mathematical reasoning skill for AI assistants — handles arithmetic to research-level problems with rigorous step-by-step reasoning, systematic verification, and transparent uncertainty handling

381 votes
View all in ai-agents →