← Back to Skills Marketplace
pandoc-docx
by
fuyabing6803
· GitHub ↗
· v1.0.0
· MIT-0
151
Downloads
0
Stars
1
Active Installs
1
Versions
Install in OpenClaw
/install pandoc-docx
Description
支持使用 pandoc 在 Word (.docx) 与 Markdown 及多种格式之间进行双向转换,保留主要格式和图片。
Usage Guidance
This skill appears to do what it says: local document conversions using pandoc and optional local tools (libreoffice, pdftotext, texlive). It does not request credentials or contact external servers. Before using: 1) run ./scripts/check-deps.sh to verify required tools are installed; 2) review the scripts if you will convert sensitive documents (doc-edit's replace uses sed without escaping and could alter content unexpectedly); 3) keep backups of original files before running bulk/replace operations; 4) note the package.json metadata is a bit misleading (lists system packages and Node engines) but that is a packaging issue, not a network/credential risk. If you want extra caution, run the scripts in an isolated environment or a disposable VM/container.
Capability Analysis
Type: OpenClaw Skill
Name: pandoc-docx
Version: 1.0.0
The skill bundle provides document conversion utilities using pandoc but contains significant command injection vulnerabilities due to improper input sanitization. Specifically, `scripts/doc-edit.sh` uses unsanitized variables in a `sed` command, which can be exploited for remote code execution (RCE) via the `e` flag. Additionally, `scripts/doc-read.sh` and `scripts/doc-write.sh` pass format arguments directly to `pandoc`, which could allow for argument injection. While these appear to be unintentional security flaws rather than deliberate malware, they pose a high risk to the environment.
Capability Assessment
Purpose & Capability
Name/description match the scripts and SKILL.md: the bundle is a pandoc-based docx↔markdown converter and the scripts call pandoc/libreoffice/pdftotext as expected. Minor oddity: package.json declares system packages (pandoc, libreoffice, poppler-utils, texlive) under dependencies/optionalDependencies and Node engine requirements despite the skill being implemented as bash scripts — this is a packaging metadata mismatch but does not change the runtime behavior.
Instruction Scope
SKILL.md and the scripts only read and write local files and invoke local tools (pandoc, libreoffice, pdftotext). They do not send data to external endpoints. Attention: doc-edit.sh uses sed with unescaped user-supplied patterns/replacements (simple string substitution) which can produce unexpected results or command failures for complex inputs; users should be careful when using replace operations on sensitive documents and keep backups.
Install Mechanism
No install spec or remote downloads; this is an instruction-only skill with local shell scripts. No third-party archive downloads or URL-based installs are present.
Credentials
No environment variables, credentials, or config paths are required. The scripts only check for and call standard command-line tools (pandoc, libreoffice, pdftotext, tex).
Persistence & Privilege
Skill is not force-included (always:false) and does not request elevated persistent privileges or modify other skills or global agent configuration.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install pandoc-docx - After installation, invoke the skill by name or use
/pandoc-docx - Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release of pandoc-docx skill.
- Enables bidirectional conversion between Word (.docx) and Markdown using pandoc.
- Supports format conversion among .docx, .md, .pdf, .txt, .html, and .epub.
- Includes scripts for reading, writing, converting, and editing documents, with batch processing and image extraction.
- Dependency and compatibility details provided, including optional tools for .doc and PDF support.
- Documents usage scenarios, best practices, and potential format conversion limitations.
Metadata
Frequently Asked Questions
What is pandoc-docx?
支持使用 pandoc 在 Word (.docx) 与 Markdown 及多种格式之间进行双向转换,保留主要格式和图片。 It is an AI Agent Skill for Claude Code / OpenClaw, with 151 downloads so far.
How do I install pandoc-docx?
Run "/install pandoc-docx" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is pandoc-docx free?
Yes, pandoc-docx is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does pandoc-docx support?
pandoc-docx is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created pandoc-docx?
It is built and maintained by fuyabing6803 (@mo-yuhua); the current version is v1.0.0.
More Skills