officecli-word-form

Create and configure fillable Word forms with content controls and protection settings.

1|Updated May 10, 2026
One-click install
npx skills add https://github.com/lizhihuajob/OceanOfficeCLI --skill officecli-word-form-lizhihuajob
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: officecli-word-form
Source: https://github.com/lizhihuajob/OceanOfficeCLI/tree/main/OfficeCLI-main/skills/officecli-word-form
Command: npx skills add https://github.com/lizhihuajob/OceanOfficeCLI --skill officecli-word-form-lizhihuajob

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires officecli, and includes scripts (resource) components.

What problem does it solve?

Automates the creation of structured, fillable Word documents by embedding content controls, legacy form fields, mail-merge placeholders, and applying document protection for secure data collection.

Core Features & Use Cases

  • Content Control Embedding: Programmatically insert and configure content controls (<w:sdt>) for structured form fields.
  • Legacy Form Fields & Mergefields: Add checkboxes, dropdowns, and mail-merge placeholders for dynamic document generation.
  • Protection & Locking: Enforce editing restrictions and control locking on individual fields or entire documents.
  • Use Case: Design onboarding forms with predefined fillable fields and security settings, ensuring users can input data only in designated areas.

Quick Start

Use the Word-Form skill to create a template with fillable name and date fields and protect the document so only specific fields are editable.

Frequently Asked Questions about officecli-word-form

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create fillable Word forms with content controls programmatically?

You can create fillable Word forms by programmatically inserting and configuring structured content controls for designated user input areas. This approach embeds interactive fields directly into the document template for secure data collection.

How do I protect a Word document so users can only edit specific form fields?

To protect a Word document, you apply document protection and locking settings on individual fields or the entire file. This enforces editing restrictions so users can only input data in designated areas, ensuring data integrity.

Can I add mail-merge placeholders and checkboxes to a Word template automatically?

Yes, you can add mail-merge placeholders and checkboxes to a Word template automatically. The process supports adding legacy form fields like dropdowns and checkboxes for dynamic document generation.

Do I need officecli to generate protected Word form templates?

Yes, you need the officecli dependency to generate protected Word form templates. It provides the underlying command-line interface required to automate the creation and configuration of fillable documents.

What is the best way to design onboarding forms with predefined fillable fields?

The best way to design onboarding forms is to use content controls and protection settings to create a secure template. This ensures predefined fillable fields are structured while restricting edits to designated areas only.