docx-writer

docx-writer is a skill for Claude Code, Codex from Morningstar202604/awesome-skillkit. It costs 111 tokens per session (1,633 once invoked), scanned A, original, Apache-2.0.

A document-generation tool that turns structured notes or a Markdown-like draft into a real Microsoft Word (.docx) file. It preserves headings, lists, tables, bold text, and Chinese font choices, and can inspect or restyle Word files.

In plain words
What is it for?
Use it to create reports, meeting notes, notices, instructions, or other Word documents from supplied content. It can also audit or restyle an existing .docx file.
Why use it?
It removes the need to format Word documents by hand and helps keep the document structure consistent. It also checks that the generated file and its layout are usable.

Skill for Claude CodeCodex

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

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python3 scripts/docx_ops.py create --input content.md --output output.docx --title "Document Title".

Good fit Use it to create reports, meeting notes, notices, instructions, or other Word documents from supplied content. It can also audit or restyle an existing .docx file.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/Morningstar202604/awesome-skillkit
agentmods
npx agentmods add skills/morningstar202604/awesome-skillkit/docx-writer

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-writer

README.md
[![agentmods](https://agentmods.dev/badge/skills/morningstar202604/awesome-skillkit/docx-writer/github.svg)](https://agentmods.dev/skills/morningstar202604/awesome-skillkit/docx-writer)
Your own site
<a href="https://agentmods.dev/skills/morningstar202604/awesome-skillkit/docx-writer"><img src="https://agentmods.dev/badge/skills/morningstar202604/awesome-skillkit/docx-writer/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-writer

Your own site · 80×15
<a href="https://agentmods.dev/skills/morningstar202604/awesome-skillkit/docx-writer"><img src="https://agentmods.dev/badge/skills/morningstar202604/awesome-skillkit/docx-writer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 111 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,633 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.00111 $0.01633
Opus 5.5 $0.00044 $0.00653
Sonnet 5.5 $0.00022 $0.00327
Haiku 4.5 $0.00011 $0.00163

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

Security

Grade A, and why

docx-writer 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 2mo 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.

site/skills/office/docx-writer/SKILL.md · 153 lines

How it starts

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

DOCX Writer (Word Document Generation and Review)

Turn a structured draft into a real .docx: heading hierarchy, lists, tables, and bold spans all handled in one pass, with CJK body fonts (SimSun/SimHei) applied consistently. Core judgment: the content source must be structured— establish an outline before rendering, no impromptu layout.

Input Checklist

Input Required Notes
Document topic and purpose yes What to write, for whom (report/notes/notice/manual)
Content draft or bullets yes User-provided material; if absent, confirm outline section by section
Target filename no Default output.docx, saved in current working directory
Cover title needed no Default adds a Title paragraph
CJK font preference no Default body SimSun, headings SimHei

When inputs are missing, ask all at once (don't drip-feed follow-ups):

Please provide: 1) document topic and purpose; 2) content material or let me draft from your outline; 3) target filename (default output.docx). Any font preference (default SimSun body / SimHei headings)?

Pre-flight Checks

python3 -c "import docx; print('python-docx ok')"
test -f scripts/docx_ops.py && echo "script ok"
  • Both pass → proceed through full workflow (from step 2).
  • First reports ModuleNotFoundError → tell user pip install python-docx enables .docx export; don't install without consent—degrade to markdown draft and note it in delivery.
  • Second fails (script missing) → use equivalent inline python-docx code in the current working directory (see step 3 equivalent).

Workflow

Step 1: Establish Outline and Content Source

Organize content into a markdown-ish draft (conventions in table below), save as content.md. This is the single source of truth; rendering is mechanical.

Draft Syntax Maps To
# / ## / ### Heading 1 / 2 / 3
- or * prefix Bullet list
1. prefix Numbered list
||-delimited row blocks Table (first row is header)
**text** Bold run
Other plain lines Body paragraph

Read the full file on GitHub · 153 lines

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. 2mo ago Changed · +7 lines · -4 tokens per session 41dc071eaec5
  2. 2mo ago First seen · 146 lines · 115 tokens per session scan A dab46ab3acec

Subscribe to this mod's changes

docx-writer is a skill published in the GitHub repository Morningstar202604/awesome-skillkit (0 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 111 tokens to every session and 1,633 once invoked, about $0.0004 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-09-19.

Related

docx-writer compared with skills from other repositories

docx-writer next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
docx-writerMorningstar202604/awesome-skillkitSkill02mo agoApache-2.0A111Claude Code, Codex
dcf-modelNousResearch/hermes-agentSkill267ktodayMITA14Claude Code, Codex
comps-analysisNousResearch/hermes-agentSkill267ktodayMITA13Claude Code, Codex
boxNousResearch/hermes-agentSkill267ktodayMITA14Claude Code, Codex
pptxmudler/LocalAISkill51ktodayMITA40Claude Code, Codex
mantis-reportgoogle/mantisSkill2.9ktodayApache-2.0A44Claude Code, Codex
pdf-toolkitopensquilla/opensquillaSkill7.2k4d agoApache-2.0A127Claude Code, Codex