docx

docx is a skill for Claude Code, Codex from sinaptik-ai/starpod. It costs 86 tokens per session (2,005 once invoked), scanned A, original, MIT.

A toolkit for working with Microsoft Word documents in the .docx format. It supports reading, creating, editing, converting, and handling document features such as comments and tracked changes.

In plain words
What is it for?
Use it to read paragraphs and tables, create professional documents, edit existing files, add comments, accept tracked changes, convert older .doc files, or export documents as PDFs.
Why use it?
It avoids manually editing Word files and provides ways to extract their content, update their structure, and convert them to other formats.

Skill for Claude CodeCodex

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

Good fit Use it to read paragraphs and tables, create professional documents, edit existing files, add comments, accept tracked changes, convert older .doc files, or export documents as PDFs.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sinaptik-ai/starpod/docx
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 sinaptik-ai/starpod --skill docx
Clone the repo
git clone --depth 1 https://github.com/sinaptik-ai/starpod

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/sinaptik-ai/starpod/docx/github.svg)](https://agentmods.dev/skills/sinaptik-ai/starpod/docx)
Your own site
<a href="https://agentmods.dev/skills/sinaptik-ai/starpod/docx"><img src="https://agentmods.dev/badge/skills/sinaptik-ai/starpod/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/sinaptik-ai/starpod/docx"><img src="https://agentmods.dev/badge/skills/sinaptik-ai/starpod/docx.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 86 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,005 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.
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.00086 $0.02005
Opus 5 $0.00043 $0.01002
Sonnet 5 $0.00017 $0.00401
Haiku 4.5 $0.00009 $0.00200

Measured 10d ago against content hash 2fa3d7fdac87, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, 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 10d ago.

The scan reads SKILL.md. This mod also ships 7 executable files (scripts/__init__.py, scripts/accept_changes.py, scripts/comment.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

crates/starpod/skills/docx/SKILL.md · 256 lines

How it starts

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

DOCX Skill

Quick Reference

Task Approach Script
Read/extract text python-docx or pandoc See below
Create new document python-docx (Python) or docx (Node.js) See below
Edit existing python-docx load → modify → save See below
Edit XML directly unpack → edit → pack python scripts/office/unpack.py doc.docx unpacked/
Add comments comment.py python scripts/comment.py unpacked/ 0 "text"
Accept tracked changes accept_changes.py python scripts/accept_changes.py in.docx out.docx
Convert .doc → .docx LibreOffice python scripts/office/soffice.py --headless --convert-to docx doc.doc
Convert to PDF LibreOffice python scripts/office/soffice.py --headless --convert-to pdf doc.docx

Reading Content

python-docx

from docx import Document

doc = Document("document.docx")
for para in doc.paragraphs:
    print(f"[{para.style.name}] {para.text}")

for table in doc.tables:
    for row in table.rows:
        print([cell.text for cell in row.cells])

pandoc (with tracked changes)

pandoc --track-changes=all document.docx -o output.md

Creating New Documents with python-docx

Full document example

from docx import Document
from docx.shared import Inches, Pt, Cm, RGBColor
from docx.enum.text import WD_ALIGN_PARAGRAPH
from docx.enum.table import WD_TABLE_ALIGNMENT
from docx.enum.section import WD_ORIENT

doc = Document()

# Page setup (US Letter)
section = doc.sections[0]
section.page_width = Inches(8.5)
section.page_height = Inches(11)
section.top_margin = Inches(1)
section.bottom_margin = Inches(1)
section.left_margin = Inches(1)
section.right_margin = Inches(1)

# Default font
style = doc.styles['Normal']
font = style.font
font.name = 'Arial'
font.size = Pt(11)

# Title
title = doc.add_heading('Document Title', level=0)
title.alignment = WD_ALIGN_PARAGRAPH.CENTER

# Body text
doc.add_paragraph('Executive summary paragraph with key findings and recommendations.')

# Heading hierarchy
doc.add_heading('Section 1: Overview', level=1)
doc.add_paragraph('Section content goes here.')

doc.add_heading('1.1 Subsection', level=2)
doc.add_paragraph('Subsection details.')

doc.save('document.docx')

Read the full file on GitHub · 256 lines

Files

What ships with it

7 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. 10d ago First seen · 256 lines · 86 tokens per session scan A 2fa3d7fdac87

Subscribe to this mod's changes

docx is a skill published in the GitHub repository sinaptik-ai/starpod (78 stars, last pushed 5mo ago), licensed MIT. It adds 86 tokens to every session and 2,005 once invoked, about $0.0004 per session on Opus 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

docx

Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files). Triggers include: any mention of 'Word doc', 'word document', '.docx', or requests to produce professional documents with formatting like tables of contents, headings, page numbers, or letterheads. Also use when…

bigduu/Bamboo-agent · 168 tokens

pptx

Use this skill any time a .pptx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or presentations; reading, parsing, or extracting text from any .pptx file (even if the extracted content will be used elsewhere, like in an email or summary); editing, modifying…

bigduu/Bamboo-agent · 152 tokens

xlsx

Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing .xlsx, .xlsm, .csv, or .tsv file (e.g., adding columns, computing formulas, formatting, charting, cleaning messy data); create a new spreadsheet from scratch or…

bigduu/Bamboo-agent · 201 tokens

pdf

Use this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple PDFs into one, splitting PDFs apart, rotating pages, adding watermarks, creating new PDFs, filling PDF forms, encrypting/decrypting PDFs, extracting images, and…

bigduu/Bamboo-agent · 92 tokens

papyrus-latex-suggestions

Propose actual inline replacement text (old → new) as accept/reject suggestions — LaTeX "suggesting mode" / track changes — that render directly in the PDF. Use when the author wants concrete edit proposals they can see and accept or reject. For remarks ABOUT the text (notes, not replacements), use…

kirodotdev/KiroCrew · 77 tokens

papyrus-latex-comments

Set up and use a non-destructive COMMENT layer in a LaTeX document — insert margin/inline notes (tagged by type) next to the author's text instead of rewriting it. Use when asked to comment on, review, or annotate a .tex file. For proposing actual replacement text the author can accept/reject, use…

kirodotdev/KiroCrew · 80 tokens