Agent skill

DOCX Toolkit

by borghei in borghei/Claude-Skills

Audit Microsoft Word (.docx) documents for heading hierarchy, comments, tracked changes, broken cross-references, and style consistency.

MITAuto-check passedDocuments & Office

Install DOCX Toolkit

skills CLI
$ npx skills add borghei/Claude-Skills --skill docx-toolkit -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install borghei/Claude-Skills docx-toolkit --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/borghei/Claude-Skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/documents/docx-toolkit .claude/skills/docx-toolkit && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
docx-toolkit
GitHub stars
881
Token cost
~1.3k tokens
SKILL.md length
548 words
Files
5 (incl. scripts, references, assets)
Skills in repo
349
Repo updated
First seen
Licence
MIT

At a glance

Audit Microsoft Word (.docx) documents for heading hierarchy, comments, tracked changes, broken cross-references, and style consistency.

  • Works in 3 steps: Run: python scripts/docx_auditor.py… → Review the audit output → Re-run until clean
  • Reviewing a contract draft
  • SKILL.md covers Table of Contents, Keywords, Clarify First and Quick Start, plus 6 more sections
  • Runs Python scripts from its folder; calls python

What it does

DOCX Toolkit is an agent skill from borghei/Claude-Skills. Audit Microsoft Word (.docx) documents for heading hierarchy, comments, tracked changes, broken cross-references, and style consistency. Use when reviewing a contract draft, preparing a document for handoff, or enforcing a style guide.

Its SKILL.md is about 1.3k tokens, which your agent loads only when the skill is triggered. The skill folder holds 7 other files, including scripts, reference files and assets (for example `assets/handoff_checklist_template.md`, `assets/style_compliance_template.md` and `references/docx_review_checklist.md`).

It sits in Documents & Office, covering Word documents. It works with Microsoft Word. The repository describes itself as: 385 AI skills, 77 expert agents, and 900 stdlib Python tools for every team: engineering, PM, marketing, C-level, compliance, business ops, research, and a LinkedIn toolkit… The licence is MIT.

When your agent uses it

  • Reviewing a contract draft
  • Preparing a document for handoff
  • Enforcing a style guide

Example prompts

  • “/docx-toolkit”

Requirements

  • Python 3

Workflow steps

3 steps, taken from the first numbered list in SKILL.md.

  1. Run: python scripts/docx_auditor.py document.docx
  2. Review the audit output
  3. Re-run until clean

What it can do on your machine

