Логотип Docx

Docx

Организация
Navinspire-ia
docx

Works on existing Word (.docx) files at the package level with python-docx and lxml. Dumps and replaces text while keeping run formatting, adds or lists comments, accepts, rejects or creates tracked changes, unpacks, repacks and validates the OOXML package, converts with headless LibreOffice. Use when the user asks to "edit this Word file", "add comments to the docx", "accept all tracked changes", "replace the text in the contract" or "check why this docx is corrupted". In French "modifie ce fichier Word", "ajoute des commentaires dans ce document", "accepte les modifications suivies" or "remplace le texte du contrat". New documents from scratch belong to docx-generator.

Обзор

ИздательNavinspire-ia
Репозиторийnavin
Название навыкаdocx
Звёзды
37
Форки
5
Файлы в комплекте
6
ЛицензияAGPL-3.0
Ссылки
  • Инструкции в формате Markdown

    Модель загружает файл SKILL.md по мере необходимости, поэтому токены расходуются только при подходящем запросе.

  • Работает с любой большой языковой моделью

    Навыки ИИ — это обычный Markdown, а не код для конкретного поставщика, поэтому они работают с GPT, Claude, Gemini, Grok и локальными моделями.

  • Файлы в комплекте: 6

    Скрипты, шаблоны и справочные материалы, которые модель может читать во время работы. Файлы доступны только для чтения и никогда не выполняются.

  • Открытый исходный код

    Издатель навыка на GitHub — Navinspire-ia. Перед установкой изучите исходные материалы.

Установка

Установите навык ИИ Docx в TypingMind, чтобы использовать его с любой LLM, или добавьте его в другой агент, который умеет читать SKILL.md.

1

Установка в TypingMind

TypingMind устанавливает навык прямо из его папки на GitHub: читает SKILL.md, собирает файлы ресурсов и сохраняет результат локально.

  1. Откройте приложение и перейдите в раздел «Плагины → Навыки».
  2. Выберите «Установить из GitHub».
  3. Вставьте указанную ниже ссылку на папку навыка и подтвердите установку.
    https://github.com/Navinspire-ia/navin/tree/main/navin/skills/docx
  4. Включите навык в каждом чате, где хотите его использовать.
Плагины → Навыки → Добавить навык → По ссылке GitHub, затем вставьте ссылку на папку и нажмите «Продолжить».
2

Установка в другом агенте

Любой агент с поддержкой формата Agent Skills может использовать этот навык — скопируйте папку в каталог навыков этого агента.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Navinspire-ia/navin.git /tmp/navin
mkdir -p .claude/skills
cp -r /tmp/navin/navin/skills/docx .claude/skills/docx
После копирования перезапустите Claude Code, чтобы загрузить новый навык.

Использование в TypingMind

Включите навык Docx в любом чате TypingMind, и дальше модель всё сделает сама. Его название и описание хранятся в системном промпте, а при появлении подходящего запроса модель сама загружает полные инструкции. Вам не нужно вызывать навык вручную, и до фактического использования он не расходует токены.

Модель сама загружает навык Docx, как только появляется подходящий для него запрос.

Работает с любой моделью ИИ

Навыки ИИ — это обычные инструкции в Markdown, а не код для конкретного поставщика, поэтому навык Docx не привязан к модели, для которой он был создан. Установите его один раз в TypingMind и используйте с GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama или локальной моделью, которую запускаете самостоятельно, — со своими ключами API.

  • Загружается только при необходимости

    Системный промпт содержит только название и описание. Инструкции загружаются при первом подходящем запросе, поэтому неиспользуемый навык не расходует токены.

  • Меняйте модели прямо в чате

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

Инструкции навыка

Это содержимое файла SKILL.md, которое загружает модель. Прочитайте его перед установкой: навык — это инструкции, которым будет следовать ваша модель.

DOCX Toolkit

Overview

This skill edits Word files that already exist: contracts, reports, templates sent by the user. It preserves what is there (styles, numbering, headers, images, revision history) and changes only what was asked. All scripts run with exec and the bundled libraries (python-docx, lxml); nothing has to be installed first.

Pick the sibling skill when the job is different:

  • docx-generator: write a new report, letter or proposal from a brief or an HTML template.
  • pdf-generator: the deliverable must be a PDF rendered from HTML.
  • pdf: the input is a PDF, not a Word file.

Workflow

