One-click install
npx skills add https://github.com/Sanmoo/dotfiles --skill docx-sanmoo
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/Sanmoo/dotfiles/tree/main/opencode/.config/opencode/skills/docx
Command: npx skills add https://github.com/Sanmoo/dotfiles --skill docx-sanmoo

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires python-docx, lxml, pandoc, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill simplifies the process of creating, editing, and extracting content from Word (.docx) files, reducing manual effort.

Core Features & Use Cases

  • Document Manipulation: Create, update, and format Word documents efficiently.
  • Content Extraction and Conversion: Extract text, graphics, and comments; convert documents to other formats like PDF.
  • Use Case: Generate a fully formatted report with tables and images from structured data, then convert it to PDF for sharing.

Quick Start

Use this skill to generate a professional Word document with a title and table, then save it as a .docx file.

Frequently Asked Questions about docx

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate Word document creation from structured data?

Automating Word document creation involves using python-docx scripts to map structured data into templates, generating formatted reports with tables and images, and saving the output as a .docx file.

Can I convert Word documents to PDF format programmatically?

Yes, you can convert Word documents to PDF format programmatically by leveraging pandoc dependencies to transform .docx files into PDFs for streamlined sharing and content conversion.

What is the best way to extract text and graphics from a .docx file?

The best way to extract text and graphics from a .docx file is by utilizing python-docx and lxml to parse document elements, enabling efficient content extraction and restructuring for document management.

Does python-docx support complex formatting and template creation for business reporting?

Yes, python-docx supports complex formatting and template creation for business reporting, though it requires additional scripting with lxml to handle intricate content insertion and document formatting workflows.

What are the limitations of using python-docx for document automation?

Limitations of using python-docx for document automation include the need for additional scripting and dependencies like lxml and pandoc to handle complex formatting, advanced content insertion, and format conversions effectively.