Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

DOCX工具

Skill by XiaoMaColtAI

Creates, edits, validates and converts Word DOCX files. It can turn a complete LaTeX paper into DOCX and supports math modeling paper templates, native equations, three-line tables, revisions and comments.

  • Score 84
  • 2k stars
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install DOCX工具

Built from the published package, never by AI.

git clone --depth 1 https://github.com/XiaoMaColtAI/math-modeling-skill /tmp/math-modeling-skill && mkdir -p ~/.claude/skills && cp -r /tmp/math-modeling-skill/tools/docx ~/.claude/skills/docx

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install DOCX工具 in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill works on Word DOCX files. It builds documents from an official reference template with python-docx, writes LaTeX formulas as native editable OMML equations, and creates three-line tables. It can convert a LaTeX project's main .tex file to DOCX through Pandoc, reading relative images and BibTeX references and writing a conversion manifest next to the output. It can also unpack and repack OOXML files, validate them, accept tracked changes through an isolated LibreOffice setup, and add comments and replies.

The source says the skill is for writing and checking competition papers, such as math modeling papers that follow a template. Generated files are written to the user's project folder, and the skill folder is read only. Output should still be checked by rendering the document to PDF or images, because the source notes that a successful build does not mean the layout is correct.

Written from the project's SKILL.md and checked against it.

What it can do

  • Create math modeling papersBuilds a DOCX from an official reference template with title, abstract, body, keywords and tables.
  • Native equationsConverts a supported LaTeX subset into editable Word OMML equations and replaces placeholders.
  • LaTeX paper conversionConverts a complete LaTeX project's main .tex file to DOCX using Pandoc, with citeproc for BibTeX.
  • Conversion verificationWrites a .conversion.json manifest with input hashes, Pandoc version and warnings, and verifies it later.
  • Three-line tablesAdds three-line tables to a document from a list of rows.
  • Accept revisionsAccepts tracked changes in a DOCX using an isolated LibreOffice configuration and fails on leftover markers.
  • Comments and repliesAdds comments and replies to an unpacked DOCX, failing if the parent comment is missing or IDs repeat.
  • OOXML unpack, validate and packUnpacks, validates and repacks DOCX and XLSX files using shared OOXML tools.
  • Format validationChecks structure, page count, figure and table counts, references and citations against contest rules.

What you need

  • Pandoc, available as the pandoc command, for LaTeX conversion
  • Python, for the scripts
  • LibreOffice, for accepting revisions

Try asking

  • Convert my LaTeX thesis main.tex to DOCX using the official template
  • Replace the EQ_OBJECTIVE placeholder in my Word file with a LaTeX formula
  • Accept all tracked changes in report.docx and save a clean copy

Good to know

  • Pandoc warnings block publishing by default, and no DOCX is kept on failure
  • Custom macros, LaTeX-only environments and cross-references may need fixing in Word
  • Without a CSL file, citations use Pandoc's default style, so check the required format
  • Existing output files are not overwritten unless --overwrite is given

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: tools/docx/SKILL.md, tools/docx/scripts/__init__.py, tools/docx/scripts/accept_changes.py, tools/docx/scripts/check_env.py, tools/docx/scripts/comment.py, tools/docx/scripts/equations.py, tools/docx/scripts/inspect_template_format.py, tools/docx/scripts/office/helpers/merge_runs.py. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • LICENSE.txt1 KB
  • SKILL.md7 KB
  • scripts/__init__.py1 B
  • scripts/accept_changes.py5 KB
  • scripts/check_env.py972 B
Show all 66 files
  • scripts/comment.py11 KB
  • scripts/equations.py50 KB
  • scripts/inspect_template_format.py7 KB
  • scripts/office/helpers/__init__.py0 B
  • scripts/office/helpers/merge_runs.py5 KB
  • scripts/office/helpers/simplify_redlines.py6 KB
  • scripts/office/pack.py5 KB
  • scripts/office/schemas/ISO-IEC29500-4_2016/dml-chart.xsd73 KB
  • scripts/office/schemas/ISO-IEC29500-4_2016/dml-chartDrawing.xsd7 KB
  • scripts/office/schemas/ISO-IEC29500-4_2016/dml-diagram.xsd50 KB
  • scripts/office/schemas/ISO-IEC29500-4_2016/dml-lockedCanvas.xsd624 B
  • scripts/office/schemas/ISO-IEC29500-4_2016/dml-main.xsd148 KB
  • scripts/office/schemas/ISO-IEC29500-4_2016/dml-picture.xsd1 KB
  • scripts/office/schemas/ISO-IEC29500-4_2016/dml-spreadsheetDrawing.xsd9 KB
  • scripts/office/schemas/ISO-IEC29500-4_2016/dml-wordprocessingDrawing.xsd14 KB
  • scripts/office/schemas/ISO-IEC29500-4_2016/pml.xsd82 KB
  • scripts/office/schemas/ISO-IEC29500-4_2016/shared-additionalCharacteristics.xsd1 KB
  • scripts/office/schemas/ISO-IEC29500-4_2016/shared-bibliography.xsd7 KB
  • scripts/office/schemas/ISO-IEC29500-4_2016/shared-commonSimpleTypes.xsd6 KB
  • scripts/office/schemas/ISO-IEC29500-4_2016/shared-customXmlDataProperties.xsd1 KB
  • scripts/office/schemas/ISO-IEC29500-4_2016/shared-customXmlSchemaProperties.xsd880 B
  • scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesCustom.xsd3 KB
  • scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesExtended.xsd3 KB
  • scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesVariantTypes.xsd7 KB
  • scripts/office/schemas/ISO-IEC29500-4_2016/shared-math.xsd23 KB

And 36 more files on GitHub.

Alternatives to DOCX工具

All alternatives →

Compare with obsidian-clipper-template-creator, harness-creator or xberg-extracting-with-ocr

DOCX工具: common questions

Can this convert a LaTeX paper to Word?

Yes. The source says it converts a complete .tex main file to DOCX through Pandoc, keeps formulas as editable OMML and reads relative images and BibTeX references. Results still need validation and rendering checks.

Does it overwrite my input files?

No. The source says it does not overwrite input or skill files by default, and it refuses to overwrite existing outputs unless --overwrite is used.

Does it support tracked changes and comments?

Yes. The source describes accepting tracked changes with LibreOffice and adding comments and replies to unpacked DOCX files.

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 public, but no licence file was found, so check the repository before commercial use.

Is DOCX工具 safe to use?

It scores 84 of 100. Grades: maintenance A, licence F, 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.

DOCX工具 Install

Add to stack

Loading.