docx

docx is a skill for Claude Code, Codex from GTMify/aigtm. It costs 85 tokens per session (1,411 once invoked), scanned A, original, MIT.

A tool for creating, reading, and editing Microsoft Word documents in .docx format, including structured elements such as headings, tables, page numbers, letterheads, and images.

In plain words
What is it for?
Use it to create reports, letters, memos, templates, proposals, and other Word files, or to extract text, replace content, edit images, and manage tables and headers or footers.
Why use it?
It avoids treating a Word document as plain text and helps preserve the document structure and formatting that people expect in professional files.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to create reports, letters, memos, templates, proposals, and other Word files, or to extract text, replace content, edit images, and manage tables and headers or footers.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/gtmify/aigtm/docx
View source ↗ GTMify/aigtm
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add GTMify/aigtm --skill docx
Clone the repo
git clone --depth 1 https://github.com/GTMify/aigtm

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for docx

README.md
[![agentmods](https://agentmods.dev/badge/skills/gtmify/aigtm/docx/github.svg)](https://agentmods.dev/skills/gtmify/aigtm/docx)
Your own site
<a href="https://agentmods.dev/skills/gtmify/aigtm/docx"><img src="https://agentmods.dev/badge/skills/gtmify/aigtm/docx/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for docx

Your own site · 80×15
<a href="https://agentmods.dev/skills/gtmify/aigtm/docx"><img src="https://agentmods.dev/badge/skills/gtmify/aigtm/docx.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 85 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,411 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00085 $0.01411
Opus 5.5 $0.00034 $0.00564
Sonnet 5.5 $0.00017 $0.00282
Haiku 4.5 $0.00009 $0.00141

Measured 1mo ago against content hash a7da74e7f8c1, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

docx scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/docx/SKILL.md · 147 lines

How it starts

The opening of the file, as written. The whole thing — 147 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Word Document Skill

Your Role

You are a document operator who produces polished Word documents that procurement teams, legal counsel, and executives accept without complaint. You use Python's python-docx library to create and edit .docx files. You respect Word conventions — proper headings, styles, tables, and page numbers — rather than generating a wall of plain text and calling it a Word doc.

When to use this skill

Trigger when:

  • The user references a .docx file by name or path
  • The user wants to create a Word document (report, memo, letter, template, proposal)
  • The user wants to read or extract content from a .docx
  • The user wants find-and-replace in a Word file
  • The user wants to insert or replace images, add tables, or work with headers/footers
  • The user mentions "Word doc," "Word document," "letterhead," "memo," "template"

Do NOT trigger when:

  • The deliverable is a PDF, spreadsheet, Google Doc, or HTML page
  • The user wants tracked changes/comments and the situation requires full Microsoft Word feature parity (python-docx has limits here)

Required libraries

  • python-docx — read/write .docx, styles, headings, tables, images, headers/footers
  • docx2txt (optional) — quick text extraction
  • Pillow — if inserting images

Install if missing: pip install python-docx Pillow.

Process

Step 1: Understand the Target

Get from the user:

  • What document type? Memo, letter, report, proposal, template
  • Length? 1 page, 10 pages, longer
  • Sections? Headings, ToC, page numbers, footers
  • Branding? Logo on first page, header on each page, font family, color
  • Existing template? If yes, load it and modify — don't start from scratch

Step 2: Set Up Document Structure

Common pattern:

from docx import Document
from docx.shared import Inches, Pt, RGBColor
from docx.enum.text import WD_ALIGN_PARAGRAPH

doc = Document()  # or Document("template.docx") to load a template

# Set default font
style = doc.styles["Normal"]
style.font.name = "Calibri"
style.font.size = Pt(11)

# Add a heading
doc.add_heading("Document Title", level=0)

# Add a paragraph
p = doc.add_paragraph("Body text here.")

# Add a table
table = doc.add_table(rows=3, cols=2)
table.style = "Light Grid Accent 1"
table.rows[0].cells[0].text = "Header A"
table.rows[0].cells[1].text = "Header B"

# Add an image
doc.add_picture("logo.png", width=Inches(2))

# Save
doc.save("output.docx")

Read the full file on GitHub · 147 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 147 lines · 85 tokens per session scan A a7da74e7f8c1

Subscribe to this mod's changes

docx is a skill published in the GitHub repository GTMify/aigtm (25 stars, last pushed 23d ago), licensed MIT. It adds 85 tokens to every session and 1,411 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories