---
name: genoffice-supplement
description: Use when editing .docx or other Office files with GenOffice (Docs editor, genoffice CLI/MCP) and its own bundled skill leaves a Docs op, unit, page-count difference or document-style rebuild unclear; load next to GenOffice's own skill
---

# GenOffice supplement

> **Updates:** if this folder has a `.installed-from` file (written when it was copied from the repo), run `git ls-remote https://gitlab.com/e1dred/agent-skills.git HEAD` once per session. Take the hash on the output line that ends in exactly `HEAD`; if it differs from the file's, tell the user a newer version exists and offer to update it (see "Updating" in https://gitlab.com/e1dred/agent-skills/-/blob/main/INSTALL.md, which can merge local edits); never update without asking. Compare the hashes after trimming whitespace. No file, a clone or symlink, or no network (empty output or an error from `git ls-remote`): skip silently.

**Scope rule (strict):** this skill holds only things GenOffice's own bundled skills do not provide. It never copies or restates
a GenOffice-provided skill (its generated `genoffice` skill, the ~45 recommended app skills). Read those first; this adds
what running the app showed. Tested on GenOffice 0.13.886 (bundled skill 2.71.0, Linux AppImage); the sweeps gave the same results on 0.12.117 to 0.13.886 (re-run on 0.12.446, 0.12.600, 0.12.852, 0.13.18, 0.13.615 and 0.13.886; 0.13.x .docx zips carry no directory entries, so file-list counts are shorter), CLI and MCP, headless; the live-editor checks were not.

When GenOffice's own skills start to say something written here, it is removed from this skill (checked 2026-11-28 against 2.71.0, whose only change is the new `convert --neutralize-formulas` flag for xlsx→csv).

GenOffice has six editors: Docs, Sheets, Slides, Markdown, HTML and PDF. The Docs (.docx), Sheets (.xlsx) and Slides (.pptx ops and the page-spec build) are covered, plus the conversions that reach the Markdown, HTML and PDF editors. The live editor (`open`, `selection`, writes to an open file) is covered too.

## Where things are

Read the file that matches the task; each lists the sections it holds. Use `grep -n` on `reference/` to find a command id.

| File in `reference/` | Read it for | Sections |
|---|---|---|
| `docs-ops.md` | Docs ops (`docs apply`): the sweep results, gaps closed, and how far the op list was exercised | Docs-op sweep, 2026-10-27, GenOffice 0.12.117; Docs gaps closed; Coverage of the op lists; New in 0.13.18 |
| `sheets.md` | Spreadsheet ops (`sheet apply`) | Sheets sweep |
| `slides.md` | Presentation ops (`slides apply`) | Slides sweep |
| `markdown-html-pdf.md` | Converting and creating Markdown, HTML and PDF with the CLI | Markdown, HTML and PDF through the CLI |
| `live-editor.md` | `open`, `selection` and writing to a file that is open in the GenOffice editor | Live editor: `open`, `selection`, writing to a file that is open |
| `document-styles.md` | Rebuilding the eight document styles in GenOffice, compared with WordCraft and ONLYOFFICE; headless vs app page counts | All eight styles x doc, report, resume and cv against WordCraft; Style rebuild: `modern` doc via GenOffice vs WordCraft vs ONLYOFFICE; All eight styles, doc kind, GenOffice vs WordCraft; Page count: headless `render` vs the app window |

## Traps (each one tripped the sweep)
- Things defined or created earlier in a batch are NOT visible to later ops of the same batch for: `define_style` type table then `setTableStyle`; `wrap_content_control` then `unwrap_content_control`. Split into two `apply` calls. (define_style paragraph then applyStyle in one batch works.)
- `define_style` for a new style needs paragraph or run formatting (or basedOn), and basedOn must already exist. A new document has no table styles to base one on, so a new table style takes a run property and a second `apply` before it can be used.
- `setTableCellFormat` fill does not change text colour: a dark header fill keeps black text. Set white text separately (setFont on that block does not reach table cells in my sweep; not yet tested how).
- Comment ids are small positional strings ("1", "2").
- Rejecting all revisions restores the original text; accepting with a type filter leaves the other revisions pending.
- Table merge concatenates cell text as separate paragraphs; split keeps text in the top-left cell.
- Watermark is heavy at opacity 0.3 with a large size; use about 0.15 for body-text legibility.

## Verify before reporting

Say what was checked (XML read-back, read-back through the tools, or a render) and on which GenOffice version. Anything listed under "Not yet tested" is unverified; say so.

## Not yet tested
setFont null (clear), partial-selection edits, setImageProperties on a floating picture, insert_content formula render, insertField IF/PAGEREF, `--dry-run` and `--best-effort`. (Writing to a file open in the app, live `open`/`selection` and the style comparison with WordCraft and ONLYOFFICE are now tested: see `reference/live-editor.md` and `reference/document-styles.md`.)

## Updating this skill
Rules for adding findings, fixing claims and logging: `reference/maintenance.md`.
