print-docx

Generate print-ready .docx documents conforming to the Martinez Methods print specification.

Updated Apr 11, 2026
One-click install
npx skills add https://github.com/gozonerd/shadow-ai-assessment --skill print-docx-gozonerd
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: print-docx
Source: https://github.com/gozonerd/shadow-ai-assessment/tree/main/.claude/skills/print-docx
Command: npx skills add https://github.com/gozonerd/shadow-ai-assessment --skill print-docx-gozonerd

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve? Manually formatting Word documents for print is error-prone and inconsistent — fonts, margins, heading styles, page size, and citation formats drift across documents. This Skill encodes the complete Martinez Methods Print Optimized Spec so every generated .docx file follows identical, correct formatting without manual spec lookup. ## Core Features & Use Cases - Spec-encoded DOCX generation: Produces print-ready .docx files with Lato typography, US Letter page size, 1-inch margins, numbered headings, headers/footers, and APA 7th citations baked in. - Reusable Node.js template: Ships a docx-js template with pre-configured styles, numbering, tables, title page, and table of contents — only the content sections need editing. - Naming convention enforcement: Applies Martinez Methods file naming (PREFIX_Description_YYYY-MM-DD_vXX_I_PRINT.docx) automatically. - Use Case: Convert a markdown assessment report into a branded, print-optimized Word document with a title page, TOC, numbered headings, and consistent tables in one workflow. ## Quick Start Ask the AI to generate a print-optimized docx from your markdown document using the Martinez Methods print spec.

Frequently Asked Questions about print-docx

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

FAQPage Schema
How do I generate a print-optimized docx from markdown?

Provide the markdown source, then the Skill builds a JSON config with title, version, date, and authors, writes a Node.js script from the docx-js template, installs the docx package, and runs the script to produce the .docx file.

What Node.js library generates Word documents programmatically?

The docx npm package (docx-js) generates Word documents programmatically using Document, Paragraph, Table, and Header/Footer classes. This Skill's template pre-configures it with Martinez Methods styles, numbering, and page layout.

Why does docx-js produce A4 pages instead of US Letter?

docx-js defaults to A4 page size. You must explicitly set the page size to width 12240 and height 15840 DXA for US Letter, otherwise the generated document will have incorrect dimensions for US printing.

Why do tables break or misalign in generated docx files?

Tables fail when using WidthType.PERCENTAGE or when the table width does not equal the sum of columnWidths. Always use WidthType.DXA, set columnWidths on the table, and set matching width on each cell.

Can I use unicode bullet characters in docx-js lists?

No. Unicode bullet characters render inconsistently in Word. Use LevelFormat.BULLET with a numbering configuration instead, which produces native Word list formatting with proper indentation.