Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

docx

БесплатноЗапускает вложенные скриптыНе проверен

Create, edit, redline, and comment on `.docx` files inside the container, with a strict render-and-verify workflow. Use `render_docx.py` to generate page PNGs…

lightspeedwpот lightspeedwp★ 20 звёзд на GitHub

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

DOCX Skill (Read • Create • Edit • Redline • Comment)

Use this skill when you need to create or modify .docx files in this container environment and verify them visually.

Non-negotiable: render → inspect PNGs → iterate

You do not “know” a DOCX is satisfactory until you’ve rendered it and visually inspected page images. DOCX text extraction (or reading XML) will miss layout defects: clipping, overlap, missing glyphs, broken tables, spacing drift, and header/footer issues.

Shipping gate: before delivering any DOCX, you must:

  • Run render_docx.py to produce page-<N>.png images (optionally also a PDF with --emit_pdf)
  • Open the PNGs (100% zoom) and confirm every page is clean
  • If anything looks off, fix the DOCX and re-render (repeat until flawless)

If rendering fails, fix rendering first (LibreOffice profile/HOME) rather than guessing.

Deliverable discipline: Rendered artifacts (PNGs and optional PDFs) are for internal QA only. Unless the user explicitly asks for intermediates, return only the requested final deliverable (e.g., when the task asks for a DOCX, deliver the DOCX — not page images or PDFs).

Quick start (common one-liners)

# 1) Render any DOCX to PNGs (visual QA)
python render_docx.py input.docx --output_dir out

# 2) Remove reviewer comments (finalization)
python scripts/comments_strip.py input.docx --out no_comments.docx

# 3) Accept tracked changes (finalization)
python scripts/accept_tracked_changes.py input.docx --mode accept --out accepted.docx

# 4) Accessibility audit (+ optional safe fixes)
python scripts/a11y_audit.py input.docx
python scripts/a11y_audit.py input.docx --out_json a11y_report.json
python scripts/a11y_audit.py input.docx --fix_image_alt from_filename --out a11y_fixed.docx

# 5) Redact sensitive text (layout-preserving by default)
python scripts/redact_docx.py input.docx redacted.docx --emails --phones

Package layout

This skill is organized for progressive discovery: start here, then jump into task- or OOXML-specific docs.

DOCS SKILL PACKAGE

Root:

  • SKILL.md: short overview + routing
  • manifest.txt: machine-readable list of files to download (one relative path per line)
  • render_docx.py: canonical DOCX→PNG renderer (container-safe LO profile + writable HOME + verbose logs)

Tasks:

  • tasks/read_review.md
  • tasks/create_edit.md
  • tasks/verify_render.md
  • tasks/accessibility_a11y.md
  • tasks/comments_manage.md
  • tasks/protection_restrict_editing.md
  • tasks/privacy_scrub_metadata.md
  • tasks/multi_doc_merge.md
  • tasks/style_lint_normalize.md
  • tasks/forms_content_controls.md
  • tasks/captions_crossrefs.md
  • tasks/redaction_anonymization.md
  • tasks/clean_tracked_changes.md
  • tasks/compare_diff.md
  • tasks/templates_style_packs.md
  • tasks/watermarks_background.md
  • tasks/footnotes_endnotes.md
  • tasks/fixtures_edge_cases.md
  • tasks/navigation_internal_links.md

OOXML:

  • ooxml/tracked_changes.md
  • ooxml/comments.md
  • ooxml/hyperlinks_and_fields.md
  • ooxml/rels_and_content_types.md

Troubleshooting:

  • troubleshooting/libreoffice_headless.md
  • troubleshooting/run_splitting.md

Scripts:

Core building blocks (importable helpers):

  • scripts/docx_ooxml_patch.py — low-level OOXML patch helper (tracked changes, comments, hyperlinks, relationships). Other scripts reuse this.
  • scripts/fields_materialize.py — materialize SEQ/REF field display text for deterministic headless rendering/QA.

High-leverage utilities (also importable, but commonly invoked as CLIs):

  • render_docx.py — canonical DOCX → PNG renderer (optional PDF via --emit_pdf; do not deliver intermediates unless asked).
  • scripts/render_and_diff.py — render + per-page image diff between two DOCXs.
  • scripts/content_controls.py — list / wrap / fill Word content controls (SDTs) for forms/templates.
  • scripts/captions_and_crossrefs.py — insert Caption paragraphs for tables/figures + optional bookmarks around caption numbers.
  • scripts/insert_ref_fields.py — replace REF:bookmark markers with real REF fields (cross-references).
  • scripts/internal_nav.py — add internal navigation links (static TOC + Top/Bottom + figN/tblN jump links).
  • scripts/style_lint.py — report common formatting/style inconsistencies.
  • scripts/style_normalize.py — conservative cleanup (clear run-level overrides; optional paragraph overrides).
  • scripts/redact_docx.py — layout-preserving redaction/anonymization.
  • scripts/privacy_scrub.py — remove personal metadata + rsid* attributes.
  • scripts/set_protection.py — restrict editing (read-only / comments / forms).
  • scripts/comments_extract.py — extract comments to JSON (text, author/date, resolved flag, anchored snippets).
  • scripts/comments_strip.py — remove all comments (final-delivery mode).

Audits / conversions / niche helpers:

  • scripts/fields_report.py, scripts/heading_audit.py, scripts/section_audit.py, scripts/images_audit.py, scripts/footnotes_report.py, `scripts/wate
Полный SKILL.md на GitHub

Установить docx в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

LICENSE.txtexamples/end_to_end_smoke_test.mdooxml/comments.mdooxml/hyperlinks_and_fields.mdooxml/rels_and_content_types.mdooxml/tracked_changes.mdrender_docx.pyscripts/a11y_audit.pyscripts/accept_tracked_changes.pyscripts/add_tracked_replacements.pyscripts/apply_template_styles.pyscripts/captions_and_crossrefs.pyscripts/comments_add.pyscripts/comments_apply_patch.pyscripts/comments_extract.pyscripts/comments_strip.pyscripts/content_controls.pyscripts/docx_ooxml_patch.pyscripts/docx_table_to_csv.pyscripts/fields_materialize.pyscripts/fields_report.pyscripts/flatten_ref_fields.pyscripts/footnotes_report.pyscripts/heading_audit.pyscripts/images_audit.pyscripts/insert_note.pyscripts/insert_ref_fields.pyscripts/insert_toc.pyscripts/internal_nav.pyscripts/make_fixtures.pyscripts/merge_docx_append.pyscripts/privacy_scrub.pyscripts/redact_docx.pyscripts/render_and_diff.pyscripts/section_audit.pyscripts/set_protection.pyscripts/style_lint.pyscripts/style_normalize.pyscripts/watermark_add.pyscripts/watermark_audit_remove.py

FAQ

Что делает скилл docx?

Create, edit, redline, and comment on `.docx` files inside the container, with a strict render-and-verify workflow. Use `render_docx.py` to generate page PNGs (and optional PDF) for visual QA, then iterate until layout is flawless before delivering the final DOCX.

Как установить скилл docx?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл docx запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить docx с