open-cowork: Skill for Claude Code

.claude/skills/docx/SKILL.md

docx is a skill for Claude Code from OpenCoworkAI/open-cowork. It costs 77 tokens per session (4,079 once invoked), scanned A, a copy of docx, MIT.

A toolkit for creating, editing, and inspecting DOCX files, the Microsoft Word document format. It supports tracked changes, comments, formatting preservation, text extraction, and document generation.

In plain words
What is it for?
Use it to create documents, revise existing files, inspect tracked edits, extract text, or convert pages for visual checking.
Why use it?
It lets an agent work with Word documents while retaining review information and formatting.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is OpenCoworkAI/open-cowork's own configuration. It tells Claude Code how to work on open-cowork itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything open-cowork configures →

About the project

Open Cowork is an open-source desktop application for Windows and macOS that helps users install and use Claude Code, MCP tools, and Skills. It is intended for people who want a graphical way to work with coding agents, multiple models, sandboxed environments, and Feishu or Slack integrations. The catalogue skills extend its agent-oriented workflow.

OpenCoworkAI/open-cowork · 2,125 stars · on GitHub

Reuse

Borrowing it

Nothing to install: this file belongs to OpenCoworkAI/open-cowork. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/OpenCoworkAI/open-cowork/main/.claude/skills/docx/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/OpenCoworkAI/open-cowork

Made for: Claude Code.

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/opencoworkai/open-cowork/docx/github.svg)](https://agentmods.dev/skills/opencoworkai/open-cowork/docx)
Your own site
<a href="https://agentmods.dev/skills/opencoworkai/open-cowork/docx"><img src="https://agentmods.dev/badge/skills/opencoworkai/open-cowork/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/opencoworkai/open-cowork/docx"><img src="https://agentmods.dev/badge/skills/opencoworkai/open-cowork/docx.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 77 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,079 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 80% copy Near-identical to another mod 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.00077 $0.04079
Opus 5 $0.00039 $0.02039
Sonnet 5 $0.00015 $0.00816
Haiku 4.5 $0.00008 $0.00408

Measured 11d ago against content hash 4f25d6c38fd8, 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 11d ago.

The scan reads SKILL.md. This mod also ships 14 executable files (scripts/__init__.py, scripts/comment.py, scripts/helpers/__init__.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.

Origin

This is a copy

80% identical to docx — 120 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.claude/skills/docx/SKILL.md · 422 lines

How it starts

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

DOCX creation, editing, and analysis

Overview

A .docx file is a ZIP archive containing XML files.

Quick Reference

Task Approach
Read/analyze content pandoc or unpack for raw XML
Create new document Use docx-js - see Creating New Documents below
Edit existing document Unpack → edit XML → repack - see Editing Existing Documents below

Reading Content

# Text extraction with tracked changes
pandoc --track-changes=all document.docx -o output.md

# Raw XML access
python3 scripts/unpack.py document.docx unpacked/

Converting to Images

soffice --headless --convert-to pdf document.docx
pdftoppm -jpeg -r 150 document.pdf page

Creating New Documents

Generate .docx files with JavaScript. Install: npm install -g docx

Setup

const { Document, Packer, Paragraph, TextRun, Table, TableRow, TableCell, ImageRun,
        Header, Footer, AlignmentType, PageOrientation, LevelFormat, ExternalHyperlink,
        TableOfContents, HeadingLevel, BorderStyle, WidthType, ShadingType,
        VerticalAlign, PageNumber, PageBreak } = require('docx');

const doc = new Document({ sections: [{ children: [/* content */] }] });
Packer.toBuffer(doc).then(buffer => fs.writeFileSync("doc.docx", buffer));

Page Size

// CRITICAL: docx-js defaults to A4, not US Letter
// Always set page size explicitly for consistent results
sections: [{
  properties: {
    page: {
      size: {
        width: 12240,   // 8.5 inches in DXA
        height: 15840   // 11 inches in DXA
      },
      margin: { top: 1440, right: 1440, bottom: 1440, left: 1440 } // 1 inch margins
    }
  },
  children: [/* content */]
}]

Common page sizes (DXA units, 1440 DXA = 1 inch):

Paper Width Height Content Width (1" margins)
US Letter 12,240 15,840 9,360
A4 (default) 11,906 16,838 9,026

Styles (Override Built-in Headings)

Read the full file on GitHub · 422 lines

Files

What ships with it

59 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. 11d ago First seen · 422 lines · 77 tokens per session scan A 4f25d6c38fd8

Subscribe to this mod's changes

docx is a skill published in the GitHub repository OpenCoworkAI/open-cowork (2,125 stars, last pushed 1mo ago), licensed MIT. It adds 77 tokens to every session and 4,079 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. It is 80% identical to docx, differing in 120 lines, and is treated as a copy.

Related

Other skills, from other repositories

ha-data-analytics

A local-first data-analysis and reporting skill for CSV and spreadsheet files. It produces decision-ready analyses and shareable offline reports while separating facts, calculations, interpretations, and recommendations.

shiwenwen/hope-agent · 106 tokens

feishu

A toolkit for working with Feishu, also called Lark, a workplace collaboration platform. It covers documents, spreadsheets, files, wikis, approvals, calendars, and contacts.

shiwenwen/hope-agent · 189 tokens

office-docx

Use when the user asks to create, edit, inspect, polish, verify, or deliver Word .docx documents, Google Docs-targeted drafts, business briefs, forms, reports, tables, checklists, redraft-ready document sections, or PDF/Word source-to-DOCX transformations.

shiwenwen/hope-agent · 64 tokens

office-pptx

Use when the user asks to create, inspect, verify, polish, or deliver PowerPoint .pptx decks, Google Slides-targeted deck artifacts, strategy narratives, operating reviews, pitch decks, teaching decks, section slides, bullet slides, or source-to-PPTX transformations.

shiwenwen/hope-agent · 62 tokens

office-xlsx

Use when the user asks to create, inspect, verify, analyze, format, or deliver Excel .xlsx workbooks, Google Sheets-targeted spreadsheet artifacts, trackers, budgets, models, tables, dashboards, formulas, CSV/TSV-to-XLSX conversions, or spreadsheet-ready data packs.

shiwenwen/hope-agent · 64 tokens

memstack-business-scope-of-work

Use this skill when the user says 'scope of work', 'SOW', 'define scope', 'project scope', 'write SOW', 'scope document', or is defining project boundaries, deliverables, and acceptance criteria for a formal engagement. Do NOT use for proposals, contracts, or invoicing.

cwinvestments/memstack · 70 tokens