Searches, replaces, and reads text in Word documents. Use when the user asks to edit, search, or extract text from .docx files.
Resources
1Install
npx skillscat add lawvable/awesome-legal-skills/docx-processing-superdoc Install via the SkillsCat registry.
Here's a thinking process: 1. **Analyze the Request:** - **Goal:** Write a 2-3 sentence plain-text summary in English - **Subject:** An AI agent skill for searching, replacing, and reading text in Word documents - **Source Material:** Provided description and SKILL.md excerpt about `docx-processing-superdoc` - **Constraints:** - Objective, factual tone only - No marketing language, no superlatives, no calls to action - Natural prose, no bullet points, no headings, no markdown formatting - Do not wrap the answer in quotes - At most 60 words - **Output:** ONLY the summary text 2.
SuperDoc CLI
Edit Word documents from the command line. Use instead of python-docx.
Commands
| Command | Description |
|---|---|
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 --jsonOptions
--json— Machine-readable output--help— Show help