Agent skill

DOCX Creation and Editing

by agentscope-ai in agentscope-ai/QwenPaw

Creates, reads and edits Word .docx files, including tracked changes and comments, using docx-js for new files and XML editing for existing ones.

ProprietaryAuto-check passedDocuments & Office

SKILL.md written in Chinese; this summary is our English description.

Install DOCX Creation and Editing

skills CLI
$ npx skills add agentscope-ai/QwenPaw --skill docx -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install agentscope-ai/QwenPaw docx --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/agentscope-ai/QwenPaw.git skills-src && mkdir -p .claude/skills && cp -r skills-src/src/qwenpaw/agents/skills/docx-zh .claude/skills/docx && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
docx
GitHub stars
36k
Token cost
~3.3k tokens
SKILL.md length
442 words
Files
67 (incl. scripts)
Skills in repo
20
Repo updated
First seen
Licence
Proprietary

At a glance

Creates, reads and edits Word .docx files, including tracked changes and comments, using docx-js for new files and XML editing for existing ones.

  • Works in 4 steps: 将图片文件添加到 word/media/ → 在 word/_rels/document.xml.rels 中添加关系 → 在 [Content_Types].xml 中添加内容类型 → …
  • Creating a formal Word report, memo or letter with headings and page numbers
  • SKILL.md covers 前置依赖, 概述, 快速参考 and 创建新文档, plus 2 more sections
  • Runs Python scripts from its folder; calls python, npm and pandoc

What it does

This is the Chinese-language edition of a Word document skill. New files are generated as `.docx` with the `docx` JavaScript package and then checked with `scripts/office/validate.py`. Existing files are unpacked, their XML edited and then repacked with the bundled scripts. Reading uses `pandoc`, with an option to keep tracked changes in the extracted text, and old `.doc` files are converted first through a LibreOffice helper.

Other helpers accept all tracked changes into a clean copy, add comments, and render pages to images by converting to PDF and then JPEG with `pdftoppm`. The formatting notes warn that docx-js defaults to A4, so page size should be set explicitly, list US Letter and A4 dimensions, suggest Arial as the default font and require real list numbering instead of typed bullet characters. The folder carries a proprietary licence file, so check its terms before reuse; PDFs, spreadsheets and Google Docs are out of scope.

When your agent uses it

  • Creating a formal Word report, memo or letter with headings and page numbers
  • Extracting or rewriting the text of an existing .docx
  • Accepting tracked changes or adding comments in a Word file
  • Converting an old .doc file to .docx

Example prompts

  • “Create a Word memo with a title, table of contents and page numbers from these notes.”
  • “Accept all tracked changes in contract.docx and save a clean copy.”
  • “Convert report.doc to .docx and replace the logo image on the first page.”

Requirements

  • Node.js with the `docx` npm package
  • LibreOffice for .doc conversion and accepting changes
  • pandoc for text extraction
  • `pdftoppm` from poppler-utils for page images
  • Python to run the bundled scripts

Workflow steps

4 steps, taken from the first numbered list in SKILL.md.

  1. 将图片文件添加到 word/media/
  2. 在 word/_rels/document.xml.rels 中添加关系
  3. 在 [Content_Types].xml 中添加内容类型
  4. 在 document.xml 中引用

What it can do on your machine

Read from SKILL.md and the folder at commit d7a0f50. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 14 files in scripts/ (Python, from the files we listed), which the agent can run.

    Shell commands in SKILL.md call:

    • python
    • npm
    • pandoc
    • pdftoppm

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use npm, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

DOCX Creation and Editing loads about 3.3k tokens when it runs. Until then it costs about 65 tokens; SKILL.md has 442 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~65
When it runs · the whole SKILL.md, loaded when a task matches
~3.3k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

Its licence (Proprietary) doesn't allow us to republish the file, so here is its outline and opening line. It has 442 words (~3,318 tokens).

“.docx 文件是包含 XML 文件的 ZIP 压缩包。”

— opening of SKILL.md by agentscope-ai, Proprietary
name
docx
license
Proprietary. LICENSE.txt has complete terms
metadata.builtin_skill_version
1.1

Read the full SKILL.md on GitHub

Files

