smithery/you-n-g

text-to-docx

Converts plain text files (.txt) to Microsoft Word documents (.docx). Use when you need to create a formatted document from raw text.

Installation

$ npx skills add smithery/you-n-g --skill text-to-docx

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery/you-n-g.

npx skills add smithery/you-n-g

Browse all from smithery/you-n-g

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,396 B
  • docs SUMMARY.md 153 B

History

  1. First recorded snapshot · 0 installs

SKILL.md

Text to DOCX Skill

Description

This skill converts plain text files into .docx format using the python-docx library. It preserves line breaks by creating a new paragraph for each line in the source file.

Usage

To convert a text file, execute the following command using uv:

XDG_CACHE_HOME=/tmp/.cache UV_CACHE_DIR=/tmp/.uv-cache \
uv run --with python-docx python3 ~/deploy/configs/llm/skills/text-to-docx/scripts/txt_to_docx.py <input_txt> <output_docx>

Examples

Convert a log file to Word:

XDG_CACHE_HOME=/tmp/.cache UV_CACHE_DIR=/tmp/.uv-cache \
uv run --with python-docx python3 ~/deploy/configs/llm/skills/text-to-docx/scripts/txt_to_docx.py notes.txt notes.docx

Troubleshooting

If uv fails because it cannot write to ~/.cache/uv, use temporary cache directories:

XDG_CACHE_HOME=/tmp/.cache UV_CACHE_DIR=/tmp/.uv-cache \
uv run --with python-docx python3 ~/deploy/configs/llm/skills/text-to-docx/scripts/txt_to_docx.py <input_txt> <output_docx>

If uv is not available, ensure python-docx is installed via pip:

pip install python-docx
python3 ~/deploy/configs/llm/skills/text-to-docx/scripts/txt_to_docx.py input.txt output.docx