Документы Word (.docx)

Делает документы Word: новые собирает через docx-js, готовые правит прямо в XML, добавляет рецензирование и комментарии скриптами, потом проверяет и смотрит результат картинками. Для случаев, когда на входе или на выходе .docx или .dotx.

ДокументацияПак: Скиллы Anthropic92 строкиdocx
Автор
Источник
anthropics/skills/skills/docx @ e4bb5d9
Лицензия
Apache-2.0

Об этом скилле

Что делает

Скилл обращается с .docx как с тем, чем он и является, — ZIP-архивом XML-файлов — и выбирает путь по задаче. Новый документ собирается скриптом на Node с npm-библиотекой docx. API скилл не пересказывает, зато перечисляет ловушки: по умолчанию формат A4, ширину таблицы надо задавать и на каждой ячейке, заливка SOLID выходит чёрной, у стилей заголовков каждого уровня должны быть свои шрифт, отступы и keepNext. Существующий файл распаковывается через Python (не через unzip, который восстанавливает симлинки из чужого файла), правится в word/document.xml и упаковывается обратно. Читать документ — через pandoc -t markdown. Любой результат переводится в картинки страниц и просматривается. Правки в режиме рецензирования пишутся вручную тегами <w:ins> и <w:del>, и SKILL.md показывает как.

Скрипты:

  • merge_runs.py склеивает фрагменты, на которые Word режет текст, чтобы фразу можно было найти.
  • office/validate.py сверяет XML с XSD-схемами из папки; --auto-repair чинит типичные сбои идентификаторов и пробелов, --author показывает правки, сделанные без режима рецензирования.
  • accept_changes.py принимает все исправления макросом LibreOffice.
  • comment.py добавляет комментарий или ответ, создаёт шесть связанных частей, без которых Word его не покажет, и печатает метки для привязки к тексту.
  • office/soffice.py запускает LibreOffice в песочницах, где тот иначе падает.

Когда включать и когда не надо

Для документов Word и шаблонов .dotx, для договора с правками в режиме рецензирования и комментариями, для поиска с заменой в готовом файле или для его чтения.

Не для PDF, таблиц и Google Docs. Ключи API не нужны; нужны Node с docx, pandoc, LibreOffice, pdftoppm из Poppler и Python с defusedxml и lxml. Скилл считает, что docx уже стоит, и ставит его, только если require не сработал.

Как поставить и вызвать

Команда установки ниже скачивает всю папку: SKILL.md, скрипты, схемы, шаблоны и лицензию. Агент сам берёт скилл, когда речь заходит о файле Word. Вызвать вручную:

  • Claude Code: /docx или попросить скилл по имени.
  • Codex: $docx.
  • Cursor: наберите / в чате Agent и выберите docx.

Пример: /docx Внеси в contract.docx правки от имени «Юристы»: ограничь ответственность суммой за 12 месяцев и объясни это в комментарии.

Чем отличается от похожих

Совместное написание документов работает над содержанием и пишет Markdown или артефакт, а не .docx: черновик — там, файл — здесь. Презентации PowerPoint (.pptx) и Таблицы Excel (.xlsx) содержат по собственной копии той же папки scripts/office/, так что все три ставятся независимо. Других скиллов для Word в каталоге нет.

Установка

Выполните одну команду — она сохранит SKILL.md и файлы, которые он использует, в папку скиллов агента. Claude Code и Codex подхватывают новый скилл без перезапуска; если скилл не появился, перезапустите агента.

Скилл написан на английском — агент поймёт его и ответит вам по-русски.

