xyliu-cs/openspace-gdpval/docx-shell-parse
Claude Code and agent skill by xyliu-cs/openspace-gdpval
- community
Checking that the SKILL.md file is still in the repository.
Extract text from DOCX files using shell commands when python-docx is unavailable
Install
npx vskill@latest install xyliu-cs/openspace-gdpval/docx-shell-parseSKILL.md
The same SKILL.md was published earlier as xyliu-cs/openspace-gdpval/docx-shell-parse.
DOCX Shell Parsing Workaround
When you need to read content from Microsoft Word (.docx) files but python-docx or similar libraries are unavailable, use this shell-based approach to extract text reliably.
When to Use
- Python environment lacks
python-docxor similar libraries - You need quick text extraction without installing dependencies
- Working in constrained environments (containers, minimal images, etc.)
Core Technique
DOCX files are ZIP archives containing XML files. Extract and parse the main document XML:
Step-by-Step Instructions
1. Verify the DOCX file exists
2. Extract raw XML content
Use unzip -p to pipe the document.xml content directly to stdout:
3. Strip XML tags from content
Pipe through sed to remove all XML tags:
4. Clean up whitespace (optional)
For cleaner output, remove excessive whitespace and newlines:
5. Save extracted text to file
Complete Shell Function
Add this reusable function to your scripts:
Limitations
- Does not preserve formatting, images, or tables structure
- May include some residual XML entity references
- Works best for simple text extraction needs
- DOCX must be a valid Office Open XML format
Verification
Confirm extraction worked by checking output:
Alternative: Extract to Temporary Directory
For more complex parsing needs:
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckinggdpval_bench/skills/docx-shell-parse/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/xyliu-cs/openspace-gdpval/docx-shell-parse)