docx

docx is a skill for Claude Code, Codex from NUGURI-7/CoCoWork. It costs 88 tokens per session (2,118 once invoked), scanned A, original, MIT.

A workflow for creating, reading, and changing Word documents such as .docx and .dotx files. New documents use the supplied CoCoWork brand template, while existing files are edited by changing their internal document data.

In plain words
What is it for?
Use it to make or update proposals, reports, notices, and other Word documents, or to extract the text from an existing Word file.
Why use it?
It provides a consistent way to handle Word files and prevents new documents from using inconsistent headers, footers, fonts, or colours. It is specifically not intended for PDFs or spreadsheets.

Skill for Claude CodeCodex

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

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is (cd unpacked && rm -f ../out.docx && zip -XrD ../out.docx .).

Good fit Use it to make or update proposals, reports, notices, and other Word documents, or to extract the text from an existing Word 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/NUGURI-7/CoCoWork
agentmods
npx agentmods add skills/nuguri-7/cocowork/docx

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/nuguri-7/cocowork/docx/github.svg)](https://agentmods.dev/skills/nuguri-7/cocowork/docx)
Your own site
<a href="https://agentmods.dev/skills/nuguri-7/cocowork/docx"><img src="https://agentmods.dev/badge/skills/nuguri-7/cocowork/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/nuguri-7/cocowork/docx"><img src="https://agentmods.dev/badge/skills/nuguri-7/cocowork/docx.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 88 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,118 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.00088 $0.02118
Opus 5.5 $0.00035 $0.00847
Sonnet 5.5 $0.00018 $0.00424
Haiku 4.5 $0.00009 $0.00212

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

The scan reads SKILL.md. This mod also ships 13 executable files (brand/brand.js, scripts/__init__.py, scripts/merge_runs.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.

backend/app/skills/builtin/docx/SKILL.md · 115 lines

How it starts

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

DOCX 制作、修改与读取

.docx 是一个装着 XML 文件的 ZIP 包。脚本路径都相对于本 skill 目录,执行时写成绝对路径。

任务 做法
新建文档 写一个 Node 脚本,用 brand/brand.js 生成 —— 见下方「品牌模板(必须)」
修改已有文档 解包 → 改 word/document.xml → 重新打包(docx-js 打不开已有文件),见「修改已有文档」
读取内容 pandoc -t markdown file.docx

路径里的尖括号是占位符,写成绝对路径:<本 skill 目录> 是本说明书所在目录,<交付区> 的实际位置见系统提示「文件放哪」那节。写进交付区的文件会自动交给用户。

品牌模板(必须)

新建文档一律用 brand/brand.js 的 createDocument():A4 版面、页眉(Logo + CoCoWork + 文档标题)、页脚(资料密级 + 「第 x 页 / 共 y 页」)、中文字体(标题微软雅黑、正文宋体)和标题样式都已定好,风格与 PPT 一致。不要自己写页眉页脚、改字体或配色。

const brand = require("<本 skill 目录>/brand/brand.js");

const doc = brand.createDocument({
  title: "CoCoWork 产品方案",
  cover: {                                         // 不要封面就不传
    kicker: "PRODUCT PROPOSAL",                    // 标题上方的英文小标签,可省
    subtitle: "企业内部 AI 业务能力门户",
    image: "<工作区>/docx_cover.png",                    // generate_image 生成的封面图,可省
    date: "2026 年 11 月",
  },
  classification: "对外资料",                       // 页脚左侧,如「内部资料」
  children: [
    brand.heading("一、方案概述", 1),
    brand.paragraph("正文段落,首行自动缩进两字。"),
    brand.callout("核心价值", "一段结论或要点摘要,浅绿底提示框。"),
    brand.heading("二、上线效果", 1),
    brand.statRow([{ value: "3 分钟", label: "产出方案初稿" }, { value: "100%", label: "调用可追溯" }]),
    brand.figure("<工作区>/team.png", "图 1  协作方式", { widthRatio: 0.85 }),
    brand.bullets(["要点一", "要点二"]),                 // { numbered: true } 改成 1. 2. 3.
    brand.table([["版本", "说明"], ["标准版", "……"]], [2400, brand.CONTENT_WIDTH - 2400]),
  ],
});
await brand.save(doc, "<交付区>/产品方案.docx");
函数 用途
heading(text, level) 一到三级标题,品牌色,进目录
paragraph(text, options) 正文;text 可以是 [{ text: "加粗前缀:", bold: true }, { text: "说明" }];{ indent: false } 取消首行缩进
bullets(items, { numbered }) 项目符号 / 编号列表
table(rows, columnWidths) 第一行表头(品牌色底白字),隔行浅绿底;列宽单位 DXA,合计等于 brand.CONTENT_WIDTH,不传则均分
callout(title, text) 浅绿底提示框,放结论、摘要
statRow(items) 2–4 个大数字卡片,第一个品牌色底(与 PPT 数据页一致)
figure(path, caption, { widthRatio }) 配图(PNG / JPG),按原比例缩放到版心宽度

Read the full file on GitHub · 115 lines

Files

What ships with it

57 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. 13d ago First seen · 115 lines · 88 tokens per session scan A a97304364909

Subscribe to this mod's changes

docx is a skill published in the GitHub repository NUGURI-7/CoCoWork (16 stars, last pushed 11d ago), licensed MIT. It adds 88 tokens to every session and 2,118 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-11-17.

Related

docx compared with skills from other repositories

docx next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
docxNUGURI-7/CoCoWorkSkill1611d agoMITA88Claude Code, Codex
pptxnexus-research-lab/nexusSkill165todayApache-2.0A95Claude Code
xlsxnexus-research-lab/nexusSkill165todayApache-2.0A100Claude Code
docxnexus-research-lab/nexusSkill165todayApache-2.0A103Claude Code
pdfnexus-research-lab/nexusSkill165todayApache-2.0A85Claude Code
google-workspacegraniet/kheishSkill20923d agoApache-2.0A40Claude Code, Codex
notiongraniet/kheishSkill20923d agoApache-2.0A33Claude Code, Codex