DOCX

DOCX is a skill for Claude Code, Codex from xyva-yuangui/XyvaClaw. It costs 19 tokens per session (765 once invoked), scanned A, original, MIT.

A tool for reading and creating Word documents while preserving their structure, styles, lists, sections, headers, and footers. DOCX is the standard file format used by Microsoft Word.

In plain words
What is it for?
Use it to inspect or generate Word files, manage document formatting, and work with sections, headings, lists, headers, and footers.
Why use it?
It helps avoid broken formatting when documents contain more than plain paragraphs, such as numbered lists, page layouts, or reusable styles.

Skill for Claude CodeCodex

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

Good fit Use it to inspect or generate Word files, manage document formatting, and work with sections, headings, lists, headers, and footers.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/xyva-yuangui/xyvaclaw/word-docx-1.0.0
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 xyva-yuangui/XyvaClaw --skill word-docx-1.0.0
Clone the repo
git clone --depth 1 https://github.com/xyva-yuangui/XyvaClaw

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/xyva-yuangui/xyvaclaw/word-docx-1.0.0/github.svg)](https://agentmods.dev/skills/xyva-yuangui/xyvaclaw/word-docx-1.0.0)
Your own site
<a href="https://agentmods.dev/skills/xyva-yuangui/xyvaclaw/word-docx-1.0.0"><img src="https://agentmods.dev/badge/skills/xyva-yuangui/xyvaclaw/word-docx-1.0.0/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/xyva-yuangui/xyvaclaw/word-docx-1.0.0"><img src="https://agentmods.dev/badge/skills/xyva-yuangui/xyvaclaw/word-docx-1.0.0.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 19 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 765 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.00019 $0.00765
Opus 5 $0.00010 $0.00382
Sonnet 5 $0.00004 $0.00153
Haiku 4.5 $0.00002 $0.00076

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

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/check.py, scripts/word_tool.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.

config-base/workspace/skills/word-docx-1.0.0/SKILL.md · 72 lines

How it starts

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

📘 # Structure

重要: 触发后必须先询问用户确认,再执行操作。

  • DOCX is a ZIP containing XML files—word/document.xml has main content, word/styles.xml has styles
  • Text splits into runs (<w:r>)—each run has uniform formatting; one word may span multiple runs
  • Paragraphs (<w:p>) contain runs—never assume one paragraph = one text block
  • Sections control page layout—headers/footers, margins, orientation are per-section

Styles vs Direct Formatting

  • Styles (Heading 1, Normal) are named and reusable—direct formatting is inline and overrides style
  • Removing direct formatting reveals underlying style—useful for cleanup
  • Character styles apply to runs, paragraph styles to paragraphs—they layer together
  • Linked styles can be both—applying to paragraph or selected text behaves differently

Lists & Numbering

  • Numbering is complex: abstractNum defines pattern, num references it, paragraphs reference numId
  • Restart numbering not automatic—need explicit <w:numPr> with restart flag
  • Bullets and numbers share the numbering system—both use numId
  • Indentation controlled separately from numbering—list can exist without visual indent

Headers, Footers, Sections

  • Each section can have different headers/footers—first page, odd, even pages
  • Section breaks: next page, continuous, even/odd page—affects pagination
  • Headers/footers stored in separate XML files—referenced by section properties
  • Page numbers are fields, not static text—update on open or print

Track Changes & Comments

  • Track changes stores original and revised in same document—accept/reject to finalize
  • Deleted text still present with <w:del> wrapper—don't assume visible = all content
  • Comments reference ranges via bookmark IDs—<w:commentRangeStart> to <w:commentRangeEnd>
  • Revision IDs track who changed what—metadata persists even after accepting

Fields & Dynamic Content

  • Fields have code and cached result—{ DATE \@ "yyyy-MM-dd" } vs displayed date
  • TOC, page numbers, cross-references are fields—update fields to refresh
  • Hyperlinks can be fields or direct <w:hyperlink>—both valid
  • MERGEFIELD for mail merge—placeholder until merge executes

Read the full file on GitHub · 72 lines

Files

What ships with it

4 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. 12d ago First seen · 72 lines · 19 tokens per session scan A 0230495881ce

Subscribe to this mod's changes

DOCX is a skill published in the GitHub repository xyva-yuangui/XyvaClaw (21 stars, last pushed 1mo ago), licensed MIT. It adds 19 tokens to every session and 765 once invoked, about $0.0001 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

youdaonote

A command-line skill for managing Youdao Cloud Notes, a Chinese note-taking service. It supports notes, to-do items, saved web pages, searches, and folders.

netease-youdao/LobsterAI · 70 tokens

xlsx

Comprehensive spreadsheet creation, editing, and analysis with support for formulas, formatting, data analysis, and visualization. When Claude needs to work with spreadsheets (.xlsx, .xlsm, .csv, .tsv, etc) for: (1) Creating new spreadsheets with formulas and formatting, (2) Reading or analyzing data, (3) Modify…

netease-youdao/LobsterAI · 96 tokens

pdf

Comprehensive PDF manipulation toolkit for extracting text and tables, creating new PDFs, merging/splitting documents, and handling forms. When Claude needs to fill in a PDF form or programmatically process, generate, or analyze PDF documents at scale.

netease-youdao/LobsterAI · 50 tokens

pptx

Presentation creation, editing, and analysis. When Claude needs to work with presentations (.pptx files) for: (1) Creating new presentations, (2) Modifying or editing content, (3) Working with layouts, (4) Adding comments or speaker notes, or any other presentation tasks.

netease-youdao/LobsterAI · 62 tokens

docx

Comprehensive document creation, editing, and analysis with support for tracked changes, comments, formatting preservation, and text extraction. When Claude needs to work with professional documents (.docx files) for: (1) Creating new documents, (2) Modifying or editing content, (3) Working with tracked changes, (4)…

netease-youdao/LobsterAI · 77 tokens

notion

Manage Notion workspace: create pages, query databases, add content blocks. Requires NOTIONAPIKEY.

emanueleielo/ciana-parrot · 24 tokens