Claude Code — macOS, Linux
curl -fsSL --create-dirs -o ~/.claude/skills/docx/SKILL.md https://anymodel.org/en/skills/anthropic/docx/SKILL.md -o ~/.claude/skills/docx/LICENSE.txt https://anymodel.org/en/skills/anthropic/docx/LICENSE.txt -o ~/.claude/skills/docx/scripts/__init__.py https://anymodel.org/en/skills/anthropic/docx/scripts/__init__.py -o ~/.claude/skills/docx/scripts/accept_changes.py https://anymodel.org/en/skills/anthropic/docx/scripts/accept_changes.py -o ~/.claude/skills/docx/scripts/comment.py https://anymodel.org/en/skills/anthropic/docx/scripts/comment.py -o ~/.claude/skills/docx/scripts/merge_runs.py https://anymodel.org/en/skills/anthropic/docx/scripts/merge_runs.py -o ~/.claude/skills/docx/scripts/office/helpers/__init__.py https://anymodel.org/en/skills/anthropic/docx/scripts/office/helpers/__init__.py -o ~/.claude/skills/docx/scripts/office/helpers/pptx_chart.py https://anymodel.org/en/skills/anthropic/docx/scripts/office/helpers/pptx_chart.py -o ~/.claude/skills/docx/scripts/office/helpers/pptx_slide.py https://anymodel.org/en/skills/anthropic/docx/scripts/office/helpers/pptx_slide.py -o ~/.claude/skills/docx/scripts/office/helpers/pptx_theme.py https://anymodel.org/en/skills/anthropic/docx/scripts/office/helpers/pptx_theme.py -o ~/.claude/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-chart.xsd https://anymodel.org/en/skills/anthropic/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-chart.xsd -o ~/.claude/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-chartDrawing.xsd https://anymodel.org/en/skills/anthropic/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-chartDrawing.xsd -o ~/.claude/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-diagram.xsd https://anymodel.org/en/skills/anthropic/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-diagram.xsd -o ~/.claude/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-lockedCanvas.xsd https://anymodel.org/en/skills/anthropic/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-lockedCanvas.xsd -o ~/.claude/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-main.xsd https://anymodel.org/en/skills/anthropic/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-main.xsd -o ~/.claude/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-picture.xsd https://anymodel.org/en/skills/anthropic/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-picture.xsd -o ~/.claude/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-spreadsheetDrawing.xsd https://anymodel.org/en/skills/anthropic/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-spreadsheetDrawing.xsd -o ~/.claude/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-wordprocessingDrawing.xsd https://anymodel.org/en/skills/anthropic/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-wordprocessingDrawing.xsd -o ~/.claude/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/pml.xsd https://anymodel.org/en/skills/anthropic/docx/scripts/office/schemas/ISO-IEC29500-4_2016/pml.xsd -o ~/.claude/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-additionalCharacteristics.xsd https://anymodel.org/en/skills/anthropic/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-additionalCharacteristics.xsd -o ~/.claude/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-bibliography.xsd https://anymodel.org/en/skills/anthropic/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-bibliography.xsd -o ~/.claude/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-commonSimpleTypes.xsd https://anymodel.org/en/skills/anthropic/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-commonSimpleTypes.xsd -o ~/.claude/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-customXmlDataProperties.xsd https://anymodel.org/en/skills/anthropic/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-customXmlDataProperties.xsd -o ~/.claude/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-customXmlSchemaProperties.xsd https://anymodel.org/en/skills/anthropic/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-customXmlSchemaProperties.xsd -o ~/.claude/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesCustom.xsd https://anymodel.org/en/skills/anthropic/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesCustom.xsd -o ~/.claude/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesExtended.xsd https://anymodel.org/en/skills/anthropic/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesExtended.xsd -o ~/.claude/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesVariantTypes.xsd https://anymodel.org/en/skills/anthropic/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesVariantTypes.xsd -o ~/.claude/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-math.xsd https://anymodel.org/en/skills/anthropic/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-math.xsd -o ~/.claude/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-relationshipReference.xsd https://anymodel.org/en/skills/anthropic/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-relationshipReference.xsd -o ~/.claude/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/sml.xsd https://anymodel.org/en/skills/anthropic/docx/scripts/office/schemas/ISO-IEC29500-4_2016/sml.xsd -o ~/.claude/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-main.xsd https://anymodel.org/en/skills/anthropic/docx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-main.xsd -o ~/.claude/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-officeDrawing.xsd https://anymodel.org/en/skills/anthropic/docx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-officeDrawing.xsd -o ~/.claude/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-presentationDrawing.xsd https://anymodel.org/en/skills/anthropic/docx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-presentationDrawing.xsd -o ~/.claude/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-spreadsheetDrawing.xsd https://anymodel.org/en/skills/anthropic/docx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-spreadsheetDrawing.xsd -o ~/.claude/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-wordprocessingDrawing.xsd https://anymodel.org/en/skills/anthropic/docx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-wordprocessingDrawing.xsd -o ~/.claude/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/wml.xsd https://anymodel.org/en/skills/anthropic/docx/scripts/office/schemas/ISO-IEC29500-4_2016/wml.xsd -o ~/.claude/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/xml.xsd https://anymodel.org/en/skills/anthropic/docx/scripts/office/schemas/ISO-IEC29500-4_2016/xml.xsd -o ~/.claude/skills/docx/scripts/office/schemas/ecma/fouth-edition/opc-contentTypes.xsd https://anymodel.org/en/skills/anthropic/docx/scripts/office/schemas/ecma/fouth-edition/opc-contentTypes.xsd -o ~/.claude/skills/docx/scripts/office/schemas/ecma/fouth-edition/opc-coreProperties.xsd https://anymodel.org/en/skills/anthropic/docx/scripts/office/schemas/ecma/fouth-edition/opc-coreProperties.xsd -o ~/.claude/skills/docx/scripts/office/schemas/ecma/fouth-edition/opc-digSig.xsd https://anymodel.org/en/skills/anthropic/docx/scripts/office/schemas/ecma/fouth-edition/opc-digSig.xsd -o ~/.claude/skills/docx/scripts/office/schemas/ecma/fouth-edition/opc-relationships.xsd https://anymodel.org/en/skills/anthropic/docx/scripts/office/schemas/ecma/fouth-edition/opc-relationships.xsd -o ~/.claude/skills/docx/scripts/office/schemas/mce/mc.xsd https://anymodel.org/en/skills/anthropic/docx/scripts/office/schemas/mce/mc.xsd -o ~/.claude/skills/docx/scripts/office/schemas/microsoft/wml-2010.xsd https://anymodel.org/en/skills/anthropic/docx/scripts/office/schemas/microsoft/wml-2010.xsd -o ~/.claude/skills/docx/scripts/office/schemas/microsoft/wml-2012.xsd https://anymodel.org/en/skills/anthropic/docx/scripts/office/schemas/microsoft/wml-2012.xsd -o ~/.claude/skills/docx/scripts/office/schemas/microsoft/wml-2018.xsd https://anymodel.org/en/skills/anthropic/docx/scripts/office/schemas/microsoft/wml-2018.xsd -o ~/.claude/skills/docx/scripts/office/schemas/microsoft/wml-cex-2018.xsd https://anymodel.org/en/skills/anthropic/docx/scripts/office/schemas/microsoft/wml-cex-2018.xsd -o ~/.claude/skills/docx/scripts/office/schemas/microsoft/wml-cid-2016.xsd https://anymodel.org/en/skills/anthropic/docx/scripts/office/schemas/microsoft/wml-cid-2016.xsd -o ~/.claude/skills/docx/scripts/office/schemas/microsoft/wml-sdtdatahash-2020.xsd https://anymodel.org/en/skills/anthropic/docx/scripts/office/schemas/microsoft/wml-sdtdatahash-2020.xsd -o ~/.claude/skills/docx/scripts/office/schemas/microsoft/wml-symex-2015.xsd https://anymodel.org/en/skills/anthropic/docx/scripts/office/schemas/microsoft/wml-symex-2015.xsd -o ~/.claude/skills/docx/scripts/office/soffice.py https://anymodel.org/en/skills/anthropic/docx/scripts/office/soffice.py -o ~/.claude/skills/docx/scripts/office/validate.py https://anymodel.org/en/skills/anthropic/docx/scripts/office/validate.py -o ~/.claude/skills/docx/scripts/office/validators/__init__.py https://anymodel.org/en/skills/anthropic/docx/scripts/office/validators/__init__.py -o ~/.claude/skills/docx/scripts/office/validators/base.py https://anymodel.org/en/skills/anthropic/docx/scripts/office/validators/base.py -o ~/.claude/skills/docx/scripts/office/validators/docx.py https://anymodel.org/en/skills/anthropic/docx/scripts/office/validators/docx.py -o ~/.claude/skills/docx/scripts/office/validators/pptx.py https://anymodel.org/en/skills/anthropic/docx/scripts/office/validators/pptx.py -o ~/.claude/skills/docx/scripts/office/validators/redlining.py https://anymodel.org/en/skills/anthropic/docx/scripts/office/validators/redlining.py -o ~/.claude/skills/docx/scripts/templates/comments.xml https://anymodel.org/en/skills/anthropic/docx/scripts/templates/comments.xml -o ~/.claude/skills/docx/scripts/templates/commentsExtended.xml https://anymodel.org/en/skills/anthropic/docx/scripts/templates/commentsExtended.xml -o ~/.claude/skills/docx/scripts/templates/commentsExtensible.xml https://anymodel.org/en/skills/anthropic/docx/scripts/templates/commentsExtensible.xml -o ~/.claude/skills/docx/scripts/templates/commentsIds.xml https://anymodel.org/en/skills/anthropic/docx/scripts/templates/commentsIds.xml -o ~/.claude/skills/docx/scripts/templates/people.xml https://anymodel.org/en/skills/anthropic/docx/scripts/templates/people.xml && chmod +x ~/.claude/skills/docx/scripts/__init__.py ~/.claude/skills/docx/scripts/accept_changes.py ~/.claude/skills/docx/scripts/comment.py ~/.claude/skills/docx/scripts/merge_runs.py ~/.claude/skills/docx/scripts/office/validate.py
Codex, Cursor — macOS, Linux
curl -fsSL --create-dirs -o ~/.agents/skills/docx/SKILL.md https://anymodel.org/en/skills/anthropic/docx/SKILL.md -o ~/.agents/skills/docx/LICENSE.txt https://anymodel.org/en/skills/anthropic/docx/LICENSE.txt -o ~/.agents/skills/docx/scripts/__init__.py https://anymodel.org/en/skills/anthropic/docx/scripts/__init__.py -o ~/.agents/skills/docx/scripts/accept_changes.py https://anymodel.org/en/skills/anthropic/docx/scripts/accept_changes.py -o ~/.agents/skills/docx/scripts/comment.py https://anymodel.org/en/skills/anthropic/docx/scripts/comment.py -o ~/.agents/skills/docx/scripts/merge_runs.py https://anymodel.org/en/skills/anthropic/docx/scripts/merge_runs.py -o ~/.agents/skills/docx/scripts/office/helpers/__init__.py https://anymodel.org/en/skills/anthropic/docx/scripts/office/helpers/__init__.py -o ~/.agents/skills/docx/scripts/office/helpers/pptx_chart.py https://anymodel.org/en/skills/anthropic/docx/scripts/office/helpers/pptx_chart.py -o ~/.agents/skills/docx/scripts/office/helpers/pptx_slide.py https://anymodel.org/en/skills/anthropic/docx/scripts/office/helpers/pptx_slide.py -o ~/.agents/skills/docx/scripts/office/helpers/pptx_theme.py https://anymodel.org/en/skills/anthropic/docx/scripts/office/helpers/pptx_theme.py -o ~/.agents/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-chart.xsd https://anymodel.org/en/skills/anthropic/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-chart.xsd -o ~/.agents/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-chartDrawing.xsd https://anymodel.org/en/skills/anthropic/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-chartDrawing.xsd -o ~/.agents/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-diagram.xsd https://anymodel.org/en/skills/anthropic/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-diagram.xsd -o ~/.agents/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-lockedCanvas.xsd https://anymodel.org/en/skills/anthropic/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-lockedCanvas.xsd -o ~/.agents/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-main.xsd https://anymodel.org/en/skills/anthropic/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-main.xsd -o ~/.agents/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-picture.xsd https://anymodel.org/en/skills/anthropic/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-picture.xsd -o ~/.agents/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-spreadsheetDrawing.xsd https://anymodel.org/en/skills/anthropic/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-spreadsheetDrawing.xsd -o ~/.agents/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-wordprocessingDrawing.xsd https://anymodel.org/en/skills/anthropic/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-wordprocessingDrawing.xsd -o ~/.agents/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/pml.xsd https://anymodel.org/en/skills/anthropic/docx/scripts/office/schemas/ISO-IEC29500-4_2016/pml.xsd -o ~/.agents/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-additionalCharacteristics.xsd https://anymodel.org/en/skills/anthropic/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-additionalCharacteristics.xsd -o ~/.agents/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-bibliography.xsd https://anymodel.org/en/skills/anthropic/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-bibliography.xsd -o ~/.agents/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-commonSimpleTypes.xsd https://anymodel.org/en/skills/anthropic/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-commonSimpleTypes.xsd -o ~/.agents/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-customXmlDataProperties.xsd https://anymodel.org/en/skills/anthropic/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-customXmlDataProperties.xsd -o ~/.agents/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-customXmlSchemaProperties.xsd https://anymodel.org/en/skills/anthropic/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-customXmlSchemaProperties.xsd -o ~/.agents/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesCustom.xsd https://anymodel.org/en/skills/anthropic/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesCustom.xsd -o ~/.agents/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesExtended.xsd https://anymodel.org/en/skills/anthropic/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesExtended.xsd -o ~/.agents/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesVariantTypes.xsd https://anymodel.org/en/skills/anthropic/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesVariantTypes.xsd -o ~/.agents/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-math.xsd https://anymodel.org/en/skills/anthropic/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-math.xsd -o ~/.agents/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-relationshipReference.xsd https://anymodel.org/en/skills/anthropic/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-relationshipReference.xsd -o ~/.agents/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/sml.xsd https://anymodel.org/en/skills/anthropic/docx/scripts/office/schemas/ISO-IEC29500-4_2016/sml.xsd -o ~/.agents/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-main.xsd https://anymodel.org/en/skills/anthropic/docx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-main.xsd -o ~/.agents/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-officeDrawing.xsd https://anymodel.org/en/skills/anthropic/docx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-officeDrawing.xsd -o ~/.agents/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-presentationDrawing.xsd https://anymodel.org/en/skills/anthropic/docx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-presentationDrawing.xsd -o ~/.agents/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-spreadsheetDrawing.xsd https://anymodel.org/en/skills/anthropic/docx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-spreadsheetDrawing.xsd -o ~/.agents/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-wordprocessingDrawing.xsd https://anymodel.org/en/skills/anthropic/docx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-wordprocessingDrawing.xsd -o ~/.agents/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/wml.xsd https://anymodel.org/en/skills/anthropic/docx/scripts/office/schemas/ISO-IEC29500-4_2016/wml.xsd -o ~/.agents/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/xml.xsd https://anymodel.org/en/skills/anthropic/docx/scripts/office/schemas/ISO-IEC29500-4_2016/xml.xsd -o ~/.agents/skills/docx/scripts/office/schemas/ecma/fouth-edition/opc-contentTypes.xsd https://anymodel.org/en/skills/anthropic/docx/scripts/office/schemas/ecma/fouth-edition/opc-contentTypes.xsd -o ~/.agents/skills/docx/scripts/office/schemas/ecma/fouth-edition/opc-coreProperties.xsd https://anymodel.org/en/skills/anthropic/docx/scripts/office/schemas/ecma/fouth-edition/opc-coreProperties.xsd -o ~/.agents/skills/docx/scripts/office/schemas/ecma/fouth-edition/opc-digSig.xsd https://anymodel.org/en/skills/anthropic/docx/scripts/office/schemas/ecma/fouth-edition/opc-digSig.xsd -o ~/.agents/skills/docx/scripts/office/schemas/ecma/fouth-edition/opc-relationships.xsd https://anymodel.org/en/skills/anthropic/docx/scripts/office/schemas/ecma/fouth-edition/opc-relationships.xsd -o ~/.agents/skills/docx/scripts/office/schemas/mce/mc.xsd https://anymodel.org/en/skills/anthropic/docx/scripts/office/schemas/mce/mc.xsd -o ~/.agents/skills/docx/scripts/office/schemas/microsoft/wml-2010.xsd https://anymodel.org/en/skills/anthropic/docx/scripts/office/schemas/microsoft/wml-2010.xsd -o ~/.agents/skills/docx/scripts/office/schemas/microsoft/wml-2012.xsd https://anymodel.org/en/skills/anthropic/docx/scripts/office/schemas/microsoft/wml-2012.xsd -o ~/.agents/skills/docx/scripts/office/schemas/microsoft/wml-2018.xsd https://anymodel.org/en/skills/anthropic/docx/scripts/office/schemas/microsoft/wml-2018.xsd -o ~/.agents/skills/docx/scripts/office/schemas/microsoft/wml-cex-2018.xsd https://anymodel.org/en/skills/anthropic/docx/scripts/office/schemas/microsoft/wml-cex-2018.xsd -o ~/.agents/skills/docx/scripts/office/schemas/microsoft/wml-cid-2016.xsd https://anymodel.org/en/skills/anthropic/docx/scripts/office/schemas/microsoft/wml-cid-2016.xsd -o ~/.agents/skills/docx/scripts/office/schemas/microsoft/wml-sdtdatahash-2020.xsd https://anymodel.org/en/skills/anthropic/docx/scripts/office/schemas/microsoft/wml-sdtdatahash-2020.xsd -o ~/.agents/skills/docx/scripts/office/schemas/microsoft/wml-symex-2015.xsd https://anymodel.org/en/skills/anthropic/docx/scripts/office/schemas/microsoft/wml-symex-2015.xsd -o ~/.agents/skills/docx/scripts/office/soffice.py https://anymodel.org/en/skills/anthropic/docx/scripts/office/soffice.py -o ~/.agents/skills/docx/scripts/office/validate.py https://anymodel.org/en/skills/anthropic/docx/scripts/office/validate.py -o ~/.agents/skills/docx/scripts/office/validators/__init__.py https://anymodel.org/en/skills/anthropic/docx/scripts/office/validators/__init__.py -o ~/.agents/skills/docx/scripts/office/validators/base.py https://anymodel.org/en/skills/anthropic/docx/scripts/office/validators/base.py -o ~/.agents/skills/docx/scripts/office/validators/docx.py https://anymodel.org/en/skills/anthropic/docx/scripts/office/validators/docx.py -o ~/.agents/skills/docx/scripts/office/validators/pptx.py https://anymodel.org/en/skills/anthropic/docx/scripts/office/validators/pptx.py -o ~/.agents/skills/docx/scripts/office/validators/redlining.py https://anymodel.org/en/skills/anthropic/docx/scripts/office/validators/redlining.py -o ~/.agents/skills/docx/scripts/templates/comments.xml https://anymodel.org/en/skills/anthropic/docx/scripts/templates/comments.xml -o ~/.agents/skills/docx/scripts/templates/commentsExtended.xml https://anymodel.org/en/skills/anthropic/docx/scripts/templates/commentsExtended.xml -o ~/.agents/skills/docx/scripts/templates/commentsExtensible.xml https://anymodel.org/en/skills/anthropic/docx/scripts/templates/commentsExtensible.xml -o ~/.agents/skills/docx/scripts/templates/commentsIds.xml https://anymodel.org/en/skills/anthropic/docx/scripts/templates/commentsIds.xml -o ~/.agents/skills/docx/scripts/templates/people.xml https://anymodel.org/en/skills/anthropic/docx/scripts/templates/people.xml && chmod +x ~/.agents/skills/docx/scripts/__init__.py ~/.agents/skills/docx/scripts/accept_changes.py ~/.agents/skills/docx/scripts/comment.py ~/.agents/skills/docx/scripts/merge_runs.py ~/.agents/skills/docx/scripts/office/validate.py
Claude Code — Windows PowerShell
foreach ($f in 'SKILL.md','LICENSE.txt','scripts/__init__.py','scripts/accept_changes.py','scripts/comment.py','scripts/merge_runs.py','scripts/office/helpers/__init__.py','scripts/office/helpers/pptx_chart.py','scripts/office/helpers/pptx_slide.py','scripts/office/helpers/pptx_theme.py','scripts/office/schemas/ISO-IEC29500-4_2016/dml-chart.xsd','scripts/office/schemas/ISO-IEC29500-4_2016/dml-chartDrawing.xsd','scripts/office/schemas/ISO-IEC29500-4_2016/dml-diagram.xsd','scripts/office/schemas/ISO-IEC29500-4_2016/dml-lockedCanvas.xsd','scripts/office/schemas/ISO-IEC29500-4_2016/dml-main.xsd','scripts/office/schemas/ISO-IEC29500-4_2016/dml-picture.xsd','scripts/office/schemas/ISO-IEC29500-4_2016/dml-spreadsheetDrawing.xsd','scripts/office/schemas/ISO-IEC29500-4_2016/dml-wordprocessingDrawing.xsd','scripts/office/schemas/ISO-IEC29500-4_2016/pml.xsd','scripts/office/schemas/ISO-IEC29500-4_2016/shared-additionalCharacteristics.xsd','scripts/office/schemas/ISO-IEC29500-4_2016/shared-bibliography.xsd','scripts/office/schemas/ISO-IEC29500-4_2016/shared-commonSimpleTypes.xsd','scripts/office/schemas/ISO-IEC29500-4_2016/shared-customXmlDataProperties.xsd','scripts/office/schemas/ISO-IEC29500-4_2016/shared-customXmlSchemaProperties.xsd','scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesCustom.xsd','scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesExtended.xsd','scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesVariantTypes.xsd','scripts/office/schemas/ISO-IEC29500-4_2016/shared-math.xsd','scripts/office/schemas/ISO-IEC29500-4_2016/shared-relationshipReference.xsd','scripts/office/schemas/ISO-IEC29500-4_2016/sml.xsd','scripts/office/schemas/ISO-IEC29500-4_2016/vml-main.xsd','scripts/office/schemas/ISO-IEC29500-4_2016/vml-officeDrawing.xsd','scripts/office/schemas/ISO-IEC29500-4_2016/vml-presentationDrawing.xsd','scripts/office/schemas/ISO-IEC29500-4_2016/vml-spreadsheetDrawing.xsd','scripts/office/schemas/ISO-IEC29500-4_2016/vml-wordprocessingDrawing.xsd','scripts/office/schemas/ISO-IEC29500-4_2016/wml.xsd','scripts/office/schemas/ISO-IEC29500-4_2016/xml.xsd','scripts/office/schemas/ecma/fouth-edition/opc-contentTypes.xsd','scripts/office/schemas/ecma/fouth-edition/opc-coreProperties.xsd','scripts/office/schemas/ecma/fouth-edition/opc-digSig.xsd','scripts/office/schemas/ecma/fouth-edition/opc-relationships.xsd','scripts/office/schemas/mce/mc.xsd','scripts/office/schemas/microsoft/wml-2010.xsd','scripts/office/schemas/microsoft/wml-2012.xsd','scripts/office/schemas/microsoft/wml-2018.xsd','scripts/office/schemas/microsoft/wml-cex-2018.xsd','scripts/office/schemas/microsoft/wml-cid-2016.xsd','scripts/office/schemas/microsoft/wml-sdtdatahash-2020.xsd','scripts/office/schemas/microsoft/wml-symex-2015.xsd','scripts/office/soffice.py','scripts/office/validate.py','scripts/office/validators/__init__.py','scripts/office/validators/base.py','scripts/office/validators/docx.py','scripts/office/validators/pptx.py','scripts/office/validators/redlining.py','scripts/templates/comments.xml','scripts/templates/commentsExtended.xml','scripts/templates/commentsExtensible.xml','scripts/templates/commentsIds.xml','scripts/templates/people.xml') { $p = Join-Path "$HOME\.claude\skills\docx" $f; New-Item -ItemType Directory -Force (Split-Path $p) | Out-Null; Invoke-WebRequest "https://anymodel.org/en/skills/anthropic/docx/$f" -UseBasicParsing -OutFile $p }
Codex, Cursor — Windows PowerShell
foreach ($f in 'SKILL.md','LICENSE.txt','scripts/__init__.py','scripts/accept_changes.py','scripts/comment.py','scripts/merge_runs.py','scripts/office/helpers/__init__.py','scripts/office/helpers/pptx_chart.py','scripts/office/helpers/pptx_slide.py','scripts/office/helpers/pptx_theme.py','scripts/office/schemas/ISO-IEC29500-4_2016/dml-chart.xsd','scripts/office/schemas/ISO-IEC29500-4_2016/dml-chartDrawing.xsd','scripts/office/schemas/ISO-IEC29500-4_2016/dml-diagram.xsd','scripts/office/schemas/ISO-IEC29500-4_2016/dml-lockedCanvas.xsd','scripts/office/schemas/ISO-IEC29500-4_2016/dml-main.xsd','scripts/office/schemas/ISO-IEC29500-4_2016/dml-picture.xsd','scripts/office/schemas/ISO-IEC29500-4_2016/dml-spreadsheetDrawing.xsd','scripts/office/schemas/ISO-IEC29500-4_2016/dml-wordprocessingDrawing.xsd','scripts/office/schemas/ISO-IEC29500-4_2016/pml.xsd','scripts/office/schemas/ISO-IEC29500-4_2016/shared-additionalCharacteristics.xsd','scripts/office/schemas/ISO-IEC29500-4_2016/shared-bibliography.xsd','scripts/office/schemas/ISO-IEC29500-4_2016/shared-commonSimpleTypes.xsd','scripts/office/schemas/ISO-IEC29500-4_2016/shared-customXmlDataProperties.xsd','scripts/office/schemas/ISO-IEC29500-4_2016/shared-customXmlSchemaProperties.xsd','scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesCustom.xsd','scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesExtended.xsd','scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesVariantTypes.xsd','scripts/office/schemas/ISO-IEC29500-4_2016/shared-math.xsd','scripts/office/schemas/ISO-IEC29500-4_2016/shared-relationshipReference.xsd','scripts/office/schemas/ISO-IEC29500-4_2016/sml.xsd','scripts/office/schemas/ISO-IEC29500-4_2016/vml-main.xsd','scripts/office/schemas/ISO-IEC29500-4_2016/vml-officeDrawing.xsd','scripts/office/schemas/ISO-IEC29500-4_2016/vml-presentationDrawing.xsd','scripts/office/schemas/ISO-IEC29500-4_2016/vml-spreadsheetDrawing.xsd','scripts/office/schemas/ISO-IEC29500-4_2016/vml-wordprocessingDrawing.xsd','scripts/office/schemas/ISO-IEC29500-4_2016/wml.xsd','scripts/office/schemas/ISO-IEC29500-4_2016/xml.xsd','scripts/office/schemas/ecma/fouth-edition/opc-contentTypes.xsd','scripts/office/schemas/ecma/fouth-edition/opc-coreProperties.xsd','scripts/office/schemas/ecma/fouth-edition/opc-digSig.xsd','scripts/office/schemas/ecma/fouth-edition/opc-relationships.xsd','scripts/office/schemas/mce/mc.xsd','scripts/office/schemas/microsoft/wml-2010.xsd','scripts/office/schemas/microsoft/wml-2012.xsd','scripts/office/schemas/microsoft/wml-2018.xsd','scripts/office/schemas/microsoft/wml-cex-2018.xsd','scripts/office/schemas/microsoft/wml-cid-2016.xsd','scripts/office/schemas/microsoft/wml-sdtdatahash-2020.xsd','scripts/office/schemas/microsoft/wml-symex-2015.xsd','scripts/office/soffice.py','scripts/office/validate.py','scripts/office/validators/__init__.py','scripts/office/validators/base.py','scripts/office/validators/docx.py','scripts/office/validators/pptx.py','scripts/office/validators/redlining.py','scripts/templates/comments.xml','scripts/templates/commentsExtended.xml','scripts/templates/commentsExtensible.xml','scripts/templates/commentsIds.xml','scripts/templates/people.xml') { $p = Join-Path "$HOME\.agents\skills\docx" $f; New-Item -ItemType Directory -Force (Split-Path $p) | Out-Null; Invoke-WebRequest "https://anymodel.org/en/skills/anthropic/docx/$f" -UseBasicParsing -OutFile $p }

