Langsung ke konten
Skillpedia
PDF, Word & slide33k Β· #9136

officecli-word-form

Fungsinya

Skill ini memandu agent AI dalam membuat formulir Word yang bisa diisi orang. Ini untuk tim SDM, penulis kontrak, dan siapa pun yang membutuhkan formulir, survei, atau templat.

Kapan dipakai

  • βœ“Saat Anda memerlukan formulir pendaftaran karyawan atau onboarding yang diisi dalam Word.
  • βœ“Saat Anda ingin templat kontrak atau pernyataan kerja dengan kolom yang bisa diisi.
  • βœ“Saat Anda memerlukan formulir Word di mana hanya kolomnya yang bisa diedit.

Link skill

https://github.com/iOfficeAI/OfficeCLI/blob/main/skills/officecli-word-form/SKILL.md

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/iOfficeAI/OfficeCLI/blob/main/skills/officecli-word-form/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit β†’

Contoh permintaan ke AI

β€œBisakah Anda membuat formulir onboarding Word yang bisa diisi dengan nama, tanggal mulai, dan kotak centang ya atau tidak, lalu mengunci semua bagian lainnya?”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Agent menambahkan kontrol konten, kotak centang, dan kolom mail merge ke dokumen, lalu mengaktifkan proteksi agar hanya kolom yang bisa diedit.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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:

  1. Quote every path with [N] β€” zsh/bash glob-expand brackets. officecli get "$FILE" /body/sdt[1] fails with no matches found. Correct: officecli get "$FILE" '/body/sdt[1]'.
  2. Single-quote any prop containing $ β€” "Total: $50,000" becomes "Total: ,000" after $50 variable expansion. Correct: 'Total: $50,000'.
  3. --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

Pertanyaan umum

Apa itu kontrol konten?

Itu adalah kotak isian di Word, seperti kolom teks dan daftar pilihan, yang bisa diisi orang.

Apakah formulir bisa mengunci bagian dokumen lainnya?

Ya. Skill ini mencakup proteksi dokumen sehingga hanya kolom isian yang bisa diubah.

Kapan sebaiknya tidak memakai skill ini?

Skill ini menyatakan untuk memakai skill Word biasa bagi laporan atau surat yang tidak punya kolom isian.

Detail

Deskripsi asli dari pembuat

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

Popularitas

Bintang GitHub
33k
Peringkat
#9136
Lisensi
Apache-2.0
Diperbarui
30/10/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa