[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7ADYM63DTJV64KYEYT3GAZQ":3,"skill-same:01M7ADYM63DTJV64KYEYT3GAZQ":58},{"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":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":29,"ownerHtmlUrl":30,"ownerBlogUrl":31,"ownerDescription":32,"updatedAt":33,"install":34,"resources":47},"01M7ADYM63DTJV64KYEYT3GAZQ","office",null,"MAIN method for Office and PDF — every read, create, edit, review, convert, version of .docx\u002F.doc\u002F.dotx\u002F.xlsx\u002F.xls\u002F.xlsm\u002F.pptx\u002F.ppt\u002F.pdf (and images) MUST go through officecli. Use whenever a task touches .docx\u002F.doc\u002F.xlsx\u002F.xls\u002F.pptx\u002F.ppt\u002F.pdf\u002Fimage files or asks for document drafts, suggestions, track changes, history, batch generation, or format export. The native read\u002Fedit\u002Fwrite tools are blocked for these extensions.","xirothedev\u002Fopencode-office-plugin","xirothedev","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F140150717?v=4","01M7ADWA0FNRVDFYP79N664BDT","Xiro The Dev","01M7ADWA1HVN4QD7FZYXPNGWYZ",5,"MIT","https:\u002F\u002Fgithub.com\u002Fxirothedev\u002Fopencode-office-plugin\u002Fblob\u002Fmain\u002Ftests\u002Fisolated-workspace\u002Fskills\u002Foffice\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: office\ndescription: MAIN method for Office and PDF — every read, create, edit, review, convert, version of .docx\u002F.doc\u002F.dotx\u002F.xlsx\u002F.xls\u002F.xlsm\u002F.pptx\u002F.ppt\u002F.pdf (and images) MUST go through officecli. Use whenever a task touches .docx\u002F.doc\u002F.xlsx\u002F.xls\u002F.pptx\u002F.ppt\u002F.pdf\u002Fimage files or asks for document drafts, suggestions, track changes, history, batch generation, or format export. The native read\u002Fedit\u002Fwrite tools are blocked for these extensions.\n---\n\n# Office documents\n\n> **MAIN for Office\u002FPDF** — every **read** and **handle** (create\u002Fedit\u002Faccept\u002Fundo\u002Fhistory\u002Frevert\u002Fcomment\u002Ftrack-change) of `.docx\u002F.doc\u002F.dotx\u002F.dotm\u002F.xlsx\u002F.xls\u002F.xlsm\u002F.xlsb\u002F.xltx\u002F.pptx\u002F.ppt\u002F.potx\u002F.pdf` (and images `.png\u002F.jpg\u002F.jpeg\u002F.gif\u002F.bmp\u002F.tiff\u002F.webp`) **MUST** go through `officecli`. The plugin's guard blocks the native `read`\u002F`edit`\u002F`write` tools for these extensions and errors with `use officecli tool for office\u002FPDF files — office is the main method for read + handle`. Do not bypass.\n\nThe plugin overrides the builtin `edit` tool: every edit — text or binary — runs through a draft and needs `officecli accept` to reach the real file. Two edit surfaces:\n\n- `officecli(action=\"edit\", filePath, content)` — replaces the whole draft with your markdown (for office\u002FPDF, this is the ONLY write surface)\n- `edit` tool (`filePath`, `oldString`, `newString`) — patches the existing draft in place (text files only; blocked for office\u002FPDF\u002Fimages)\n\nFor office\u002FPDF\u002Fimages, `officecli` is the ONLY path: `read` returns markdown, `create`\u002F`edit` consume markdown, both sides inside `officecli`. Never use `read`\u002F`edit`\u002F`write` on `*.docx,*.doc,*.dotx,*.xlsx,*.xls,*.xlsm,*.pptx,*.ppt,*.pdf,*.png,*.jpg,*.jpeg,*.gif` — guard fails them. For live Word content on the same machine use `officecli(action=\"read\", live=true)` (prefers `Application.Word` document whose full name matches `filePath`, falls back to saved file; local-only).\n\n## Draft lifecycle (every task)\n\nEvery write runs through a **draft**: nothing reaches the real file until `accept`. The lock is claimed lazily on the first mutating action and released on accept\u002Fundo.\n\n1. `create filePath + content` for a new file, or `edit filePath + content` to open an existing file's draft\n2. Re-`edit`, `comment`, `approve`, `metadata`, `watermark` freely while iterating — all mutate the same draft\n3. `accept` flushes the draft to disk, records a version snapshot, releases the lock\n\nDone means: every write path ended in `accept` or `undo`. A dropped draft leaves the file locked and the change invisible.\n\nUniversal actions (all via `officecli` — main for office\u002FPDF):\n\n- `read` — `officecli(action=\"read\")` extract any office\u002FPDF\u002Fimage to markdown; inspect before editing anything you did not author this session (native `read` is blocked for `.docx\u002F.doc\u002F.xlsx\u002F.xls\u002F.pptx\u002F.ppt\u002F.pdf`)\n- `diff` — unified markdown diff of draft vs real file; call before accept on edits to files you didn't create\n- `preview` — renders the draft to an HTML file for human inspection\n- `undo` — discard draft, real file unchanged\n- `list` — active drafts across all files; run when resuming after an interruption\n- Stale lock (`staleLockHours`, default 24h): `lock-status`, then `force-release` — the displaced session's next mutation fails with an error, expected\n\n## Bundled format skills (anthropics\u002Fskills, source-available)\n\n`skills\u002Fdocx`, `skills\u002Fxlsx`, `skills\u002Fpptx`, `skills\u002Fpdf` are bundled verbatim from `anthropics\u002Fskills` (see `LICENSE.txt` in each). They hold the canonical gotchas and helper scripts per format. `skills\u002Foffice` is the router + draft\u002Fhistory; delegate format-specific authoring to the bundled skill when fidelity matters. Quick markdown→officecli covers 80%; the bundled skill covers the 20% that silently corrupts.\n\n| Need | Where |\n|---|---|\n| Simple headings + pipe tables (markdown enough) | `officecli create\u002Fedit` → v2 styled defaults (A4, D9E1F2, DXA) |\n| Precise .docx: sections, images, TOC, page size, redlines, comments | `skills\u002Fdocx` — `docx` npm + `scripts\u002Fmerge_runs.py`\u002F`comment.py`\u002F`accept_changes.py`\u002F`office\u002Fvalidate.py` + `soffice` |\n| XLSX with formulas, styling, recalc | `skills\u002Fxlsx` — `openpyxl` + `scripts\u002Frecalc.py` (mandatory) + `pandas` for bulk |\n| Styled .pptx \u002F template fill | `skills\u002Fpptx` — `pptxgenjs` + `scripts\u002Fadd_slide.py`\u002F`thumbnail.py`\u002F`clean.py` |\n| PDF forms, table extraction, merge\u002Fsplit | `skills\u002Fpdf` — `forms.md`\u002F`reference.md` + `pypdf`\u002F`pdfplumber`\u002F`reportlab` helpers |\n\nAdvanced edit on existing file: `officecli read` to inspect → `officecli edit` to open draft → run the format skill's script **against the draft file** (see `officecli list` \u002F `.opencode\u002Foffice\u002Fdrafts\u002F` in `src\u002Fcore\u002Fdraft\u002Fmanager.ts:18`), iterate → `officecli accept`. Never touch the real file bypassing the lock. For quick markdown writes, `officecli edit` alone is enough.\n\n## Task router\n\n| Task type | Reference |\n|---|---|\n| New document, template batch generation, validation gates, format conversion | [authoring.md](references\u002Fauthoring.md) + format skill (`docx`\u002F`xlsx`\u002F`pptx`\u002F`pdf`) |\n| Editing\u002Freviewing existing documents, suggestions, track changes, version recovery | [reviewing.md](references\u002Freviewing.md) + `docx:editing` \u002F `pptx:editing` sections |\n| Fillable PDF forms | [pdf\u002Fforms.md](..\u002Fpdf\u002Fforms.md) + `scripts\u002Fcheck_fillable_fields.py` |\n| XLSX recalc \u002F financial model | [xlsx SKILL](..\u002Fxlsx\u002FSKILL.md) `recalc.py` section |\n","# Office documents\n\n> **MAIN for Office\u002FPDF** — every **read** and **handle** (create\u002Fedit\u002Faccept\u002Fundo\u002Fhistory\u002Frevert\u002Fcomment\u002Ftrack-change) of `.docx\u002F.doc\u002F.dotx\u002F.dotm\u002F.xlsx\u002F.xls\u002F.xlsm\u002F.xlsb\u002F.xltx\u002F.pptx\u002F.ppt\u002F.potx\u002F.pdf` (and images `.png\u002F.jpg\u002F.jpeg\u002F.gif\u002F.bmp\u002F.tiff\u002F.webp`) **MUST** go through `officecli`. The plugin's guard blocks the native `read`\u002F`edit`\u002F`write` tools for these extensions and errors with `use officecli tool for office\u002FPDF files — office is the main method for read + handle`. Do not bypass.\n\nThe plugin overrides the builtin `edit` tool: every edit — text or binary — runs through a draft and needs `officecli accept` to reach the real file. Two edit surfaces:\n\n- `officecli(action=\"edit\", filePath, content)` — replaces the whole draft with your markdown (for office\u002FPDF, this is the ONLY write surface)\n- `edit` tool (`filePath`, `oldString`, `newString`) — patches the existing draft in place (text files only; blocked for office\u002FPDF\u002Fimages)\n\nFor office\u002FPDF\u002Fimages, `officecli` is the ONLY path: `read` returns markdown, `create`\u002F`edit` consume markdown, both sides inside `officecli`. Never use `read`\u002F`edit`\u002F`write` on `*.docx,*.doc,*.dotx,*.xlsx,*.xls,*.xlsm,*.pptx,*.ppt,*.pdf,*.png,*.jpg,*.jpeg,*.gif` — guard fails them. For live Word content on the same machine use `officecli(action=\"read\", live=true)` (prefers `Application.Word` document whose full name matches `filePath`, falls back to saved file; local-only).\n\n## Draft lifecycle (every task)\n\nEvery write runs through a **draft**: nothing reaches the real file until `accept`. The lock is claimed lazily on the first mutating action and released on accept\u002Fundo.\n\n1. `create filePath + content` for a new file, or `edit filePath + content` to open an existing file's draft\n2. Re-`edit`, `comment`, `approve`, `metadata`, `watermark` freely while iterating — all mutate the same draft\n3. `accept` flushes the draft to disk, records a version snapshot, releases the lock\n\nDone means: every write path ended in `accept` or `undo`. A dropped draft leaves the file locked and the change invisible.\n\nUniversal actions (all via `officecli` — main for office\u002FPDF):\n\n- `read` — `officecli(action=\"read\")` extract any office\u002FPDF\u002Fimage to markdown; inspect before editing anything you did not author this session (native `read` is blocked for `.docx\u002F.doc\u002F.xlsx\u002F.xls\u002F.pptx\u002F.ppt\u002F.pdf`)\n- `diff` — unified markdown diff of draft vs real file; call before accept on edits to files you didn't create\n- `preview` — renders the draft to an HTML file for human inspection\n- `undo` — discard draft, real file unchanged\n- `list` — active drafts across all files; run when resuming after an interruption\n- Stale lock (`staleLockHours`, default 24h): `lock-status`, then `force-release` — the displaced session's next mutation fails with an error, expected\n\n## Bundled format skills (anthropics\u002Fskills, source-available)\n\n`skills\u002Fdocx`, `skills\u002Fxlsx`, `skills\u002Fpptx`, `skills\u002Fpdf` are bundled verbatim from `anthropics\u002Fskills` (see `LICENSE.txt` in each). They hold the canonical gotchas and helper scripts per format. `skills\u002Foffice` is the router + draft\u002Fhistory; delegate format-specific authoring to the bundled skill when fidelity matters. Quick markdown→officecli covers 80%; the bundled skill covers the 20% that silently corrupts.\n\n| Need | Where |\n|---|---|\n| Simple headings + pipe tables (markdown enough) | `officecli create\u002Fedit` → v2 styled defaults (A4, D9E1F2, DXA) |\n| Precise .docx: sections, images, TOC, page size, redlines, comments | `skills\u002Fdocx` — `docx` npm + `scripts\u002Fmerge_runs.py`\u002F`comment.py`\u002F`accept_changes.py`\u002F`office\u002Fvalidate.py` + `soffice` |\n| XLSX with formulas, styling, recalc | `skills\u002Fxlsx` — `openpyxl` + `scripts\u002Frecalc.py` (mandatory) + `pandas` for bulk |\n| Styled .pptx \u002F template fill | `skills\u002Fpptx` — `pptxgenjs` + `scripts\u002Fadd_slide.py`\u002F`thumbnail.py`\u002F`clean.py` |\n| PDF forms, table extraction, merge\u002Fsplit | `skills\u002Fpdf` — `forms.md`\u002F`reference.md` + `pypdf`\u002F`pdfplumber`\u002F`reportlab` helpers |\n\nAdvanced edit on existing file: `officecli read` to inspect → `officecli edit` to open draft → run the format skill's script **against the draft file** (see `officecli list` \u002F `.opencode\u002Foffice\u002Fdrafts\u002F` in `src\u002Fcore\u002Fdraft\u002Fmanager.ts:18`), iterate → `officecli accept`. Never touch the real file bypassing the lock. For quick markdown writes, `officecli edit` alone is enough.\n\n## Task router\n\n| Task type | Reference |\n|---|---|\n| New document, template batch generation, validation gates, format conversion | [authoring.md](references\u002Fauthoring.md) + format skill (`docx`\u002F`xlsx`\u002F`pptx`\u002F`pdf`) |\n| Editing\u002Freviewing existing documents, suggestions, track changes, version recovery | [reviewing.md](references\u002Freviewing.md) + `docx:editing` \u002F `pptx:editing` sections |\n| Fillable PDF forms | [pdf\u002Fforms.md](..\u002Fpdf\u002Fforms.md) + `scripts\u002Fcheck_fillable_fields.py` |\n| XLSX recalc \u002F financial model | [xlsx SKILL](..\u002Fxlsx\u002FSKILL.md) `recalc.py` section |\n",{"name":5,"description":7},"main","7c148561d12e3d06500867c7ceb9639bc24767d0","tests\u002Fisolated-workspace\u002Fskills\u002Foffice",0,"https:\u002F\u002Fgithub.com\u002Fxirothedev\u002Fopencode-office-plugin","https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002F@xirothedev\u002Fopenoffice-plugin-opencode","https:\u002F\u002Fgithub.com\u002Fxirothedev","https:\u002F\u002Fxirothedev.resonance.io.vn\u002F","Founder & Technical Leader \r\n• @The-Resonance-Team\r\n• @the-aris-club\r\n• AI Driven Software Engineer & Researcher \r\n⚡ CS @ IU","2026-11-14 18:14:54",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add xirothedev\u002Fopencode-office-plugin --skill office",{"tool":40,"command":41},"bunx","bunx skills add xirothedev\u002Fopencode-office-plugin --skill office",{"tool":43,"command":44},"pnpm","pnpm dlx skills add xirothedev\u002Fopencode-office-plugin --skill office","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fxirothedev\u002Fopencode-office-plugin\u002Fblob\u002Fmain\u002Ftests\u002Fisolated-workspace\u002Fskills\u002Foffice\u002FSKILL.md",true,[48,54],{"path":49,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":52,"sourceHtmlUrl":53},"references\u002Fauthoring.md","REFERENCE","参考文档",3815,"https:\u002F\u002Fgithub.com\u002Fxirothedev\u002Fopencode-office-plugin\u002Fblob\u002Fmain\u002Ftests\u002Fisolated-workspace\u002Fskills\u002Foffice\u002Freferences\u002Fauthoring.md",{"path":55,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":56,"sourceHtmlUrl":57},"references\u002Freviewing.md",5275,"https:\u002F\u002Fgithub.com\u002Fxirothedev\u002Fopencode-office-plugin\u002Fblob\u002Fmain\u002Ftests\u002Fisolated-workspace\u002Fskills\u002Foffice\u002Freferences\u002Freviewing.md",[59,66,73,80,87,92],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":19},"01M7ADZDAKMBGRDC7FSXPFFTP4","writing-for-agents","Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.","https:\u002F\u002Fgithub.com\u002Fxirothedev\u002Fopencode-office-plugin\u002Fblob\u002Fmain\u002Ftests\u002Fisolated-workspace\u002Fskills\u002Fwriting-for-agents\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":19},"01M7ADZ9T5WRH0WRP1SA0V2ZGW","skill-creator","Create a Task Skill for a daily document task. Use when user wants to automate a repetitive task, says create skill, daily task, Task Skill, or needs to turn a dossier\u002Ffolder workflow into a reusable skill.","https:\u002F\u002Fgithub.com\u002Fxirothedev\u002Fopencode-office-plugin\u002Fblob\u002Fmain\u002Ftests\u002Fisolated-workspace\u002Fskills\u002Fskill-creator\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":19},"01M7ADYHWHD2KFGAQZEZJC5EKN","grilling","Grill the user relentlessly about a plan, decision, or idea. Use when the user wants to stress-test their thinking, or uses any 'grill' trigger phrases.","https:\u002F\u002Fgithub.com\u002Fxirothedev\u002Fopencode-office-plugin\u002Fblob\u002Fmain\u002Ftests\u002Fisolated-workspace\u002Fskills\u002Fgrilling\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M7ADYF9N44H4YM3PVE1H3T6R","grill-me","A relentless interview to sharpen a plan or design.","https:\u002F\u002Fgithub.com\u002Fxirothedev\u002Fopencode-office-plugin\u002Fblob\u002Fmain\u002Ftests\u002Fisolated-workspace\u002Fskills\u002Fgrill-me\u002FSKILL.md",[],[],{"skillNo":88,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":19},"01M7ADXKDNYJ06K65E71VN5CD4","https:\u002F\u002Fgithub.com\u002Fxirothedev\u002Fopencode-office-plugin\u002Fblob\u002Fmain\u002Fskills\u002Fwriting-for-agents\u002FSKILL.md",[],[],{"skillNo":93,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":19},"01M7ADXG6TB3924E1N0ZFH2ZNZ","https:\u002F\u002Fgithub.com\u002Fxirothedev\u002Fopencode-office-plugin\u002Fblob\u002Fmain\u002Fskills\u002Fskill-creator\u002FSKILL.md",[],[]]