writer-documents

Create and edit LibreOffice Writer ODT and DOCX documents through structured tool actions.

19.1k|3.8k|Updated Jun 10, 2024
One-click install
npx skills add https://github.com/agent0ai/agent-zero --skill writer-documents
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: writer-documents
Source: https://github.com/agent0ai/agent-zero/tree/main/plugins/_office/skills/writer-documents
Command: npx skills add https://github.com/agent0ai/agent-zero --skill writer-documents

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It lets an agent produce and modify Writer documents (ODT, or DOCX when Word compatibility is required) as saved files without forcing a document window or Desktop surface to open, keeping document work programmatic and user-controlled.

Core Features & Use Cases

  • Format Selection Rules: Uses ODT as the default Writer format and reserves DOCX for explicit Microsoft Word compatibility requests or existing .docx files.
  • Structured Create and Edit: Creates documents via the office_artifact tool and performs deterministic edits with read, set_text, append_text, prepend_text, replace_text, and delete_text actions.
  • UI Discipline: Saves files without auto-opening modals or Desktop surfaces, reserving the GUI for explicit visual layout or confirmation requests.
  • Use Case: Ask the agent to draft a board memo as an ODT file, then later append a new section or replace a paragraph without ever opening LibreOffice Writer manually.

Quick Start

Create a Writer ODT document titled "Board Memo" containing the meeting summary text.

Frequently Asked Questions about writer-documents

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

FAQPage Schema
How do I create a Writer ODT document with an agent?

Call the office_artifact tool with the create action, kind set to document, format set to odt, a title, and the body content. The file is saved without opening any document window or Desktop surface.

When should I use DOCX instead of ODT for Writer documents?

Use DOCX only when the user explicitly asks for Word, DOCX, or OOXML compatibility, or provides an existing .docx file. ODT is the default Writer format, and plain Markdown is preferred when no binary format is needed.

How do I edit an existing ODT document programmatically?

First use the read action with the file_id or path, then apply the edit action with operations like set_text, append_text, prepend_text, replace_text, or delete_text for deterministic saved changes.

Does creating a Writer document open LibreOffice automatically?

No. Creating or editing an ODT or DOCX saves the file but never opens a document modal or Desktop surface automatically. The Desktop is used only for explicit GUI requests, visual layout polish, or final visual confirmation.

When should I use Markdown instead of a Writer document?

Use Markdown for ordinary writing when there is no binary format requirement. Writer ODT or DOCX is appropriate only when the user needs an actual word-processing document file.