Pulls text and tables out of .docx files using python-docx, which is handy when you need to process Word documents without opening Microsoft Office. It runs via WSL and handles path conversion from Windows to WSL format automatically. The extracted content comes out plain, so you lose all formatting, images, and embedded objects. Works well for turning reports or documents into markdown or feeding their content into other tools. Main gotcha is making sure python-docx is installed correctly, since there's a naming conflict with an older package called docx that'll break things if you grab the wrong one.

skills.sh installs
309
last updated
Aug 21, 2026

Install

$ npx -y skills add childbamboo/claude-code-marketplace-sample --skill docx-reader --agent claude-code

Installs into .claude/skills of the current project.

Files

DOCX Reader

Microsoft Word (.docx) ファイルをテキスト形式で読み込むスキルです。

クイックスタート

基本的な使い方

# WSL環境でPythonスクリプトを実行
wsl python3 scripts/read_docx.py "/mnt/c/path/to/file.docx"

Markdown形式で保存

  1. スクリプトでテキスト抽出
  2. Write ツールで .md ファイルに保存

前提条件

python-docx パッケージが必要です:

wsl pip3 install python-docx

使用例

例1: .docx ファイルを読み込んで内容を表示

User: "C:\Users\keita\repos\file.docx を読み込んで"
Assistant:
1. Windowsパスを WSL パスに変換: /mnt/c/Users/keita/repos/file.docx
2. wsl python3 scripts/read_docx.py を実行
3. 抽出されたテキストを表示

例2: .docx を Markdown に変換して保存

User: "申請書.docx を Markdown に変換して保存"
Assistant:
1. scripts/read_docx.py でテキスト抽出
2. Markdown形式で整形
3. Write ツールで 申請書.md に保存
4. 保存完了を報告

ワークフロー

単一ファイルの読み込み

  1. ユーザーが .docx ファイルパスを指定
  2. Windows パスを WSL パス形式に変換 (C:\ → /mnt/c/)
  3. wsl python3 scripts/read_docx.py を実行
  4. 抽出されたテキストを表示または保存

複数ファイルの一括処理

  1. Glob で .docx ファイルを検索
  2. 各ファイルに対してスクリプトを実行
  3. 結果をまとめて報告

スクリプト詳細

Python スクリプトは scripts/read_docx.py に配置されています。

主な機能:

  • 段落テキストの抽出
  • テーブルデータの抽出
  • エラーハンドリング

使い方:

python scripts/read_docx.py <file_path>

制限事項

Sponsors

Details

Repository
github.com/childbamboo/claude-code-marketplace-sample
Categories
Python, Office & Documents
First seen
Jun 3, 2026

More from childbamboo/claude-code-marketplace-sample

All 3

Recommended

More Python
1silvainfm avatarstreamlitsilvainfm/claude-skillsFast Python framework for building interactive web apps, dashboards, and data visualizations without HTML/CSS/JavaScript. Use when user wants to create data app308skills.sh installs
2agno-agi avatarsystem-infoagno-agi/agnoInspect the host operating system, Python runtime, and local files305skills.sh installs
3davila7 avatarfluidsimdavila7/claude-code-templatesFramework for computational fluid dynamics simulations using Python. Use when running fluid dynamics simulations including Navier-Stokes equations (2D/3D), shal301skills.sh installs
4haaaiawd avatarnexus-queryhaaaiawd/nexus-skillsPrecise, instant code structure queries for active development — answer 'who depends on this interface before I refactor it', 'how many modules break if I chang298skills.sh installs
5davila7 avatarkegg-databasedavila7/claude-code-templatesDirect REST API access to KEGG (academic use only). Pathway analysis, gene-pathway mapping, metabolic pathways, drug interactions, ID conversion. For Python wor295skills.sh installs
6mhattingpete avatarcode-executionmhattingpete/claude-skills-marketplaceExecute Python code locally with marketplace API access for 90%+ token savings on bulk operations. Activates when user requests bulk operations (10+ files), com293skills.sh installs