Skip to content
Skills Library
Documents & office · Automation

docx-figure-sync

/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.

Repository
agilab ↗
Licence
BSD-3-Clause
Last repository change
20.10.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
4
Scripts
1
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 20.10.2026, without references to retired models or APIs.

Licence

BSD-3-Clause, otwarta.

What to check before installing
  • 1 scripts in this package. Review them before installing, as Claude may execute them.

Scripts: scripts/replace_docx_media.py

What it does and when to use it

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.

Original author description

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.

How it works

  1. Overview
  2. When to use
  3. Workflow
  4. Quick start
  5. Guardrails
  6. References
Original SKILL.md headings · 52 lines, 221 words
SKILL.md preview
---
name: docx-figure-sync
description: 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.
license: BSD-3-Clause (see repo LICENSE)
---

# 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

1. Identify the target figure and its exact position in the document.
2. Update the editable figure source first when one exists (`.svg`, slide source, or app asset).
3. Replace the embedded media in the DOCX without changing unrelated content.
4. Validate DOCX integrity and openability.
5. Regenerate the PDF only when the user asks or when the task requires visual verification.

## Quick start

List embedded media:

```bash
python scripts/replace_docx_media.py report.docx --list
```

Replace one embedded image:

```bash
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.md` for the replacement and validation checklist.
- Use `scripts/replace_docx_media.py` for deterministic package-level replacement.
Files in this package (4)
  • SKILL.md 2 KB
  • agents/openai.yaml 1 KB
  • references/workflow.md 1 KB
  • scripts/replace_docx_media.py 3 KB

Versions

The database has no other skills named docx-figure-sync.

Identical content appears in 1 other GitHub folders. We show one copy with the highest score.

Database snapshot: 13.11.2026 · package version 15852a35be2d (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100docx-svg
    Insert SVG images into Word .docx files. Use when the user or coding agent needs to add, embed, or update an SVG graphic inside a .docx document. Triggers include "insert SVG into docx", "embed SVG in Word document", "add vector graphic to docx", "SVG image in template",…
  • 100export-docx
    Export research project reports to Word (.docx) format with embedded figures and formatted references. Use when user says "导出 Word", "/export word", "转 docx", "生成 Word 报告", "export to Word", or wants a Word document from project results.
  • 95Docx
    Word document processing. USE WHEN docx, Word document. SkillSearch('docx') for docs.
  • 95Docx
    Word document processing. USE WHEN docx, Word document. SkillSearch('docx') for docs.
  • 100docx
    Complete DOCX document creation, editing, and analysis capabilities with support for revisions, comments, formatting preservation, and text extraction. Also handles Word format conversion: legacy .doc → .docx, DOCX → PDF, DOCX → images (PNG/JPG) for visual review or previews,…
  • 100readme-from-docx
    Update README and docs/readmes from Word docx (English and Chinese). Use when the user provides docx files to update feature previews, wants to sync README with docx content, or asks to extract docx images and update readmes.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.