1. Read before touching

  1. Dump the text with python3 navin/skills/docx/scripts/docx_text.py dump input.docx --format markdown (or --format json for paragraph indexes, style names and table flags). Read the result with read_file when it is long.
  2. Count revisions and comments: python3 navin/skills/docx/scripts/docx_track.py count input.docx --json and python3 navin/skills/docx/scripts/docx_comments.py list input.docx. A document with pending revisions must be accepted or rejected first when the user wants a clean copy.
  3. Validate the package when Word complains or when the file comes from an unknown generator: python3 navin/skills/docx/scripts/office_pkg.py validate input.docx --json.

2. Edit

Always write to a new file with --out edited.docx unless the user explicitly wants the original overwritten.

  • Plain text replacement that keeps bold, italics and fonts of the matched run: docx_text.py replace input.docx --find "Old name" --with "New name" --all --out edited.docx.
  • Legal or review context, where the change must stay visible: docx_track.py replace input.docx --find "30 days" --with "45 days" --author "Navin" --out edited.docx records a tracked deletion followed by a tracked insertion.
  • Comments for a reviewer: docx_comments.py add input.docx --anchor "Payment terms" --text "Confirm the due date with finance." --author "Navin" --out edited.docx anchors the comment on the first paragraph containing the anchor text.
  • Accept or reject everything: docx_track.py accept input.docx --out clean.docx keeps insertions and drops deletions; reject does the opposite. Both clear formatting-change records in body, headers, footers, footnotes and endnotes.

3. Package-level surgery

When python-docx has no API for the change (content controls, custom XML, numbering restart, header images, broken relationships):

  1. office_pkg.py unpack input.docx work/ extracts the parts with pretty-printed XML.
  2. Edit work/word/document.xml (or styles.xml, numbering.xml, header1.xml) with edit_file. Keep w:r runs intact; a text node always lives inside w:t inside w:r inside w:p.
  3. office_pkg.py pack work/ output.docx zips the folder back with [Content_Types].xml first and minified XML.
  4. office_pkg.py validate output.docx before delivering: zip integrity, every content type and relationship target present, well-formed XML, python-docx round trip.

Read references/ooxml-anatomy.md first: it maps the parts, the paragraph and run model, tracked-change and comment markup, and the pitfalls that break Word.

4. Convert

python3 navin/skills/docx/scripts/office_convert.py edited.docx --to pdf --out-dir out/ drives headless LibreOffice. The script exits with a clear message when soffice is missing: say so instead of silently skipping the PDF, and offer the pdf-generator route if the content can be re-rendered from HTML.

5. Deliver

Re-run docx_text.py dump on the result and quote the changed paragraphs to the user. Attach the file. State what was not changed (styles, images, other sections) so the user knows the scope.

Scripts

ScriptCommand
scripts/docx_text.pydump FILE [--format json|markdown] [--no-tables]; replace FILE --find T --with T [--all] [--out F]
scripts/docx_comments.pylist FILE; add FILE --anchor T --text T [--author A] [--initials I] [--out F]
scripts/docx_track.pyaccept|reject FILE [--out F]; replace FILE --find T --with T [--author A] [--all] [--out F]; count FILE [--json]
scripts/office_pkg.pyunpack ARCHIVE DIR [--no-pretty]; pack DIR ARCHIVE [--no-minify]; validate ARCHIVE [--json] [--no-roundtrip]
scripts/office_convert.pySOURCE --to pdf|docx|html|pptx|xlsx [--out-dir D] [--timeout S] [--json]

Exit codes: 0 success, 1 nothing matched or validation failed, 2 usage or I/O error, 3 LibreOffice missing.

Rules

  • Language gate: when new text is written into the document (comments, inserted sentences, headings), ask for the document language if the user did not state it, and keep the language of the surrounding text.
  • Never put em dashes (U+2014) or en dashes (U+2013) in produced text. Use "-" or rephrase.
  • Keep the file editable: no screenshots pasted in place of text, no flattening to PDF unless asked.
  • Preserve run formatting: replace inside runs, do not rebuild paragraphs from scratch.
  • Tracked changes are the default in legal, HR and contract documents; silent edits are the default in drafts and templates. Ask when unsure.
  • Validate every file produced by package-level edits before delivering it; a corrupted docx is worse than no file.
  • Report partial results honestly: exit 1 from replace means the text was not found; say it and show the closest paragraphs from the dump.

References

  • references/ooxml-anatomy.md: package parts, paragraph and run model, styles and numbering, headers and footers, tracked changes and comments markup, common pitfalls.

Файлы в комплекте

Модель читает эти файлы по мере необходимости, пока навык загружен. Они доступны только для чтения и никогда не выполняются.

Часто задаваемые вопросы

Что делает навык ИИ Docx?

