---
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.14.96 (bundled skill 2.73.0, Linux AppImage), CLI and MCP, headless; the sweeps gave the same results from 0.12.117 to 0.14.96 (the last re-run compared 0.13.886 with 0.14.96 file by file). The live-editor checks were last run on 0.12.117.
When GenOffice's own skills start to say something written here, it is removed from this skill (checked 2026-12-02 against 2.73.0, which adds `slides prompt`, the `style.json` deck style and 13 Slides ops; content GenOffice now covers was removed).
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`), the 0.14.96 ops (SmartArt editing, hidden ops), the `style.json` deck build and `slides prompt` | Slides sweep; New and changed in 0.14.96; Staged deck build on 0.14.96 |
| `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 with `setMatchedFont` (it reaches table cells); `setFont` on the table block does not.
- 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.
- Watermark opacity: 0.30 renders faint and leaves body text legible at the default size; lower it only for a large `scale`.
- `define_style` accepts fields it does not know (`paragraph.borders`, `run.letterSpacing`) with no error and writes nothing for them; `setParagraphFormat` rejects unknown fields. Read `styles.xml` back.
- `define_style` `lineSpacing` is a multiple of single spacing, not points: 18 wrote `w:line="4320"` (18 lines). Use 1.15, 1.5 and so on.
- `setFont` clears colour with `color:null`, but `bold:null` is refused ("bold must be a boolean"): send `false`.
<!-- ‹guest · 2026-12-04› -->
## Not yet tested
setImageProperties on a floating picture, insert_content formula render, the live editor on 0.14.96 (`reference/live-editor.md` was last run on 0.12.117), and the app-window page count (`reference/document-styles.md`). Tested since: `setFont` null, `insertField` IF (computes) and PAGEREF (cached "1", stays dirty), `--dry-run`, `--best-effort` (status partial).
## Updating this skill
Rules for adding findings, fixing claims and logging: `reference/maintenance.md`.
این نسخه با نشانهگذاری اختصاصی حساب شما نمایش داده میشود. برای نصب سریع، به تب نصب و راهاندازی بروید.