[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M71JX8Q8H72EJC67QP81NY5D":3,"skill-same:01M71JX8Q8H72EJC67QP81NY5D":94},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":16,"sourceHtmlUrl":17,"categories":18,"keywords":35,"publishedAt":55,"linkOnly":56,"markdownContent":57,"markdownBody":58,"frontMatter":59,"refName":60,"commitSha":61,"skillDirectory":62,"forksCount":63,"repositoryHtmlUrl":64,"repositoryHomepageUrl":65,"ownerHtmlUrl":66,"ownerBlogUrl":67,"ownerDescription":68,"updatedAt":69,"install":70,"resources":83},"01M71JX8Q8H72EJC67QP81NY5D","officecli",null,"Create, analyze, proofread, and modify Office documents (.docx, .xlsx, .pptx) using the officecli CLI tool. Use when the user wants to create, inspect, check formatting, find issues, add charts, or modify Office documents. Renders documents to check them (render, look, fix).","coco-research\u002Fcoco","coco-research","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F68911604?v=4","01M71JRE9C4NM4NSZM4JD0BJTB","Coco Research","01M71JREA0ZMR0PMH3CKA99SN1",631,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fcoco-research\u002Fcoco\u002Fblob\u002Fmain\u002Fskills\u002Fofficecli\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fcoco-research\u002Fcoco\u002Fblob\u002Fmain\u002Fskills\u002Fofficecli\u002FSKILL.md",[19,24,27,30],{"categoryNo":20,"categoryName":21,"taxonomyType":22,"taxonomyTypeDesc":23},"01JBSEEDCAT000000000000002","文档处理","SCENARIO","使用场景",{"categoryNo":25,"categoryName":26,"taxonomyType":22,"taxonomyTypeDesc":23},"01JBSEEDCAT000000000000003","演示文稿",{"categoryNo":28,"categoryName":29,"taxonomyType":22,"taxonomyTypeDesc":23},"01JBSEEDCAT000000000000004","电子表格",{"categoryNo":31,"categoryName":32,"taxonomyType":33,"taxonomyTypeDesc":34},"01JBSEEDCAT000000000000034","行政与办公人员","PROFESSION","适用职业",[5,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54],"check","modify","when","inspect","render","cli tool","proofread","use","fix","user","docx","analyze","tool","Charts","issues","create","documents","xlsx","pptx","2026-11-10 10:12:30",false,"---\nname: officecli\ndescription: Create, analyze, proofread, and modify Office documents (.docx, .xlsx, .pptx) using the officecli CLI tool. Use when the user wants to create, inspect, check formatting, find issues, add charts, or modify Office documents. Renders documents to check them (render, look, fix).\n---\n\n# officecli\n\nAdapted from [OfficeCLI](https:\u002F\u002Fgithub.com\u002FiOfficeAI\u002FOfficeCLI) by goworm (commit [fb98e59](https:\u002F\u002Fgithub.com\u002FiOfficeAI\u002FOfficeCLI\u002Fcommit\u002Ffb98e593612dee2cec36847666671dba502e60aa)), Apache-2.0. See LICENSE and NOTICE in this folder. Modified by Coco: install section replaced, update check disabled.\n\nAI-friendly CLI for .docx, .xlsx, .pptx. Single binary, no dependencies, no Office installation needed.\n\n## Setup\n\nRun `command -v officecli`. If it is missing, stop and tell the user to run `brew install officecli` (macOS\u002FLinux with Homebrew). Never install it yourself any other way. Never run `officecli install`.\n\nEvery call runs as `OFFICECLI_SKIP_UPDATE=1 officecli …`. The shell environment does not persist between agent tool calls, so prefix each call. The examples below omit the prefix for brevity.\n\n## Render, look, fix\n\nAfter edits, render the file, look at the result, and fix it. Repeat until the render looks right.\n\n```bash\nofficecli view \u003Cfile> html\n```\n\n`view html` is a static HTML snapshot (the same renderer as `watch`, with no server). Read that HTML. `officecli view \u003Cfile> issues` lists formatting, content, and structure problems. Fix with `set`, `add`, or `remove`, then render again.\n\n---\n\n## Strategy\n\n**L1 (read) → L2 (DOM edit) → L3 (raw XML)**. Always prefer higher layers. Add `--json` for structured output.\n\n**Before doc work, check Specialized Skills** (bottom of this file). Fundraising decks, academic papers, financial models, dashboards, and Morph animations need their own skill loaded first — `officecli load_skill \u003Cname>` once, then proceed.\n\n---\n\n## Help System (IMPORTANT)\n\n**When unsure about property names, value formats, or command syntax, ALWAYS run help instead of guessing.** One help query beats guess-fail-retry loops.\n\n`officecli help` ≡ `officecli --help`, and `officecli \u003Ccmd> --help` ≡ `officecli help \u003Ccmd>` — same content.\n\n```bash\nofficecli help                                  # All commands + global options + schema entry points\nofficecli help docx                             # List all docx elements\nofficecli help docx paragraph                   # Full schema: properties, aliases, examples, readbacks\nofficecli help docx set paragraph               # Verb-filtered: only props usable with `set`\nofficecli help docx paragraph --json            # Structured schema (machine-readable)\n```\n\nFormat aliases: `word`→`docx`, `excel`→`xlsx`, `ppt`\u002F`powerpoint`→`pptx`. Verbs: `add`, `set`, `get`, `query`, `remove`. MCP exposes the same schema via the single `command` string param: `{\"command\":\"help docx paragraph\"}` (not a structured `{\"format\":...,\"type\":...}` object — the MCP tool has exactly one param, `command`, and passes it through to the CLI verbatim).\n\n---\n\n## Performance: Resident Mode\n\n**Every command auto-starts a resident on first access** (60s idle timeout) — file-lock conflicts are automatically avoided. Explicit `open`\u002F`close` is still recommended for longer sessions (12min idle):\n```bash\nofficecli open report.docx       # explicitly keep in memory\nofficecli set report.docx ...    # no file I\u002FO overhead\nofficecli close report.docx      # save and release\n```\n\nOpt out of auto-start: `OFFICECLI_NO_AUTO_RESIDENT=1`.\n\n**Flush only at the non-officecli boundary.** officecli's own reads (`get`\u002F`query`\u002F`view`\u002F`dump`) always see your latest edits, so you never need to save mid-workflow. Run `save` (keeps the resident) or `close` (flush + release) only **before a non-officecli program reads the file** — python-docx\u002Fopenpyxl, Word, a renderer, delivery\u002Fupload. (Idle sessions auto-flush within seconds; `OFFICECLI_RESIDENT_FLUSH=each` makes every mutation flush before returning.)\n\n---\n\n## Quick Start\n\n**PPT:**\n```bash\nofficecli create slides.pptx\nofficecli add slides.pptx \u002F --type slide --prop title=\"Q4 Report\" --prop background=1A1A2E\nofficecli add slides.pptx '\u002Fslide[1]' --type shape --prop text=\"Revenue grew 25%\" --prop x=2cm --prop y=5cm --prop font=Arial --prop size=24 --prop color=FFFFFF\n```\n\n**Word:**\n```bash\nofficecli create report.docx\nofficecli add report.docx \u002Fbody --type paragraph --prop text=\"Executive Summary\" --prop style=Heading1\nofficecli add report.docx \u002Fbody --type paragraph --prop text=\"Revenue increased by 25% year-over-year.\"\n```\n\n**Excel:**\n```bash\nofficecli create data.xlsx\nofficecli set data.xlsx \u002FSheet1\u002FA1 --prop value=\"Name\" --prop bold=true\nofficecli set data.xlsx \u002FSheet1\u002FA2 --prop value=\"Alice\"\n```\n\n---\n\n## L1: Create, Read & Inspect\n\n```bash\nofficecli create \u003Cfile>               # Create blank .docx\u002F.xlsx\u002F.pptx (type from extension)\nofficecli view \u003Cfile> \u003Cmode>          # outline | stats | issues | text | annotated | html\nofficecli get \u003Cfile> \u003Cpath> --depth N # Get a node and its children [--json]\nofficecli query \u003Cfile> \u003Cselector>     # CSS-like query\nofficecli validate \u003Cfile>             # Validate against OpenXML schema\n```\n\n### view modes\n\n| Mode | Description | Useful flags |\n|------|-------------|-------------|\n| `outline` | Document structure | |\n| `stats` | Statistics (pages, words, shapes) | |\n| `issues` | Formatting\u002Fcontent\u002Fstructure problems | `--type format\\|content\\|structure`, `--limit N` |\n| `text` | Plain text extraction | `--start N --end N`, `--max-lines N` |\n| `annotated` | Text with formatting annotations | |\n| `html` | Static HTML snapshot — same renderer as `watch`, no server needed | `--browser`, `--page N` (docx), `--start N --end N` (pptx) |\n| `screenshot` \u002F `svg` \u002F `pdf` \u002F `forms` | PNG via headless browser \u002F SVG (pptx slide) \u002F PDF via exporter plugin \u002F form-fields JSON via format-handler plugin | `-o`, `--screenshot-width\u002F-height`, pptx `--grid N` |\n\nUse `view html` for one-shot snapshots (CI artifacts, archival, diffing); use `watch` when you need live refresh or browser-side click-to-select.\n\n### get\n\nAny XML path via element localName. Use `--depth N` to expand children. Add `--json` for structured output. Default text output is grep-friendly: `path (type) \"text\" key=val key=val ...`\n\n```bash\nofficecli get report.docx '\u002Fbody\u002Fp[3]' --depth 2 --json\nofficecli get slides.pptx '\u002Fslide[1]' --depth 1          # list all shapes on slide 1\nofficecli get data.xlsx '\u002FSheet1\u002FB2' --json\n```\n\n### Stable ID Addressing\n\nElements with stable IDs return `@attr=value` paths instead of positional indices. Prefer these in multi-step workflows — positional indices shift on insert\u002Fdelete, stable IDs do not.\n\n```\n\u002Fslide[1]\u002Fshape[@id=550950021]                    # PPT shape\n\u002Fslide[1]\u002Ftable[@id=1388430425]\u002Ftr[1]\u002Ftc[2]       # PPT table\n\u002Fbody\u002Fp[@paraId=1A2B3C4D]                         # Word paragraph\n\u002Fcomments\u002Fcomment[@commentId=1]                    # Word comment\n```\n\nPPT also accepts `@name=` (e.g. `shape[@name=Title 1]`), with morph `!!` prefix awareness. Elements without stable IDs (slide, run, tr\u002Ftc, row) fall back to positional indices.\n\n### query\n\nCSS-like selectors: `[attr=value]`, `[attr!=value]`, `[attr~=text]`, `[attr>=value]`, `[attr\u003C=value]`, `:contains(\"text\")`, `:empty`, `:has(formula)`, `:no-alt`. Boolean `and`\u002F`or` supported across `query`\u002F`set`\u002F`remove`: `cell[value>5000 or value\u003C100]`, `cell[(type=Number or type=Date) and value>0]`. Excel row-by-column-name: `Sheet1!row[Salary>5000]`. `set` accepts selectors and Excel-native paths (parity with `get`\u002F`query`). Bare unscoped selectors rejected on `set`\u002F`remove`.\n\n```bash\nofficecli query report.docx 'paragraph[style=Normal] > run[font!=Arial]'\nofficecli query slides.pptx 'shape[fill=FF0000]'\n```\n\n---\n\n## Watch & Interactive Selection\n\nLive HTML preview that auto-refreshes on every file change. Browsers can click \u002F shift-click \u002F box-drag to select shapes; the CLI can read the current browser selection and act on it.\n\n```bash\nofficecli watch \u003Cfile> [--port N]      # Start preview server (default port 26315)\nofficecli unwatch \u003Cfile>               # Stop\nofficecli goto \u003Cfile> \u003Cpath>           # Scroll watching browser(s) to element (docx: p \u002F table \u002F tr \u002F tc)\n```\n\nOpen the printed `http:\u002F\u002Flocalhost:N` URL. Click to select; shift\u002Fcmd\u002Fctrl+click to multi-select; drag from empty space to box-select. PPT\u002FWord use blue outline; Excel uses native-style green selection (double-click cell to edit inline; drag a chart to reposition).\n\n### `get \u003Cfile> selected` — read what the user clicked\n\n```bash\nofficecli get \u003Cfile> selected [--json]\n```\n\nReturns DocumentNodes for whatever is currently selected. Empty result if nothing selected. Exit code != 0 if no watch is running.\n\n```bash\n# User clicks shapes in the browser, then asks \"make these red\"\nPATHS=$(officecli get deck.pptx selected --json | jq -r '.data.Results[].path')\nfor p in $PATHS; do officecli set deck.pptx \"$p\" --prop fill=FF0000; done\n```\n\n### Key properties\n\n- **Selection survives file edits.** Paths use stable `@id=` form.\n- **All connected browsers share one selection.** Last-write-wins.\n- **Same-file single-watch.** A given file can have only one watch process at a time.\n- **Group shapes select as a whole.** Drilling into individual children of a group is not supported in v1.\n- **Coverage:** `.pptx` shapes\u002Fpictures\u002Ftables\u002Fcharts\u002Fconnectors\u002Fgroups; `.docx` top-level paragraphs and tables. Inherited layout\u002Fmaster decorations and Word nested elements (table cells, run-level) are not addressable. **`.xlsx` does not emit `data-path`** — `mark`\u002F`selection` on xlsx always resolve `stale=true` (v2 candidate).\n\n### Marks — edit proposals waiting for review\n\nUse `mark` when changes need human review BEFORE they hit the file. Marks live in the watch process only; a separate `set` pipeline applies accepted ones. For one-shot changes use `set` directly; for permanent file annotations use `add --type comment` (Word native).\n\n```bash\nofficecli mark \u003Cfile> \u003Cpath> [--prop find=... color=... note=... tofix=... regex=true] [--json]\nofficecli unmark \u003Cfile> [--path \u003Cp> | --all] [--json]\nofficecli get-marks \u003Cfile> [--json]\n```\n\nProps: `find` (literal or regex when `regex=true`; raw form `find='r\"[abc]\"'`), `color` (hex \u002F `rgb(...)` \u002F 22 named whitelist), `note`, `tofix` (drives apply pipeline). **Path** must be `data-path` format from watch HTML — see subskills for full pipeline.\n\n---\n\n## L2: DOM Operations\n\n### set — modify properties\n\n```bash\nofficecli set \u003Cfile> \u003Cpath> --prop key=value [--prop ...]\n```\n\n**Any XML attribute is settable** via element path (found via `get --depth N`) — even attributes not currently present. Without `find=`, `set` applies format to the entire element.\n\n**Value formats:**\n\n| Type | Format | Examples |\n|------|--------|---------|\n| Colors | Hex (with\u002Fwithout `#`), named, RGB, theme | `FF0000`, `#FF0000`, `red`, `rgb(255,0,0)`, `accent1`..`accent6` |\n| Spacing | Unit-qualified | `12pt`, `0.5cm`, `1.5x`, `150%` |\n| Dimensions | EMU or suffixed | `914400`, `2.54cm`, `1in`, `72pt`, `96px` |\n\n**Dotted-attr aliases** — `font.\u003Cattr>` forms accepted on shape\u002Frun\u002Fparagraph\u002Ftable\u002Frow\u002Fcell\u002Fsection\u002Fstyles, e.g. `--prop font.color=red --prop font.bold=true --prop font.size=14pt`. Run `officecli help \u003Cfmt> \u003Celement>` for the full list.\n\n### find — format or replace matched text\n\nUse top-level `--find` \u002F `--replace` on `set` (and `--find` on `query`). Legacy `--prop find=X` still works but emits a hint.\n\n```bash\n# Format matched text (auto-splits runs)\nofficecli set doc.docx '\u002Fbody\u002Fp[1]' --find weather --prop bold=true --prop color=red\n\n# Regex matching (regex= still a prop flag)\nofficecli set doc.docx '\u002Fbody\u002Fp[1]' --find '\\d+%' --prop regex=true --prop color=red\n\n# Replace text (use `\u002F` for whole-document scope)\nofficecli set doc.docx \u002F --find draft --replace final\n\n# docx: tracked Find&Replace\nofficecli set doc.docx \u002F --find draft --replace final --prop revision.author=Alice\n\n# PPT — same syntax, different paths\nofficecli set slides.pptx \u002F --find draft --replace final\n```\n\n**Path controls search scope:** `\u002F` = whole document, `\u002Fbody\u002Fp[1]` or `\u002Fslide[N]\u002Fshape[M]` = specific element, `\u002Fheader[1]` \u002F `\u002Ffooter[1]` = headers\u002Ffooters.\n\n**Notes:**\n- Case-sensitive by default. Case-insensitive: `--prop 'find=(?i)error' --prop regex=true`\n- Matches work across run boundaries\n- No match = silent success. `--json` includes `\"matched\": N`\n- **Excel:** only `find` + `replace` supported (no find + format props)\n\n### add — add elements or clone\n\n```bash\nofficecli add \u003Cfile> \u003Cparent> --type \u003Ctype> [--prop ...]\nofficecli add \u003Cfile> \u003Cparent> --type \u003Ctype> --after \u003Cpath> [--prop ...]   # insert after anchor\nofficecli add \u003Cfile> \u003Cparent> --type \u003Ctype> --before \u003Cpath> [--prop ...]  # insert before anchor\nofficecli add \u003Cfile> \u003Cparent> --type \u003Ctype> --index N [--prop ...]        # 0-based position (legacy)\nofficecli add \u003Cfile> \u003Cparent> --from \u003Cpath>                               # clone existing element\n```\n\n`--after`, `--before`, `--index` are mutually exclusive. No position flag = append to end.\n\n**Element types (with aliases):**\n\n| Format | Types |\n|--------|-------|\n| **pptx** | slide (incl. hidden), shape (font.latin\u002Fea\u002Fcs, direction=rtl, underline.color, highlight=COLOR (Add\u002FSet\u002FGet\u002FHTML preview), effective.X+effective.X.src; arrow alias for rightArrow; slideMaster\u002FslideLayout typed add\u002Fset\u002Fremove), picture (SVG, brightness\u002Fcontrast\u002Fglow\u002Fshadow, rotation, link, tooltip), chart (direction=rtl, pieOfPie, barOfPie, axisLine\u002Fgridline per-attr setters, animation+chartBuild=byCategory|bySeries, line dropLines\u002FhiLowLines\u002FupDownBars, anchor=x,y,w,h shorthand), table (cell direction=rtl, fill\u002Fbackground, built-in PowerPoint style catalogue, \u002Fcol[C] get + swap\u002FcopyFrom, row\u002Fcol Move\u002FCopyFrom), row (tr), connector (from\u002Fto accept full-path `@name=`\u002F`@id=` forms — bare `@name=Foo` is rejected, must be `\u002Fslide[N]\u002Fshape[@name=Foo]` — startshape\u002Fendshape SetByPath; edge-to-edge anchoring by default, fromSide\u002FtoSide to force an edge, fromIdx\u002FtoIdx for raw cxn index), group (link, tooltip, deep walk by get\u002Fquery\u002Fadd\u002Fremove, ungroup=true dissolves back to slide-absolute), align\u002Fdistribute (targets= accepts shape[@id=N] paths, not just positional), video\u002Faudio (loop, autoStart alias), equation, notes (direction=rtl, lang), comment (legacy + modern p188 threaded round-trip), animation (15 emphasis + 16 exit presets, multi-effect chains, motion-path presets, repeat\u002Frestart\u002FautoReverse, chart animations), transition (12 p15 presets + morph\u002Fp14), paragraph (para), run, zoom, ole (preview=, full dump round-trip via add-part+raw-set), placeholder (phType=...), model3d (rotation=ax,ay,az; full dump round-trip), smartart (dump round-trip via add-part), diagram (add-only mermaid → native shapes or rendered image, `--type diagram`\u002F`flowchart`). |\n| **docx** | paragraph (direction\u002Ffont.latin\u002Fea\u002Fcs, bold.cs\u002Fitalic.cs\u002Fsize.cs, lang.latin\u002Fea\u002Fcs, wordWrap, framePr.\\*, tabs shorthand), run (lang slots, direction, underline.color, position half-pts, **revision.type=ins\\|del\\|format\\|moveFrom\\|moveTo + revision.action=accept\\|reject** with .author\u002F.date — bare `@author=`\u002F`@type=` selector on `set \u002Frevision[...]` for filtered accept\u002Freject, but `query 'revision[...]'` needs the dotted `revision.author=`\u002F`revision.type=` form; move+revision is run-level paths only, not paragraph-level; **range=START:END** on a paragraph\u002Fshape path formats a char span by explicit 0-based half-open offset instead of addressing a run — the offset sibling of find=), table (direction=rtl, hMerge, cantSplit on row\u002Fnowrap on cell (both add+set), **virtual column ops**: add\u002Fremove\u002Fmove\u002Fcopyfrom on \u002Fbody\u002Ftbl[N]\u002Fcol), row (tr), cell (td), image, header\u002Ffooter (direction), section (pageNumFmt full enum, direction=rtl, rtlGutter, pgBorders=box), bookmark, comment, footnote, endnote, formfield, sdt, chart, equation, field (28 types), hyperlink, style (direction, indents, pbdr, lineSpacing on Add\u002FSet), toc, watermark, break, ole, **num\u002FabstractNum\u002Flvl**, **tab**, **textbox\u002Fshape** (add-mostly — Get returns raw XML preview only, no structured readback; Set is limited to width\u002Fheight\u002Fgeometry\u002Ffill\u002Fline.\\*; position is `anchor.x`\u002F`anchor.y` not bare x\u002Fy; **textbox-only** `textDirection`\u002Frotation\u002Fgradient\u002Fshadow — docx shape itself has neither rotation nor gradient), embedded **OLE round-trip on dump→batch**, **diagram** (add-only mermaid → native shapes or rendered image, `--type diagram`\u002F`flowchart`, no x\u002Fy at add-time — reposition via `set \u002Fbody\u002Fgroup[N]`). docDefaults.rtl, autoHyphenation, `get \u002F` exposes locale + \u002Fcomments \u002Ffootnotes \u002Fendnotes. `create --minimal` for raw OOXML scaffolding. |\n| **xlsx** | sheet (visible\u002Fhidden\u002FveryHidden, print margins, printTitleRows\u002FCols, rightToLeft sheetView, cascade-aware rename), row (c{N}= cell-content shorthand; add accepts --from \u002FSheet\u002Fcol[L]; formula-ref rewrite on insert), col (formula-ref rewrite, named-range follow on move), cell (type=richtext+runs, merge=range\u002Fsweep, direction=rtl, phonetic; **--shift left\\|up on remove, shift=right\\|down on add** — Excel UI dialog parity; formula auto-detect; OFFSET\u002FINDIRECT in calc), chart (per-axis RTL\u002Ftitle, anchor=x,y,w,h, pareto), image (SVG), comment (direction=rtl), table (listobject), namedrange (definedname, volatile, `[@name=X]`; formula-body inlined at parse), pivottable (cache CoW + cross-pivot sharing, labelFilter=field:type:value add-time-only, topN=integer add-time-only, fillDownLabels is an alias of repeatLabels not a separate feature, calculatedField), sparkline, validation, autofilter, shape, textbox, CF (databar\u002Fcolorscale\u002Ficonset\u002Fformulacf\u002FcellIs\u002FtopN\u002FaboveAverage), ole, csv. Query supports `merge`\u002F`mergedrange`. Workbook: password. Shape selector enumerates leaves inside grpSp. |\n\n### Pivot tables (xlsx)\n\n```bash\nofficecli add data.xlsx \u002FSheet1 --type pivottable \\\n  --prop source=\"Sheet1!A1:E100\" --prop rows=Region,Category \\\n  --prop cols=Year --prop values=\"Sales:sum,Qty:count\" \\\n  --prop grandTotals=rows --prop subtotals=off --prop sort=asc\n```\n\nKey props: `rows`, `cols`, `values` (Field:func[:showDataAs]), `filters`, `source`, `position`, `layout` (compact\u002Foutline\u002Ftabular), `repeatLabels`, `blankRows`, `aggregate`, `showDataAs` (percent_of_total\u002Frow\u002Fcol, running_total), `grandTotals`, `subtotals`, `sort`. Aggregators: sum, count, average, max, min, product, stdDev, stdDevp, var, varp, countNums. Date columns auto-group. Run `officecli help xlsx pivottable` for full schema.\n\n### Document-level properties (all formats)\n\n```bash\nofficecli set doc.docx \u002F --prop docDefaults.font=Arial --prop docDefaults.fontSize=11pt\nofficecli set doc.docx \u002F --prop protection=forms --prop evenAndOddHeaders=true\nofficecli set data.xlsx \u002F --prop calc.mode=manual --prop calc.refMode=r1c1\nofficecli set slides.pptx \u002F --prop defaultFont=Arial --prop show.loop=true --prop print.what=handouts\n```\n\nRun `officecli help \u003Cformat> \u002F` for all document-level properties (docDefaults, docGrid, CJK spacing, calc, print, show, theme, extended).\n\n### Sort (xlsx)\n\n```bash\nofficecli set data.xlsx \u002FSheet1 --prop sort=\"C desc\" --prop sortHeader=true\nofficecli set data.xlsx '\u002FSheet1\u002FA1:D100' --prop sort=\"A asc\" --prop sortHeader=true\n```\n\nFormat: `COL DIR[, COL DIR ...]`. Rejects ranges with merged cells or formulas. Sidecar metadata (hyperlinks, comments, conditional formatting, drawings) follows rows automatically.\n\n### Text-anchored insert (`--after find:X` \u002F `--before find:X`)\n\nLocate an insertion point by text match within a paragraph. Inline types (run, picture, hyperlink) insert within the paragraph; block types (table, paragraph) auto-split it. PPT only supports inline.\n\n```bash\n# Word: inline run after matched text\nofficecli add doc.docx '\u002Fbody\u002Fp[1]' --type run --after find:weather --prop text=\" (sunny)\"\n\n# Word: block table after matched text (auto-splits paragraph)\nofficecli add doc.docx '\u002Fbody\u002Fp[1]' --type table --after \"find:First sentence.\" --prop rows=2 --prop cols=2\n```\n\n### Clone\n\n`officecli add \u003Cfile> \u002F --from '\u002Fslide[1]'` — copies with all cross-part relationships.\n\n### move, swap, remove\n\n```bash\nofficecli move \u003Cfile> \u003Cpath> [--to \u003Cparent>] [--index N] [--after \u003Cpath>] [--before \u003Cpath>]\nofficecli swap \u003Cfile> \u003Cpath1> \u003Cpath2>\nofficecli remove \u003Cfile> '\u002Fbody\u002Fp[4]'\n```\n\nWhen using `--after` or `--before`, `--to` can be omitted — the target container is inferred from the anchor.\n\n### batch — multiple operations in one save cycle\n\n**Atomic by default (v1.0.137+):** every item still runs and is reported (so `N succeeded, M failed` stays meaningful and every failure surfaces), but if *any* item fails the whole batch rolls back — the file on disk is left byte-identical to before the batch ran (confirmed live in both standalone and resident mode). Use `--best-effort` to restore the old apply-what-succeeds behavior (useful for lossy `dump→batch` replays where losing the whole thing over one unsupported item is worse than a partial result). `--stop-on-error` only changes how early the run stops (remaining items are `skipped`), not whether what ran gets kept — combine it with `--best-effort` if you want \"stop at first failure but keep what already succeeded.\" `--force` is unrelated — it's only the docx-protection bypass. Failed items carry a machine-readable `code` field (same list as `error.code`); a rolled-back batch's JSON summary carries `\"atomicRolledBack\": true`.\n\n`officecli dump \u003Cfile> [\u003Cpath>]` emits a replayable batch JSON for round-trip — `.docx` (full coverage), `.pptx` (text\u002Ftables\u002Fpictures\u002Fcharts\u002Fnotes\u002Ftheme + OLE\u002F3D\u002Fvideo\u002Faudio\u002FSmartArt\u002Fmorph\u002Fp15 transitions via raw-set passthrough), and `.xlsx` (cells\u002Fformulas\u002Fstyles + tables, conditional formatting, validations, comments, charts, sparklines, pictures, shapes, pivot tables; slicers\u002FchartEx\u002FOLE via verbatim carrier). Path defaults to `\u002F` (whole document); pass a subtree path (docx: `\u002Fbody`, `\u002Fbody\u002Fp[N]`, `\u002Fbody\u002Ftbl[N]`, `\u002Ftheme`, `\u002Fsettings`, `\u002Fnumbering`, `\u002Fstyles`; xlsx: `\u002FSheetName`, `\u002Fsheet[N]`) to scope the dump. `officecli refresh \u003Cfile.docx>` recalculates TOC page numbers \u002F PAGE \u002F cross-references after replay (Word backend on Windows; headless-HTML fallback elsewhere). `officecli plugins list` extends support to `.doc`, `.hwpx`, `.pdf` export.\n\n```bash\necho '[\n  {\"command\":\"set\",\"path\":\"\u002FSheet1\u002FA1\",\"props\":{\"value\":\"Name\",\"bold\":\"true\"}},\n  {\"command\":\"set\",\"path\":\"\u002FSheet1\u002FB1\",\"props\":{\"value\":\"Score\",\"bold\":\"true\"}}\n]' | officecli batch data.xlsx --json\n\nofficecli batch data.xlsx --commands '[{\"op\":\"set\",\"path\":\"\u002FSheet1\u002FA1\",\"props\":{\"value\":\"Done\"}}]' --json\nofficecli batch data.xlsx --input updates.json --best-effort --json   # keep whatever succeeds even if some items fail\n```\n\nSupports: `add`, `set`, `get`, `query`, `remove`, `move`, `swap`, `view`, `raw`, `raw-set`, `validate`. Fields: `command` (or `op`), `path`, `parent`, `type`, `from`, `to`, `index`, `after`, `before`, `props`, `selector`, `mode`, `depth`, `part`, `xpath`, `action`, `xml`.\n\n---\n\n## L3: Raw XML\n\nUse when L2 cannot express what you need. No xmlns declarations needed — prefixes auto-registered.\n\n```bash\nofficecli raw \u003Cfile> \u003Cpart>                          # view raw XML\nofficecli raw-set \u003Cfile> \u003Cpart> --xpath \"...\" --action replace --xml '\u003Cw:p>...\u003C\u002Fw:p>'\nofficecli add-part \u003Cfile> \u003Cparent>                   # create new document part (returns rId)\n```\n\n`raw-set` actions: `append`, `prepend`, `insertbefore`, `insertafter`, `replace`, `remove`, `setattr`. Run `officecli help \u003Cformat> raw` for available parts.\n\n---\n\n## Common Pitfalls\n\n| Pitfall | Correct Approach |\n|---------|-----------------|\n| `--name \"foo\"` | Use `--prop name=\"foo\"` — all attributes go through `--prop` |\n| Unquoted `[N]` paths in zsh\u002Fbash | Always quote: `'\u002Fslide[1]'` or `\"\u002Fslide[1]\"` (shell glob-expands brackets) |\n| PPT `shape[1]` for content | `shape[1]` is typically the title placeholder. Use `shape[2]+` for content shapes |\n| `\u002Fshape[myname]` | Name indexing not supported. Use numeric index or `@name=` (PPT only) |\n| Guessing property names | Run `officecli help \u003Cformat> \u003Celement>` to see exact names |\n| Modifying an open file | Close the file in PowerPoint\u002FWPS first |\n| `\\n` in shell strings | Use `\\\\n` for newlines in `--prop text=\"...\"` |\n| `$` in shell text | `--prop text=\"$15M\"` strips `$15`. Use single quotes: `--prop text='$15M'`, or heredoc batch |\n\n---\n\n## Specialized Skills\n\nThe binary ships these skills. `OFFICECLI_SKIP_UPDATE=1 officecli load_skill \u003Cname>` prints one (a SKILL.md and a manifest of its reference files; `--path \u003Crelpath>` prints one reference file). Follow its rules, with two Coco limits: skip any install section it prints (Setup above still decides how officecli gets installed), and never run `officecli skills install`, which writes skill files to disk.\n\n**Loading rule**:\n- Pick the most specific match in \"When to use\"; if none fits, load the format default (`word` \u002F `pptx` \u002F `excel`).\n- Scenes already contain the format default's rules — load **one** skill per artifact, never stack.\n- Loaded rules persist across turns; don't re-load each reply.\n- Two distinct artifacts → two separate loads.\n\nExample: a fundraising deck task → `officecli load_skill pitch-deck` → use the printed rules.\n\n### Word (.docx)\n\n| Name | When to use |\n|------|-------------|\n| `word` | Reports, letters, memos, proposals, generic documents |\n| `academic-paper` | Journal \u002F conference \u002F thesis: APA \u002F Chicago \u002F IEEE \u002F MLA citations, equations, SEQ + PAGEREF cross-refs, multi-column journal layout, bibliography. NOT for business reports or letters (route those to `word`) |\n\n### PowerPoint (.pptx)\n\n| Name | When to use |\n|------|-------------|\n| `pptx` | Generic decks: board reviews, sales decks, all-hands, product launches |\n| `pitch-deck` | **Fundraising only** — seed \u002F Series A-C \u002F SAFE \u002F convertible \u002F strategic raise. NOT for sales \u002F product \u002F board decks (route those to `pptx`) |\n| `morph-ppt` | Cinematic Morph-animated presentations. NOT for static decks (route those to `pptx`) |\n| `morph-ppt-3d` | 3D Morph: GLB models, camera moves, depth. NOT for 2D-only Morph (route those to `morph-ppt`) |\n\n### Excel (.xlsx)\n\n| Name | When to use |\n|------|-------------|\n| `excel` | Generic workbooks, formulas, pivots, trackers |\n| `financial-model` | Financial models, scenarios, projections. NOT for general data analysis (route those to `excel`) |\n| `data-dashboard` | CSV\u002Ftabular data → KPI \u002F analytics \u002F executive dashboards with charts and sparklines. NOT for raw data tracking (route those to `excel`) |\n\n---\n\n## Notes\n\n- Paths are **1-based** (XPath convention): `'\u002Fbody\u002Fp[3]'` = third paragraph\n- `--index` is **0-based** (array convention): `--index 0` = first position\n- **Excel exception**: for `add --type row` and `add --type col`, `--index N` is **1-based** (matches OOXML RowIndex \u002F column letter index). `--index 5` inserts at row 5 \u002F column 5.\n- After modifications, verify with `validate` and\u002For `view issues`\n- **When unsure**, run `officecli help \u003Cformat> \u003Celement>` instead of guessing\n","# officecli\n\nAdapted from [OfficeCLI](https:\u002F\u002Fgithub.com\u002FiOfficeAI\u002FOfficeCLI) by goworm (commit [fb98e59](https:\u002F\u002Fgithub.com\u002FiOfficeAI\u002FOfficeCLI\u002Fcommit\u002Ffb98e593612dee2cec36847666671dba502e60aa)), Apache-2.0. See LICENSE and NOTICE in this folder. Modified by Coco: install section replaced, update check disabled.\n\nAI-friendly CLI for .docx, .xlsx, .pptx. Single binary, no dependencies, no Office installation needed.\n\n## Setup\n\nRun `command -v officecli`. If it is missing, stop and tell the user to run `brew install officecli` (macOS\u002FLinux with Homebrew). Never install it yourself any other way. Never run `officecli install`.\n\nEvery call runs as `OFFICECLI_SKIP_UPDATE=1 officecli …`. The shell environment does not persist between agent tool calls, so prefix each call. The examples below omit the prefix for brevity.\n\n## Render, look, fix\n\nAfter edits, render the file, look at the result, and fix it. Repeat until the render looks right.\n\n```bash\nofficecli view \u003Cfile> html\n```\n\n`view html` is a static HTML snapshot (the same renderer as `watch`, with no server). Read that HTML. `officecli view \u003Cfile> issues` lists formatting, content, and structure problems. Fix with `set`, `add`, or `remove`, then render again.\n\n---\n\n## Strategy\n\n**L1 (read) → L2 (DOM edit) → L3 (raw XML)**. Always prefer higher layers. Add `--json` for structured output.\n\n**Before doc work, check Specialized Skills** (bottom of this file). Fundraising decks, academic papers, financial models, dashboards, and Morph animations need their own skill loaded first — `officecli load_skill \u003Cname>` once, then proceed.\n\n---\n\n## Help System (IMPORTANT)\n\n**When unsure about property names, value formats, or command syntax, ALWAYS run help instead of guessing.** One help query beats guess-fail-retry loops.\n\n`officecli help` ≡ `officecli --help`, and `officecli \u003Ccmd> --help` ≡ `officecli help \u003Ccmd>` — same content.\n\n```bash\nofficecli help                                  # All commands + global options + schema entry points\nofficecli help docx                             # List all docx elements\nofficecli help docx paragraph                   # Full schema: properties, aliases, examples, readbacks\nofficecli help docx set paragraph               # Verb-filtered: only props usable with `set`\nofficecli help docx paragraph --json            # Structured schema (machine-readable)\n```\n\nFormat aliases: `word`→`docx`, `excel`→`xlsx`, `ppt`\u002F`powerpoint`→`pptx`. Verbs: `add`, `set`, `get`, `query`, `remove`. MCP exposes the same schema via the single `command` string param: `{\"command\":\"help docx paragraph\"}` (not a structured `{\"format\":...,\"type\":...}` object — the MCP tool has exactly one param, `command`, and passes it through to the CLI verbatim).\n\n---\n\n## Performance: Resident Mode\n\n**Every command auto-starts a resident on first access** (60s idle timeout) — file-lock conflicts are automatically avoided. Explicit `open`\u002F`close` is still recommended for longer sessions (12min idle):\n```bash\nofficecli open report.docx       # explicitly keep in memory\nofficecli set report.docx ...    # no file I\u002FO overhead\nofficecli close report.docx      # save and release\n```\n\nOpt out of auto-start: `OFFICECLI_NO_AUTO_RESIDENT=1`.\n\n**Flush only at the non-officecli boundary.** officecli's own reads (`get`\u002F`query`\u002F`view`\u002F`dump`) always see your latest edits, so you never need to save mid-workflow. Run `save` (keeps the resident) or `close` (flush + release) only **before a non-officecli program reads the file** — python-docx\u002Fopenpyxl, Word, a renderer, delivery\u002Fupload. (Idle sessions auto-flush within seconds; `OFFICECLI_RESIDENT_FLUSH=each` makes every mutation flush before returning.)\n\n---\n\n## Quick Start\n\n**PPT:**\n```bash\nofficecli create slides.pptx\nofficecli add slides.pptx \u002F --type slide --prop title=\"Q4 Report\" --prop background=1A1A2E\nofficecli add slides.pptx '\u002Fslide[1]' --type shape --prop text=\"Revenue grew 25%\" --prop x=2cm --prop y=5cm --prop font=Arial --prop size=24 --prop color=FFFFFF\n```\n\n**Word:**\n```bash\nofficecli create report.docx\nofficecli add report.docx \u002Fbody --type paragraph --prop text=\"Executive Summary\" --prop style=Heading1\nofficecli add report.docx \u002Fbody --type paragraph --prop text=\"Revenue increased by 25% year-over-year.\"\n```\n\n**Excel:**\n```bash\nofficecli create data.xlsx\nofficecli set data.xlsx \u002FSheet1\u002FA1 --prop value=\"Name\" --prop bold=true\nofficecli set data.xlsx \u002FSheet1\u002FA2 --prop value=\"Alice\"\n```\n\n---\n\n## L1: Create, Read & Inspect\n\n```bash\nofficecli create \u003Cfile>               # Create blank .docx\u002F.xlsx\u002F.pptx (type from extension)\nofficecli view \u003Cfile> \u003Cmode>          # outline | stats | issues | text | annotated | html\nofficecli get \u003Cfile> \u003Cpath> --depth N # Get a node and its children [--json]\nofficecli query \u003Cfile> \u003Cselector>     # CSS-like query\nofficecli validate \u003Cfile>             # Validate against OpenXML schema\n```\n\n### view modes\n\n| Mode | Description | Useful flags |\n|------|-------------|-------------|\n| `outline` | Document structure | |\n| `stats` | Statistics (pages, words, shapes) | |\n| `issues` | Formatting\u002Fcontent\u002Fstructure problems | `--type format\\|content\\|structure`, `--limit N` |\n| `text` | Plain text extraction | `--start N --end N`, `--max-lines N` |\n| `annotated` | Text with formatting annotations | |\n| `html` | Static HTML snapshot — same renderer as `watch`, no server needed | `--browser`, `--page N` (docx), `--start N --end N` (pptx) |\n| `screenshot` \u002F `svg` \u002F `pdf` \u002F `forms` | PNG via headless browser \u002F SVG (pptx slide) \u002F PDF via exporter plugin \u002F form-fields JSON via format-handler plugin | `-o`, `--screenshot-width\u002F-height`, pptx `--grid N` |\n\nUse `view html` for one-shot snapshots (CI artifacts, archival, diffing); use `watch` when you need live refresh or browser-side click-to-select.\n\n### get\n\nAny XML path via element localName. Use `--depth N` to expand children. Add `--json` for structured output. Default text output is grep-friendly: `path (type) \"text\" key=val key=val ...`\n\n```bash\nofficecli get report.docx '\u002Fbody\u002Fp[3]' --depth 2 --json\nofficecli get slides.pptx '\u002Fslide[1]' --depth 1          # list all shapes on slide 1\nofficecli get data.xlsx '\u002FSheet1\u002FB2' --json\n```\n\n### Stable ID Addressing\n\nElements with stable IDs return `@attr=value` paths instead of positional indices. Prefer these in multi-step workflows — positional indices shift on insert\u002Fdelete, stable IDs do not.\n\n```\n\u002Fslide[1]\u002Fshape[@id=550950021]                    # PPT shape\n\u002Fslide[1]\u002Ftable[@id=1388430425]\u002Ftr[1]\u002Ftc[2]       # PPT table\n\u002Fbody\u002Fp[@paraId=1A2B3C4D]                         # Word paragraph\n\u002Fcomments\u002Fcomment[@commentId=1]                    # Word comment\n```\n\nPPT also accepts `@name=` (e.g. `shape[@name=Title 1]`), with morph `!!` prefix awareness. Elements without stable IDs (slide, run, tr\u002Ftc, row) fall back to positional indices.\n\n### query\n\nCSS-like selectors: `[attr=value]`, `[attr!=value]`, `[attr~=text]`, `[attr>=value]`, `[attr\u003C=value]`, `:contains(\"text\")`, `:empty`, `:has(formula)`, `:no-alt`. Boolean `and`\u002F`or` supported across `query`\u002F`set`\u002F`remove`: `cell[value>5000 or value\u003C100]`, `cell[(type=Number or type=Date) and value>0]`. Excel row-by-column-name: `Sheet1!row[Salary>5000]`. `set` accepts selectors and Excel-native paths (parity with `get`\u002F`query`). Bare unscoped selectors rejected on `set`\u002F`remove`.\n\n```bash\nofficecli query report.docx 'paragraph[style=Normal] > run[font!=Arial]'\nofficecli query slides.pptx 'shape[fill=FF0000]'\n```\n\n---\n\n## Watch & Interactive Selection\n\nLive HTML preview that auto-refreshes on every file change. Browsers can click \u002F shift-click \u002F box-drag to select shapes; the CLI can read the current browser selection and act on it.\n\n```bash\nofficecli watch \u003Cfile> [--port N]      # Start preview server (default port 26315)\nofficecli unwatch \u003Cfile>               # Stop\nofficecli goto \u003Cfile> \u003Cpath>           # Scroll watching browser(s) to element (docx: p \u002F table \u002F tr \u002F tc)\n```\n\nOpen the printed `http:\u002F\u002Flocalhost:N` URL. Click to select; shift\u002Fcmd\u002Fctrl+click to multi-select; drag from empty space to box-select. PPT\u002FWord use blue outline; Excel uses native-style green selection (double-click cell to edit inline; drag a chart to reposition).\n\n### `get \u003Cfile> selected` — read what the user clicked\n\n```bash\nofficecli get \u003Cfile> selected [--json]\n```\n\nReturns DocumentNodes for whatever is currently selected. Empty result if nothing selected. Exit code != 0 if no watch is running.\n\n```bash\n# User clicks shapes in the browser, then asks \"make these red\"\nPATHS=$(officecli get deck.pptx selected --json | jq -r '.data.Results[].path')\nfor p in $PATHS; do officecli set deck.pptx \"$p\" --prop fill=FF0000; done\n```\n\n### Key properties\n\n- **Selection survives file edits.** Paths use stable `@id=` form.\n- **All connected browsers share one selection.** Last-write-wins.\n- **Same-file single-watch.** A given file can have only one watch process at a time.\n- **Group shapes select as a whole.** Drilling into individual children of a group is not supported in v1.\n- **Coverage:** `.pptx` shapes\u002Fpictures\u002Ftables\u002Fcharts\u002Fconnectors\u002Fgroups; `.docx` top-level paragraphs and tables. Inherited layout\u002Fmaster decorations and Word nested elements (table cells, run-level) are not addressable. **`.xlsx` does not emit `data-path`** — `mark`\u002F`selection` on xlsx always resolve `stale=true` (v2 candidate).\n\n### Marks — edit proposals waiting for review\n\nUse `mark` when changes need human review BEFORE they hit the file. Marks live in the watch process only; a separate `set` pipeline applies accepted ones. For one-shot changes use `set` directly; for permanent file annotations use `add --type comment` (Word native).\n\n```bash\nofficecli mark \u003Cfile> \u003Cpath> [--prop find=... color=... note=... tofix=... regex=true] [--json]\nofficecli unmark \u003Cfile> [--path \u003Cp> | --all] [--json]\nofficecli get-marks \u003Cfile> [--json]\n```\n\nProps: `find` (literal or regex when `regex=true`; raw form `find='r\"[abc]\"'`), `color` (hex \u002F `rgb(...)` \u002F 22 named whitelist), `note`, `tofix` (drives apply pipeline). **Path** must be `data-path` format from watch HTML — see subskills for full pipeline.\n\n---\n\n## L2: DOM Operations\n\n### set — modify properties\n\n```bash\nofficecli set \u003Cfile> \u003Cpath> --prop key=value [--prop ...]\n```\n\n**Any XML attribute is settable** via element path (found via `get --depth N`) — even attributes not currently present. Without `find=`, `set` applies format to the entire element.\n\n**Value formats:**\n\n| Type | Format | Examples |\n|------|--------|---------|\n| Colors | Hex (with\u002Fwithout `#`), named, RGB, theme | `FF0000`, `#FF0000`, `red`, `rgb(255,0,0)`, `accent1`..`accent6` |\n| Spacing | Unit-qualified | `12pt`, `0.5cm`, `1.5x`, `150%` |\n| Dimensions | EMU or suffixed | `914400`, `2.54cm`, `1in`, `72pt`, `96px` |\n\n**Dotted-attr aliases** — `font.\u003Cattr>` forms accepted on shape\u002Frun\u002Fparagraph\u002Ftable\u002Frow\u002Fcell\u002Fsection\u002Fstyles, e.g. `--prop font.color=red --prop font.bold=true --prop font.size=14pt`. Run `officecli help \u003Cfmt> \u003Celement>` for the full list.\n\n### find — format or replace matched text\n\nUse top-level `--find` \u002F `--replace` on `set` (and `--find` on `query`). Legacy `--prop find=X` still works but emits a hint.\n\n```bash\n# Format matched text (auto-splits runs)\nofficecli set doc.docx '\u002Fbody\u002Fp[1]' --find weather --prop bold=true --prop color=red\n\n# Regex matching (regex= still a prop flag)\nofficecli set doc.docx '\u002Fbody\u002Fp[1]' --find '\\d+%' --prop regex=true --prop color=red\n\n# Replace text (use `\u002F` for whole-document scope)\nofficecli set doc.docx \u002F --find draft --replace final\n\n# docx: tracked Find&Replace\nofficecli set doc.docx \u002F --find draft --replace final --prop revision.author=Alice\n\n# PPT — same syntax, different paths\nofficecli set slides.pptx \u002F --find draft --replace final\n```\n\n**Path controls search scope:** `\u002F` = whole document, `\u002Fbody\u002Fp[1]` or `\u002Fslide[N]\u002Fshape[M]` = specific element, `\u002Fheader[1]` \u002F `\u002Ffooter[1]` = headers\u002Ffooters.\n\n**Notes:**\n- Case-sensitive by default. Case-insensitive: `--prop 'find=(?i)error' --prop regex=true`\n- Matches work across run boundaries\n- No match = silent success. `--json` includes `\"matched\": N`\n- **Excel:** only `find` + `replace` supported (no find + format props)\n\n### add — add elements or clone\n\n```bash\nofficecli add \u003Cfile> \u003Cparent> --type \u003Ctype> [--prop ...]\nofficecli add \u003Cfile> \u003Cparent> --type \u003Ctype> --after \u003Cpath> [--prop ...]   # insert after anchor\nofficecli add \u003Cfile> \u003Cparent> --type \u003Ctype> --before \u003Cpath> [--prop ...]  # insert before anchor\nofficecli add \u003Cfile> \u003Cparent> --type \u003Ctype> --index N [--prop ...]        # 0-based position (legacy)\nofficecli add \u003Cfile> \u003Cparent> --from \u003Cpath>                               # clone existing element\n```\n\n`--after`, `--before`, `--index` are mutually exclusive. No position flag = append to end.\n\n**Element types (with aliases):**\n\n| Format | Types |\n|--------|-------|\n| **pptx** | slide (incl. hidden), shape (font.latin\u002Fea\u002Fcs, direction=rtl, underline.color, highlight=COLOR (Add\u002FSet\u002FGet\u002FHTML preview), effective.X+effective.X.src; arrow alias for rightArrow; slideMaster\u002FslideLayout typed add\u002Fset\u002Fremove), picture (SVG, brightness\u002Fcontrast\u002Fglow\u002Fshadow, rotation, link, tooltip), chart (direction=rtl, pieOfPie, barOfPie, axisLine\u002Fgridline per-attr setters, animation+chartBuild=byCategory|bySeries, line dropLines\u002FhiLowLines\u002FupDownBars, anchor=x,y,w,h shorthand), table (cell direction=rtl, fill\u002Fbackground, built-in PowerPoint style catalogue, \u002Fcol[C] get + swap\u002FcopyFrom, row\u002Fcol Move\u002FCopyFrom), row (tr), connector (from\u002Fto accept full-path `@name=`\u002F`@id=` forms — bare `@name=Foo` is rejected, must be `\u002Fslide[N]\u002Fshape[@name=Foo]` — startshape\u002Fendshape SetByPath; edge-to-edge anchoring by default, fromSide\u002FtoSide to force an edge, fromIdx\u002FtoIdx for raw cxn index), group (link, tooltip, deep walk by get\u002Fquery\u002Fadd\u002Fremove, ungroup=true dissolves back to slide-absolute), align\u002Fdistribute (targets= accepts shape[@id=N] paths, not just positional), video\u002Faudio (loop, autoStart alias), equation, notes (direction=rtl, lang), comment (legacy + modern p188 threaded round-trip), animation (15 emphasis + 16 exit presets, multi-effect chains, motion-path presets, repeat\u002Frestart\u002FautoReverse, chart animations), transition (12 p15 presets + morph\u002Fp14), paragraph (para), run, zoom, ole (preview=, full dump round-trip via add-part+raw-set), placeholder (phType=...), model3d (rotation=ax,ay,az; full dump round-trip), smartart (dump round-trip via add-part), diagram (add-only mermaid → native shapes or rendered image, `--type diagram`\u002F`flowchart`). |\n| **docx** | paragraph (direction\u002Ffont.latin\u002Fea\u002Fcs, bold.cs\u002Fitalic.cs\u002Fsize.cs, lang.latin\u002Fea\u002Fcs, wordWrap, framePr.\\*, tabs shorthand), run (lang slots, direction, underline.color, position half-pts, **revision.type=ins\\|del\\|format\\|moveFrom\\|moveTo + revision.action=accept\\|reject** with .author\u002F.date — bare `@author=`\u002F`@type=` selector on `set \u002Frevision[...]` for filtered accept\u002Freject, but `query 'revision[...]'` needs the dotted `revision.author=`\u002F`revision.type=` form; move+revision is run-level paths only, not paragraph-level; **range=START:END** on a paragraph\u002Fshape path formats a char span by explicit 0-based half-open offset instead of addressing a run — the offset sibling of find=), table (direction=rtl, hMerge, cantSplit on row\u002Fnowrap on cell (both add+set), **virtual column ops**: add\u002Fremove\u002Fmove\u002Fcopyfrom on \u002Fbody\u002Ftbl[N]\u002Fcol), row (tr), cell (td), image, header\u002Ffooter (direction), section (pageNumFmt full enum, direction=rtl, rtlGutter, pgBorders=box), bookmark, comment, footnote, endnote, formfield, sdt, chart, equation, field (28 types), hyperlink, style (direction, indents, pbdr, lineSpacing on Add\u002FSet), toc, watermark, break, ole, **num\u002FabstractNum\u002Flvl**, **tab**, **textbox\u002Fshape** (add-mostly — Get returns raw XML preview only, no structured readback; Set is limited to width\u002Fheight\u002Fgeometry\u002Ffill\u002Fline.\\*; position is `anchor.x`\u002F`anchor.y` not bare x\u002Fy; **textbox-only** `textDirection`\u002Frotation\u002Fgradient\u002Fshadow — docx shape itself has neither rotation nor gradient), embedded **OLE round-trip on dump→batch**, **diagram** (add-only mermaid → native shapes or rendered image, `--type diagram`\u002F`flowchart`, no x\u002Fy at add-time — reposition via `set \u002Fbody\u002Fgroup[N]`). docDefaults.rtl, autoHyphenation, `get \u002F` exposes locale + \u002Fcomments \u002Ffootnotes \u002Fendnotes. `create --minimal` for raw OOXML scaffolding. |\n| **xlsx** | sheet (visible\u002Fhidden\u002FveryHidden, print margins, printTitleRows\u002FCols, rightToLeft sheetView, cascade-aware rename), row (c{N}= cell-content shorthand; add accepts --from \u002FSheet\u002Fcol[L]; formula-ref rewrite on insert), col (formula-ref rewrite, named-range follow on move), cell (type=richtext+runs, merge=range\u002Fsweep, direction=rtl, phonetic; **--shift left\\|up on remove, shift=right\\|down on add** — Excel UI dialog parity; formula auto-detect; OFFSET\u002FINDIRECT in calc), chart (per-axis RTL\u002Ftitle, anchor=x,y,w,h, pareto), image (SVG), comment (direction=rtl), table (listobject), namedrange (definedname, volatile, `[@name=X]`; formula-body inlined at parse), pivottable (cache CoW + cross-pivot sharing, labelFilter=field:type:value add-time-only, topN=integer add-time-only, fillDownLabels is an alias of repeatLabels not a separate feature, calculatedField), sparkline, validation, autofilter, shape, textbox, CF (databar\u002Fcolorscale\u002Ficonset\u002Fformulacf\u002FcellIs\u002FtopN\u002FaboveAverage), ole, csv. Query supports `merge`\u002F`mergedrange`. Workbook: password. Shape selector enumerates leaves inside grpSp. |\n\n### Pivot tables (xlsx)\n\n```bash\nofficecli add data.xlsx \u002FSheet1 --type pivottable \\\n  --prop source=\"Sheet1!A1:E100\" --prop rows=Region,Category \\\n  --prop cols=Year --prop values=\"Sales:sum,Qty:count\" \\\n  --prop grandTotals=rows --prop subtotals=off --prop sort=asc\n```\n\nKey props: `rows`, `cols`, `values` (Field:func[:showDataAs]), `filters`, `source`, `position`, `layout` (compact\u002Foutline\u002Ftabular), `repeatLabels`, `blankRows`, `aggregate`, `showDataAs` (percent_of_total\u002Frow\u002Fcol, running_total), `grandTotals`, `subtotals`, `sort`. Aggregators: sum, count, average, max, min, product, stdDev, stdDevp, var, varp, countNums. Date columns auto-group. Run `officecli help xlsx pivottable` for full schema.\n\n### Document-level properties (all formats)\n\n```bash\nofficecli set doc.docx \u002F --prop docDefaults.font=Arial --prop docDefaults.fontSize=11pt\nofficecli set doc.docx \u002F --prop protection=forms --prop evenAndOddHeaders=true\nofficecli set data.xlsx \u002F --prop calc.mode=manual --prop calc.refMode=r1c1\nofficecli set slides.pptx \u002F --prop defaultFont=Arial --prop show.loop=true --prop print.what=handouts\n```\n\nRun `officecli help \u003Cformat> \u002F` for all document-level properties (docDefaults, docGrid, CJK spacing, calc, print, show, theme, extended).\n\n### Sort (xlsx)\n\n```bash\nofficecli set data.xlsx \u002FSheet1 --prop sort=\"C desc\" --prop sortHeader=true\nofficecli set data.xlsx '\u002FSheet1\u002FA1:D100' --prop sort=\"A asc\" --prop sortHeader=true\n```\n\nFormat: `COL DIR[, COL DIR ...]`. Rejects ranges with merged cells or formulas. Sidecar metadata (hyperlinks, comments, conditional formatting, drawings) follows rows automatically.\n\n### Text-anchored insert (`--after find:X` \u002F `--before find:X`)\n\nLocate an insertion point by text match within a paragraph. Inline types (run, picture, hyperlink) insert within the paragraph; block types (table, paragraph) auto-split it. PPT only supports inline.\n\n```bash\n# Word: inline run after matched text\nofficecli add doc.docx '\u002Fbody\u002Fp[1]' --type run --after find:weather --prop text=\" (sunny)\"\n\n# Word: block table after matched text (auto-splits paragraph)\nofficecli add doc.docx '\u002Fbody\u002Fp[1]' --type table --after \"find:First sentence.\" --prop rows=2 --prop cols=2\n```\n\n### Clone\n\n`officecli add \u003Cfile> \u002F --from '\u002Fslide[1]'` — copies with all cross-part relationships.\n\n### move, swap, remove\n\n```bash\nofficecli move \u003Cfile> \u003Cpath> [--to \u003Cparent>] [--index N] [--after \u003Cpath>] [--before \u003Cpath>]\nofficecli swap \u003Cfile> \u003Cpath1> \u003Cpath2>\nofficecli remove \u003Cfile> '\u002Fbody\u002Fp[4]'\n```\n\nWhen using `--after` or `--before`, `--to` can be omitted — the target container is inferred from the anchor.\n\n### batch — multiple operations in one save cycle\n\n**Atomic by default (v1.0.137+):** every item still runs and is reported (so `N succeeded, M failed` stays meaningful and every failure surfaces), but if *any* item fails the whole batch rolls back — the file on disk is left byte-identical to before the batch ran (confirmed live in both standalone and resident mode). Use `--best-effort` to restore the old apply-what-succeeds behavior (useful for lossy `dump→batch` replays where losing the whole thing over one unsupported item is worse than a partial result). `--stop-on-error` only changes how early the run stops (remaining items are `skipped`), not whether what ran gets kept — combine it with `--best-effort` if you want \"stop at first failure but keep what already succeeded.\" `--force` is unrelated — it's only the docx-protection bypass. Failed items carry a machine-readable `code` field (same list as `error.code`); a rolled-back batch's JSON summary carries `\"atomicRolledBack\": true`.\n\n`officecli dump \u003Cfile> [\u003Cpath>]` emits a replayable batch JSON for round-trip — `.docx` (full coverage), `.pptx` (text\u002Ftables\u002Fpictures\u002Fcharts\u002Fnotes\u002Ftheme + OLE\u002F3D\u002Fvideo\u002Faudio\u002FSmartArt\u002Fmorph\u002Fp15 transitions via raw-set passthrough), and `.xlsx` (cells\u002Fformulas\u002Fstyles + tables, conditional formatting, validations, comments, charts, sparklines, pictures, shapes, pivot tables; slicers\u002FchartEx\u002FOLE via verbatim carrier). Path defaults to `\u002F` (whole document); pass a subtree path (docx: `\u002Fbody`, `\u002Fbody\u002Fp[N]`, `\u002Fbody\u002Ftbl[N]`, `\u002Ftheme`, `\u002Fsettings`, `\u002Fnumbering`, `\u002Fstyles`; xlsx: `\u002FSheetName`, `\u002Fsheet[N]`) to scope the dump. `officecli refresh \u003Cfile.docx>` recalculates TOC page numbers \u002F PAGE \u002F cross-references after replay (Word backend on Windows; headless-HTML fallback elsewhere). `officecli plugins list` extends support to `.doc`, `.hwpx`, `.pdf` export.\n\n```bash\necho '[\n  {\"command\":\"set\",\"path\":\"\u002FSheet1\u002FA1\",\"props\":{\"value\":\"Name\",\"bold\":\"true\"}},\n  {\"command\":\"set\",\"path\":\"\u002FSheet1\u002FB1\",\"props\":{\"value\":\"Score\",\"bold\":\"true\"}}\n]' | officecli batch data.xlsx --json\n\nofficecli batch data.xlsx --commands '[{\"op\":\"set\",\"path\":\"\u002FSheet1\u002FA1\",\"props\":{\"value\":\"Done\"}}]' --json\nofficecli batch data.xlsx --input updates.json --best-effort --json   # keep whatever succeeds even if some items fail\n```\n\nSupports: `add`, `set`, `get`, `query`, `remove`, `move`, `swap`, `view`, `raw`, `raw-set`, `validate`. Fields: `command` (or `op`), `path`, `parent`, `type`, `from`, `to`, `index`, `after`, `before`, `props`, `selector`, `mode`, `depth`, `part`, `xpath`, `action`, `xml`.\n\n---\n\n## L3: Raw XML\n\nUse when L2 cannot express what you need. No xmlns declarations needed — prefixes auto-registered.\n\n```bash\nofficecli raw \u003Cfile> \u003Cpart>                          # view raw XML\nofficecli raw-set \u003Cfile> \u003Cpart> --xpath \"...\" --action replace --xml '\u003Cw:p>...\u003C\u002Fw:p>'\nofficecli add-part \u003Cfile> \u003Cparent>                   # create new document part (returns rId)\n```\n\n`raw-set` actions: `append`, `prepend`, `insertbefore`, `insertafter`, `replace`, `remove`, `setattr`. Run `officecli help \u003Cformat> raw` for available parts.\n\n---\n\n## Common Pitfalls\n\n| Pitfall | Correct Approach |\n|---------|-----------------|\n| `--name \"foo\"` | Use `--prop name=\"foo\"` — all attributes go through `--prop` |\n| Unquoted `[N]` paths in zsh\u002Fbash | Always quote: `'\u002Fslide[1]'` or `\"\u002Fslide[1]\"` (shell glob-expands brackets) |\n| PPT `shape[1]` for content | `shape[1]` is typically the title placeholder. Use `shape[2]+` for content shapes |\n| `\u002Fshape[myname]` | Name indexing not supported. Use numeric index or `@name=` (PPT only) |\n| Guessing property names | Run `officecli help \u003Cformat> \u003Celement>` to see exact names |\n| Modifying an open file | Close the file in PowerPoint\u002FWPS first |\n| `\\n` in shell strings | Use `\\\\n` for newlines in `--prop text=\"...\"` |\n| `$` in shell text | `--prop text=\"$15M\"` strips `$15`. Use single quotes: `--prop text='$15M'`, or heredoc batch |\n\n---\n\n## Specialized Skills\n\nThe binary ships these skills. `OFFICECLI_SKIP_UPDATE=1 officecli load_skill \u003Cname>` prints one (a SKILL.md and a manifest of its reference files; `--path \u003Crelpath>` prints one reference file). Follow its rules, with two Coco limits: skip any install section it prints (Setup above still decides how officecli gets installed), and never run `officecli skills install`, which writes skill files to disk.\n\n**Loading rule**:\n- Pick the most specific match in \"When to use\"; if none fits, load the format default (`word` \u002F `pptx` \u002F `excel`).\n- Scenes already contain the format default's rules — load **one** skill per artifact, never stack.\n- Loaded rules persist across turns; don't re-load each reply.\n- Two distinct artifacts → two separate loads.\n\nExample: a fundraising deck task → `officecli load_skill pitch-deck` → use the printed rules.\n\n### Word (.docx)\n\n| Name | When to use |\n|------|-------------|\n| `word` | Reports, letters, memos, proposals, generic documents |\n| `academic-paper` | Journal \u002F conference \u002F thesis: APA \u002F Chicago \u002F IEEE \u002F MLA citations, equations, SEQ + PAGEREF cross-refs, multi-column journal layout, bibliography. NOT for business reports or letters (route those to `word`) |\n\n### PowerPoint (.pptx)\n\n| Name | When to use |\n|------|-------------|\n| `pptx` | Generic decks: board reviews, sales decks, all-hands, product launches |\n| `pitch-deck` | **Fundraising only** — seed \u002F Series A-C \u002F SAFE \u002F convertible \u002F strategic raise. NOT for sales \u002F product \u002F board decks (route those to `pptx`) |\n| `morph-ppt` | Cinematic Morph-animated presentations. NOT for static decks (route those to `pptx`) |\n| `morph-ppt-3d` | 3D Morph: GLB models, camera moves, depth. NOT for 2D-only Morph (route those to `morph-ppt`) |\n\n### Excel (.xlsx)\n\n| Name | When to use |\n|------|-------------|\n| `excel` | Generic workbooks, formulas, pivots, trackers |\n| `financial-model` | Financial models, scenarios, projections. NOT for general data analysis (route those to `excel`) |\n| `data-dashboard` | CSV\u002Ftabular data → KPI \u002F analytics \u002F executive dashboards with charts and sparklines. NOT for raw data tracking (route those to `excel`) |\n\n---\n\n## Notes\n\n- Paths are **1-based** (XPath convention): `'\u002Fbody\u002Fp[3]'` = third paragraph\n- `--index` is **0-based** (array convention): `--index 0` = first position\n- **Excel exception**: for `add --type row` and `add --type col`, `--index N` is **1-based** (matches OOXML RowIndex \u002F column letter index). `--index 5` inserts at row 5 \u002F column 5.\n- After modifications, verify with `validate` and\u002For `view issues`\n- **When unsure**, run `officecli help \u003Cformat> \u003Celement>` instead of guessing\n",{"name":5,"description":7},"main","cd89f013b617f7eea982a9bbc60e992974fda2aa","skills\u002Fofficecli",15,"https:\u002F\u002Fgithub.com\u002Fcoco-research\u002Fcoco","https:\u002F\u002Fcocoresearch.org\u002Fcoco\u002F","https:\u002F\u002Fgithub.com\u002Fcoco-research","https:\u002F\u002Fcocoresearch.org","Local-first, open-source tools for people who work with AI agents: governed memory, agents that check their own work, and data that stays on your machine.","2026-11-11 12:18:13",{"source":8,"skillName":5,"commands":71,"prompt":81,"zipAvailable":82},[72,75,78],{"tool":73,"command":74},"npx","npx skills add coco-research\u002Fcoco --skill officecli",{"tool":76,"command":77},"bunx","bunx skills add coco-research\u002Fcoco --skill officecli",{"tool":79,"command":80},"pnpm","pnpm dlx skills add coco-research\u002Fcoco --skill officecli","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fcoco-research\u002Fcoco\u002Fblob\u002Fmain\u002Fskills\u002Fofficecli\u002FSKILL.md",true,[84,88],{"path":85,"resourceType":85,"resourceTypeDesc":86,"sizeBytes":87,"sourceHtmlUrl":16},"LICENSE","许可证",11375,{"path":89,"resourceType":90,"resourceTypeDesc":91,"sizeBytes":92,"sourceHtmlUrl":93},"NOTICE","OTHER","其他",455,"https:\u002F\u002Fgithub.com\u002Fcoco-research\u002Fcoco\u002Fblob\u002Fmain\u002Fskills\u002Fofficecli\u002FNOTICE",[95,122,132,148,183,202],{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":104,"publishedAt":55},"01M71KEJXF9KMT0BWCMRSRFA4M","trading-super-intelligence","Trading Super Intelligence Team. Named real-world personas across 8 cells. Built local-first (LM Studio) and validator-gated. Illustrative composites; see DISCLAIMER.md.","https:\u002F\u002Fgithub.com\u002Fcoco-research\u002Fcoco\u002Fblob\u002Fmain\u002Fsystems\u002Fsuperintelligence\u002Ftrading\u002FSKILL.md",[101],{"categoryNo":102,"categoryName":103,"taxonomyType":22,"taxonomyTypeDesc":23},"01JBSEEDCAT000000000000023","Skill与智能体开发",[105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121],"super","trading super intelligence","intelligence","trading","validator","personas","local","composites","studio","team","across","world","first","gated","2026","lm studio","local-first",{"skillNo":123,"name":124,"nameZh":6,"description":125,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":126,"categories":127,"keywords":129,"publishedAt":55},"01M71KEFWS3CMAP7DF1P0FWTDE","strategy-super-intelligence","Strategy Super Intelligence Team. Named real-world personas across 7 cells. Built local-first (LM Studio) and validator-gated. Illustrative composites; see DISCLAIMER.md.","https:\u002F\u002Fgithub.com\u002Fcoco-research\u002Fcoco\u002Fblob\u002Fmain\u002Fsystems\u002Fsuperintelligence\u002Fstrategy\u002FSKILL.md",[128],{"categoryNo":102,"categoryName":103,"taxonomyType":22,"taxonomyTypeDesc":23},[130,105,131,107,109,110,111,112,113,114,115,116,117,118,119,120,121],"strategy","strategy super intelligence",{"skillNo":133,"name":134,"nameZh":6,"description":135,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":136,"categories":137,"keywords":142,"publishedAt":55},"01M71KED56ZEPK2QE84QSQPMT0","risk-compliance-super-intelligence","Risk & Compliance (GRC) Super Intelligence Team. Named real-world personas across 7 cells. Built local-first (LM Studio) and validator-gated. Illustrative composites; see DISCLAIMER.md.","https:\u002F\u002Fgithub.com\u002Fcoco-research\u002Fcoco\u002Fblob\u002Fmain\u002Fsystems\u002Fsuperintelligence\u002Frisk-compliance\u002FSKILL.md",[138,139],{"categoryNo":102,"categoryName":103,"taxonomyType":22,"taxonomyTypeDesc":23},{"categoryNo":140,"categoryName":141,"taxonomyType":33,"taxonomyTypeDesc":34},"01JBSEEDCAT000000000000037","律师与法务",[143,105,144,145,146,107,109,110,111,112,147,113,114,115,116,117,118,119,120,121],"risk","risk compliance super intelligence","compliance","risk compliance","grc",{"skillNo":149,"name":150,"nameZh":6,"description":151,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":152,"categories":153,"keywords":167,"publishedAt":55},"01M71KE9A2FWSC74VA96W1EZSN","product-design-super-intelligence","Your product + design brain trust and decision partner. Named personas across 8 cells spanning product strategy, discovery\u002Fresearch, growth\u002Fmetrics, design foundations\u002Fusability, design leadership\u002Fcraft, UX\u002Fcontent, design systems, and a…","https:\u002F\u002Fgithub.com\u002Fcoco-research\u002Fcoco\u002Fblob\u002Fmain\u002Fsystems\u002Fsuperintelligence\u002Fproduct-design\u002FSKILL.md",[154,157,160,161,164],{"categoryNo":155,"categoryName":156,"taxonomyType":22,"taxonomyTypeDesc":23},"01JBSEEDCAT000000000000015","视觉设计",{"categoryNo":158,"categoryName":159,"taxonomyType":22,"taxonomyTypeDesc":23},"01JBSEEDCAT000000000000021","资料检索与研究",{"categoryNo":102,"categoryName":103,"taxonomyType":22,"taxonomyTypeDesc":23},{"categoryNo":162,"categoryName":163,"taxonomyType":33,"taxonomyTypeDesc":34},"01JBSEEDCAT000000000000031","产品经理",{"categoryNo":165,"categoryName":166,"taxonomyType":33,"taxonomyTypeDesc":34},"01JBSEEDCAT000000000000032","设计师",[168,169,107,170,105,171,172,173,174,175,176,114,115,177,178,119,179,180,181,182],"design","product","product design","product design super intelligence","foundations","product-design","decision","design systems","usability","leadership","ux","brain","craft","metrics","trust",{"skillNo":184,"name":185,"nameZh":6,"description":186,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":187,"categories":188,"keywords":191,"publishedAt":55},"01M71KE6H9FPSD9TECYFBPXZ8Y","legal-ip-super-intelligence","Your legal, IP, and regulatory brain trust. 31 named personas across 7 cells covering patent strategy, tech licensing, regulatory litigation, AI governance, open-source compliance, privacy law, and antitrust.","https:\u002F\u002Fgithub.com\u002Fcoco-research\u002Fcoco\u002Fblob\u002Fmain\u002Fsystems\u002Fsuperintelligence\u002Flegal-ip\u002FSKILL.md",[189,190],{"categoryNo":102,"categoryName":103,"taxonomyType":22,"taxonomyTypeDesc":23},{"categoryNo":140,"categoryName":141,"taxonomyType":33,"taxonomyTypeDesc":34},[192,105,193,107,194,195,182,196,110,197,198,199,130,114,115,200,145,201,119,179],"ip","legal ip super intelligence","legal","sep","tech","litigation","ai governance","open","open-source","governance",{"skillNo":203,"name":204,"nameZh":6,"description":205,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":206,"categories":207,"keywords":209,"publishedAt":55},"01M71KE36QRY610V6YVB9JWRND","healthcare-life-sciences-super-intelligence","Your healthcare and life sciences brain trust. 25 named personas across 7 cells covering drug discovery, medtech, biotech strategy, health policy, genomics, clinical trials, and healthcare economics.","https:\u002F\u002Fgithub.com\u002Fcoco-research\u002Fcoco\u002Fblob\u002Fmain\u002Fsystems\u002Fsuperintelligence\u002Fhealthcare-life-sciences\u002FSKILL.md",[208],{"categoryNo":102,"categoryName":103,"taxonomyType":22,"taxonomyTypeDesc":23},[210,105,211,212,107,195,182,213,214,110,215,216,130,114,115,217,218,219,220,119],"healthcare","healthcare life sciences super intelligence","life","economics","discovery","policy","clinical","clinical trials","health","trials","genomics"]