Command Palette

Search for a command to run...

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

documents

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

Create, edit, redline, and comment on `.docx`, Word, and Google Docs-targeted document artifacts inside the container, with a strict render-and-verify…

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

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

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

Use this skill when you need to create or modify .docx, Word, or Google Docs-targeted document artifacts in this container environment and verify them visually.

Tools + Contract

  • Use the workspace dependencies bundled codex primary runtime ($CODEX_PRIMARY_RUNTIME) for docx artifact work. Python/Node runtimes are $CODEX_PRIMARY_RUNTIME_PYTHON and $CODEX_PRIMARY_RUNTIME_NODE. Do not use system node, system python, global npm packages, or repo-local installs.
  • For document creation and deterministic OOXML edits, it is still acceptable to use the bundled Python/OOXML helper scripts in this skill package when the JS surface is incomplete.
  • Run any builder or helper file from a writable workspace or temp directory, not from the managed dependency directory itself.
  • Final user-facing responses should describe only the requested document result and link only to the final .docx, Word, or Google Docs deliverable unless the user explicitly asks for QA intermediates.

Google Docs-targeted output

For a net-new Google Docs request, create and visually verify a local .docx with this skill first. The native Google Docs deliverable must then be produced by the Google Drive plugin's document import action, mcp__codex_apps__google_drive_import_document, with upload_mode: "native_google_docs".

Before rendering or importing any Google Docs-targeted DOCX, run the deterministic title sanitizer:

python scripts/google_docs_title_sanitize.py input.docx --out sanitized.docx
python scripts/google_docs_title_sanitize.py sanitized.docx --check

Use the sanitized DOCX for render QA and native Google Docs import. This is not a style preference or prose reminder: the sanitizer removes Word Title paragraph-style border residue, direct title-paragraph borders, and leading title-block paragraph borders from the OOXML so Word's built-in blue title rule cannot survive into the imported Google Doc.

Do not use Computer Use, Browser Use, blank-Google-Doc creation plus Google Docs write APIs, or another direct-to-Docs construction path for net-new Google Docs unless the user explicitly asks for that alternate workflow. If they do, mention first that output quality is expected to be best when a local .docx is imported through the Google Drive plugin.

If the Google Drive plugin is unavailable, use the plugin-install/user-elicitation flow to ask the user to install google-drive@openai-curated. If the plugin is available but _import_document is missing, ask the user to reinstall or refresh the Google Drive plugin before continuing with the native Google Docs deliverable.

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 because LibreOffice/soffice is missing, it is acceptable to return the requested DOCX without rendered PNG QA. In that fallback case, use the relevant Markdown task docs in this skill package as the authoritative guidance for building and checking the document structurally, state clearly in the final response that rendering/visual QA could not be completed, and do not imply that the document passed the render gate.

If rendering fails for any other reason, fix rendering first (LibreOffice profile/HOME, conversion errors, or renderer setup) 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).

Design Preset Contract

For new DOCX creation and major rewrites, a design preset is mandatory unless the user explicitly asks for a different visual system. For existing-document edit tasks, preserve the original document and apply the minimal local edits described later in this skill.

Picking a preset is not enough. You must resolve the preset into exact numeric tokens and apply those numbers in the DOCX implementation. Do not rely on Word defaults, built-in list styles, theme defaults, inherited paragraph spacing, or renderer-dependent behavior for any preset-controlled value.

Before writing content, read references/design_presets.md and choose exactly one preset:

  • google_docs_default for any net-new document whose destination is a native Google Doc, unless the user explicitly asks for a speci
Полный SKILL.md на GitHub

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

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

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

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

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

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

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

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

LICENSE.txtagents/openai.yamlassets/file-document.pngexamples/end_to_end_smoke_test.mdmanifest.txtooxml/comments.mdooxml/hyperlinks_and_fields.mdooxml/rels_and_content_types.mdooxml/tracked_changes.mdreferences/design_presets.mdreferences/header_templates.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/google_docs_title_sanitize.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.py

FAQ

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

Create, edit, redline, and comment on `.docx`, Word, and Google Docs-targeted document artifacts 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 document.

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

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

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

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

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

Сравнить documents с