Другой агент: сохраните файл в его папку скиллов или дайте ему ссылку на файл: https://anymodel.org/en/skills/anthropic/docx/SKILL.md

SKILL.md

Исходник

DOCX creation, editing, and analysis

A .docx is a ZIP archive of XML files. Choose your approach by task:

Task Approach
Create a new document Write a docx (npm) script — see gotchas below
Edit an existing document unpack → edit word/document.xml → zip (docx-js cannot open existing files)
Read content pandoc -t markdown file.docx

Script paths below are relative to this skill's directory.

Creating with docx-js — gotchas

docx is preinstalled — do not run npm install first; write the script and require('docx') directly. Only if that require fails: npm install docx. The model knows the API; these are the footguns:

  • Page size defaults to A4. For US Letter set page: { size: { width: 12240, height: 15840 } } (DXA; 1440 = 1″).
  • Landscape: pass portrait dimensions and orientation: PageOrientation.LANDSCAPE — docx-js swaps width/height internally.
  • Tables need dual widths: set columnWidths on the table AND width on every cell, both in WidthType.DXA (PERCENTAGE breaks in Google Docs). Column widths must sum to the table width.
  • Table shading: use ShadingType.CLEAR, never SOLID (renders black).
  • Lists: never insert • literally; use a numbering config with LevelFormat.BULLET.
  • ImageRun requires type: ("png", "jpg", …).
  • PageBreak must be inside a Paragraph.
  • Never use \n — use separate Paragraph elements.
  • Headings: style every level you use (title, heading1, heading2…) in styles.default: heading1: { run: { font: "Arial", size: 32, bold: true }, paragraph: { spacing: { before: 240, after: 120 }, keepNext: true } }. Every level needs its own font (even with a document default), before and after (even if 0) and keepNext: the built-in styles set none of them.
  • TOC: headings must use built-in HeadingLevel.*; custom heading styles need outlineLevel set or they won't appear.
  • Don't use a table as a horizontal rule — use a paragraph bottom border instead.
  • Dot-leader / right-aligned-on-same-line: use PositionalTab (alignment: PositionalTabAlignment.RIGHT, leader: PositionalTabLeader.DOT) inside a TextRun, not literal . or space padding.

