officecli-docx

Create and modify Word .docx documents via a CLI workflow.

1.3k|179|Updated Feb 3, 2025
One-click install
npx skills add https://github.com/Team-Commonly/commonly --skill officecli-docx-team-commonly
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: officecli-docx
Source: https://github.com/Team-Commonly/commonly/tree/main/backend/commonly-bundled-skills/officecli/skills/officecli-docx
Command: npx skills add https://github.com/Team-Commonly/commonly --skill officecli-docx-team-commonly

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Creating and maintaining Word (.docx) documents is time-consuming and error-prone when repeated across reports, letters, and templates. This skill provides a CLI-driven workflow to automate structure, styling, and content guarantees.

Core Features & Use Cases

  • Create and edit docx files from the command line with explicit control over headings, body text, tables, images, and fields.
  • Manage headers/footers, page setup, sections, and a live Table of Contents for professional reports.
  • Produce templates, letters, or proposals that can be regenerated with updated data or content.

Quick Start

Create a new Word document, apply a title and headings, insert a footer with a live page number, and draft content with consistent styles.

Frequently Asked Questions about officecli-docx

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

FAQPage Schema
How do I automate Word document creation from the command line?

Automating Word document creation is possible by using a CLI workflow that explicitly controls headings, body text, tables, and images. This approach enables reproducible outputs for reports, letters, and proposals without manual formatting.

Can I generate a live Table of Contents and page numbers in a docx file via CLI?

Generating a live Table of Contents and page numbers in a docx file is supported through field handling for live PAGE and NUMPAGES fields. This ensures professional reports have accurate, updatable document structures and pagination.

What is the best way to manage headers, footers, and page setup for docx reports?

Managing headers, footers, and page setup for docx reports is handled through robust document setup commands. You can configure sections and insert footers with live page numbers to maintain consistent styling across professional documents.

Does CLI document automation work for regenerating templates with updated data?

CLI document automation works for regenerating templates, letters, or proposals with updated data or content. By defining structure and styling through commands, you can repeatedly produce consistent docx files without manual editing.

Why use a CLI workflow instead of manual editing for Word document automation?

Using a CLI workflow for Word document automation solves the time-consuming and error-prone nature of manual editing across repeated reports. It provides explicit control over document structure and styling, guaranteeing reproducible outputs.

Are there limitations to formatting docx files through command line automation?

Formatting docx files through command line automation focuses on explicit control over headings, body text, tables, images, and page setup. Complex graphical layouts beyond standard document structures may require manual adjustments after generation.