docx
Skill by asgeirtj
Creates, edits, reviews and reads Word .docx files for an AI assistant. It suits users who need professional Word documents, tracked revisions, comments or format conversion to PDF, images or Markdown.
Install docx
Built from the published package, never by AI.
git clone --depth 1 https://github.com/asgeirtj/system_prompts_leaks /tmp/system_prompts_leaks && mkdir -p ~/.claude/skills && cp -r /tmp/system_prompts_leaks/GLM/skills/docx ~/.claude/skills/docxRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/asgeirtj/system_prompts_leaks /tmp/system_prompts_leaks && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/system_prompts_leaks/GLM/skills/docx ~/.gemini/antigravity-cli/skills/docxAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This agent skill from asgeirtj gives an assistant tools for working with Word (.docx) files. A .docx file is a ZIP archive of XML, and the skill covers creating new documents, editing existing ones, handling revisions, adding comments, formatting, and extracting text. Its routes cover create, edit, format, comment and read tasks, with optional scene guides for academic papers, reports, contracts, resumes, exams, official documents and copywriting. Setup runs through a bundled setup.sh script, and post-generation checks run through postcheck.py.
The skill's declared description also covers converting legacy .doc files to .docx, exporting DOCX to PDF, rendering pages as PNG or JPG images, and extracting Markdown or plain text. It is aimed at people who produce or review professional Word documents with an AI assistant. The bundled material is written mainly for Chinese-language documents and includes cover layout recipes and font guidance.
Written from the project's SKILL.md and checked against it.
What it can do
- CreateCreates new Word documents from scratch using the docx-js route and reference.
- EditModifies content in an existing .docx file while preserving its formatting.
- CommentAdds comments and annotations to a Word document for review.
- ReadReads and analyzes a Word document and extracts its text.
- FormatAdjusts layout, fonts and margins according to the standards in the skill.
- Scene guidesApplies document-type rules for academic, report, contract, resume, exam, official and copywriting files.
- Cover recipesProvides seven validated cover page recipes (R1 to R7) for document covers.
- postcheck.pyRuns an automated check of 14 business rules on a generated .docx file.
- Format conversionConverts .doc to .docx, and DOCX to PDF, PNG/JPG images or Markdown or plain text, per the declared description.
What you need
- Bash shell for setup.sh
- Python 3 for the scripts in the scripts folder
- docx-js library for generation code
Try asking
- Create a report on Q3 sales with a cover page and table of contents.
- Edit this contract and save the changes as a new _updated.docx file.
- Add comments to the review points in this Word document.
Good to know
- User input files are read-only by default; edits go to a new file unless the user asks for in-place editing.
- Fonts are not installed without the user's confirmation.
- The license is proprietary; see LICENSE.txt for the full terms.
- TOC page numbers need a manual field update in Word, as the skill adds a refresh hint.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: GLM/skills/docx/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md19 KB -
env_setup/setup.md12 KB -
references/chart-templates.md13 KB -
references/common-rules.md24 KB -
references/decorations.md20 KB
Show all 24 files
-
references/design-system.md77 KB -
references/docx-js-advanced.md9 KB -
references/docx-js-core.md10 KB -
references/faq.md12 KB -
references/math-formulas.md8 KB -
references/ooxml.md9 KB -
references/toc.md11 KB -
routes/comment.md3 KB -
routes/create.md12 KB -
routes/edit.md5 KB -
routes/format.md5 KB -
routes/read.md4 KB -
scenes/academic.md33 KB -
scenes/contract.md20 KB -
scenes/copywriting.md5 KB -
scenes/exam.md25 KB -
scenes/official-doc.md15 KB -
scenes/report.md15 KB -
scenes/resume.md21 KB
Alternatives to docx
All alternatives →Creates importable JSON templates for the Obsidian Web Clipper. It is for users who want to clip a site, understand the available variables, or format clipped content.
Harness Creator builds, audits, and improves the instruction and state files that help AI coding agents stay reliable across sessions. It is for developers whose agents forget context, drift out of scope, or claim work is done too early.
Guides an assistant through extracting text from scanned PDFs, photographed pages, and images with OCR. Covers backends, language packs, force-OCR, and performance tuning.
Edits a named local file in place to remove AI-writing patterns, using minimal targeted changes and post-edit verification. Built for users who explicitly ask to clean, rewrite, or humanize that specific file.
Polishes, translates, or tightens existing academic manuscript prose while preserving facts, terminology, and evidence boundaries. Made for researchers revising drafts, including Chinese-to-English translation and LaTeX layout fixes.
Adds PDF form analysis and filling, table extraction, OCR, validation and batch processing to an AI assistant. Aimed at developers who run complex or high-volume PDF workflows.
Compare with obsidian-clipper-template-creator, harness-creator or xberg-extracting-with-ocr
docx: common questions
Can this skill convert a Word file to PDF?
The declared description says it converts DOCX to PDF, images and Markdown or plain text. The visible part of the source does not show the conversion scripts in detail.
Does it change my original Word file?
No. User-provided files are read-only by default, and deliverables are written to a new file such as <stem>_updated.docx. In-place editing happens only when the user asks, and then a backup is made first.
Which Word document tasks does it support?
It supports creating and editing .docx files, handling revisions, adding comments, formatting, and extracting text. The description also lists legacy .doc to .docx conversion.
How do I install docx?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is docx free?
The code is published under the CC0-1.0 licence. The service it connects to may have its own pricing.
Is docx safe to use?
It scores 93 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to docx?
Similar skills: obsidian-clipper-template-creator, harness-creator, xberg-extracting-with-ocr, file-edit-in-place.