Verify the output

After writing a .docx, render it and look at it:

zip -d output.docx '*/' >/dev/null || true   # drop the ZIP's folder entries: Word has refused a file that has them when opened through a cloud co-editing service
python scripts/office/soffice.py --headless --convert-to pdf output.docx
pdftoppm -jpeg -r 100 output.pdf page
ls page-*.jpg   # then Read the images

pdftoppm zero-pads page numbers to the width of the page count (page-01.jpg…page-12.jpg).

Editing existing documents

Legacy .doc files must be converted first: python scripts/office/soffice.py --headless --convert-to docx file.doc.

python3 -c "import sys,zipfile; zipfile.ZipFile(sys.argv[1]).extractall('unpacked')" doc.docx   # not unzip, which restores symlinks — docx from external parties is untrusted
python scripts/merge_runs.py unpacked/   # coalesce fragmented runs so text is findable
# edit unpacked/word/document.xml in place — do NOT reformat or pretty-print
(cd unpacked && rm -f ../out.docx && zip -XrDy ../out.docx .)
python scripts/office/validate.py out.docx --original doc.docx   # XSD checks; --auto-repair fixes common issues
# redlining? add --author "<the name you redlined under>" to check every edit is tracked

Word splits text across many <w:r> runs (revision ids, spell-check markers), so a phrase you can see in the document often doesn't exist as a contiguous string in the XML. merge_runs.py merges adjacent identically-formatted runs in word/document.xml without changing content or rendering; it also accepts a .docx directly (python scripts/merge_runs.py doc.docx -o merged.docx).

