Automated summary
This skill enables Claude Code to programmatically handle Word documents (.docx/.doc/.rtf) including conversion (PDF, Markdown, HTML, TXT), extraction (text, tables, images), batch replace, merge/split, formatting linting, and template-based generation.
Strengths
- Uses a dedicated Python script for reliable and reproducible operations
- Supports multiple conversion formats (docx, pdf, md, html, txt)
- Provides linting and formatting capabilities for academic papers and reports
- Enables batch processing like merging, splitting, and template application
Limitations
- Requires Python environment with dependencies (pip install needed)
- Complex formatting may not be perfectly preserved in conversions
- Only works with local files; no direct cloud storage integration
Use this skill when you need to automate repetitive Word document tasks such as format conversion, content extraction, or uniform formatting application.
Avoid this skill for simple manual edits or when pixel-perfect output is required and must be verified by a human.
Security analysis
SafeThe skill uses only local Python scripts for document processing with no destructive commands, network exfiltration, or obfuscation. It enforces non-destructive defaults and relies on user-provided files without downloading external payloads.
No concerns found
How this analysis is madeExamples
Convertis ce fichier Word 'these.docx' en Markdown.Extrais tous les tableaux du document 'rapport.docx' et enregistre-les au format CSV.Vérifie la mise en page de mon mémoire 'memoire.docx' selon les normes de l'université et génère un rapport des problèmes.name: word-power-tools description: 处理 Microsoft Word 文档(.docx/.doc/.rtf):转换(PDF/Markdown/HTML/TXT)、提取(文本/表格/图片)、批量替换、合并/拆分、统一排版/套模板、格式校验/报告。用户提到 Word、docx、doc、论文排版、格式检查、表格提取、导出 PDF 时使用。 allowed-tools:
- Read
- Write
- Edit
- Grep
- Glob
- Bash(python:*)
- Bash(python3:*)
- Bash(pip:*)
- Bash(pip3:*)
Word Power Tools
本 Skill 的目标:让 Claude Code 在本地(Linux/macOS/Windows)把 Word 文档当作可编程文档来可靠处理。
⚠️ 核心原则
必须优先使用本 Skill 提供的脚本 scripts/word_tool.py,最好不要自己编写临时脚本或一次性代码。
所有文档操作都应通过 word_tool.py 的子命令完成,确保可复现性和稳定性。
适用场景(触发关键词)
- “把 docx/doc 转 pdf/markdown/html/txt”
- “从 Word 提取表格/图片/章节结构/正文文本”
- “论文排版、格式统一、目录、页码、页眉页脚”
- “批量替换、合并、拆分、套模板”
- “格式审查(页边距、字体、行距、标题层级)并输出报告”
原则(减少风险 + 提高可复现性)
- 默认不覆盖原文件:所有会改写的操作必须写到新输出文件(
-o/--output)。 - 先 lint 后 format:排版类任务先生成报告,再应用修复(避免"修坏了但不知道改了什么")。
- 复杂任务用脚本输出:脚本可"零上下文执行",输出更稳定、可测试。
Quickstart
依赖自检(推荐每个新环境先跑一次):
python scripts/word_tool.py doctor
文档概览:
python scripts/word_tool.py info path/to/file.docx
python scripts/word_tool.py outline path/to/file.docx
提取:
python scripts/word_tool.py extract-text path/to/file.docx -o out.txt
python scripts/word_tool.py extract-tables path/to/file.docx -o tables/ --format xlsx
python scripts/word_tool.py extract-images path/to/file.docx -o images/
转换:
python scripts/word_tool.py convert input.doc --to docx -o output.docx
python scripts/word_tool.py convert input.docx --to pdf -o output.pdf
python scripts/word_tool.py convert input.docx --to md -o output.md
批量替换(YAML 规则):
python scripts/word_tool.py replace input.docx --rules templates/replace_rules.example.yaml -o replaced.docx
写入元数据(作者/标题等):
python scripts/word_tool.py set-metadata input.docx --metadata templates/metadata.example.yaml -o meta.docx
插入目录(TOC 字段,需要在 Word 里“更新域”才能渲染):
python scripts/word_tool.py toc input.docx --levels 1-3 -o with_toc.docx
排版校验 + 应用统一格式(YAML 配置):
python scripts/word_tool.py lint input.docx --config templates/format_thesis_qfnu_science.yaml -o report.md
python scripts/word_tool.py format input.docx --config templates/format_thesis_qfnu_science.yaml -o fixed.docx
合并/拆分:
python scripts/word_tool.py merge a.docx b.docx c.docx -o merged.docx
python scripts/word_tool.py split input.docx --by heading1 -o split_out/
生成新文档骨架(论文/报告模板化):
python scripts/word_tool.py new --template templates/thesis_skeleton.example.yaml -o thesis.docx
参考文档(按需读取)
- 安装与环境:
docs/INSTALL.md - 使用手册(所有子命令):
docs/USAGE.md - 排版规则配置:
docs/FORMAT_RULES.md - 常见问题:
docs/TROUBLESHOOTING.md - 安全注意事项:
docs/SECURITY.md
From the file to a first result
The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.
View the source and supporting filesThis download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.
1. Download the file
Download SKILL.mdFrom the root of a test project, save the file as .skill-downloads/word-power-tools-mrwakal8/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.
Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.
mkdir -p '.skill-downloads/word-power-tools-mrwakal8' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/word-power-tools-mrwakal8/download' --output '.skill-downloads/word-power-tools-mrwakal8/SKILL.md.part' && mv '.skill-downloads/word-power-tools-mrwakal8/SKILL.md.part' '.skill-downloads/word-power-tools-mrwakal8/SKILL.md'2. Check prerequisites
Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.
No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.
The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.
3. Load the skill
After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.
Claude Code
test -f '.skill-downloads/word-power-tools-mrwakal8/SKILL.md' && test -s '.skill-downloads/word-power-tools-mrwakal8/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/word-power-tools' && cp -R '.skill-downloads/word-power-tools-mrwakal8' '.claude/skills/word-power-tools'OpenSkills
OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.
Official OpenSkills installationopenskills install './.skill-downloads/word-power-tools-mrwakal8'openskills read 'word-power-tools-mrwakal8'Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.
For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.
openskills syncManual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.
4. Try a first task
Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:
Read .skill-downloads/word-power-tools-mrwakal8/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.
PDF Reader
Productivity
Read and extract text from PDF files, including documents, reports, contracts, and spreadsheets. Works with local files, URLs, and WhatsApp attachments. Use whenever PDF content is needed, even if not explicitly requested.
Discord Messaging Workflows
Productivity
Use the message tool to send, edit, and moderate Discord messages with interactive components.
Interactive Verdict Preview
Productivity
Generate an interactive HTML preview of keep/drop verdicts for maintainer review, then process the pasted feedback JSON.