Skip to content
Development
Skill

/processing-docx

Processes Word document files (.docx). Creates, edits, annotates, tracks revisions, analyzes OOXML structure, and preserves formatting for contracts, policies, academic papers, and business documents. Use when working with .docx files or Word documents. Do NOT use for PDFs,

From plugin
code-abyss
24530 skills

Claude Code

$ npx -y skills add telagod/code-abyss --skill processing-docx --agent claude-code

SKILL.md

processing-docx.SKILL.md
name: processing-docx
description: Processes Word document files (.docx). Creates, edits, annotates, tracks revisions, analyzes OOXML structure, and preserves formatting for contracts, policies, academic papers, and business documents. Use when working with .docx files or Word documents. Do NOT use for PDFs, spreadsheets, presentations, or plain text files.
user-invocable: false
allowed-tools: Bash, Read, Write, Edit, Glob
argument-hint: <file.docx | task>

DOCX Processing

`.docx` is a ZIP archive of XML and resources. Different tasks have different tools and workflows.

Workflow Decision

| Intent | Workflow | Reference | |--------|----------|-----------| | **Read/analyze text only** | pandoc → markdown | [raw-xml-access.md](references/raw-xml-access.md) | | **Read structure, comments, media, formatting** | unpack → raw XML | [raw-xml-access.md](references/raw-xml-access.md) | | **Create new document** | docx-js (JS/TS) | [docx-js.md](docx-js.md) | | **Edit own document, simple changes** | Document library (Python) | [ooxml.md](ooxml.md) | | **Edit someone else's document** | Redlining (tracked changes) | [redlining.md](references/redlining.md) | | **Legal / academic / business / gov docs** | Redlining — REQUIRED | [redlining.md](references/redlining.md) | | **Visual analysis** | soffice → PDF → pdftoppm | [raw-xml-access.md](references/raw-xml-access.md) |

Text Extraction (Quick)

pandoc --track-changes=all path-to-file.docx -o output.md
# --track-changes=accept/reject/all

Create New Document

1. **MANDATORY — READ ENTIRE FILE**: `docx-js.md` (~500 lines). NEVER set range limits. 2. Create JS/TS file using Document, Paragraph, TextRun components. 3. Export with `Packer.toBuffer()`.

Edit Existing Document (Own, Simple)

1. **MANDATORY — READ ENTIRE FILE**: `ooxml.md` (~600 lines). NEVER set range limits. 2. `python ooxml/scripts/unpack.py <office_file> <output_dir>` 3. Run Python script using Document library. 4. `python ooxml/scripts/pack.py <input_dir> <office_file>`

Edit Someone Else's Document → Redlining

See [redlining.md](references/redlining.md) for full 6-step workflow with batching strategy and RSID preservation.

Code Style

  • Write concise code, no verbose variable names, no unnecessary print statements.

Dependencies

| Package | Install | Purpose | |---------|---------|---------| | pandoc | `apt install pandoc` | Text extraction | | docx | `npm i -g docx` | Create new docs | | LibreOffice | `apt install libreoffice` | PDF conversion | | Poppler | `apt install poppler-utils` | `pdftoppm` for images | | defusedxml | `pip install defusedxml` | Secure XML parsing |

Read more
@telagod
Ships withcode-abyss

Give your AI coding agent a personality. Composable persona + style + skills for Claude Code, Codex, Gemini CLI & OpenClaw. Ships Tech Persona Card v1.0 spec.

Stars on GitHub

Momentum

stars in total
245
Star history of telagod/code-abyss on GitHub, a chart by star-history.com

Other skills on code-abyss.

analyzing-changes

analyzing-changes

Analyzes code changes, detects documentation drift, and evaluates change impact scope. Use when reviewing diffs, checking doc…

@telagod@telagodInstall Skill
analyzing-security

analyzing-security

Scans code for security vulnerabilities, detects dangerous patterns, and ensures security decisions are documented. Use when…

@telagod@telagodInstall Skill
analyzing-spreadsheets

analyzing-spreadsheets

Processes Excel spreadsheet files (.xlsx, .xlsm, .csv). Creates workbooks, builds formulas, preserves formatting, analyzes…

@telagod@telagodInstall Skill
architecting-security

architecting-security

安全架构与治理:威胁建模 (STRIDE/PASTA/LINDDUN)、零信任身份架构、IAM/SSO/MFA/PAM、合规框架 (SOC2/PCI/HIPAA/GDPR)、DLP、隐私工程、安全控制设计。Use when designing…

@telagod@telagodInstall Skill
automating-devops

automating-devops

DevOps knowledge reference covering Git workflows, testing strategies, DevSecOps, release pipeline orchestration (release.yml,…

@telagod@telagodInstall Skill

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills12d309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc13d293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react2d252k
@facebook@facebookInstall Skill

Questions about processing-docx.

Which coding agents can use processing-docx?
processing-docx installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.