How to use
- Copy the installation command and review the source package before installing it in your own agent environment.
- Check the source document for required tools, credentials and supported hosts.
- Describe your input and desired deliverable; review the output against the source material.
npx skills add https://github.com/chunpu/agent-skills --skill doc-to-txtBefore you start
- Installation does not include a model subscription, API allowance or permission to access your files.
- Repository stars and installation counts describe activity, not an independent quality or security test.
Rendered from the source repository. Headings, examples, code, tables, links, and referenced images are preserved.
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