Read from SKILL.md and the folder at commit 4a698e8. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 1 file in scripts/ (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • python

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

DOCX Toolkit loads about 1.3k tokens when it runs, and up to ~1.9k if it reads all its reference files. Until then it costs about 62 tokens; SKILL.md has 548 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~62
When it runs · the whole SKILL.md, loaded when a task matches
~1.3k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~1.9k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from borghei/Claude-Skills at commit 4a698e8, republished under its MIT licence (© borghei). 548 words, ~1,286 tokens.

Download SKILL.mdSave it as .claude/skills/docx-toolkit/SKILL.md (or your agent's skills folder). This skill also uses 4 other files; get the full folder from GitHub.
name
docx-toolkit
description
Audit Microsoft Word (.docx) documents for heading hierarchy, comments, tracked changes, broken cross-references, and style consistency. Use when reviewing a contract draft, preparing a document for handoff, or enforcing a style guide.
license
MIT + Commons Clause
metadata.version
1.0.0
metadata.author
borghei
metadata.category
documents
metadata.domain
document-automation
metadata.updated
2026-05-04
metadata.python-tools
docx_auditor.py
metadata.tech-stack
docx, OOXML

Docx Toolkit

Audit .docx files using the standard library only — no python-docx required. Reads OOXML directly with zipfile + xml.etree.


Table of Contents


Keywords

docx, Word, Microsoft Word, document, document review, comments, tracked changes, redline, headings, style guide, word count, document audit


Clarify First

Before running the audit, confirm these inputs. If any is unknown or vague, ASK — do not assume:

  • Audit purpose (pre-handoff cleanup, contract-review triage, or style-guide enforcement) — selects the workflow and the thresholds you apply
  • Recipient (external customer, opposing counsel, internal) — sets the tolerance for leftover comments and tracked changes
  • Allowed style set (for style-guide enforcement) — defines what counts as a non-conforming style

Stop rule: ask only the 2-3 that most change the output. If the user says "just draft it," proceed and list your assumptions at the top of the artifact.

Quick Start

bash
python scripts/docx_auditor.py contract.docx

Outputs: word count, paragraph count, heading hierarchy, comment count, tracked-changes status, hyperlink count, list of unique paragraph styles used.


Core Workflows

Workflow 1: Pre-Handoff Document Audit

Goal: Catch the issues that embarrass a sender — leftover comments, unresolved track changes, broken heading hierarchy — before the document leaves.

Steps:

  1. Run: python scripts/docx_auditor.py document.docx
  2. Review the audit output:
    • Comment count > 0 → resolve or remove before sending
    • Tracked changes detected → accept or reject before sending
    • Heading-hierarchy gaps (H1 → H3 with no H2) → restructure
    • Style sprawl (more than 8 paragraph styles) → consolidate
  3. Re-run until clean

Time Estimate: 5-15 minutes per document.

Workflow 2: Contract Review Triage

Goal: Quantify how much rework a returned contract needs before reading it line-by-line.

Steps:

  1. Run audit on the returned .docx
  2. Comment count > 20 or tracked-change paragraphs > 30% → expect a heavy review pass; schedule time
  3. Comment count < 5 → likely cosmetic; quick turnaround possible
  4. Use references/docx_review_checklist.md for the actual content review

Time Estimate: 1 minute per document for triage.

Show full SKILL.md (236 more words)Show less
Workflow 3: Style-Guide Enforcement

Goal: Detect documents drifting from your style guide before they ship to a customer.

Steps:

  1. Define allowed styles in your style guide (see assets/style_compliance_template.md)
  2. Run audit on candidate documents
  3. Flag any document using styles outside the allowed set
  4. Map non-conforming paragraphs back to standard styles

Time Estimate: 2-5 minutes per document.


Tools

docx_auditor.py

Reads a .docx file as a ZIP archive and parses OOXML directly. No external dependencies.

bash
# Human-readable
python scripts/docx_auditor.py document.docx

# JSON
python scripts/docx_auditor.py document.docx --json

Reports:

  • Word and paragraph counts
  • Heading hierarchy (with gap detection)
  • Number of comments
  • Whether tracked changes are present
  • Unique paragraph styles used
  • Hyperlink count
  • Image count
  • Table count

Limits: This tool reads existing docx files. For generating docx, use the templates in assets/ and edit in Word, or install python-docx separately.


Reference Guides

  • references/docx_review_checklist.md — Pre-handoff checklist; common rework triggers; mistakes that survive automated audits

Templates

  • assets/style_compliance_template.md — Format for declaring allowed paragraph styles
  • assets/handoff_checklist_template.md — Pre-send checklist with sign-off boxes

Best Practices

  • Audit before every external send. A 30-second audit catches 80% of avoidable embarrassment.
  • Resolve comments before "Final v3.docx". Files named "final" with active comments are how lawyers get tickled.
  • Lock heading hierarchy. H1 → H3 with no H2 breaks navigation, accessibility, and table-of-contents generation.
  • Prefer styles over inline formatting. A style change in one place beats hundreds of inline overrides.

Integration Points

  • Pairs with legal/ skills for contract redlines
  • Pairs with marketing/copywriting/ for content review
  • Used by c-level-advisor/board-deck-builder for board-pack documents

© borghei, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 4 other files (scripts, references, assets) in documents/docx-toolkit of borghei/Claude-Skills.

  • SKILL.md
  • assets/handoff_checklist_template.md
  • assets/style_compliance_template.md
  • references/docx_review_checklist.md
  • scripts/docx_auditor.py

Open the folder on GitHubat commit 4a698e8

Compare with similar skills

DOCX Toolkit next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

DOCX Toolkit compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
DOCX Toolkit this skillborghei/Claude-Skills881—~1.3kAutomated safety check: PassMIT
MarkitdownImCa0/just-laws78114 repos~3.2kAutomated safety check: NotesMIT
DOCXrvdbreemen/OTGW-firmware20733 repos~4.3kAutomated safety check: PassProprietary
Gzh Designisjiamu/gzh-design-skill3.9k1 repos~2.2kAutomated safety check: PassAGPL-3.0
Word Document Reader and WriterHKUDS/DeepTutor41k—~2.5kAutomated safety check: PassApache-2.0
GenOffice Document CLIgenspark-ai/genoffice8.9k—~19kAutomated safety check: PassApache-2.0

Similar skills

  • Markitdown

    ImCa0/just-laws

    Convert files and office documents to Markdown. An agent skill from ImCa0/just-laws.

    781 GitHub starsUsed in 14 repos~3.2k tokens
    Documents & OfficeAuto-check: notes
  • DOCX

    rvdbreemen/OTGW-firmware

    A skill your agent uses whenever the user wants to create, read, edit, or manipulate Word documents (.docx files).

    207 GitHub starsUsed in 33 repos~4.3k tokens
    Documents & OfficeAuto-check passed
  • Gzh Design

    isjiamu/gzh-design-skill

    微信公众号文章排版引擎,将 Markdown 转换为可直接粘贴到公众号编辑器的 HTML。主题风格从 references/theme-index.md 注册的自定义主题库中选取,自动章节编号、关键词下划线标记、引言卡片、目录导航、代码块、图片/GIF、作者签名。支持 Markdown / Word(.docx) / PDF / 纯文本输入(非 Markdown…

    3.9k GitHub starsUsed in 1 repo~2.2k tokens
    Documents & OfficeAuto-check passed
  • Reads, creates and edits Word .docx files with python-docx, and drops to raw OOXML for tracked changes, comments and byte-exact edits.

    41k GitHub stars~2.5k tokensUpdated today
    Documents & OfficeAuto-check passed
  • GenOffice Document CLI

    genspark-ai/genoffice

    Creates, converts, reads and edits real pptx, xlsx, docx and PDF files locally through the genoffice command line.

    8.9k GitHub stars~19k tokensUpdated today
    Documents & OfficeAuto-check passed
  • BiSheng DOCX Builder

    dataelement/bisheng

    Builds or edits Word .docx documents inside BiSheng's code executor with python-docx, handling Chinese fonts, tables of contents, page numbers and official-document layout.

    12k GitHub stars~2.6k tokensUpdated today
    Documents & OfficeAuto-check passed

More from borghei/Claude-Skills

All 349 skills in this repo
  • Agents In The Team

    borghei/Claude-Skills

    Run delivery when AI coding and ops agents take tickets. An agent skill from borghei/Claude-Skills.

    881 GitHub stars~4.2k tokensUpdated today
    Auto-check passed
  • AI Content Disclosure

    borghei/Claude-Skills

    Check AI-generated marketing content and reviews for required disclosures under the EU AI Act, FTC rules and platform AI-label policies.

    881 GitHub stars~3.4k tokensUpdated today
    Auto-check passed
  • AI Prototyping

    borghei/Claude-Skills

    Idea to AI-generated prototype to customer validation to engineering handoff.

    881 GitHub stars~3.6k tokensUpdated today
    Auto-check passed
  • Analytics Engineer

    borghei/Claude-Skills

    Analytics engineering across data modeling, dbt, transformation, and semantic layers.

    881 GitHub stars~3.4k tokensUpdated today
    Auto-check passed
  • Ansoff Matrix

    borghei/Claude-Skills

    Ansoff Matrix — 4-quadrant framework for growth options: market penetration, market/product development, and diversification.

    881 GitHub stars~2.2k tokensUpdated today
    Auto-check passed
  • Brainstorm Okrs

    borghei/Claude-Skills

    OKR brainstorming and validation using the Radical Focus framework — outcome objectives, measurable key results, counter-metrics.

    881 GitHub stars~1.4k tokensUpdated today
    Auto-check passed

Works with

Questions about DOCX Toolkit

What does DOCX Toolkit do?

Audit Microsoft Word (.docx) documents for heading hierarchy, comments, tracked changes, broken cross-references, and style consistency. DOCX Toolkit is an agent skill from borghei/Claude-Skills.docx) documents for heading hierarchy, comments, tracked changes, broken cross-references, and style consistency.

When should I use DOCX Toolkit?

DOCX Toolkit fits situations like: reviewing a contract draft; preparing a document for handoff; enforcing a style guide.

How do I install DOCX Toolkit in Claude Code?

Run `npx skills add borghei/Claude-Skills --skill docx-toolkit -a claude-code`. Or copy the skill folder (documents/docx-toolkit in borghei/Claude-Skills) into .claude/skills/docx-toolkit in your project. Claude Code loads it when a task matches its description.

How do I install DOCX Toolkit in Codex?

Run `npx skills add borghei/Claude-Skills --skill docx-toolkit -a codex`. Or copy the skill folder (documents/docx-toolkit in borghei/Claude-Skills) into .agents/skills/docx-toolkit in your project. Codex loads it when a task matches its description.

Can I use DOCX Toolkit in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add borghei/Claude-Skills --skill docx-toolkit -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/docx-toolkit, .gemini/skills/docx-toolkit, .github/skills/docx-toolkit and .opencode/skills/docx-toolkit in your project.

What does DOCX Toolkit need to run?

Going by SKILL.md and its folder, DOCX Toolkit needs Python for the scripts in its folder and the command-line tools its instructions call (python). Our summary lists: Python 3.

Does DOCX Toolkit access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is DOCX Toolkit safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does DOCX Toolkit use?

DOCX Toolkit is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does DOCX Toolkit use?

About 1.3k tokens (SKILL.md is roughly 5.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 640 tokens, read only when the agent opens those files.

What are the alternatives to DOCX Toolkit?

Skills that share tags, products or a category with DOCX Toolkit: Markitdown (ImCa0/just-laws, 781 stars), DOCX (rvdbreemen/OTGW-firmware, 207 stars), Gzh Design (isjiamu/gzh-design-skill, 3.9k stars) and Word Document Reader and Writer (HKUDS/DeepTutor, 41k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains DOCX Toolkit?

borghei (a GitHub user) maintains it in borghei/Claude-Skills, which has 881 GitHub stars. The repository holds 349 skills in this directory. The repository was last updated on October 7, 2026.

Source: borghei/Claude-Skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.