SKILL.md and 66 other files (scripts) in src/qwenpaw/agents/skills/docx-zh of agentscope-ai/QwenPaw.

  • SKILL.md
  • LICENSE.txt
  • scripts/__init__.py
  • scripts/accept_changes.py
  • scripts/comment.py
  • scripts/office/helpers/__init__.py
  • scripts/office/helpers/merge_runs.py
  • scripts/office/helpers/simplify_redlines.py
  • scripts/office/pack.py
  • scripts/office/schemas/ISO-IEC29500-4_2016/dml-chart.xsd
  • scripts/office/schemas/ISO-IEC29500-4_2016/dml-chartDrawing.xsd
  • scripts/office/schemas/ISO-IEC29500-4_2016/dml-diagram.xsd
  • scripts/office/schemas/ISO-IEC29500-4_2016/dml-lockedCanvas.xsd
  • scripts/office/schemas/ISO-IEC29500-4_2016/dml-main.xsd
  • scripts/office/schemas/ISO-IEC29500-4_2016/dml-picture.xsd
  • scripts/office/schemas/ISO-IEC29500-4_2016/dml-spreadsheetDrawing.xsd
  • … and 51 more

Open the folder on GitHubat commit d7a0f50

Compare with similar skills

DOCX Creation and Editing next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

DOCX Creation and Editing compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
DOCX Creation and Editing this skillagentscope-ai/QwenPaw36k—~3.3kAutomated safety check: PassProprietary
DOCX Creation and Editinganthropics/skills180k5 repos~1.7kAutomated safety check: PassProprietary
DOCX ToolkitXiaomiMiMo/MiMo-Code14k—~2.4kAutomated safety check: PassApache-2.0
DOCX Processing Toolkittelagod/code-abyss243—~668Automated safety check: NotesMIT
DOCXguyi-a/pi-ling106—~1.1kAutomated safety check: PassMIT
Converting Filesoaustegard/claude-skills150—~1.6kAutomated safety check: PassMIT

Similar skills

  • DOCX Creation and Editing

    anthropics/skills

    Official

    Creates, edits and reviews Word documents: new files with docx-js, edits through the underlying XML, plus tracked changes, comments and conversions.

    180k GitHub starsUsed in 5 repos~1.7k tokens
    Documents & OfficeAuto-check passed
  • DOCX Toolkit

    XiaomiMiMo/MiMo-Code

    Produces, edits and reads Microsoft Word files through python-docx and lxml, with a decision table for picking the lightest workflow for a given task.

    14k GitHub stars~2.4k tokensUpdated today
    Documents & OfficeAuto-check passed
  • DOCX Processing Toolkit

    telagod/code-abyss

    Routes Word document tasks to the right tool: pandoc for text, raw OOXML for structure and comments, docx-js for new files, and a mandatory redlining flow for edits to others' documents.

    243 GitHub stars~668 tokensUpdated 2 mo ago
    Documents & OfficeAuto-check: notes
  • DOCX

    guyi-a/pi-ling

    Word 文档(.docx)的日常处理:md → docx(生成简历/报告)、docx → PDF/图片(分享预览)、.doc → .docx(老格式升级)。触发场景:用户说"生成 Word 版" / "做份 Word 简历" / "把这份报告转 Word" / "这份 .doc 打不开" / "docx 转 PDF" 等。读 docx 内容走 agent 已有的…

    106 GitHub stars~1.1k tokensUpdated 23 days ago
    Documents & OfficeAuto-check passed
  • Converting Files

    oaustegard/claude-skills

    Convert a file from one format to another inside the container — documents, images, audio, video.

    150 GitHub stars~1.6k tokensUpdated yesterday
    Documents & OfficeAuto-check passed
  • Pandoc DOCX Template

    Achuan-2/pandoc_docx_template

    A skill your agent uses when converting Markdown to Word DOCX or DOCX back to Markdown with Pandoc, especially when the output should use the bundled Chinese Word reference templates, heading…

    1.1k GitHub stars~1k tokensUpdated 3 mo ago
    Documents & OfficeAuto-check passed

More from agentscope-ai/QwenPaw

