Handles Word document creation, editing, and analysis through a combination of pandoc, docx-js, and direct XML manipulation. Use it when you need to generate professional documents with proper formatting (tables of contents, headings, page numbers), extract content from existing files, or accept tracked changes. The skill is opinionated about implementation details that matter: it defaults to US Letter instead of A4, insists on dual-width specifications for tables to avoid rendering bugs across platforms, and warns against unicode bullet characters in favor of proper numbering configs. It's particularly thorough on the footguns, like how docx-js handles landscape orientation or why you should never use percentage-based table widths if Google Docs compatibility matters.

skills.sh installs
264
GitHub stars
22
last updated
Aug 21, 2026

Install

$ npx -y skills add jim60105/copilot-prompt --skill docx --agent claude-code

Installs into .claude/skills of the current project.

Files

DOCX creation, editing, and analysis

Overview

A .docx file is a ZIP archive containing XML files.

Quick Reference

TaskApproach
Read/analyze contentpandoc or unpack for raw XML
Create new documentUse docx-js - see Creating New Documents below
Edit existing documentUnpack → edit XML → repack - see Editing Existing Documents below

Converting .doc to .docx

Legacy .doc files must be converted before editing:

python scripts/office/soffice.py --headless --convert-to docx document.doc

Reading Content

# Text extraction with tracked changes
pandoc --track-changes=all document.docx -o output.md

# Raw XML access
python scripts/office/unpack.py document.docx unpacked/

Converting to Images

python scripts/office/soffice.py --headless --convert-to pdf document.docx
pdftoppm -jpeg -r 150 document.pdf page

Accepting Tracked Changes

To produce a clean document with all tracked changes accepted (requires LibreOffice):

python scripts/accept_changes.py input.docx output.docx

Creating New Documents

Sponsors

Details

Repository
github.com/jim60105/copilot-prompt
Categories
Documentation, AI & Agent Building, Office & Documents
First seen
Jun 3, 2026

More from jim60105/copilot-prompt

All 2
1balloob avatarhome-assistantballoob/llm-skillsUse this if the user wants to connect to Home Assistant or leverage Home Assistant in any shape or form inside their project. Guide users integrating Home Assis261skills.sh installs
2ersinkoc avatarproject-architectersinkoc/project-architectDocumentation-first project planning that produces implementation-ready blueprints and single-shot coding agent prompts. Generates 4 interconnected docs — SPECI261skills.sh installs
3pedronauck avatarbuilding-componentspedronauck/skillsGuide for building modern, accessible, and composable UI components. Use when building new components, implementing accessibility, creating composable APIs, set259skills.sh installs
4davila7 avatarcrafting-effective-readmesdavila7/claude-code-templatesUse when writing or improving README files. Not all READMEs are the same — provides templates and guidance matched to your audience and project type.258skills.sh installs
5pedronauck avatarcrafting-effective-readmespedronauck/skillsUse when writing or improving README files. Not all READMEs are the same — provides templates and guidance matched to your audience and project type.254skills.sh installs
6tech-leads-club avatarexcalidraw-studiotech-leads-club/agent-skillsGenerate Excalidraw diagrams from natural language descriptions. Outputs .excalidraw JSON files openable in Excalidraw. Use when asked to "create a diagram", "m251skills.sh installs