Tracked changes: when redlining, validate with --author "<the name you redlined under>" (needs --original) — it reports any text you changed without a <w:ins>/<w:del> around it, which is easy to do by accident and invisible in the accepted view. Wrap runs in <w:ins>/<w:del> with w:id, w:author, w:date attributes. Inside <w:del>, the text element is <w:delText>, not <w:t>. A deleted paragraph mark (<w:pPr><w:rPr><w:del w:id=".." w:author=".." w:date=".."/></w:rPr></w:pPr>) means "merge this paragraph into the next" — so deleting a paragraph outright is that plus a <w:del> around every run. The <w:del/> must come before the rPr's other children; their order is schema-enforced.

To produce a clean copy with all tracked changes accepted: python scripts/accept_changes.py in.docx out.docx.

Accepting a deleted paragraph mark should join that paragraph to the one below it, so a paragraph whose runs are all deleted vanishes. Word does this; accept_changes.py and pandoc --track-changes=accept don't always. Both fail the same way — they strip the deleted text but leave the emptied paragraph behind, which reads as a stray empty bullet when it was auto-numbered:

  • pandoc --track-changes=accept never joins the paragraphs.
  • accept_changes.py (LibreOffice) joins them correctly, except when the deleted paragraph is followed by an empty spacer paragraph.

