officecli-word-form
Skill này làm gì
Skill này hướng dẫn agent AI tạo các biểu mẫu Word mà người khác có thể điền. Skill dành cho đội nhân sự, người soạn hợp đồng và bất kỳ ai cần biểu mẫu, khảo sát hoặc mẫu.
Khi nào nên dùng
- ✓Khi bạn cần một biểu mẫu tiếp nhận nhân sự hoặc onboarding mà mọi người điền trong Word.
- ✓Khi bạn muốn một mẫu hợp đồng hoặc bản mô tả công việc có các trường để điền.
- ✓Khi bạn cần một biểu mẫu Word mà chỉ các trường được phép chỉnh sửa.
Liên kết skill
https://github.com/iOfficeAI/OfficeCLI/blob/main/skills/officecli-word-form/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Bạn có thể tạo một biểu mẫu onboarding Word có thể điền gồm tên, ngày bắt đầu và một ô đánh dấu có/không, rồi khóa phần còn lại không?”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent thêm các điều khiển nội dung, ô đánh dấu và trường trộn thư vào tài liệu, rồi bật bảo vệ để chỉ các trường có thể được chỉnh sửa.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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
Câu hỏi thường gặp
Điều khiển nội dung là gì?
Đó là các ô có thể điền trong Word, chẳng hạn ô văn bản hoặc danh sách thả xuống, để người khác hoàn thành.
Biểu mẫu có khóa phần còn lại của tài liệu không?
Có. Skill bao gồm bảo vệ tài liệu để chỉ các trường điền được có thể thay đổi.
Khi nào tôi không nên dùng skill này?
Skill cho biết nên dùng skill Word thông thường cho báo cáo hoặc thư không có trường điền.
Chi tiết
Mô tả gốc của tác giả
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
Độ phổ biến
- Sao GitHub
- 33k
- Vị trí xếp hạng
- #9136
- Giấy phép
- Apache-2.0
- Cập nhật
- 30/10/2026
Bình luận
- …
Thêm skill từ kho mã này
officecli
33kCho phép agent của bạn tạo, đọc, kiểm tra và chỉnh sửa tệp Word, Excel và PowerPoint bằng công cụ officecli, không cần cài Office.
morph-ppt-3d
33kGiúp agent của bạn tạo bộ slide PowerPoint có mô hình 3D GLB và chuyển cảnh Morph mượt giữa các slide.
morph-ppt
33kGiúp agent của bạn tạo tệp PowerPoint với chuyển cảnh Morph mượt, nơi các hình có thể di chuyển, phóng to hoặc xoay giữa các slide.
officecli-academic-paper
33kGiúp agent của bạn định dạng bài nghiên cứu, luận văn hoặc bản thảo thành tệp Word, với trích dẫn, công thức và bố cục theo chuẩn tạp chí.
Skill tương tự
feishu-doc
394kGiúp agent của bạn đọc, tạo và sửa tài liệu đám mây Feishu, gồm văn bản, hình ảnh và bảng, bằng công cụ tài liệu.
feishu-drive
394kCho phép agent của bạn duyệt, sắp xếp và bình luận các file trong một thư mục đám mây Feishu đã được chia sẻ với bot.
feishu-perm
394kGiúp agent của bạn kiểm tra và thay đổi ai có quyền truy cập một file Feishu, chọn quyền nhỏ nhất đáp ứng yêu cầu của bạn.