Works on existing Word (.docx) files at the package level with python-docx and lxml. Dumps and replaces text while keeping run formatting, adds or lists comments, accepts, rejects or creates tracked changes, unpacks, repacks and validates the OOXML package, converts with headless LibreOffice. Use when the user asks to "edit this Word file", "add comments to the docx", "accept all tracked changes", "replace the text in the contract" or "check why this docx is corrupted". In French "modifie ce fichier Word", "ajoute des commentaires dans ce document", "accepte les modifications suivies" or "r...

Зачем использовать Docx в TypingMind?

Потому что вы устанавливаете навык один раз и используете его с любой моделью. Docx — это обычный текст в формате Markdown, а не код для конкретного поставщика, поэтому один и тот же навык работает с GPT-5, Claude, Gemini, Grok или локальной моделью. Вы можете менять модель прямо во время чата, и навык продолжит работать. TypingMind использует ваши собственные ключи API, поэтому вы платите поставщикам напрямую, а не оформляете подписку с оплатой за каждое место. Ваши навыки и чаты остаются в вашем собственном хранилище.

Как установить Docx в TypingMind?

В TypingMind откройте «Плагины → Навыки → Установить из GitHub» и вставьте https://github.com/Navinspire-ia/navin/tree/main/navin/skills/docx. TypingMind прочитает файл SKILL.md, включит сопутствующие файлы в пакет и установит навык, который можно включать отдельно для каждого чата.

Какие модели ИИ могут использовать Docx?

Любая модель, которую вы подключите в TypingMind. Навыки ИИ — это обычные инструкции в формате Markdown, а не код для конкретного поставщика, поэтому GPT, Claude, Gemini, Grok и локальные модели могут загружать этот навык, когда запрос ему соответствует.

Со сколькими моделями ИИ можно использовать Docx?

С любым количеством. В TypingMind вы можете использовать Docx с любой моделью, которая поддерживает навыки, в том числе с GPT, Claude, Gemini, Grok, DeepSeek, Mistral и Llama. Для этого вы используете собственные ключи API.

Бесплатен ли навык ИИ Docx?

Да. Навык опубликован на GitHub по лицензии AGPL-3.0. Издатель — Navinspire-ia. Вы платите только своему поставщику ИИ за использованные токены.

Что такое навыки ИИ?

Навык ИИ — это набор инструкций, которыми модель ИИ может пользоваться каждый раз, когда ей нужно выполнить конкретную задачу. Он соответствует открытому формату Agent Skills: файл SKILL.md с названием и описанием, а также любые скрипты, шаблоны или справочные файлы, которые могут понадобиться модели. Модель читает инструкции, только когда ваш запрос соответствует навыку, поэтому установленный навык ничего не стоит, пока не используется.

Чем навыки ИИ отличаются от плагинов и серверов MCP?

Плагин или сервер MCP даёт модели новые инструменты, которые она может вызывать: при вызове где-то выполняется код и возвращает результат. Навык ИИ, напротив, даёт модели знания и описывает порядок действий: как подойти к задаче, какие шаги выполнить и каким должен быть хороший результат. Навыки — это обычный текст в формате Markdown, поэтому им не нужны сервер, ключ API или среда выполнения, и они работают с любой моделью.

Все
Логотип nexu-io

Replit Deck

nexu-io
ОрганизацияПопулярный

For product and technical management work: turn PRDs, roadmaps, RFCs, architecture reviews, and retros into decision documents. Built around the core query "pm-feature-business-case-deck", with…

11.5K
98.9K
Файлы: 9
Открыть
Логотип nexu-io

Dcf Valuation

nexu-io
ОрганизацияПопулярный

Оценка публичных компаний методом дисконтированных денежных потоков и анализ внутренней стоимости. Используйте, если в запросе упоминаются DCF, справедливая стоимость, внутренняя стоимость, целевая цена, недооценённость или переоценённость либо…

11.2K
96.7K
Файлы: 1
Открыть
Логотип nexu-io

Html Ppt Zhangzara Block Frame

nexu-io
ОрганизацияПопулярный

Как превратить небрежно собранную презентацию стартапа в систему уровня совета директоров: диагностика, логика построения слайдов и переработанные страницы с доказательствами. Презентация о дизайне и мастерстве для принятия решения: для основателей и руководителей, представляющих проект.

11.2K
96.7K
Файлы: 2
Открыть
Логотип nexu-io

Html Ppt Zhangzara Cartesian

nexu-io
ОрганизацияПопулярный

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

11.2K
96.7K
Файлы: 2
Открыть

Создайте своё рабочее пространство с ИИ прямо сейчас

Подпишитесь на нашу рассылку, чтобы узнавать о новых функциях и предстоящих розыгрышах 👇