docx-figure-sync
БесплатноЗапускает вложенные скриптыНе проверенReplace or update embedded figures in DOCX reports while preserving placement, sizing, and nearby captions. Use this skill when a user wants a figure updated…
от ThalesGroup★ 23 звезды на GitHubОб этом скилле
DOCX Figure Sync
Overview
Use this skill for deterministic figure replacement inside existing DOCX reports. Prefer the surrounding document layout over ad hoc copy-paste.
When to use
- Replace an embedded figure in a
.docx - Swap a PNG for an SVG-derived render
- Keep figure placement and caption context stable
- Check whether a DOCX/PDF pair stayed structurally valid
Workflow
- Identify the target figure and its exact position in the document.
- Update the editable figure source first when one exists (
.svg, slide source, or app asset). - Replace the embedded media in the DOCX without changing unrelated content.
- Validate DOCX integrity and openability.
- Regenerate the PDF only when the user asks or when the task requires visual verification.
Quick start
List embedded media:
python scripts/replace_docx_media.py report.docx --list
Replace one embedded image:
python scripts/replace_docx_media.py report.docx \
--media image35.png \
--replacement updated.png \
--output report.updated.docx
Guardrails
- Keep edits surgical; do not rewrite unrelated sections.
- Preserve captions and nearby keywords unless the user asks otherwise.
- If a source figure exists, update it before touching the packaged media.
- Prefer SVG as the editable source of truth when available.
References
- Read
references/workflow.mdfor the replacement and validation checklist. - Use
scripts/replace_docx_media.pyfor deterministic package-level replacement.
Установить docx-figure-sync в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл docx-figure-sync?
Replace or update embedded figures in DOCX reports while preserving placement, sizing, and nearby captions. Use this skill when a user wants a figure updated inside a Word document, wants SVG/PNG media replaced without rebuilding the whole document manually, or needs related PDF regeneration only when explicitly requested.
Как установить скилл docx-figure-sync?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл docx-figure-sync запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic