documents

Create, edit, redline, and comment on DOCX files with render-based visual verification.

Updated Sep 19, 2026
One-click install
npx skills add https://github.com/Ab0umar/selrs.cc.BU --skill documents-ab0umar
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: documents
Source: https://github.com/Ab0umar/selrs.cc.BU/tree/main/.codex/plugins/cache/openai-primary-runtime/documents/26.423.10653/skills/documents
Command: npx skills add https://github.com/Ab0umar/selrs.cc.BU --skill documents-ab0umar

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve? Creating or editing Word documents programmatically often produces layout defects like clipped text, broken tables, and awkward page breaks that text-level inspection cannot catch. This Skill enforces a render-and-inspect workflow so every DOCX is visually verified before delivery. ## Core Features & Use Cases - Document Creation & Editing: Author DOCX files with python-docx or apply targeted OOXML patches for tracked changes, comments, hyperlinks, and fields. - Visual QA Pipeline: Render any DOCX to per-page PNG images with render_docx.py and iterate until the layout is clean. - Review & Publishing Utilities: Accept tracked changes, strip or add comments, redact sensitive text, scrub metadata, run accessibility audits, and merge documents. - Use Case: Generate a polished multi-page report with styled tables and captions, render it to page images, fix spacing issues, then deliver the final DOCX with tracked changes accepted and comments removed. ## Quick Start Use the documents skill to create a professional report as a DOCX file, render it to page images for review, and deliver the final document.

Frequently Asked Questions about documents

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

FAQPage Schema
How do I create a DOCX file programmatically with proper formatting?▼

Author the document with python-docx for paragraphs, runs, styles, tables, and headers, then render it to PNG page images with render_docx.py to visually verify layout. Iterate on spacing, tables, and page breaks until every page is clean before delivering.

How do I add tracked changes to a Word document in Python?▼

Use the add_tracked_replacements.py script to generate w:del and w:ins elements for old-to-new text replacements, which also enables trackRevisions in settings.xml. For accepting or rejecting changes later, use accept_tracked_changes.py with accept or reject mode.

Can I render a DOCX to images without LibreOffice installed?▼

Yes, render_docx.py defaults to the artifact-tool renderer, which produces per-page PNGs without requiring LibreOffice. LibreOffice is only an optional cross-check via --renderer libreoffice when a soffice binary is already available.

How do I remove comments from a Word document before final delivery?▼

Run scripts/comments_strip.py with the input DOCX and an output path to remove all comments. You can also extract comments to JSON first with comments_extract.py if you need a record of the review feedback.

Why does my generated DOCX have layout problems even though the content is correct?▼

Text extraction and XML inspection miss visual defects like clipping, overlap, broken tables, and header/footer issues. Render the document to page PNGs and inspect every page at full zoom, then fix spacing, column widths, or page breaks and re-render.

Does the accessibility audit fix all WCAG issues in a DOCX?▼

No, a11y_audit.py is not a full WCAG checker. It reports heading level skips, missing image alt text, tables without header rows, and non-descriptive hyperlinks, and can mechanically fill alt text from filenames or mark first table rows as headers.