Install
$ agentstack add skill-jie-meng-mythril-agent-skills-word ✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.
How agent discovery & health will work →About
When to Use This Skill
- User mentions a
.docxor.docmfile and wants to read, extract, or inspect its content - Text extraction: extract text from paragraphs with heading detection
- Table extraction: extract tables as markdown, JSON, or CSV
- Metadata inspection: author, title, creation date, word count, structure
- Image extraction: extract embedded images from the document
- Markdown conversion: convert the full document to Markdown format
> Legacy .doc files: This skill handles .docx and .docm (modern Word formats). For legacy .doc files, the script will suggest converting to .docx first using LibreOffice (libreoffice --headless --convert-to docx file.doc) or an online converter.
Prerequisites
python-docx— install with:pip install python-docx
Pre-flight check:
python3 -c "import docx; print(docx.__version__)"
Install if missing:
pip install python-docx
Workflow
- Determine what the user wants (read text, extract tables, inspect metadata, convert to markdown, extract images)
- Run the appropriate script subcommand
- Read the output (text, markdown table, JSON, or confirmation) and present it to the user
- For multi-step tasks, chain subcommands in sequence
All commands use:
python3 scripts/word_ops.py [options]
The script path is relative to this skill directory.
Command Reference
Inspect document metadata
python3 scripts/word_ops.py info document.docx
Shows file size, title, author, subject, creation/modification dates, paragraph count, table count, word count, section count, and heading outline.
Extract text
# Extract all text
python3 scripts/word_ops.py text document.docx
# Extract first 50 paragraphs
python3 scripts/word_ops.py text document.docx --limit 50
# Skip empty paragraphs
python3 scripts/word_ops.py text document.docx --skip-empty
Headings are shown with # markers for visual hierarchy.
Extract tables
# Extract all tables as markdown (default)
python3 scripts/word_ops.py tables document.docx
# Extract as JSON
python3 scripts/word_ops.py tables document.docx --format json
# Extract as CSV (one file per table)
python3 scripts/word_ops.py tables document.docx --format csv --output-dir ./tables/
Extract embedded images
# Extract all images to a directory
python3 scripts/word_ops.py extract-images document.docx --output-dir ./images/
Output files are named _image_1.png, _image_2.png, etc.
Convert to Markdown
# Print to stdout
python3 scripts/word_ops.py to-markdown document.docx
# Save to file
python3 scripts/word_ops.py to-markdown document.docx -o document.md
Preserves heading hierarchy, bold/italic formatting, and tables.
Composing Multi-Step Workflows
The commands above are building blocks. Combine them to accomplish complex user requests. Examples:
"What's in this Word document?":
infoto see page count, title, author, etc.text --limit 30to read the first 30 paragraphs for a quick overview
"Extract the tables and save as CSV":
tables --format csv --output-dir ./tables/to extract and save
"Convert this docx to markdown and show me":
to-markdownto convert and print the full document
"Read this Word doc and summarize it":
infoto understand the structuretextto extract all content- Summarize based on the extracted text
Guidelines
- Read before manipulate: always
infoortext --limit 10first to understand the document - Large documents: use
--limitto avoid overwhelming output - Legacy .doc: the script handles
.docxonly; for.docfiles, convert first with LibreOffice - Tables: first row is treated as the header in markdown/JSON output
- Images: extracted in their original format (PNG, JPEG, etc.)
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: jie-meng
- Source: jie-meng/mythril-agent-skills
- License: Apache-2.0
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet, be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.