docx-draft

docx-draft is a skill for Claude Code, Codex from valtterimelkko/agent-workflow-skills. It costs 82 tokens per session (2,083 once invoked), scanned A, original, MIT.

A workflow for editing Microsoft Word documents by converting them to structured Markdown and then converting the edited draft back to Word while preserving the original formatting.

In plain words
What is it for?
Use it to revise, fill in, or draft a .docx document, then produce a formatted Word file from the edited draft.
Why use it?
It makes a Word document easier to revise with text-based tools without losing its layout and styles. It is intended for work that ends with a finished .docx file.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Claude Code.

Good fit Use it to revise, fill in, or draft a .docx document, then produce a formatted Word file from the edited draft.

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/valtterimelkko/agent-workflow-skills/docx-draft"><img src="https://agentmods.dev/badge/skills/valtterimelkko/agent-workflow-skills/docx-draft.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 82 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,083 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.00082 $0.02083
Opus 5 $0.00041 $0.01042
Sonnet 5 $0.00016 $0.00417
Haiku 4.5 $0.00008 $0.00208

Measured 9d ago against content hash c672201f58d8, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

docx-draft 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 9d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/docx_draft_converter.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.

skills/docx-draft/SKILL.md · 283 lines

How it starts

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

Word Document Drafting Skill

Convert Microsoft Word documents (.docx) to structured markdown for easy editing with LLM assistance, then convert back to Word format with all formatting preserved.

When to Use This Skill

Use this skill when:

  • User asks to work on, edit, or draft a Word document
  • User wants to convert a .docx file to a more editable format
  • User wants to prepare a final .docx from a draft markdown
  • User mentions: "work on this docx", "edit this Word file", "draft this document"

How It Works

Phase 1: Convert to Structured Markdown

Converts a .docx file into a structured markdown file with special markers that preserve the exact structure of the original document.

Phase 2: Edit the Draft

You (Claude Code) can now edit the structured markdown file. The structure markers ensure the content maps back perfectly to the Word template.

Phase 3: Convert Back to Word

Converts the edited structured markdown back to a .docx file, using the original as a template to preserve all formatting.

Usage

Converting TO Structured Markdown

When user says:

  • "Convert [file.docx] to draft format"
  • "Use docx-draft on [file.docx]"
  • "I want to work on this Word document"
  • "Convert PDR_Form.docx to markdown"

Steps:

  1. Locate the .docx file
  2. Run the converter script:
    python3 ./scripts/docx_draft_converter.py --to-structured <input.docx> [output.md]
    
  3. Inform user:
    • Where the draft file was created
    • CRITICAL: Remind them to keep the original .docx file in its current location
    • Explain they can now edit the draft

Example:

python3 ./scripts/docx_draft_converter.py --to-structured ~/pdr/PDR_Form_Jan2026.docx

Output: ~/pdr/PDR_Form_Jan2026_DRAFT.md

Converting BACK to Word

When user says:

  • "Convert the draft back to Word"
  • "I'm done editing, create the final Word document"
  • "Convert [file_DRAFT.md] to docx"
  • "Finalize this document"

Steps:

  1. Locate the structured markdown file (usually ends with _DRAFT.md)
  2. Run the converter script:
    python3 ./scripts/docx_draft_converter.py --to-docx <draft.md> [output.docx]
    
  3. The script will:
    • Check that the original .docx exists (from metadata)
    • Verify it hasn't been modified
    • Use it as a template
    • Fill in the edited content
    • Create a new _FINAL.docx file
  4. Inform user of success and location of final file

Read the full file on GitHub · 283 lines

Files

What ships with it

1 file 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. 9d ago First seen · 283 lines · 82 tokens per session scan A c672201f58d8

Subscribe to this mod's changes

docx-draft is a skill published in the GitHub repository valtterimelkko/agent-workflow-skills (2 stars, last pushed 2mo ago), licensed MIT. It adds 82 tokens to every session and 2,083 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-31.