一键导入
office-word
Read and write Microsoft Word (.docx) files. Use when the user asks to read, analyze, create, or convert Word documents.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Read and write Microsoft Word (.docx) files. Use when the user asks to read, analyze, create, or convert Word documents.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Read and write Microsoft Excel (.xlsx) files. Use when the user asks to read, analyze, create, or convert Excel spreadsheets.
Read and write Microsoft PowerPoint (.pptx) files. Use when the user asks to read, analyze, create, or convert PowerPoint presentations.
Convert PDF files to Markdown format and create PDFs from Markdown. Use when the user asks to read, analyze, extract content from PDFs, or generate PDF documents.
| name | office-word |
| description | Read and write Microsoft Word (.docx) files. Use when the user asks to read, analyze, create, or convert Word documents. |
Converts a .docx to Markdown:
uv run --with python-docx ~/.kiro/skills/office-word/scripts/read_docx.py "<path_to_docx>"
Save as .md file:
uv run --with python-docx ~/.kiro/skills/office-word/scripts/read_docx.py "<path_to_docx>" "<output.md>"
Pipe markdown content directly into the script using --stdin:
echo '<markdown_content>' | uv run --with python-docx ~/.kiro/skills/office-word/scripts/write_docx.py --stdin "<output.docx>"
For multi-line content, use a heredoc:
uv run --with python-docx ~/.kiro/skills/office-word/scripts/write_docx.py --stdin "<output.docx>" <<'EOF'
# Title
Some paragraph with **bold** text.
EOF
If a .md file already exists, use it directly:
uv run --with python-docx ~/.kiro/skills/office-word/scripts/write_docx.py "<input.md>" "<output.docx>"
If you had to create the .md file as an intermediate step (it didn't exist before), delete it after generating the docx.
--stdin to avoid intermediate files..md file, convert, then delete it.