officecli-word-form
Что он делает
Этот скилл ведёт ИИ-агента к созданию форм Word, которые люди могут заполнять. Он нужен HR-командам, авторам договоров и всем, кому нужна форма, анкета или шаблон.
Когда использовать
- ✓Когда вам нужна анкета для приёма на работу или адаптации, которую люди заполняют в Word.
- ✓Когда вы хотите шаблон договора или соглашения с полями для заполнения.
- ✓Когда нужна форма Word, в которой редактируются только поля.
Ссылка на скилл
https://github.com/iOfficeAI/OfficeCLI/blob/main/skills/officecli-word-form/SKILL.mdСкопируйте и вставьте её в ваш ИИ (Claude, ChatGPT или Cursor) с просьбой следовать инструкциям.
Как использовать
Самый простой способ: скопируйте сообщение и вставьте его в свой ИИ. Он прочитает скилл и выполнит инструкции.
Готовое сообщение для вставки
Для Claude Code, Codex или Cursor: запустите в папке проекта, и скилл установится.
Скачайте SKILL.md и положите его в папку скиллов вашего агента.
Пример запроса к вашему ИИ
“Можешь сделать заполняемую форму Word для адаптации сотрудника с именем, датой начала и флажком «да или нет», а остальное заблокировать?”
5 новых скиллов в неделю. 1 минута чтения.
Как это работает
Агент добавляет в документ элементы управления содержимым, флажки и поля слияния, затем включает защиту, чтобы редактировались только поля.
Технический текст (оригинальный SKILL.md)
Оригинальный текст автора на английском, прямо с GitHub.
OfficeCLI Word-Form Skill
This skill is INDEPENDENT, not a scene layer on docx. A form's payload — <w:sdt> controls, <w:ffData> legacy fields, <w:fldChar> mail-merge, documentProtection — is a distinct element class from docx's paragraph/heading/style primitives. Its QA is different too: docx's Delivery Gate cares about visual layout and live PAGE fields, this skill's cares about data plumbing (protection enforced / alias+tag / items injected / name ≤ 20 / no underscore anti-pattern). Reverse handoff: if the user's document has no fillable fields (report, letter, memo, thesis, proposal), route to officecli-docx or a docx scene skill — don't use this one.
BEFORE YOU START (CRITICAL)
If officecli is not installed:
macOS / Linux
if ! command -v officecli >/dev/null 2>&1; then
curl -fsSL https://d.officecli.ai/install.sh | bash
fi
Windows (PowerShell)
if (-not (Get-Command officecli -ErrorAction SilentlyContinue)) {
irm https://d.officecli.ai/install.ps1 | iex
}
Verify: officecli --version
If officecli is still not found after first install, open a new terminal and run the verify command again.
If the install command above fails (e.g. blocked by security policy, no network access, or insufficient permissions), install manually — download the binary for your platform from https://github.com/iOfficeAI/OfficeCLI/releases — then re-run the verify command.
Help-First Rule
This skill teaches what a real form needs, not every CLI flag. When a prop / alias / enum is uncertain, consult help BEFORE guessing: officecli help docx [element] [--json] (e.g. sdt, formfield, field). Help is pinned to the installed CLI version and is authoritative — when this skill and help disagree, help wins (the prop set on sdt in particular has grown over time; trust help docx sdt, not a hardcoded list).
Mental Model & Inheritance
A Word form is a .docx plus four OpenXML payload layers plain-docx skills do not touch: <w:sdt> content controls (types: text / richtext / dropdown / combobox / date / picture / group), <w:ffData> legacy FormField (still the only way to get a real checkbox — SDT type=checkbox is not implemented), <w:fldChar> complex fields (MERGEFIELD, REF, PAGEREF, SEQ, IF — template-time, not user-fill), and documentProtection (the lock that makes non-field text read-only in Word — and, on the CLI, protection=forms locks non-field content edits (those need --force or raw-set) but still allows form-field (SDT) edits, which is the point of forms protection).
No inheritance from docx v2. docx's Delivery Gate (cover-fill %, live-PAGE check) does NOT apply — form QA is view forms + query sdt alias+tag + protectionEnforced.
Reverse handoff to docx. Route back to officecli-docx for reports / letters / memos / thesis / pitch decks / any document with no editable fields. Use this skill when the document's purpose is data capture or template merge.
Shell & Execution Discipline
One command at a time. Read output before the next. OfficeCLI is incremental — every add / set / remove immediately mutates the file. All recipes below use FILE=form.docx as a shell variable.
Three shell-escape layers:
- Quote every path with
[N]— zsh/bash glob-expand brackets.officecli get "$FILE" /body/sdt[1]fails withno matches found. Correct:officecli get "$FILE" '/body/sdt[1]'. - Single-quote any prop containing
$—"Total: $50,000"becomes"Total: ,000"after$50variable expansion. Correct:'Total: $50,000'. --after find:<text>uses outer single quotes, never inner double quotes —--after find:"Client Signature:"makes the quotes part of the search string; match fails. Correct:--after 'find:Client Signature:'.
WARNING: UNSUPPORTED (exit 2) is a silently-wrong element. The CLI created the element without the rejected prop (exit 2 = ran with caveats; only when every prop is refused does --json report success: false). Any UNSUPPORTED in your build log means a prop name the current CLI does not accept on that element — stop, check help docx <element> for the right prop name (most SDT props such as items/format/lock ARE accepted now; maxlength is not), fix the command, and re-run. Do not ship on top.
protection=forms is the LAST structural command. Once it is set, protection=forms locks non-field content (tho
Частые вопросы
Что такое элементы управления содержимым?
Это заполняемые поля в Word, например текстовые поля и выпадающие списки, которые люди могут заполнять.
Может ли форма заблокировать остальной документ?
Да. Скилл охватывает защиту документа, чтобы менять можно было только заполняемые поля.
Когда не стоит использовать этот скилл?
В скилле сказано использовать обычный скилл для Word для отчётов или писем без заполняемых полей.
Подробности
Оригинальное описание автора
Use this skill to create fillable Word forms (.docx) with real Content Controls (SDT) + legacy FormField checkboxes + MERGEFIELD mail-merge placeholders + document protection. Trigger on: 'fillable form', 'form fields', 'content controls', 'SDT', 'word form', 'fill in', 'only editable fields', 'protect document', 'onboarding form', 'HR intake', 'survey template', 'contract / SOW template', 'mail-merge template', 'compliance checklist', 'medical intake questionnaire'. Output is a single .docx where specific fields are editable and the rest is locked. This skill is INDEPENDENT, not a scene layer
repo: iOfficeAI/OfficeCLI
Популярность
- Звёзды на GitHub
- 33k
- Место в рейтинге
- #9136
- Лицензия
- Apache-2.0
- Обновлён
- 30.10.2026
Комментарии
- …
Другие скиллы из этого репозитория
officecli
33kПозволяет агенту создавать, читать, проверять и редактировать файлы Word, Excel и PowerPoint с помощью officecli, без установленного Office.
morph-ppt-3d
33kПомогает агенту собрать презентацию PowerPoint с трёхмерной моделью GLB и плавными переходами Morph между слайдами.
morph-ppt
33kПомогает агенту создать файл PowerPoint с плавными переходами Morph, при которых фигуры двигаются, увеличиваются или поворачиваются между слайдами.
officecli-academic-paper
33kПомогает агенту оформить научную статью, диссертацию или рукопись как файл Word со ссылками, формулами и макетом в стиле журнала.
Похожие скиллы
feishu-doc
394kПомогает агенту читать, создавать и редактировать облачные документы Feishu, включая текст, изображения и таблицы, с помощью инструмента для документов.
feishu-drive
394kПозволяет агенту просматривать, упорядочивать и комментировать файлы в облачной папке Feishu, к которой предоставлен доступ боту.
feishu-perm
394kПомогает агенту проверить и изменить, кто может получить доступ к файлу Feishu, выбирая наименьшее право, которое соответствует вашему запросу.