All 20 skills in this repo
  • Terraform and OpenTofu Guide

    agentscope-ai/QwenPaw

    Guidance for writing and testing Terraform and OpenTofu code: module structure, naming, test approaches, CI/CD workflows, state handling and security scanning.

    36k GitHub starsUsed in 6 repos~4.2k tokens
    Auto-check passed
  • Make Skill

    agentscope-ai/QwenPaw

    Turns reusable decisions, templates or workflows from the current conversation into a new workspace skill through plan, approval, draft, validation and publication.

    36k GitHub stars~2.4k tokensUpdated today
    Auto-check passed
  • QwenPaw Make Skill

    agentscope-ai/QwenPaw

    Creates a focused workspace skill from the current conversation in QwenPaw, moving through a planning, approval, drafting, validation and publishing script pipeline.

    36k GitHub stars~1.2k tokensUpdated today
    Auto-check passed
  • QwenPaw Scheduled Tasks

    agentscope-ai/QwenPaw

    Creates and manages scheduled or recurring jobs with the qwenpaw cron commands, always tied to an explicit agent ID and a confirmed target channel.

    36k GitHub stars~2.3k tokensUpdated today
    Auto-check passed
  • Mailbox Operations Hub

    agentscope-ai/QwenPaw

    Connects, registers, and operates a personal mailbox, reading, searching, sending, and organizing, through a managed mail server for nine domains.

    36k GitHub stars~2.6k tokensUpdated today
    Auto-check passed
  • OMP Sub-Agent Role Presets

    agentscope-ai/QwenPaw

    Gives the allowed_tools and skills preset for each OMP sub-agent role, to apply when calling spawn_subagent.

    36k GitHub stars~1.1k tokensUpdated today
    Auto-check passed

Questions about DOCX Creation and Editing

What does DOCX Creation and Editing do?

Creates, reads and edits Word .docx files, including tracked changes and comments, using docx-js for new files and XML editing for existing ones. This is the Chinese-language edition of a Word document skill.py`.

When should I use DOCX Creation and Editing?

DOCX Creation and Editing fits situations like: creating a formal Word report, memo or letter with headings and page numbers; extracting or rewriting the text of an existing .docx; accepting tracked changes or adding comments in a Word file; converting an old .doc file to .docx.

How do I install DOCX Creation and Editing in Claude Code?

Run `npx skills add agentscope-ai/QwenPaw --skill docx -a claude-code`. Or copy the skill folder (src/qwenpaw/agents/skills/docx-zh in agentscope-ai/QwenPaw) into .claude/skills/docx in your project. Claude Code loads it when a task matches its description.

How do I install DOCX Creation and Editing in Codex?

Run `npx skills add agentscope-ai/QwenPaw --skill docx -a codex`. Or copy the skill folder (src/qwenpaw/agents/skills/docx-zh in agentscope-ai/QwenPaw) into .agents/skills/docx in your project. Codex loads it when a task matches its description.

Can I use DOCX Creation and Editing in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add agentscope-ai/QwenPaw --skill docx -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/docx, .gemini/skills/docx, .github/skills/docx and .opencode/skills/docx in your project.

What does DOCX Creation and Editing need to run?

Going by SKILL.md and its folder, DOCX Creation and Editing needs Python for the scripts in its folder and the command-line tools its instructions call (python, npm, pandoc and pdftoppm). Our summary lists: Node.js with the `docx` npm package; LibreOffice for .doc conversion and accepting changes; pandoc for text extraction; `pdftoppm` from poppler-utils for page images; Python to run the bundled scripts.

Does DOCX Creation and Editing access the network?

SKILL.md contains no URLs. Its commands use npm, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is DOCX Creation and Editing safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does DOCX Creation and Editing use?

DOCX Creation and Editing carries a proprietary licence (declared in SKILL.md). It is published on GitHub, but it is not open source: read the licence file before using or sharing it.

How many tokens does DOCX Creation and Editing use?

About 3.3k tokens (SKILL.md is roughly 13k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to DOCX Creation and Editing?

Skills that share tags, products or a category with DOCX Creation and Editing: DOCX Creation and Editing (anthropics/skills, 180k stars), DOCX Toolkit (XiaomiMiMo/MiMo-Code, 14k stars), DOCX Processing Toolkit (telagod/code-abyss, 243 stars) and DOCX (guyi-a/pi-ling, 106 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains DOCX Creation and Editing?

agentscope-ai (a GitHub organization) maintains it in agentscope-ai/QwenPaw, which has 35,521 GitHub stars. The repository holds 20 skills in this directory. The repository was last updated on October 9, 2026.

Source: agentscope-ai/QwenPaw on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.