An empty bullet in either view is an artifact of that view, not a defect in the document. Check paragraph deletions in the XML.

Comments

Comments require six cross-linked files. Use the helper — directory mode when you'll also be editing document.xml (saves an unzip/rezip cycle), .docx-direct mode otherwise:

# Against an already-unpacked directory (preferred when also placing markers)
python scripts/comment.py unpacked/ "Fees & expenses cap is too low"
python scripts/comment.py unpacked/ "Agreed" --parent 0

# Against a .docx directly
python scripts/comment.py contract.docx "This cap is too low" -o annotated.docx

The script writes comments.xml, commentsExtended.xml, commentsIds.xml, commentsExtensible.xml, the relationships, and the content-type overrides. Comment IDs are auto-assigned. It then prints the <w:commentRangeStart>/<w:commentRangeEnd>/<w:commentReference> snippet to add to word/document.xml so the comment anchors to specific text — until you place those markers, the comment exists but is not visible.

Dependencies

docx (npm, preinstalled — install only if require('docx') fails) · pandoc · LibreOffice (soffice) · pdftoppm (Poppler)

Подключить через AnyModel API

Скилл работает на той модели, которую использует агент. Подключите Claude Code, Codex или Cursor к AnyModel и запускайте его на Claude, GPT, Gemini и других моделях по одному ключу — оплата за токены, без подписки.

