word-document — скилл для Claude Code: работа с .docx через MCP
Скилл для чтения, создания и правки документов Word: таблицы, сноски, комментарии, стили и конвертация в PDF.
npx skills add PracticalSwan/agent-skills --skill word-document -a claude-codeЧто делает word-document
Скилл включается, когда важен не текст, а структура .docx: заголовки, разделы, таблицы, колонтитулы. Сначала агент выстраивает структуру документа, потом накладывает стили, а перед экспортом проверяет комментарии, сноски и ссылки.
Внутри два пути. Основной — MCP-сервер Word Document MCP, но его инструменты доступны не во всех клиентах: в GitHub Copilot они могут появиться, в других хостах их не будет. Тогда работает локальный фолбэк: python-docx, разбор OOXML напрямую и скрипт scripts/doc-template-generator.py для генерации заготовки. Целевая среда — Word desktop или автоматизация на python-docx с текущими OOXML-совместимыми процессами.
Есть протокол проверки: агент обязан открыть или распарсить готовый файл и показать доказательства, прежде чем заявить об успехе. Требовать MCP-операцию там, где хост её не отдаёт, бессмысленно — скилл прямо это запрещает. Если конвертация в PDF идёт после правок, проверьте пагинацию и колонтитулы повторно: они ломаются чаще всего.
Какие задачи решает
- собрать отчёт или служебную записку в
.docxс заголовками и таблицами - разметить структуру документа до наложения стилей
- вытащить заголовки, таблицы и сноски из чужого файла
- подготовить Word-файл к последующей конвертации в PDF
- проверить комментарии и ссылки перед отправкой документа
Примеры запросов агенту
- Собери .docx-отчёт по этому шаблону: титул, разделы, таблица с метриками
- Разбери структуру этого .docx и покажи все заголовки и таблицы
- Поправь стили в документе и проверь, что пагинация не поехала
Как установить word-document
1Через Skills CLI (Vercel)
npx skills add PracticalSwan/agent-skills --skill word-document -a claude-code2Вручную: положить файлы
~/.claude/skills/word-document/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/word-document/
1Через Skills CLI (Vercel)
npx skills add PracticalSwan/agent-skills --skill word-document -a codex2Вручную: положить файлы
.agents/skills/word-document/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add PracticalSwan/agent-skills --skill word-document -a cursor2Вручную: положить файлы
.cursor/skills/word-document/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install PracticalSwan/agent-skills word-document2Вручную: положить файлы
.github/skills/word-document/SKILL.md1Через Skills CLI (Vercel)
npx skills add PracticalSwan/agent-skills --skill word-document -a gemini-cli2Командой платформы
gemini skills install https://github.com/PracticalSwan/agent-skills --path word-documentВручную: положить файлы
.devin/skills/word-document/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add PracticalSwan/agent-skills --skill word-document -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о word-document
Как установить word-document в Claude?
Выполните npx skills add PracticalSwan/agent-skills --skill word-document -a claude-code. Скилл встанет в ~/.claude/skills/word-document/SKILL.md.
Что делает word-document?
Помогает агенту читать, создавать и править .docx: заголовки, таблицы, изображения, сноски, комментарии, стили и подготовка к PDF.
Нужен ли MCP-сервер для работы скилла?
Word Document MCP — предпочтительный путь, но его инструменты есть не в каждом клиенте. Без MCP скилл переходит на python-docx и локальные скрипты, а результат всё равно проверяется локально.
Исходный текст
SKILL.md · MIT
--- name: word-document version: "2.0" last_updated: 2026-09-08 tags: [docs, document, writing, quality, templates] description: "Word (.docx) manipulation via MCP server. Use for reading, creating, editing, formatting Word documents including tables, footnotes, comments, images, headers, styles, and PDF conversion." --- # Word Document Workflows > Tech Stack Target / Version: Word desktop or `python-docx` automation with current OOXML-compatible workflows. Use this skill when `.docx` layout and document structure matter, not just the raw text. - Leverage native parallel subagent dispatch and 200k+ context windows where available. ## Current MCP Reality Microsoft publicly documents a Word MCP server in the Microsoft 365 Agents Toolkit preview, but tool availability still depends on the host. In GitHub Copilot you may see Word-specific tools; in other clients they may be missing. If direct Word MCP access is unavailable, use the included local script workflow. ## Activation Conditions Use symptom -> action triggers: when one matches, apply this skill and verify with the protocol below. - Creating or editing `.docx` reports, memos, or structured deliverables - Applying headings, tables, images, or styles - Reviewing or extracting document structure - Preparing Word output before a later PDF conversion ## Practical Workflow 1. Confirm whether the client exposes Word MCP capabilities. 2. Start with structure: title, headings, sections, tables. 3. Apply styling consistently only after the structure is right. 4. Validate comments, footnotes, and references before export. 5. Use the local generator script when MCP access is unavailable. ## MCP Fallback – Native Automation When MCP is unavailable, use native automation: `python-docx` for `.docx`, direct OOXML inspection for unsupported structures, and PDF export checks when layout matters. Preserve styles, tables, headers, footers, comments, tracked-change expectations, and metadata, then reopen or parse the document before claiming success. <!-- MCP:START --> <!-- PORTABILITY:START --> ## Cross-Client Portability This skill is written to stay usable across GitHub Copilot, Claude Code, and Codex. - GitHub Copilot: keep the folder in a Copilot-visible skill path or wrap the workflow in project instructions when folder discovery is unavailable. - Claude Code: keep the folder in a local skills directory or a compatible plugin source. - Codex: install or sync the folder into `$CODEX_HOME/skills/word-document` and restart Codex after major changes. <!-- PORTABILITY:END --> ## MCP Availability And Fallback Preferred MCP Server: Word Document MCP - Fallback prompt: "Use the Word Document Workflows skill without MCP. Follow the documented local or manual fallback, show the selected tool surface, and report the verification evidence." - Use `python-docx`, Word desktop, or document export scripts when the MCP surface is unavailable. - Re-open or render the document locally so formatting, comments, and pagination are verified before delivery. - Do not claim an MCP operation was used when the active host does not expose it. <!-- MCP:END --> ## Anti-Patterns - Writing for the author instead of the reader: It bakes in unstated context and leaves the actual audience unsure what to do next. - Skipping concrete examples or commands: Abstract guidance is easy to approve and hard to apply correctly. - Letting links, screenshots, or versions drift: Polished formatting does not help if the instructions are no longer true. ## Verification Protocol Before claiming "skill applied successfully": 1. Pass/fail: The Word Document artifact type, target format, and required output fidelity are stated before editing. 2. Pass/fail: MCP availability is checked and the native automation fallback path is named when MCP is absent. 3. Pass/fail: The produced file or formula is opened, parsed, rendered, or otherwise validated locally. 4. Pressure-test scenario: Apply the workflow to a file with formatting, metadata, or conversion edge cases and verify nothing important is lost. 5. Success metric: Zero unverified document claims; the artifact itself is the evidence. ## Document Checklist - [ ] Heading hierarchy is clear - [ ] Tables are readable and consistently styled - [ ] Comments or review notes are intentional - [ ] Placeholder text is removed - [ ] The final document was re-opened or otherwise verified after generation ## References & Resources ### Documentation - [DOCX Formatting Reference](./references/docx-formatting-reference.md) - Practical formatting notes and document structure guidance ### Scripts - [DOC Template Generator](./scripts/doc-template-generator.py) - Local fallback for generating Word-ready document structures ### Examples - [Report Generation Example](./examples/report-generation-example.md) - Example report workflow for `.docx` output ## Related Skills - [documentation-authoring](../documentation-authoring/SKILL.md): Use it when the workflow also needs drafting structured technical or product documents. - [documentation-patterns](../documentation-patterns/SKILL.md): Use it when the workflow also needs reusable documentation structures and templates. - [documentation-quality](../documentation-quality/SKILL.md): Use it when the workflow also needs documentation review standards and quality gates. - [documentation-verification](../documentation-verification/SKILL.md): Use it when the workflow also needs final documentation validation before publishing.
© PracticalSwan · MIT · PracticalSwan/agent-skills