Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
chunpu avatar

Doc To Txt

  • 49 installs
  • 32 repo stars
  • Updated April 1, 2026
  • chunpu/agent-skills

Converts DOC, DOCX, and PDF files to plain TXT via a bundled uv-run Python script, with an optional output path.

About

Extracts text from DOC, DOCX, and PDF files into plain TXT using a bundled Python script run with uv. A developer uses it to pull raw text out of documents for downstream processing.

  • Supports .doc, .docx, and .pdf inputs
  • Optional --output path, defaults to same-name .txt beside the source

Doc To Txt by the numbers

  • 49 all-time installs (skills.sh)
  • Ranked #367 of 688 Office & Documents skills by installs in the Skillselion catalog
  • Data as of Jul 28, 2026 (Skillselion catalog sync)
npx skills add https://github.com/chunpu/agent-skills --skill doc-to-txt

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs49
repo stars32
Last updatedApril 1, 2026
Repositorychunpu/agent-skills

What it does

Converts DOC, DOCX, and PDF files to plain TXT via a bundled uv-run Python script, with an optional output path.

Files

SKILL.mdMarkdownGitHub ↗

Doc to TXT 文档转换

将 DOC、DOCX、PDF 文件转换为 TXT 纯文本格式。

使用方法

uv run {baseDir}/scripts/convert.py <输入文件路径> [--output <输出文件路径>]

参数说明

参数说明
<输入文件路径>要转换的文档文件(支持 .doc, .docx, .pdf)
--output可选,输出 txt 文件路径(默认同目录同名 .txt)

示例

转换 PDF 到 TXT:

uv run skills/doc-to-txt/scripts/convert.py document.pdf

指定输出文件:

uv run skills/doc-to-txt/scripts/convert.py report.docx --output output.txt

Related skills

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.