Skip to content
Content
Skill

/local-docx-editor

Edit Word documents (DOCX) locally without Canva API. Use this skill when user provides a DOCX file and wants to modify content, update formatting, or restructure document. Maintains original styles, fonts, spacing, and layout. Does NOT require Canva. Output goes to output/

From plugin
10x-content-expert
1530 skills3 agents4 commands
Install
$ npx -y skills add OpenAnalystInc/10x-Content-Expert --skill local-docx-editor --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/local-docx-editor

Context preview

The summary Claude sees to decide when to auto-load this skill.

Edit Word documents (DOCX) locally without Canva API. Use this skill when user provides a DOCX file and wants to modify content, update formatting, or restructure document. Maintains original styles, fonts, spacing, and layout. Does NOT require Canva. Output goes to output/

SKILL.md

local-docx-editor.SKILL.md
name: local-docx-editor
description: |
  Edit Word documents (DOCX) locally without Canva API. Use this skill when user provides
  a DOCX file and wants to modify content, update formatting, or restructure document.
  Maintains original styles, fonts, spacing, and layout. Does NOT require Canva.
  Output goes to output/ folder. Use for: "edit this document", "update section 3", "change Word file".

Local DOCX Editor Skill

> **QUICK REFERENCE** > - **Utility script**: `scripts/local/docx_utils.py` > - **Sample script**: `scripts/samples/sample_docx_edit.py` > - **Safe copy**: `scripts/local/safe_copy.py` > - **Output folder**: `output/docx/` > - **Working folder**: `output/working/` > - **Run with**: `.venv\Scripts\python.exe scripts/samples/sample_docx_edit.py` > - **3-Step workflow**: (1) Copy from `input/` to `output/working/` → (2) Edit the copy → (3) Save to `output/docx/` > - **Python**: ALWAYS use `.venv\Scripts\python.exe` (never bare `python`)

Edit and manipulate Word documents locally without requiring Canva API.

CRITICAL: Never Modify Original Files

1. **ALWAYS** copy the original to `output/working/` first 2. **ALL** edits happen on the copy 3. **SAVE** results to `output/docx/` 4. **ORIGINAL** file remains untouched

When to Use This Skill

Use this skill when:

  • User provides a DOCX/DOC file and wants modifications
  • Need to update text while maintaining formatting
  • Need to add/remove sections
  • Need to update tables
  • **User has NOT explicitly asked to use Canva**

Capabilities

Read Operations

  • Extract all text content
  • Get document structure (headings, paragraphs)
  • Extract images and tables
  • Get styles and formatting info

Write Operations

  • Modify text content
  • Update tables
  • Modify headers/footers
  • Apply consistent formatting

Conversion

  • DOCX to PDF
  • DOCX to plain text

Running Python Scripts (Virtual Environment)

**IMPORTANT**: Always use the virtual environment Python:

# Windows
.venv\Scripts\python.exe scripts/local/script_name.py

# macOS/Linux
.venv/bin/python scripts/local/script_name.py

Workflow

Step 1: Create Safe Copy

.venv\Scripts\python.exe scripts/local/safe_copy.py --source "input/document.docx"

Step 2: Analyze

.venv\Scripts\python.exe scripts/local/docx_utils.py "output/working/document_copy.docx"

Step 3: Make Modifications

Use docx_utils.py for:

  • Find and replace text
  • Update specific paragraphs
  • Modify table cells

Step 4: Save Result

Save to `output/docx/document_modified.docx`

3-Mode Workflow

MODE 1: PLAN

  • Analyze document structure
  • List sections and word counts
  • Document proposed changes

MODE 2: CLARIFY

  • Confirm content to modify
  • Verify formatting requirements
  • Check word count targets

MODE 3: IMPLEMENT

  • Create working copy
  • Apply modifications
  • Save to output folder

Maintaining Format Integrity

Preservation Rules

1. **Styles** - Preserve all named styles 2. **Spacing** - Line and paragraph spacing 3. **Lists** - Bullet and numbering styles 4. **Tables** - Column widths and formatting

Research Capabilities

This skill can:

  • Search for Word document best practices
  • Look up python-docx documentation
  • Research document formatting standards
  • Find solutions to specific challenges

Available Scripts

  • `docx_utils.py` - Core DOCX analysis and manipulation
  • `safe_copy.py` - Create working copies safely

Todo List Tracking (REQUIRED)

**ALWAYS use TodoWrite** to track progress:

[
  {"content": "Create safe working copy", "status": "in_progress", "activeForm": "Creating safe copy"},
  {"content": "Analyze document structure", "status": "pending", "activeForm": "Analyzing document"},
  {"content": "Apply modifications", "status": "pending", "activeForm": "Applying changes"},
  {"content": "Save to output/docx/", "status": "pending", "activeForm": "Saving result"}
]

Output Location

  • `output/docx/` - Modified documents
  • `output/working/` - Working copies
Read more
Ships with10x-content-expert

A comprehensive Claude Code skills plugin for AI-powered content creation. Creates emails, social media content, presentations, blogs, and more - all aligned with your brand voice and informed by your reference materials.

Get the whole plugin

Other skills on 10x-content-expert.