tools/docli

Inspect, edit, create, and validate Word .docx documents via structured commands.

2|Updated Feb 22, 2026
One-click install
npx skills add https://github.com/weisberg/agent_tools --skill tools-docli
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tools/docli
Source: https://github.com/weisberg/agent_tools/tree/main/tools/docli
Command: npx skills add https://github.com/weisberg/agent_tools --skill tools-docli

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides a structured command-line interface for inspecting, editing, creating, and validating Word .docx documents, reducing reliance on fragile XML manipulations and improving agent-based automation workflows.

Core Features & Use Cases

  • Document Inspection: Analyze document structure, headings, tables, images, comments, and tracked changes to inform decisions.
  • Content Editing & Patching: Replace, insert, delete, or format content through high-level commands.
  • Automated Document Creation: Generate DOCX files from declarative YAML schemas, templates, and styles.
  • Use Case: An enterprise user automates report updates, adding new sections and validating layout before finalizing for release.

Quick Start

Use the tools/docli skill to inspect the structure of a document and apply a patch for formatting corrections.

Frequently Asked Questions about tools/docli

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

FAQPage Schema
How do I automate editing and validating DOCX files without breaking the OOXML structure?

Automated DOCX editing and validation is achieved through structured, command-based control that enforces strict validation rules and atomic transactions, ensuring reliable document modifications without fragile XML manipulation.

How do I inspect document structure like headings and tables in a Word file for automated workflows?

Inspecting document structure for automated workflows involves analyzing headings, tables, images, comments, and tracked changes to inform subsequent editing, patching, and validation decisions.

Can I generate DOCX files from declarative schemas for enterprise report automation?

Yes, automated document creation supports generating DOCX files from declarative YAML schemas, templates, and styles, enabling enterprise users to automate report generation and validate layouts before release.

What is the best way for AI agents to manipulate complex OOXML packages with minimal error risk?

The best way for AI agents to manipulate OOXML packages is through structured command-based control providing high fidelity, ensuring atomic transactions and strict validation across document parts to minimize error risk.

How do I safely replace, insert, delete, or format content in a Word document programmatically?

To safely replace, insert, delete, or format content programmatically, apply high-level content editing and patching commands that enforce strict validation rules and atomic transactions across document parts.

Why use structured commands instead of direct XML manipulation for Word document automation?

Structured commands replace fragile XML manipulation by providing high-level control for inspecting, editing, creating, and validating documents, improving agent-based automation workflows with atomic transactions.