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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill helps users read, create, and edit DOCX documents while preserving formatting and layout fidelity across previews and renders.

Core Features & Use Cases

  • Read and review DOCX content with accurate styling and pagination.
  • Create and modify DOCX documents using python-docx with programmatic formatting and structure.
  • Render documents to PNG/JPG page images for visual validation, client reviews, and quality checks.

Quick Start

Render a DOCX file to page images and inspect the resulting pages for formatting fidelity.

Frequently Asked Questions about doc

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

FAQPage Schema
How do I render DOCX files to images for visual validation?

To render DOCX files to images for visual validation, this Skill converts documents via LibreOffice and Poppler into PDFs, then uses pdf2image to output PNG or JPG page images for layout fidelity checks.

Can I create and modify DOCX documents programmatically while preserving formatting?

Yes, you can create and modify DOCX documents programmatically while preserving formatting by utilizing python-docx within the Skill's scripts to apply structural and styling controls.

Do I need LibreOffice and Poppler to convert DOCX to PDF for rendering?

Yes, you need LibreOffice and Poppler to convert DOCX to PDF for rendering, as the workflow relies on LibreOffice for the document conversion and Poppler to support the pdf2image rendering pipeline.

What is the best way to check DOCX layout fidelity across page previews?

The best way to check DOCX layout fidelity across page previews is to render the document into individual page images, allowing you to visually inspect styling, pagination, and formatting accuracy.

Why does DOCX to image rendering require python-docx and pdf2image dependencies?

DOCX to image rendering requires python-docx for reading and editing document structures, and pdf2image for converting the intermediate PDF output into viewable images to ensure layout fidelity.