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-codeInstalls 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
| Task | Approach |
|---|---|
| Read/analyze content | pandoc or unpack for raw XML |
| Create new document | Use docx-js - see Creating New Documents below |
| Edit existing document | Unpack → 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
