[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7544EQ5RR9ATWDX01EQNE5N":3,"skill-same:01M7544EQ5RR9ATWDX01EQNE5N":68},{"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":28,"commitSha":29,"skillDirectory":30,"forksCount":31,"repositoryHtmlUrl":32,"repositoryHomepageUrl":33,"ownerHtmlUrl":34,"ownerBlogUrl":35,"ownerDescription":36,"updatedAt":37,"install":38,"resources":51},"01M7544EQ5RR9ATWDX01EQNE5N","doc-editor",null,"Edit\u002Frevise an uploaded Word (.docx) document in place, preserving its formatting — use when the user asks to change, revise, rewrite, or clean up the wording of a document they've shared","matangilabs\u002Fkortny","matangilabs","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F293936513?v=4","01M75421VCEBXSQNHDWZSMQS1N","Matangi Labs","01M75421WCPAD845MDGEMK8KFM",6,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fmatangilabs\u002Fkortny\u002Fblob\u002Fmain\u002Fkortny\u002Fskills\u002Fcurated\u002Fdoc-editor\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: doc-editor\ndescription: Edit\u002Frevise an uploaded Word (.docx) document in place, preserving its formatting — use when the user asks to change, revise, rewrite, or clean up the wording of a document they've shared\nmetadata:\n  version: 1.0.0\n  display_name: Doc Editor\n  tags: document_editing, docx, revision\n---\n\n## Goal\n\nRevise a user-uploaded Word document (.docx) in place — changing the wording as requested while preserving the original formatting (fonts, bold\u002Fitalic, heading styles, tables, headers, footers). Return the edited file to the user.\n\n**V1 scope: .docx only.** Defer .xlsx, .pptx, .pdf, OCR, charts, tracked-changes, and structural restructuring to a later version.\n\n## Steps\n\nFollow these five steps exactly. Do not skip or reorder them.\n\n**Step 1 — Stage the file into the sandbox**\n\n```\nsandbox_stage_file(file_id=\"\u003Cthe Slack file ID>\", dest_path=\"original.docx\")\n```\n\nThis downloads the binary .docx and places it at `\u002Fworkspace\u002Foriginal.docx`.\n\n**Step 2 — Extract editable text units**\n\n```\nrun_skill_script(\"extract_docx_units.py\")\n```\n\nThis reads `\u002Fworkspace\u002Foriginal.docx` and writes `\u002Fworkspace\u002Funits.json`:\n```json\n{\"units\": [{\"id\": \"p-0\", \"text\": \"...\", \"sha256\": \"...\"}, ...]}\n```\n\nUnits cover: body paragraphs (`p-\u003Cn>`), table cells (`tbl-\u003Ct>-\u003Cr>-\u003Cc>`), and header\u002Ffooter paragraphs (`hdr-\u003Cn>`, `ftr-\u003Cn>`).\n\n**Step 3 — You produce the patch**\n\nRead `units.json` (use `sandbox_read_file(\"\u002Fworkspace\u002Funits.json\")`). Apply the user's requested edits — rewrite, remove, or replace wording as requested. Produce `\u002Fworkspace\u002Fpatch.json`:\n\n```json\n{\"p-3\": \"Revised paragraph text here\", \"tbl-0-1-2\": \"Updated cell text\"}\n```\n\nInclude **only the units whose text changes** — unchanged units must not appear. Write it with `sandbox_write_file(\"\u002Fworkspace\u002Fpatch.json\", content=...)`.\n\n**Step 4 — Apply the patch to the .docx**\n\n```\nrun_skill_script(\"apply_docx_patch.py\")\n```\n\nThis reads `original.docx` + `patch.json`, replaces the matched units' text while preserving run-level formatting (bold, italic, font, size), and saves `\u002Fworkspace\u002Frevised.docx`.\n\n**Step 5 — Export and post**\n\n```\nsandbox_export_artifact(\"\u002Fworkspace\u002Frevised.docx\")\n```\n\nThis delivers `revised.docx` back to the user in Slack. Tell the user what you changed (a brief bulleted list of the main edits).\n\n## Formatting preservation\n\nThe apply script preserves formatting best-effort at the run level: it sets the first run's text to the new value and clears the rest. This preserves bold, italic, font family, and font size on the opening run. Run-level variance within a paragraph (e.g. mixed bold\u002Fplain within one sentence) is flattened to the first run's style for patched units.\n\n## Limitations\n\n- .docx only (V1). Other formats are out of scope.\n- Structural changes (add\u002Fdelete paragraphs, reorder sections) are not supported — use `sandbox_bash` with a custom python-docx script for those.\n- Tracked changes \u002F revision marks are ignored.\n- If `sandbox_stage_file` fails with `file_too_large_for_sandbox` (over 5 MB), tell the user the file is too large for in-sandbox editing and offer to extract and summarize the text instead (via `slack_file_read`).\n- Charts and images inside the .docx are preserved (not modified) since only text units are patched.\n","## Goal\n\nRevise a user-uploaded Word document (.docx) in place — changing the wording as requested while preserving the original formatting (fonts, bold\u002Fitalic, heading styles, tables, headers, footers). Return the edited file to the user.\n\n**V1 scope: .docx only.** Defer .xlsx, .pptx, .pdf, OCR, charts, tracked-changes, and structural restructuring to a later version.\n\n## Steps\n\nFollow these five steps exactly. Do not skip or reorder them.\n\n**Step 1 — Stage the file into the sandbox**\n\n```\nsandbox_stage_file(file_id=\"\u003Cthe Slack file ID>\", dest_path=\"original.docx\")\n```\n\nThis downloads the binary .docx and places it at `\u002Fworkspace\u002Foriginal.docx`.\n\n**Step 2 — Extract editable text units**\n\n```\nrun_skill_script(\"extract_docx_units.py\")\n```\n\nThis reads `\u002Fworkspace\u002Foriginal.docx` and writes `\u002Fworkspace\u002Funits.json`:\n```json\n{\"units\": [{\"id\": \"p-0\", \"text\": \"...\", \"sha256\": \"...\"}, ...]}\n```\n\nUnits cover: body paragraphs (`p-\u003Cn>`), table cells (`tbl-\u003Ct>-\u003Cr>-\u003Cc>`), and header\u002Ffooter paragraphs (`hdr-\u003Cn>`, `ftr-\u003Cn>`).\n\n**Step 3 — You produce the patch**\n\nRead `units.json` (use `sandbox_read_file(\"\u002Fworkspace\u002Funits.json\")`). Apply the user's requested edits — rewrite, remove, or replace wording as requested. Produce `\u002Fworkspace\u002Fpatch.json`:\n\n```json\n{\"p-3\": \"Revised paragraph text here\", \"tbl-0-1-2\": \"Updated cell text\"}\n```\n\nInclude **only the units whose text changes** — unchanged units must not appear. Write it with `sandbox_write_file(\"\u002Fworkspace\u002Fpatch.json\", content=...)`.\n\n**Step 4 — Apply the patch to the .docx**\n\n```\nrun_skill_script(\"apply_docx_patch.py\")\n```\n\nThis reads `original.docx` + `patch.json`, replaces the matched units' text while preserving run-level formatting (bold, italic, font, size), and saves `\u002Fworkspace\u002Frevised.docx`.\n\n**Step 5 — Export and post**\n\n```\nsandbox_export_artifact(\"\u002Fworkspace\u002Frevised.docx\")\n```\n\nThis delivers `revised.docx` back to the user in Slack. Tell the user what you changed (a brief bulleted list of the main edits).\n\n## Formatting preservation\n\nThe apply script preserves formatting best-effort at the run level: it sets the first run's text to the new value and clears the rest. This preserves bold, italic, font family, and font size on the opening run. Run-level variance within a paragraph (e.g. mixed bold\u002Fplain within one sentence) is flattened to the first run's style for patched units.\n\n## Limitations\n\n- .docx only (V1). Other formats are out of scope.\n- Structural changes (add\u002Fdelete paragraphs, reorder sections) are not supported — use `sandbox_bash` with a custom python-docx script for those.\n- Tracked changes \u002F revision marks are ignored.\n- If `sandbox_stage_file` fails with `file_too_large_for_sandbox` (over 5 MB), tell the user the file is too large for in-sandbox editing and offer to extract and summarize the text instead (via `slack_file_read`).\n- Charts and images inside the .docx are preserved (not modified) since only text units are patched.\n",{"name":5,"metadata":24,"description":7},{"tags":25,"version":26,"display_name":27},"document_editing, docx, revision","1.0.0","Doc Editor","main","e54c3c09fd8ab6548a56c4a0e91a5af4c5e58774","kortny\u002Fskills\u002Fcurated\u002Fdoc-editor",3,"https:\u002F\u002Fgithub.com\u002Fmatangilabs\u002Fkortny","https:\u002F\u002Fkortny.dev","https:\u002F\u002Fgithub.com\u002Fmatangilabs","www.matangilabs.com","Building AI coworkers that live where your team works. Makers of Kortny.","2026-10-02 13:41:52",{"source":8,"skillName":5,"commands":39,"prompt":49,"zipAvailable":50},[40,43,46],{"tool":41,"command":42},"npx","npx skills add matangilabs\u002Fkortny --skill doc-editor",{"tool":44,"command":45},"bunx","bunx skills add matangilabs\u002Fkortny --skill doc-editor",{"tool":47,"command":48},"pnpm","pnpm dlx skills add matangilabs\u002Fkortny --skill doc-editor","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmatangilabs\u002Fkortny\u002Fblob\u002Fmain\u002Fkortny\u002Fskills\u002Fcurated\u002Fdoc-editor\u002FSKILL.md",true,[52,58,64],{"path":53,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":56,"sourceHtmlUrl":57},"PROVENANCE.md","REFERENCE","参考文档",597,"https:\u002F\u002Fgithub.com\u002Fmatangilabs\u002Fkortny\u002Fblob\u002Fmain\u002Fkortny\u002Fskills\u002Fcurated\u002Fdoc-editor\u002FPROVENANCE.md",{"path":59,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":62,"sourceHtmlUrl":63},"scripts\u002Fapply_docx_patch.py","SCRIPT","脚本",3526,"https:\u002F\u002Fgithub.com\u002Fmatangilabs\u002Fkortny\u002Fblob\u002Fmain\u002Fkortny\u002Fskills\u002Fcurated\u002Fdoc-editor\u002Fscripts\u002Fapply_docx_patch.py",{"path":65,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":66,"sourceHtmlUrl":67},"scripts\u002Fextract_docx_units.py",2124,"https:\u002F\u002Fgithub.com\u002Fmatangilabs\u002Fkortny\u002Fblob\u002Fmain\u002Fkortny\u002Fskills\u002Fcurated\u002Fdoc-editor\u002Fscripts\u002Fextract_docx_units.py",[69,76,85,92,99,106],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M76RCRTNAEPXFXVHARYVFY38","demo-skill","Use when the user asks to run the demo analysis workflow on a dataset.","https:\u002F\u002Fgithub.com\u002Fmatangilabs\u002Fkortny\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskills\u002Fdemo-skill\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":80,"licenseFileUrl":81,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":19},"01M76RCPW81Z7FS3FCBY67FEMQ","youtube-transcript","Use when asked to get a transcript, extract key points, or summarize a YouTube video — given a YouTube URL.","MIT","https:\u002F\u002Fgithub.com\u002Fmatangilabs\u002Fkortny\u002Fblob\u002Fmain\u002Fkortny\u002Fskills\u002Fcurated\u002Fyoutube-transcript\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fmatangilabs\u002Fkortny\u002Fblob\u002Fmain\u002Fkortny\u002Fskills\u002Fcurated\u002Fyoutube-transcript\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"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},"01M7547HV0ZBTKNWMMSK1CBDYQ","weekly-status-report","Use when asked to compile a weekly status update, team recap, or progress report from recent channel activity, tasks, or notes.","https:\u002F\u002Fgithub.com\u002Fmatangilabs\u002Fkortny\u002Fblob\u002Fmain\u002Fkortny\u002Fskills\u002Fcurated\u002Fweekly-status-report\u002FSKILL.md",[],[],{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":19},"01M7547EKHDHYTPR1ZAQ2E6MN2","weekly-channel-digest","Use when asked to digest a channel's week, recap what happened in a channel, catch someone up on a channel, or post a recurring \"this week in","https:\u002F\u002Fgithub.com\u002Fmatangilabs\u002Fkortny\u002Fblob\u002Fmain\u002Fkortny\u002Fskills\u002Fcurated\u002Fweekly-channel-digest\u002FSKILL.md",[],[],{"skillNo":100,"name":101,"nameZh":6,"description":102,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":103,"categories":104,"keywords":105,"publishedAt":19},"01M7547AYJZX4N1BN7FEQC0ARQ","thread-recap","Use when asked to recap this thread, summarize the discussion above, TL;DR a long thread, or pull the decisions and action items out of the conversation right here — work from the live Slack thread in front of you and post a tight recap back into it.","https:\u002F\u002Fgithub.com\u002Fmatangilabs\u002Fkortny\u002Fblob\u002Fmain\u002Fkortny\u002Fskills\u002Fcurated\u002Fthread-recap\u002FSKILL.md",[],[],{"skillNo":107,"name":108,"nameZh":6,"description":109,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":110,"sourceHtmlUrl":111,"categories":112,"keywords":113,"publishedAt":19},"01M75477448MG98MZCQQ3JS403","theme-factory","Use when asked to create, adapt, or apply a visual theme — color palette, typography system, component tokens — for a product, document, or presentation.","https:\u002F\u002Fgithub.com\u002Fmatangilabs\u002Fkortny\u002Fblob\u002Fmain\u002Fkortny\u002Fskills\u002Fcurated\u002Ftheme-factory\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fmatangilabs\u002Fkortny\u002Fblob\u002Fmain\u002Fkortny\u002Fskills\u002Fcurated\u002Ftheme-factory\u002FSKILL.md",[],[]]