documents

Create, edit, and verify DOCX documents through visual QA rendering.

8|12|Updated Sep 19, 2025
One-click install
npx skills add https://github.com/xpert-ai/xpert-plugins --skill documents-xpert-ai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: documents
Source: https://github.com/xpert-ai/xpert-plugins/tree/main/xpertai/skills/documents/skills/documents
Command: npx skills add https://github.com/xpert-ai/xpert-plugins --skill documents-xpert-ai

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Creating professional Word and Google Docs documents programmatically is error-prone because layout defects, styling inconsistencies, and cross-platform rendering differences often remain invisible until a human opens the final file. This skill enforces a strict render-and-iterate visual QA workflow so every page is inspected and polished before delivery.

Core Features & Use Cases

  • DOCX Authoring & Editing: Build new documents or modify existing ones with design presets, exact OOXML geometry, and style normalization for consistent, professional output.
  • Collaboration Tools: Manage tracked changes, reviewer comments, redlining, and accessibility audits with deterministic OOXML patching and safe fixes.
  • Cross-Platform Delivery: Sanitize title blocks and import local DOCX files as native Google Docs, or export print-ready PDFs with verified pagination.

Quick Start

Use the documents skill to generate a new business brief DOCX, render it to PNG images for visual inspection, and refine any spacing or layout issues until the pages are clean and ready to share.

Frequently Asked Questions about documents

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

FAQPage Schema
How do I automate Word document generation while verifying visual layout?

Automate Word document generation using a strict render-and-iterate visual QA workflow that renders DOCX files to images, inspects pages for layout defects, and applies OOXML patching until the output is polished.

Can I manage tracked changes and comments in a DOCX file programmatically?

Yes, you can manage tracked changes, reviewer comments, and redlining in DOCX files programmatically by applying deterministic OOXML patching helpers to safely modify content without breaking the document structure.

What is the best way to convert local DOCX files to native Google Docs?

The best way to convert local DOCX files to native Google Docs is to sanitize title blocks and import the files directly, ensuring formatting consistency and cross-platform delivery fidelity.

How do I enforce table geometry and styling consistency in generated Word documents?

Enforce exact table geometry and styling consistency in Word documents by applying design presets, style normalization, and OOXML geometry enforcement to guarantee professional and uniform output across platforms.

Do I need LibreOffice to inspect and polish generated DOCX documents?

Yes, you need LibreOffice headless rendering to visually inspect generated DOCX documents as PNG images, allowing you to identify and refine spacing or layout issues before final delivery.

Why does my programmatically generated DOCX file have inconsistent pagination when exported to PDF?

Inconsistent pagination during PDF export often occurs due to unmaterialized fields and cross-platform rendering differences; deterministic field materialization and visual QA resolve these layout defects.