Skip to content
Back to skills

Word Documents

ASecurity

Use when creating or revising a Word file while preserving its document structure. Not for plain-text drafting or PDF editing.

  • 36 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 22, 2026
ai-agentspython

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 28, 2026

npx -y skills add Whq02/MercuryCLI --skill word-documents --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Word Documents?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Word Documents
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/whq02-word-documents/badge)](https://www.skillsdirectory.com/skills/whq02-word-documents)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: word-documents
description: Use when creating or revising a Word file while preserving its document structure. Not for plain-text drafting or PDF editing.
argument-hint: "<file.docx or new> [operation]"
---
# Word documents

Identify the requested edits and use the supplied document or template as the starting package. Before choosing an installed library, inspect styles, sections, tables, headers, comments and tracked revisions. Plain text extraction does not show everything that must survive.

For ordinary edits, python-docx can retain the template and change individual runs without flattening paragraph formatting. Walk paragraphs and tables in document order, including nested tables where relevant. Do not replace a whole paragraph just to change one phrase.

Comments and tracked changes are different structures. python-docx is not a complete revision editor: use a capable Office tool or narrowly edit OOXML while preserving untouched parts and relationships. Never silently accept revisions or discard unsupported features to make saving work.

Save a new file, reopen it and compare the requested edits plus preserved structures. If a local Office renderer is available, export to PDF and inspect pagination, tables and headers with Mercury `Read`. Report structural checks and visual checks separately; disclose when no renderer was available.

Files in this skill

  • SKILL.md1.9 KB
  • scripts/docx_outline.py5.5 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.