One-click install
npx skills add https://github.com/ChatAndBuild/chatchat-skills --skill docx-chatandbuild
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/ChatAndBuild/chatchat-skills/tree/main/skills/docx
Command: npx skills add https://github.com/ChatAndBuild/chatchat-skills --skill docx-chatandbuild

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires docx, and includes scripts (resource) and assets (resource) components.

What problem does it solve?

This Skill streamlines the creation, editing, and manipulation of Word documents, offering a comprehensive toolkit for efficient document management and formatting.

Core Features & Use Cases

  • Document Creation: Generate new Word documents from scratch or based on templates.
  • Document Editing: Modify existing documents with robust XML editing capabilities.
  • Formatting: Apply complex formatting such as tables, images, and headers/footers.
  • Use Case: If you need to create a comprehensive report with tables, images, and headers, this skill can automate the process with detailed XML manipulation.

Quick Start

Generate a new Word document with a custom style and formatting using the docx skill. Command: 'create docx with title "My Report" and include table with data from "data.csv" and images from "images folder"'

Frequently Asked Questions about docx

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

FAQPage Schema
How do I generate a Word document with custom formatting using JavaScript?

You generate a Word document with custom formatting by manipulating the XML structure using the docx-js library. This approach allows you to programmatically create text, apply styles, and insert tables or images into a .docx file.

Can I edit an existing .docx file and add tables and headers programmatically?

Yes, you can edit an existing .docx file to add tables and headers using robust XML editing capabilities. The process modifies the underlying document structure directly, enabling precise formatting and presentation updates in professional reports.

What is the best way to automate report generation from CSV data into a Word document?

Automating report generation from CSV data into a Word document is best handled through programmatic XML manipulation. By mapping CSV rows to table structures, you can seamlessly inject external data into formatted .docx templates.

Does docx-js support complex document formatting like images and footers for professional reports?

Yes, docx-js supports complex document formatting including images, headers, and footers for professional reports. It handles the precise XML manipulation required to embed these elements directly into the generated Word document.

What are the limitations of using XML manipulation for Word document generation?

Using XML manipulation for Word document generation requires familiarity with the docx-js library structure to avoid formatting errors. Complex document modifications are restricted by the capabilities of the underlying JavaScript XML parser.