Skip to content

Commit 712cc6b

Browse files
IceyLiuclaude
andauthored
chore(skills): sync builtin officecli skills from upstream OfficeCli (c764bb7d) (#522)
## Summary Sync the builtin officecli skills under `crates/aionui-app/assets/builtin-skills/` with the latest upstream OfficeCli `main` (`54d7b0e6` → `c764bb7d`), applied as upstream **deltas** so the AionUi-local Windows platform-note blocks (#489) are preserved. 9 SKILL.md files refreshed: - `morph-ppt` - `officecli-academic-paper` - `officecli-data-dashboard` - `officecli-docx` - `officecli-financial-model` - `officecli-pitch-deck` - `officecli-pptx` - `officecli-word-form` - `officecli-xlsx` No file adds/removes and no non-SKILL.md (reference/asset) changes upstream this round. ## Verification Each changed file was diffed line-for-line against upstream `c764bb7d`, in both directions: - **Nothing missing** — every upstream line is present. - **Only addition** — the AionUi-local Windows platform-note block. No code changes; assets only. ## Test plan - [ ] CI build (`cargo build -p aionui-app`) — corpus is embedded via `include_dir!` - [ ] Skills hub renders the refreshed SKILL.md content for each changed skill Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 5603b9a commit 712cc6b

9 files changed

Lines changed: 240 additions & 218 deletions

File tree

crates/aionui-app/assets/builtin-skills/morph-ppt/SKILL.md

Lines changed: 27 additions & 23 deletions
Large diffs are not rendered by default.

crates/aionui-app/assets/builtin-skills/officecli-academic-paper/SKILL.md

Lines changed: 43 additions & 40 deletions
Large diffs are not rendered by default.

crates/aionui-app/assets/builtin-skills/officecli-data-dashboard/SKILL.md

Lines changed: 33 additions & 26 deletions
Large diffs are not rendered by default.

crates/aionui-app/assets/builtin-skills/officecli-docx/SKILL.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ For any document with 3+ headings:
276276
officecli add "$FILE" /body --type toc --prop levels="1-3" --prop title="Table of Contents" --prop hyperlinks=true --index 0
277277
```
278278

279-
Page numbers render automatically (`--prop pageNumbers=true` toggles them explicitly). Address the TOC directly (1.0.60+): `/toc[1]` or `/tableofcontents` resolve to the first TOC field for `get`/`set`/`remove` without hand-walking XPath.
279+
Page numbers render automatically (`--prop pageNumbers=true` toggles them explicitly). Address the TOC directly: `/toc[1]` or `/tableofcontents` resolve to the first TOC field for `get`/`set`/`remove` without hand-walking XPath.
280280

281281
**TOC delivery step (mandatory before handoff).** The live TOC field is a placeholder until recalculated. Some viewers populate it on first open; others show the literal `Update field to see table of contents` until the reader recalculates. Pick by recipient:
282282

@@ -310,10 +310,10 @@ officecli add "$FILE" /body --type chart --prop chartType=bar --prop title="Reve
310310
External links go via `hyperlink`:
311311

312312
```bash
313-
officecli add "$FILE" "/body/p[2]" --type hyperlink --prop uri="https://example.com" --prop text="our site"
313+
officecli add "$FILE" "/body/p[2]" --type hyperlink --prop url="https://example.com" --prop text="our site"
314314
```
315315

316-
**Internal links** (to a bookmark) use `--prop anchor=bookmarkName` — not a `#fragment` in `uri`:
316+
**Internal links** (to a bookmark) use `--prop anchor=bookmarkName` — not a `#fragment` in `url`:
317317

318318
```bash
319319
officecli add "$FILE" "/body/p[2]" --type hyperlink --prop anchor=chapter1 --prop text="See Chapter 1"
@@ -340,7 +340,7 @@ officecli add "$FILE" /body --type pagebreak --index <N> # 1. pagebreak
340340
officecli set "$FILE" "/body/p[<N+1>]" --prop pageBreakBefore=true # 2. on the heading itself
341341
```
342342

343-
`--prop break=newPage` (1.0.61+) is a shorter alias for `pageBreakBefore=true` (accepts `newPage|page|nextPage|pageBreak`). Same XML, same belt-and-suspenders rule. Preview with `view html` and count pages.
343+
`--prop break=newPage` is a shorter alias for `pageBreakBefore=true` (accepts `newPage|page|nextPage|pageBreak`). Same XML, same belt-and-suspenders rule. Preview with `view html` and count pages.
344344

345345
### Report-level recipes
346346

@@ -435,7 +435,7 @@ officecli add "$FILE" /body --type equation --prop formula="\\frac{a}{b} + \\sum
435435
officecli add "$FILE" "/body/p[3]" --type footnote --prop text="See Appendix A for methodology."
436436
```
437437

438-
**Comments and tracked changes.** Bulk accept/reject: `set / --prop accept-changes=all` (or `reject-changes=all`). Locate individual changes with `query ins` and `query del` (`trackedchange` is not a selector). Create tracked changes on a run with `--prop revision.type=ins|del --prop revision.author=…` (`help docx run` for the full `revision.*` set — `format`/`moveFrom`/`moveTo` too). Add a comment: `add "/body/p[4]" --type comment --prop author=… --prop text=…`; reply-thread it with `--prop parentId=N` and mark it resolved with `set "/comments/comment[N]" --prop done=true` (resolve rather than delete to keep the audit trail — `query 'comment[done=false]'` then lists what's still open). Prop schema: `help docx comment` / `help docx run`.
438+
**Comments and tracked changes.** Bulk accept/reject: `set "$FILE" /revision --prop revision.action=accept` (or `--prop revision.action=reject`); narrow with a selector like `/revision[@author=Alice]` or `/revision[@type=ins]`. Locate individual changes with `query ins` and `query del` (`trackedchange` is not a selector). Create tracked changes on a run with `--prop revision.type=ins|del --prop revision.author=…` (`help docx run` for the full `revision.*` set — `format`/`moveFrom`/`moveTo` too). Add a comment: `add "/body/p[4]" --type comment --prop author=… --prop text=…`; reply-thread it with `--prop parentId=N` and mark it resolved with `set "/comments/comment[N]" --prop done=true` (resolve rather than delete to keep the audit trail — `query 'comment[done=false]'` then lists what's still open). Prop schema: `help docx comment` / `help docx run`.
439439

440440
**Watermark.** `add / --type watermark --prop text="DRAFT" --prop color=BFBFBF --prop opacity=0.8` in one command (default opacity 0.5); `set /watermark --prop opacity=…` adjusts it later.
441441

@@ -449,7 +449,7 @@ Three tiers of precision; use the lowest that does the job.
449449
- **L2 — dotted-attr fallback** (`pbdr.top=`, `ind.left=`, `shd.fill=`, `padding.top=`, `font.size=`): when L1 lacks the knob. Example: `--prop pbdr.bottom="single;6;1F4E79;0"`. Emits schema-valid XML.
450450
- **L3 — `raw-set` with XML**: last resort, no schema protection. Use for internal hyperlinks, composite fields, and other shapes the typed verbs can't express (see XML appendix).
451451

452-
Borders use the format `style;size;color;space`: `single;4;FF0000;1`. Hex colors never start with `#`: `FF0000`. Scheme color names (`accent1..6`, `dark1`/`dark2`, `light1`/`light2`, `hyperlink`) are accepted anywhere a hex color is (1.0.60+) — prefer hex for stable colors across themes.
452+
Borders use the format `style;size;color;space`: `single;4;FF0000;1`. Hex colors never start with `#`: `FF0000`. Scheme color names (`accent1..6`, `dark1`/`dark2`, `light1`/`light2`, `hyperlink`) are accepted anywhere a hex color is — prefer hex for stable colors across themes.
453453

454454
## QA (Required)
455455

0 commit comments

Comments
 (0)