Ещё из пака Скиллы Anthropic

Создание MCP-сервера

Делает MCP-сервер для внешнего API на TypeScript или Python: инструменты, схемы, пагинация, ошибки, проверка и прогон оценки через Claude. Для случаев, когда API или сервис нужно отдать агентам как инструменты MCP.

Создание скиллов с проверкой на тестах

Делает новый скилл или правит старый, проверяет его субагентами против контрольного прогона, показывает результаты и цифры на странице просмотра и подбирает описание. Для случаев, когда скилл нужно измерить, а не только написать.

Выразительный фронтенд-дизайн

Делает для нового интерфейса визуальное решение из мира продукта: короткий план цветов, шрифтов и композиции, сверенный с брифом и типичной ИИ-эстетикой до кода. Для случаев, когда страница или экран не должны выглядеть шаблонно.

Проверка веб-приложения скриптами Playwright

Делает проверки локального веб-приложения скриптами Python Playwright: помощник поднимает и гасит серверы, агент осматривает страницу, кликает, снимает скриншоты и читает консоль. Для случаев, когда нужно проверить фронтенд или воспроизвести баг.

PDF: чтение, заполнение, создание

Делает с PDF всё основное: текст и таблицы, склейка, разрезание, пароль, распознавание сканов, новые файлы, а формы заполняет скриптами с проверкой полей и рамок. Для случаев, когда нужно прочитать, заполнить или собрать PDF.

