[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7F0HC4WNV85KT0F8NWKNE5A":3,"skill-same:01M7F0HC4WNV85KT0F8NWKNE5A":44},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":23,"commitSha":24,"skillDirectory":25,"forksCount":26,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":29,"install":30,"resources":43},"01M7F0HC4WNV85KT0F8NWKNE5A","office-docs",null,"用 python-docx \u002F python-pptx \u002F openpyxl 生成和修改 Office 文档（Word .docx、PPT .pptx、Excel .xlsx）。凡是要\"写一份 Word\u002FPPT\u002FExcel\"\"做汇报材料\u002F纪要\u002F名单模板\u002F表格\"的任务都用它。沙箱镜像已内置这三个库。","irisfeng\u002Fmoqi","irisfeng","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F6022447?v=4","01M7F0EZD855PPJ4X8Q6G9EFS5","01M7F0EZDS1M2D36FZ71RD1XTP",1,"MIT","https:\u002F\u002Fgithub.com\u002Firisfeng\u002Fmoqi\u002Fblob\u002Fmain\u002Fdeploy\u002Flayers\u002Fqm-cn\u002Fskills\u002Foffice-docs\u002FSKILL.md",[],[],"2026-11-16 10:05:34",false,"---\nname: office-docs\ndescription: 用 python-docx \u002F python-pptx \u002F openpyxl 生成和修改 Office 文档（Word .docx、PPT .pptx、Excel .xlsx）。凡是要\"写一份 Word\u002FPPT\u002FExcel\"\"做汇报材料\u002F纪要\u002F名单模板\u002F表格\"的任务都用它。沙箱镜像已内置这三个库。\n---\n\n# 办公文档生成（Word \u002F PPT \u002F Excel）\n\n写一段 python 脚本在沙箱里生成文档，文件放当前工作区，回复里给出文件名和一行内容概要。\n**不要**把文件内容整段贴进回复，除非对方明确要求。\n\n## 选库\n\n| 目标  | 库          | 要点                       |\n| ----- | ----------- | -------------------------- |\n| Word  | python-docx | 纪要、方案、通知、报告     |\n| PPT   | python-pptx | 汇报、框架、评审材料       |\n| Excel | openpyxl    | 名单、模板、带公式的小工具 |\n\n## 中文排版约定\n\n- 正文字体统一设 **宋体**，标题用 **微软雅黑**：python-docx 里对每个 run 设\n  `run.font.name` 并 `run._element.rPr.rFonts.set(qn('w:eastAsia'), '宋体')`；\n  python-pptx 设 `font.name` 即可。\n- 标题层级：文档题目一级，章节二级，不再更深。\n- Word 页边距默认即可；段落 `space_after = Pt(6)` 比较接近中文办公习惯。\n- PPT 每页一个观点，标题 ≤ 18 字，正文 ≤ 6 条；用 `Presentation()` 默认 16:9。\n- Excel 表头加粗、冻结首行（`ws.freeze_panes = \"A2\"`），列宽按内容估（中文一字约 2 个宽度单位）。\n\n## 生成后\n\n1. 文件写到当前工作区相对路径（如 `项目例会纪要.docx`）。\n2. 用 `ls -la` 确认生成成功、大小正常（.docx 通常 >6KB，明显小于此多为空文档）。\n3. **交付给用户（按会话类型）**：一对一 `cp 文件名 \"$AGENT_OUTBOX\u002F\"`，回合结束自动作为附件出现在聊天里；**群 \u002F 频道里 outbox 不生效**——文件放普通工作区路径，发消息时在 post 的 `files` 参数里带上。修改已有文件的场景同样要重新交付新版本。命名与话术统一见 artifact-delivery 技能。\n4. 回复一句话：文件名 + 里面有什么（几个章节\u002F几页\u002F几个 sheet）。\n\n**不要**用 `write` 工具的 `share` 参数把文件\"发给\"当前用户——那只会出现在对方的「文件」页，聊天里没有任何提示，对方会以为没收到。`share` 只用于把文件共享给别的范围（如项目\u002F组织）。\n\n## 常见坑\n\n- `openpyxl` 公式写入用英文等号开头（`=SUM(B2:B10)`），保存后首次打开才计算。\n- 修改已有 .docx：`Document(path)` 打开改完原路保存；不要试图\"追加写\"二进制。\n- 需要\"再改一版\"时，基于工作区里的上一个版本改，不要凭记忆重写全文。\n","# 办公文档生成（Word \u002F PPT \u002F Excel）\n\n写一段 python 脚本在沙箱里生成文档，文件放当前工作区，回复里给出文件名和一行内容概要。\n**不要**把文件内容整段贴进回复，除非对方明确要求。\n\n## 选库\n\n| 目标  | 库          | 要点                       |\n| ----- | ----------- | -------------------------- |\n| Word  | python-docx | 纪要、方案、通知、报告     |\n| PPT   | python-pptx | 汇报、框架、评审材料       |\n| Excel | openpyxl    | 名单、模板、带公式的小工具 |\n\n## 中文排版约定\n\n- 正文字体统一设 **宋体**，标题用 **微软雅黑**：python-docx 里对每个 run 设\n  `run.font.name` 并 `run._element.rPr.rFonts.set(qn('w:eastAsia'), '宋体')`；\n  python-pptx 设 `font.name` 即可。\n- 标题层级：文档题目一级，章节二级，不再更深。\n- Word 页边距默认即可；段落 `space_after = Pt(6)` 比较接近中文办公习惯。\n- PPT 每页一个观点，标题 ≤ 18 字，正文 ≤ 6 条；用 `Presentation()` 默认 16:9。\n- Excel 表头加粗、冻结首行（`ws.freeze_panes = \"A2\"`），列宽按内容估（中文一字约 2 个宽度单位）。\n\n## 生成后\n\n1. 文件写到当前工作区相对路径（如 `项目例会纪要.docx`）。\n2. 用 `ls -la` 确认生成成功、大小正常（.docx 通常 >6KB，明显小于此多为空文档）。\n3. **交付给用户（按会话类型）**：一对一 `cp 文件名 \"$AGENT_OUTBOX\u002F\"`，回合结束自动作为附件出现在聊天里；**群 \u002F 频道里 outbox 不生效**——文件放普通工作区路径，发消息时在 post 的 `files` 参数里带上。修改已有文件的场景同样要重新交付新版本。命名与话术统一见 artifact-delivery 技能。\n4. 回复一句话：文件名 + 里面有什么（几个章节\u002F几页\u002F几个 sheet）。\n\n**不要**用 `write` 工具的 `share` 参数把文件\"发给\"当前用户——那只会出现在对方的「文件」页，聊天里没有任何提示，对方会以为没收到。`share` 只用于把文件共享给别的范围（如项目\u002F组织）。\n\n## 常见坑\n\n- `openpyxl` 公式写入用英文等号开头（`=SUM(B2:B10)`），保存后首次打开才计算。\n- 修改已有 .docx：`Document(path)` 打开改完原路保存；不要试图\"追加写\"二进制。\n- 需要\"再改一版\"时，基于工作区里的上一个版本改，不要凭记忆重写全文。\n",{"name":5,"description":7},"main","db9a120851b734a992a89da1b0e28e7601d13c96","deploy\u002Flayers\u002Fqm-cn\u002Fskills\u002Foffice-docs",0,"https:\u002F\u002Fgithub.com\u002Firisfeng\u002Fmoqi","https:\u002F\u002Fgithub.com\u002Firisfeng","2026-11-05 23:48:35",{"source":8,"skillName":5,"commands":31,"prompt":41,"zipAvailable":42},[32,35,38],{"tool":33,"command":34},"npx","npx skills add irisfeng\u002Fmoqi --skill office-docs",{"tool":36,"command":37},"bunx","bunx skills add irisfeng\u002Fmoqi --skill office-docs",{"tool":39,"command":40},"pnpm","pnpm dlx skills add irisfeng\u002Fmoqi --skill office-docs","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Firisfeng\u002Fmoqi\u002Fblob\u002Fmain\u002Fdeploy\u002Flayers\u002Fqm-cn\u002Fskills\u002Foffice-docs\u002FSKILL.md",true,[],[45,52,59,66,74,81],{"skillNo":46,"name":47,"nameZh":6,"description":48,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":49,"categories":50,"keywords":51,"publishedAt":18},"01M7F0ME11J9MZ990P1ER4QFG1","use-shared-credential","When you need to call a service the org has a SHARED credential for (a SERP\u002Fsearch key, a paid-API key, a data-vendor feed, a Git remote) — and the platform has told you that credential is available to this conversation — make the call BY PROXY through the credential broker. You never see the secret; the core stamps it onto the outbound request for you.","https:\u002F\u002Fgithub.com\u002Firisfeng\u002Fmoqi\u002Fblob\u002Fmain\u002Fskills-seed\u002Fuse-shared-credential\u002FSKILL.md",[],[],{"skillNo":53,"name":54,"nameZh":6,"description":55,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":56,"categories":57,"keywords":58,"publishedAt":18},"01M7F0M8YEKARSRN8CNED2EBC2","ui-state","See what the person is looking at in the QM web UI right now — the whole page (sidebar, every multiview pane, open dialogs) as raw HTML, the app's state as JSON, optionally the CSS and a screenshot. Use when they ask about something on their screen, want help with the UI, or you need to check what a canvas you wrote actually rendered.","https:\u002F\u002Fgithub.com\u002Firisfeng\u002Fmoqi\u002Fblob\u002Fmain\u002Fskills-seed\u002Fui-state\u002FSKILL.md",[],[],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":18},"01M7F0M60MYM1D22BE0N3K1B6F","ui-canvas","Draw your own HTML\u002FCSS\u002FJS as a full-window overlay on top of the QM web UI — a dashboard, a form, a visualization, controls that message you back. Write, update, replace, pin or dismiss it. Use when an interactive or visual result beats a chat reply.","https:\u002F\u002Fgithub.com\u002Firisfeng\u002Fmoqi\u002Fblob\u002Fmain\u002Fskills-seed\u002Fui-canvas\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":70,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":18},"01M7F0M2G0VJGEZVXH2SB8BM4C","taste-skill","Design taste and process for anything a person will look at in a browser — landing page, dashboard, prototype, deck. The default design driver for a browsable artifact, with an anti-slop playbook for the visual language.","https:\u002F\u002Fgithub.com\u002Firisfeng\u002Fmoqi\u002Fblob\u002Fmain\u002Fskills-seed\u002Ftaste-skill\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Firisfeng\u002Fmoqi\u002Fblob\u002Fmain\u002Fskills-seed\u002Ftaste-skill\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":18},"01M7F0M03DP690MGQB3H3HW559","slack-drafts","Create Slack message drafts in the user's own composer, as the user, through their per-user Slack OAuth. Drafting only — the user reviews and sends from Slack.","https:\u002F\u002Fgithub.com\u002Firisfeng\u002Fmoqi\u002Fblob\u002Fmain\u002Fskills-seed\u002Fslack-drafts\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":18},"01M7F0KY1M0GGBQJP6WGRMW73T","send","Make a PR, wait for CI with bounded transport retries, independently review, and merge only when all gates pass.","https:\u002F\u002Fgithub.com\u002Firisfeng\u002Fmoqi\u002Fblob\u002Fmain\u002Fskills-seed\u002Fsend\u002FSKILL.md",[],[]]