docx

Create and edit Word documents with tables, images, and headers.

1.2k|203|Updated Feb 6, 2025
One-click install
npx skills add https://github.com/tsinghua-fib-lab/AgentSociety --skill docx-tsinghua-fib-lab
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/tsinghua-fib-lab/AgentSociety/tree/main/extension/skills/docx
Command: npx skills add https://github.com/tsinghua-fib-lab/AgentSociety --skill docx-tsinghua-fib-lab

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires docx, pandoc, libreoffice, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill streamlines document creation, editing, and analysis for Word (.docx) files, saving professionals time and enhancing productivity.

Core Features & Use Cases

  • Document Creation: Build professional Word documents with tables, images, headers, footers, and page numbers.
  • Content Manipulation: Extract, reorganize, and manipulate content within Word documents.
  • Document Analysis: Read, analyze, and convert Word documents to other formats like PDF and images.
  • Use Case: Imagine you need to create a comprehensive report with tables and images. Use this Skill to design the layout, insert the necessary elements, and format the document to your specifications.

Quick Start

Use the docx skill to create a new Word document with the title 'Project Report' and include a table with three columns and two rows.

Frequently Asked Questions about docx

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

FAQPage Schema
How do I create a Word document with tables and images programmatically?

To create a Word document with tables and images, use this Skill to build professional .docx files by manipulating document elements like headers, footers, and page numbers via Python libraries. It handles layout design and element insertion to your specifications.

Can I convert a Word document to PDF and other formats?

Yes, you can convert Word documents to PDF and images. This Skill uses pandoc and LibreOffice to read, analyze, and transform .docx files into alternative formats, streamlining document analysis and format conversion tasks.

What's the best way to extract and reorganize content within a Word document?

The best way to extract and reorganize Word document content is using this Skill's content manipulation capabilities. It reads existing .docx files, extracts the text and structural elements, and reorganizes the content for professional documentation workflows.

Do I need pandoc and LibreOffice installed to edit existing Word documents?

Yes, you need pandoc and LibreOffice installed alongside the Python docx library. These dependencies are required for the Skill to execute document processing, handle format conversions, and perform comprehensive Word document editing tasks.

Does this approach support building professional reports with custom formatting?

Yes, this approach supports building professional reports with custom formatting. You can design layouts, insert necessary elements like tables and images, and format the Word document to meet professional documentation and report writing standards.

Why does my Word document conversion fail when processing large files?

Word document conversion may fail if pandoc or LibreOffice encounter processing limits with complex formatting or large file sizes. Ensure your environment has sufficient resources allocated for these command-line tools to handle the document manipulation smoothly.