Таблицы Excel (.xlsx)

Делает таблицы Excel через openpyxl с живыми формулами, пересчитывает их в LibreOffice с отчётом об ошибках в JSON и соблюдает правила финансовых моделей. Для случаев, когда результат работы — сам файл таблицы: .xlsx, .xlsm или .csv.

Презентации PowerPoint (.pptx)

Делает презентации: новые собирает в pptxgenjs на теме и макетах, шаблоны правит в XML скриптами для текста, миниатюр, копий слайдов и проверки, каждый слайд смотрит картинкой. Для случаев, когда нужно создать, править или прочитать .pptx или .potx.

Справочник по Claude API для агента

Делает код для Claude API по справочнику Anthropic: SDK на семи языках и cURL, модели и цены, инструменты, кэширование, Managed Agents, процедуры миграции, экономии и оценок. Для случаев, когда код вызывает Claude или переходит на новую модель.

Генеративная графика на p5.js

Делает генеративную графику на p5.js: короткий манифест, затем алгоритм с зерном на одной HTML-странице с ползунками, переходом по зёрнам и скачиванием PNG. Для случаев, когда нужны поля течений, частицы или другая графика из кода.

Совместное написание документов

Делает написание документа процессом из трёх этапов: сбор контекста с вопросами, работа по разделам с вариантами на выбор и проверка на субагенте, который видит только текст. Для случаев, когда пишется спецификация, предложение или документ о решении.