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★ 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.pyto producepage-<N>.pngimages (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— materializeSEQ/REFfield 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— replaceREF:bookmarkmarkers with realREFfields (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
Установить docx в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
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
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