MR
Mayur Rathi
@mayurrathi
⭐ 40.7k GitHub stars

Writer

Writer is an productivity AI skill with a core value of Document creation, format conversion (ODT/DOCX/PDF), mail merge, and automation with LibreOffice Writer. It helps developers solve real-world problems in the productivity domain, boosting efficiency, automating repetitive tasks, and optimizing workflows.

Document creation, format conversion (ODT/DOCX/PDF), mail merge, and automation with LibreOffice Writer.

Last verified on: 2026-07-07

Quick Facts

Category productivity
Works With Claude
Source sickn33/antigravity-awesome-skills
Stars ⭐ 40.7k
Last Verified 2026-07-07
Risk Level Low
mkdir -p ./skills/writer && curl -sfL https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/main/skills/writer/SKILL.md -o ./skills/writer/SKILL.md

Run in terminal / PowerShell. Requires curl (Unix) or PowerShell 5+ (Windows).

Skill Content

# LibreOffice Writer


Overview


LibreOffice Writer skill for creating, editing, converting, and automating document workflows using the native ODT (OpenDocument Text) format.


When to Use This Skill


Use this skill when:

- Creating new documents in ODT format

- Converting documents between formats (ODT <-> DOCX, PDF, HTML, RTF, TXT)

- Automating document generation workflows

- Performing batch document operations

- Creating templates and standardized document formats


Core Capabilities


1. Document Creation

- Create new ODT documents from scratch

- Generate documents from templates

- Create mail merge documents

- Build forms with fillable fields


2. Format Conversion

- ODT to other formats: DOCX, PDF, HTML, RTF, TXT, EPUB

- Other formats to ODT: DOCX, DOC, RTF, HTML, TXT

- Batch conversion of multiple documents


3. Document Automation

- Template-based document generation

- Mail merge with data sources (CSV, spreadsheet, database)

- Batch document processing

- Automated report generation


4. Content Manipulation

- Text extraction and insertion

- Style management and application

- Table creation and manipulation

- Header/footer management


5. Integration

- Command-line automation via soffice

- Python scripting with UNO

- Integration with workflow automation tools


Workflows


Creating a New Document


#### Method 1: Command-Line

bash
soffice --writer template.odt

#### Method 2: Python with UNO

python
import uno

def create_document():
    local_ctx = uno.getComponentContext()
    resolver = local_ctx.ServiceManager.createInstanceWithContext(
        "com.sun.star.bridge.UnoUrlResolver", local_ctx
    )
    ctx = resolver.resolve(
        "uno:socket,host=localhost,port=8100;urp;StarOffice.ComponentContext"
    )
    smgr = ctx.ServiceManager
    doc = smgr.createInstanceWithContext("com.sun.star.text.TextDocument", ctx)
    text = doc.Text
    cursor = text.createTextCursor()
    text.insertString(cursor, "Hello from LibreOffice Writer!", 0)
    doc.storeToURL("file:///path/to/document.odt", ())
    doc.close(True)

#### Method 3: Using odfpy

python
from odf.opendocument import OpenDocumentText
from odf.text import P, H

doc = OpenDocumentText()
h1 = H(outlinelevel='1', text='Document Title')
doc.text.appendChild(h1)
doc.save("document.odt")

Converting Documents


bash
# ODT to DOCX
soffice --headless --convert-to docx document.odt

# ODT to PDF
soffice --headless --convert-to pdf document.odt

# DOCX to ODT
soffice --headless --convert-to odt document.docx

# Batch convert
for file in *.odt; do
    soffice --headless --convert-to pdf "$file"
done

Template-Based Generation

python
import subprocess
import tempfile
from pathlib import Path

def generate_from_template(template_path, variables, output_path):
    with tempfile.TemporaryDirectory() as tmpdir:
        subprocess.run(['unzip', '-q', template_path, '-d', tmpdir])
        content_file = Path(tmpdir) / 'content.xml'
        content = content_file.read_text()
        for key, value in variables.items():
            content = content.replace(f'${{{key}}}', str(value))
        content_file.write_text(content)
        subprocess.run(['zip', '-rq', output_path, '.'], cwd=tmpdir)
    return output_path

Format Conversion Reference


Supported Input Formats

- ODT (native), DOCX, DOC, RTF, HTML, TXT, EPUB


Supported Output Formats

- ODT, DOCX, PDF, PDF/A, HTML, RTF, TXT, EPUB


Command-Line Reference


bash
soffice --headless
soffice --headless --convert-to <format> <file>
soffice --writer    # Writer
soffice --calc      # Calc
soffice --impress   # Impress
soffice --draw      # Draw

Python Libraries


bash
pip install odfpy     # ODF manipulation
pip install ezodf     # Easier ODF handling

Best Practices


1. Use styles for consistency

2. Create templates for recurring documents

3. Ensure accessibility (heading hierarchy, alt text)

4. Fill document metadata

5. Store ODT s

🎯 Best For

  • Technical writers
  • API documentation teams
  • Claude users
  • Knowledge workers
  • Remote teams

💡 Use Cases

  • Generating JSDoc/TSDoc comments
  • Writing README files for new projects
  • Using Writer in daily workflow
  • Automating repetitive productivity tasks

📖 How to Use This Skill

  1. 1

    Install the Skill

    Copy the install command from the Terminal tab and run it. The SKILL.md file downloads to your local skills directory.

  2. 2

    Load into Your AI Assistant

    Open Claude and reference the skill. Paste the SKILL.md content or use the system prompt tab.

  3. 3

    Apply Writer to Your Work

    Provide context for your task — paste source material, describe your audience, or share existing work to guide the AI.

  4. 4

    Review and Refine

    Edit the AI output for accuracy, tone, and completeness. Add human insight where the AI lacks context.

❓ Frequently Asked Questions

Does it follow my documentation style?

Most documentation skills respect existing style. Provide a style guide or example in your prompt.

How do I install Writer?

Copy the install command from the Terminal tab and run it. The skill downloads to ./skills/writer/SKILL.md, ready to use.

Can I customize this skill for my team?

Absolutely. Edit the SKILL.md file to add team-specific instructions, examples, or workflows.

⚠️ Common Mistakes to Avoid

Auto-generating without reviewing

AI documentation can contain inaccuracies. Always verify technical accuracy.

Not reading the full skill

Skills contain important context and edge cases beyond the quick start.

🔗 Related Skills