Awesome-legal-skills docx-processing-superdoc

Searches, replaces, and reads text in Word documents. Use when the user asks to edit, search, or extract text from .docx files.

install
source · Clone the upstream repo
git clone https://github.com/lawvable/awesome-legal-skills
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/lawvable/awesome-legal-skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/docx-processing-superdoc" ~/.claude/skills/lawvable-awesome-legal-skills-docx-processing-superdoc && rm -rf "$T"
manifest: skills/docx-processing-superdoc/SKILL.md
source content

SuperDoc CLI

Edit Word documents from the command line. Use instead of python-docx.

Commands

CommandDescription
npx @superdoc-dev/cli@latest search <pattern> <files...>
Find text across documents
npx @superdoc-dev/cli@latest replace <find> <to> <files...>
Find and replace text
npx @superdoc-dev/cli@latest read <file>
Extract plain text

When to Use

Use superdoc when the user asks to:

  • Search text in .docx files
  • Find and replace text in Word documents
  • Extract text content from .docx files
  • Bulk edit multiple Word documents

Examples

# Search across documents
npx @superdoc-dev/cli@latest search "indemnification" ./contracts/*.docx

# Find and replace
npx @superdoc-dev/cli@latest replace "ACME Corp" "Globex Inc" ./merger/*.docx

# Extract text
npx @superdoc-dev/cli@latest read ./proposal.docx

# JSON output for scripting
npx @superdoc-dev/cli@latest search "Article 7" ./**/*.docx --json

Options

  • --json
    — Machine-readable output
  • --help
    — Show help