Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
404kidwiz avatar

Docx Skill

  • 97 installs
  • 404kidwiz/claude-supercode-skills

Read, write, and manipulate DOCX files in your application workflows.

About

Handles DOCX file operations including reading, writing, and modifying Microsoft Word documents. Builders reach for it when building document processing pipelines, report generators, or integrations with Word-based workflows.

  • DOCX read/write
  • Programmatic document manipulation
  • Format parsing

Docx by the numbers

  • 97 all-time installs (skills.sh)
  • Ranked #686 of 1,928 Documentation skills by installs in the Skillselion catalog
  • Data as of Aug 11, 2026 (Skillselion catalog sync)
npx skills add https://github.com/404kidwiz/claude-supercode-skills --skill docx

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs97
Repository404kidwiz/claude-supercode-skills

What it does

Read, write, and manipulate DOCX files in your application workflows.

Files

SKILL.mdMarkdownGitHub ↗

DOCX Skill

Purpose

Provides expertise in programmatic Word document creation and manipulation. Handles document generation, template filling, style management, and batch document processing using python-docx and JavaScript libraries.

When to Use

  • Generating Word documents programmatically
  • Filling document templates with data
  • Modifying existing .docx files
  • Extracting content from Word documents
  • Applying styles and formatting
  • Creating mail merge workflows
  • Converting data to formatted documents

Quick Start

Invoke this skill when:

  • Generating Word documents programmatically
  • Filling document templates with data
  • Modifying existing .docx files
  • Extracting content from Word documents
  • Automating document workflows

Do NOT invoke when:

  • Writing document content (use document-writer)
  • Creating PDFs (use pdf-skill)
  • Creating spreadsheets (use xlsx-skill)
  • Creating presentations (use pptx-skill)

Decision Framework

Library Selection:
├── Python backend → python-docx
├── Node.js backend → docx (npm)
├── Browser-based → docx.js
├── Complex templates → docxtemplater
└── Simple text extraction → mammoth

Task Type:
├── Generate from scratch → Build document programmatically
├── Fill template → Use placeholder replacement
├── Modify existing → Load, edit, save
└── Batch processing → Loop with template

Core Workflows

1. Document Generation (python-docx)

1. Create Document object 2. Add heading with level 3. Add paragraphs with text 4. Apply styles (built-in or custom) 5. Add tables if needed 6. Insert images 7. Save document

2. Template Processing

1. Load template document 2. Find placeholders ({{variable}}) 3. Replace with actual values 4. Handle conditional sections 5. Process repeating sections 6. Save as new document

3. Batch Document Generation

1. Load template once 2. Iterate over data records 3. Clone template for each 4. Fill placeholders 5. Generate unique filenames 6. Save each document

Best Practices

  • Use paragraph styles, not direct formatting
  • Create templates with placeholders for reuse
  • Handle missing placeholder values gracefully
  • Preserve original template, save to new file
  • Test with complex content (tables, images)
  • Validate output opens correctly

Anti-Patterns

Anti-PatternProblemCorrect Approach
Direct formattingHard to maintainUse styles
Modifying templateCorrupts originalSave to new file
No error handlingFails on bad inputValidate data first
Hardcoded pathsNot portableUse relative paths
Ignoring encodingCharacter issuesUse UTF-8 strings

Related skills

Documentationbackendintegrations

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.