docx-shell-workaround
Skill by HKUDS
DOCX Shell Workaround reads and creates Word .docx files through shell commands. It is a fallback for when the standard read_file and execute_code_sandbox tools fail on docx files.
Install docx-shell-workaround
Built from the published package, never by AI.
git clone --depth 1 https://github.com/HKUDS/OpenSpace /tmp/OpenSpace && mkdir -p ~/.claude/skills && cp -r /tmp/OpenSpace/benchmarks/gdpval/skills/docx-shell-workaround ~/.claude/skills/docx-shell-workaroundRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/HKUDS/OpenSpace /tmp/OpenSpace && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/OpenSpace/benchmarks/gdpval/skills/docx-shell-workaround ~/.gemini/antigravity-cli/skills/docx-shell-workaroundAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install docx-shell-workaround in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
DOCX Shell Workaround is a skill for handling Word .docx files through the run_shell tool. It is meant for cases where read_file cannot extract content from a .docx file, or where execute_code_sandbox fails when creating or changing one. To read a file, the skill unzips the archive with unzip -p, takes word/document.xml, and parses it with Python's ElementTree to collect paragraph text. To create a file, it uses python-docx to add headings, paragraphs and tables, then saves the result.
The skill also shows a workflow that extracts text from an existing document, writes it to a file, and builds a new docx from that text. Troubleshooting notes cover installing python-docx with pip and falling back to Python's zipfile module when unzip is not available. It is aimed at assistant users whose docx operations fail with standard tools and who can run shell commands.
Written from the project's SKILL.md and checked against it.
What it can do
- Read docx textUnzips a .docx file and parses word/document.xml to extract paragraph text.
- Create docx with python-docxAdds headings, paragraphs and tables to a new document and saves it as a .docx file.
- Extract and rebuild workflowExtracts text from an existing docx, writes it to a file, and builds a new docx from it.
- Fallback troubleshootingNotes how to install python-docx with pip and read the archive with zipfile if unzip is missing.
What you need
- Python 3
- python-docx package, installable with pip
- Access to the run_shell tool
- unzip command, or Python's zipfile module as a fallback
Try asking
- Extract the text from report.docx using the shell workaround.
- Create a Word memo titled Business Strategy Memo with three sections.
- Read existing.docx and build an updated docx from its paragraphs.
Good to know
- Intended as a fallback when read_file or execute_code_sandbox fail on docx files.
- The source says to use run_shell rather than execute_code_sandbox for docx operations.
- The reading examples collect paragraph text runs only.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: benchmarks/gdpval/skills/docx-shell-workaround/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to docx-shell-workaround
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
docx-shell-workaround: common questions
When should I use this skill instead of read_file?
The source says to use it when read_file cannot extract content from .docx files. It also covers cases where execute_code_sandbox fails when creating or modifying docx files.
Which library does it use to create Word documents?
It uses python-docx, and the source says to run pip install python-docx in the shell if the library is not available.
Does it work if unzip is not installed?
The source suggests using Python's zipfile module to read word/document.xml from the archive instead of unzip.
How do I install docx-shell-workaround?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is docx-shell-workaround free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is docx-shell-workaround safe to use?
It scores 84 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to docx-shell-workaround?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
