docx-toolkit
Audit Microsoft Word (.docx) documents for word count, heading hierarchy, comments, tracked changes, broken cross-references, and style consistency. Use when reviewing a contract draft, preparing a document for handoff, enforcing a style guide, or when the user mentions Word document review, docx audit, comment cleanup, or tracked-changes resolution.
What this skill does
# 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](#keywords) - [Quick Start](#quick-start) - [Core Workflows](#core-workflows) - [Tools](#tools) - [Reference Guides](#reference-guides) - [Templates](#templates) - [Best Practices](#best-practices) --- ## Keywords docx, Word, Microsoft Word, document, document review, comments, tracked changes, redline, headings, style guide, word count, document audit --- ## 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. ### 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
Related in Security
mac-ops
IncludedComprehensive macOS workstation operations — diagnose kernel panics, identify failing drives, audit launchd startup items, decode wake reasons, triage TCC permission denials, manage APFS snapshots, recover from no-boot. Use for: Mac is slow, slow bootup, won't boot, kernel panic, kernel_task hot, mds_stores CPU, photoanalysisd, cloudd, login loop, gray screen, sleep wake failure, drive failing, IO errors, APFS snapshots eating space, Time Machine local snapshots, Spotlight indexing, launchd, LaunchAgent, LaunchDaemon, login items, TCC permissions, Full Disk Access, Screen Recording denied, Gatekeeper, quarantine, com.apple.quarantine, app is damaged, helper tool, /Library/PrivilegedHelperTools, pmset, wake reasons, dark wake, sysdiagnose, panic.ips, DiagnosticReports, configuration profile, MDM profile, remote diagnostics over SSH.
a11y-audit
IncludedRun accessibility audits on web projects combining automated scanning (axe-core, Lighthouse) with WCAG 2.1 AA compliance mapping, manual check guidance, and structured reporting. Output is configurable: markdown report only, markdown plus machine-readable JSON, or markdown plus issue tracker integration. Use this skill whenever the user mentions "accessibility audit", "a11y audit", "WCAG audit", "accessibility check", "compliance scan", or asks to check a web project for accessibility issues. Also trigger when the user wants to verify WCAG conformance or map findings to a specific standard (CAN-ASC-6.2, EN 301 549, ADA/AODA).
erpclaw
IncludedAI-native ERP system with self-extending OS. Full accounting, invoicing, inventory, purchasing, tax, billing, HR, payroll, advanced accounting (ASC 606/842, intercompany, consolidation), and financial reporting. 413 actions across 14 domains, 43 expansion modules. Constitutional guardrails, adversarial audit, schema migration. Double-entry GL, immutable audit trail, US GAAP.
assess
IncludedAssesses and rates quality 0-10 across multiple dimensions (correctness, maintainability, security, performance, testability, simplicity) with pros/cons analysis. Compares against project conventions and prior decisions from memory. Produces structured evaluation reports with actionable improvement suggestions. Use when evaluating code, designs, architectures, or comparing alternative approaches.
spring-boot-security-jwt
IncludedProvides JWT authentication and authorization patterns for Spring Boot 3.5.x covering token generation with JJWT, Bearer/cookie authentication, database/OAuth2 integration, and RBAC/permission-based access control using Spring Security 6.x. Use when implementing authentication or authorization in Spring Boot applications.
code-hardcode-audit
IncludedDetect hardcoded values, magic numbers, and leaked secrets. TRIGGERS - hardcode audit, magic numbers, PLR2004, secret scanning.