agentsclimarketplace

Processing docx

Skill telagod/code-abyss/skills/processing-docx

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.

Install
npx -y skills add telagod/code-abyss --skill processing-docx

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

What its author says it does

Copied from the file, not written here

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.

SKILL.md

2.6 KB, as published. Nobody here has run it

DOCX Processing

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

Workflow Decision

IntentWorkflowReference
Read/analyze text onlypandoc → markdownraw-xml-access.md
Read structure, comments, media, formattingunpack → raw XMLraw-xml-access.md
Create new documentdocx-js (JS/TS)docx-js.md
Edit own document, simple changesDocument library (Python)ooxml.md
Edit someone else's documentRedlining (tracked changes)redlining.md
Legal / academic / business / gov docsRedlining — REQUIREDredlining.md
Visual analysissoffice → PDF → pdftoppmraw-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 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

PackageInstallPurpose
pandocapt install pandocText extraction
docxnpm i -g docxCreate new docs
LibreOfficeapt install libreofficePDF conversion
Popplerapt install poppler-utilspdftoppm for images
defusedxmlpip install defusedxmlSecure XML parsing

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.