mirror of
https://git.openapi.site/https://github.com/desirecore/market.git
synced 2026-12-05 21:59:23 +08:00
fix(pptx): 区分源稿回读与 PowerPoint 交付 / Separate source readback from PowerPoint delivery (#456)
## 中文 区分保存或重开工作台源稿与 PowerPoint 交付。标题和页数复核用创建回执的文件引用与版本直接调用 ReadSlides。需要 PPTX 的交付继续预览并按版本导出。中英文技能与目录元数据同步为 1.0.11。 ## English Distinguish saving and reopening an editable workbench source from delivering a PowerPoint file. Use the creation receipt’s file reference and version to read back the saved title and page count. Keep the workbench review and versioned export flow for PPTX delivery. Update both skill locales and catalog metadata to 1.0.11. ## 验证 / Testing - Passed catalog metadata checks, translation freshness, 87 validator tests, and the 14 collection checks.
This commit is contained in:
3 files changed
+28
-19
No files matched your search
+16
-11
@@ -1,8 +1,8 @@
|
|||||||
---
|
---
|
||||||
license: "Anthropic Source Available License"
|
license: "Anthropic Source Available License"
|
||||||
name: pptx
|
name: pptx
|
||||||
description: "For presentation creation or revision, clarify the topic, purpose, audience, length, style, or materials as needed. Clarification can come before loading the skill. Call Skill when needed with {\"skill\":\"pptx\"} and omit source. Preview in the workbench and deliver an editable PPTX. Also handles existing PowerPoint files."
|
description: "For presentation creation or revision, clarify the topic, purpose, audience, length, style, or materials as needed. Clarification can come before loading the skill. Call Skill when needed with {\"skill\":\"pptx\"} and omit source. Save and reopen editable workbench presentations, review layouts, or export editable PPTX for PowerPoint delivery. Also handles existing PowerPoint files."
|
||||||
version: 1.0.10
|
version: 1.0.11
|
||||||
type: procedural
|
type: procedural
|
||||||
risk_level: low
|
risk_level: low
|
||||||
status: enabled
|
status: enabled
|
||||||
@@ -10,6 +10,7 @@ disable-model-invocation: true
|
|||||||
provides:
|
provides:
|
||||||
tools:
|
tools:
|
||||||
- CreateSlides
|
- CreateSlides
|
||||||
|
- ReadSlides
|
||||||
- EditSlides
|
- EditSlides
|
||||||
- RenderSlides
|
- RenderSlides
|
||||||
- ExportSlides
|
- ExportSlides
|
||||||
@@ -22,7 +23,7 @@ tags:
|
|||||||
- office
|
- office
|
||||||
metadata:
|
metadata:
|
||||||
author: anthropic
|
author: anthropic
|
||||||
updated_at: '2026-12-01'
|
updated_at: '2026-12-05'
|
||||||
i18n:
|
i18n:
|
||||||
default_locale: en-US
|
default_locale: en-US
|
||||||
source_locale: zh-CN
|
source_locale: zh-CN
|
||||||
@@ -31,17 +32,17 @@ metadata:
|
|||||||
- en-US
|
- en-US
|
||||||
zh-CN:
|
zh-CN:
|
||||||
name: 演示文稿处理
|
name: 演示文稿处理
|
||||||
short_desc: "在工作台制作演示文稿并导出可编辑 PPTX"
|
short_desc: "制作和回读工作台演示文稿,按交付需要导出可编辑 PPTX"
|
||||||
description: "制作或修改演示文稿时,按需要了解主题、用途、受众、篇幅、风格或材料。需要澄清时可以先问,再按需调用 Skill 加载 pptx(参数 {\"skill\":\"pptx\"},省略 source)。用工作台预览并交付可编辑 PPTX。也处理已有 PowerPoint 文件。"
|
description: "制作或修改演示文稿时,按需要了解主题、用途、受众、篇幅、风格或材料。需要澄清时可以先问,再按需调用 Skill 加载 pptx(参数 {\"skill\":\"pptx\"},省略 source)。在工作台保存、回读可编辑源稿和预览版式,需要 PowerPoint 交付时导出可编辑 PPTX。也处理已有 PowerPoint 文件。"
|
||||||
body: ./SKILL.zh-CN.md
|
body: ./SKILL.zh-CN.md
|
||||||
source_hash: sha256:28d10d2cc5f8e24e
|
source_hash: sha256:590dbe83884ebc5c
|
||||||
translated_by: human
|
translated_by: human
|
||||||
en-US:
|
en-US:
|
||||||
name: Presentation Processing
|
name: Presentation Processing
|
||||||
short_desc: "Create presentations in the workbench and export an editable PPTX"
|
short_desc: "Create and reopen workbench presentations, and export editable PPTX"
|
||||||
description: "For presentation creation or revision, clarify the topic, purpose, audience, length, style, or materials as needed. Clarification can come before loading the skill. Call Skill when needed with {\"skill\":\"pptx\"} and omit source. Preview in the workbench and deliver an editable PPTX. Also handles existing PowerPoint files."
|
description: "For presentation creation or revision, clarify the topic, purpose, audience, length, style, or materials as needed. Clarification can come before loading the skill. Call Skill when needed with {\"skill\":\"pptx\"} and omit source. Save and reopen editable workbench presentations, review layouts, or export editable PPTX for PowerPoint delivery. Also handles existing PowerPoint files."
|
||||||
body: ./SKILL.md
|
body: ./SKILL.md
|
||||||
source_hash: sha256:28d10d2cc5f8e24e
|
source_hash: sha256:590dbe83884ebc5c
|
||||||
translated_by: human
|
translated_by: human
|
||||||
market:
|
market:
|
||||||
icon: >-
|
icon: >-
|
||||||
@@ -68,17 +69,21 @@ market:
|
|||||||
|
|
||||||
## Create and deliver
|
## Create and deliver
|
||||||
|
|
||||||
Honor the requested template, method, and format. Default to the workbench source and an editable PPTX. Use judgment about what to clarify, including the topic, purpose, audience, length, style, and supporting material. Ask in chat when it helps and proceed once you have enough context. A short talk can use about six slides.
|
Honor the requested template, method, and format. The saved workbench source (.slides.json) is already editable. If the request is to save or reopen a workbench presentation, return that source. Include an editable PPTX for PowerPoint or portable delivery when the task calls for it. Use judgment about what to clarify, including the topic, purpose, audience, length, style, and supporting material. Ask in chat when it helps and proceed once you have enough context. A short talk can use about six slides.
|
||||||
|
|
||||||
This Skill declares the authorized slide tools and task tracking tools in the same turn. Use the declared CreateSlides contract to save the full draft with title and pages. Each page has id, title, body (empty string), template (cover/content), and objects. Common object fields are id, type (text/rect/roundRect/arrow), x/y/w/h, text, fill, textColor, and fontSize. Once you have enough context, save a short Plan covering the goal, deliverables, and checks. Put slide copy and coordinates in the draft. Then register once with TaskCreate. After registration, batch TaskUpdate(inProgress) before CreateSlides. The tools are declared. Reuse an applicable Plan or task.
|
This Skill declares the authorized slide tools and task tracking tools in the same turn. Use the declared CreateSlides contract to save the full draft with title and pages. Each page has id, title, body (empty string), template (cover/content), and objects. Common object fields are id, type (text/rect/roundRect/arrow), x/y/w/h, text, fill, textColor, and fontSize. Once you have enough context, save a short Plan covering the goal, deliverables, and checks. Put slide copy and coordinates in the draft. Then register once with TaskCreate. After registration, batch TaskUpdate(inProgress) before CreateSlides. The tools are declared. Reuse an applicable Plan or task.
|
||||||
|
|
||||||
|
## Reopen a saved presentation
|
||||||
|
|
||||||
|
To check the saved title or page count, pass the creation receipt’s `file_ref` and `etag` unchanged to `ReadSlides({file_ref, etag, view:"index"})`. Read the title from `title`, the page count from `total_pages`, and the saved path from `file_ref.path`. This checks the saved revision in one read. Visual review and PowerPoint export serve separate deliverables.
|
||||||
|
|
||||||
## Layout and preview
|
## Layout and preview
|
||||||
|
|
||||||
Use a consistent grid, palette, and type scale with one focal point per page. For training use a large cover title, checklist rows, native process cards, a concrete example comparison, and an aligned action table. Use native charts for data. Render titles through title only. Put subtitles and body content in editable objects, starting at 18–24 pt. Put long examples in notes. Give shapes their own text. Label example dates, locations, and team practices as examples when the user supplied none.
|
Use a consistent grid, palette, and type scale with one focal point per page. For training use a large cover title, checklist rows, native process cards, a concrete example comparison, and an aligned action table. Use native charts for data. Render titles through title only. Put subtitles and body content in editable objects, starting at 18–24 pt. Put long examples in notes. Give shapes their own text. Label example dates, locations, and team practices as examples when the user supplied none.
|
||||||
|
|
||||||
The canvas is 13.33 × 7.50 inches. Keep the upper area clear for the title. Position the right-hand summary below the cover title (for example x=7.8, y=3.8, width 4.6, height 2.55). For four process cards use x=0.7, 3.85, 7, and 10.15 with width 2.45 and arrows in the gaps. Use short labels and wrap at meaningful boundaries. Set object w and h to at least 0.15 inches. For a thin horizontal rule, use type=line with h=0.15 and set its color with fill. The line is drawn at the midpoint of its height. Use six-digit RGB without #.
|
The canvas is 13.33 × 7.50 inches. Keep the upper area clear for the title. Position the right-hand summary below the cover title (for example x=7.8, y=3.8, width 4.6, height 2.55). For four process cards use x=0.7, 3.85, 7, and 10.15 with width 2.45 and arrows in the gaps. Use short labels and wrap at meaningful boundaries. Set object w and h to at least 0.15 inches. For a thin horizontal rule, use type=line with h=0.15 and set its color with fill. The line is drawn at the midpoint of its height. Use six-digit RGB without #.
|
||||||
|
|
||||||
Preview the entire deck with RenderSlides(path=source path, etag=saved revision, mode=workbench, include_images=true). Each call handles up to four pages. Submit batches for the same revision together in one tool-call batch, such as [1,2,3] and [4,5,6], then review the images together. Check obscured titles, broken words, alignment, and object_outside_canvas. If needed, combine corrections in one EditSlides({file_ref,etag,operations:[{op:"upsertObject",slideId,object}]}) and preview the changed pages. Export with the latest file_ref, source_etag as etag, and output_ref copied with a new path, then batch task completion with delivery of the source and the PPTX. Reuse receipts for new drafts and reread on revision conflict. If the workbench host is unavailable, use the PowerPoint export preview and tell the user.
|
For a visual layout review, preview the deck with RenderSlides using the saved file_ref and etag, mode=workbench, and include_images=true. Each call handles up to four pages. Submit batches for the same revision together in one tool-call batch, such as [1,2,3] and [4,5,6], then review the images together. Check obscured titles, broken words, alignment, and object_outside_canvas. If needed, combine corrections in one EditSlides({file_ref,etag,operations:[{op:"upsertObject",slideId,object}]}) and preview the changed pages. For PPTX delivery, export with the latest file_ref and source_etag as etag. For a destination in the same root, copy that file_ref as output_ref and change only its path to the destination .pptx. Attach the files the user needs. Reuse receipts for new drafts and reread on revision conflict. If a requested PowerPoint visual review cannot use the workbench host, use the PowerPoint export preview and tell the user.
|
||||||
|
|
||||||
## Existing PowerPoint files
|
## Existing PowerPoint files
|
||||||
|
|
||||||
|
|||||||
@@ -4,17 +4,21 @@
|
|||||||
|
|
||||||
## 制作与交付
|
## 制作与交付
|
||||||
|
|
||||||
制作 PPT 时采用用户指定的模板、方式和格式。默认交付工作台源稿与可编辑 PPTX。按任务需要了解主题、用途、受众、篇幅、风格和参考材料。需要澄清时可以先在聊天中问,信息足够即可开始。短分享可做约 6 页。
|
制作 PPT 时采用用户指定的模板、方式和格式。保存的工作台源稿(.slides.json)本身可编辑。任务要求在工作台保存或重新打开演示文稿时,交付这份源稿。任务需要 PowerPoint 文件或可移交的通用格式时,交付可编辑 PPTX。按任务需要了解主题、用途、受众、篇幅、风格和参考材料。需要澄清时可以先在聊天中问,信息足够即可开始。短分享可做约 6 页。
|
||||||
|
|
||||||
本 Skill 同轮声明已授权的制稿工具和任务记录工具。直接用 CreateSlides 的声明一次保存初稿:传 title 和 pages,每页含 id、title、body(空字符串)、template(cover/content)和 objects。常用对象字段为 id、type(text/rect/roundRect/arrow)、x/y/w/h、text、fill、textColor、fontSize。信息足够后先按通用协议用简短 Plan 记录目标、交付和检查项;页面文案和坐标直接写入初稿。再用 TaskCreate 登记一次。登记后将 TaskUpdate(inProgress) 和 CreateSlides 放在同一批,先更新状态。工具已声明,无需搜索文件或查常用字段。已有 Plan 或任务则沿用。
|
本 Skill 同轮声明已授权的制稿工具和任务记录工具。直接用 CreateSlides 的声明一次保存初稿:传 title 和 pages,每页含 id、title、body(空字符串)、template(cover/content)和 objects。常用对象字段为 id、type(text/rect/roundRect/arrow)、x/y/w/h、text、fill、textColor、fontSize。信息足够后先按通用协议用简短 Plan 记录目标、交付和检查项;页面文案和坐标直接写入初稿。再用 TaskCreate 登记一次。登记后将 TaskUpdate(inProgress) 和 CreateSlides 放在同一批,先更新状态。工具已声明,无需搜索文件或查常用字段。已有 Plan 或任务则沿用。
|
||||||
|
|
||||||
|
## 回读已保存的演示文稿
|
||||||
|
|
||||||
|
核对已保存的标题或页数时,把创建回执的 `file_ref` 和 `etag` 原样传给 `ReadSlides({file_ref, etag, view:"index"})`。用返回的 `title` 核对标题,用 `total_pages` 核对页数,用 `file_ref.path` 报告保存位置。一次读取即可核对该版本。版式审阅和 PowerPoint 导出分别按交付需要进行。
|
||||||
|
|
||||||
## 版式与预览
|
## 版式与预览
|
||||||
|
|
||||||
全稿统一网格、配色和字号,每页一个焦点。培训稿用大字封面、分行清单、原生流程卡、示范对照和按列对齐的行动表。数据稿用原生图表。标题只由 title 绘制。副标题与正文都用原生对象,18–24 磅起,长例移入备注。形状直接承载 text。未经用户提供的时间、地点和团队规定,用示例或待替换提示。
|
全稿统一网格、配色和字号,每页一个焦点。培训稿用大字封面、分行清单、原生流程卡、示范对照和按列对齐的行动表。数据稿用原生图表。标题只由 title 绘制。副标题与正文都用原生对象,18–24 磅起,长例移入备注。形状直接承载 text。未经用户提供的时间、地点和团队规定,用示例或待替换提示。
|
||||||
|
|
||||||
画布 13.33 × 7.50 英寸。给标题保留上方空间。封面右侧摘要放在标题下方(如 x=7.8、y=3.8,宽 4.6、高 2.55)。四个流程卡用 x=0.7、3.85、7、10.15,宽 2.45,箭头放在间隔。短标签,按词意显式换行。对象 w 和 h 均至少 0.15 英寸。细横线用 type=line、h=0.15,通过 fill 设置线色,线绘制在高度的中间。颜色为不带 # 的六位 RGB。
|
画布 13.33 × 7.50 英寸。给标题保留上方空间。封面右侧摘要放在标题下方(如 x=7.8、y=3.8,宽 4.6、高 2.55)。四个流程卡用 x=0.7、3.85、7、10.15,宽 2.45,箭头放在间隔。短标签,按词意显式换行。对象 w 和 h 均至少 0.15 英寸。细横线用 type=line、h=0.15,通过 fill 设置线色,线绘制在高度的中间。颜色为不带 # 的六位 RGB。
|
||||||
|
|
||||||
用 RenderSlides(path=源稿路径, etag=保存版本, mode=workbench, include_images=true) 覆盖全稿。每批最多 4 页;同版本多批可以在同一次工具调用批次提交,例如六页发 [1,2,3] 和 [4,5,6],等图齐后统一审阅。检查标题遮挡、断字、对齐和 object_outside_canvas。发现问题时,用一次 EditSlides({file_ref,etag,operations:[{op:"upsertObject",slideId,object}]}) 合并修订,复看变动页。用最后的 file_ref、source_etag(作 etag)和只换 path 的 output_ref 导出。导出成功后,将任务结项和附源稿与 PPTX 的交付放在同一批。自建稿沿用回执,只有遇版本冲突才重读。工作台宿主缺失时可用 PowerPoint 导出预览并说明。
|
需要审阅版式时,用 RenderSlides 传保存回执的 file_ref、etag,以及 mode=workbench、include_images=true,预览全稿。每批最多 4 页;同版本多批可以在同一次工具调用批次提交,例如六页发 [1,2,3] 和 [4,5,6],等图齐后统一审阅。检查标题遮挡、断字、对齐和 object_outside_canvas。发现问题时,用一次 EditSlides({file_ref,etag,operations:[{op:"upsertObject",slideId,object}]}) 合并修订,复看变动页。交付 PPTX 时,用最后的 file_ref 与 source_etag(作为 etag)导出。若导出文件与源稿位于同一工作区根目录,将该 file_ref 复制为 output_ref,只把 path 改为目标 .pptx。按用户需要交付相应文件。自建稿沿用回执,遇到版本冲突再回读。需要审阅 PowerPoint 版式而工作台宿主缺失时,可用 PowerPoint 导出预览并向用户说明。
|
||||||
|
|
||||||
## 已有 PowerPoint 文件
|
## 已有 PowerPoint 文件
|
||||||
|
|
||||||
|
|||||||
@@ -10,13 +10,13 @@
|
|||||||
"i18n": {
|
"i18n": {
|
||||||
"zh-CN": {
|
"zh-CN": {
|
||||||
"name": "演示文稿处理",
|
"name": "演示文稿处理",
|
||||||
"summary": "在工作台制作演示文稿并导出可编辑 PPTX",
|
"summary": "制作和回读工作台演示文稿,按交付需要导出可编辑 PPTX",
|
||||||
"description": "制作或修改演示文稿时,按需要了解主题、用途、受众、篇幅、风格或材料。需要澄清时可以先问,再按需调用 Skill 加载 pptx(参数 {\"skill\":\"pptx\"},省略 source)。用工作台预览并交付可编辑 PPTX。也处理已有 PowerPoint 文件。"
|
"description": "制作或修改演示文稿时,按需要了解主题、用途、受众、篇幅、风格或材料。需要澄清时可以先问,再按需调用 Skill 加载 pptx(参数 {\"skill\":\"pptx\"},省略 source)。在工作台保存、回读可编辑源稿和预览版式,需要 PowerPoint 交付时导出可编辑 PPTX。也处理已有 PowerPoint 文件。"
|
||||||
},
|
},
|
||||||
"en-US": {
|
"en-US": {
|
||||||
"name": "Presentation Processing",
|
"name": "Presentation Processing",
|
||||||
"summary": "Create presentations in the workbench and export an editable PPTX",
|
"summary": "Create and reopen workbench presentations, and export editable PPTX",
|
||||||
"description": "For presentation creation or revision, clarify the topic, purpose, audience, length, style, or materials as needed. Clarification can come before loading the skill. Call Skill when needed with {\"skill\":\"pptx\"} and omit source. Preview in the workbench and deliver an editable PPTX. Also handles existing PowerPoint files."
|
"description": "For presentation creation or revision, clarify the topic, purpose, audience, length, style, or materials as needed. Clarification can come before loading the skill. Call Skill when needed with {\"skill\":\"pptx\"} and omit source. Save and reopen editable workbench presentations, review layouts, or export editable PPTX for PowerPoint delivery. Also handles existing PowerPoint files."
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"category": "productivity",
|
"category": "productivity",
|
||||||
@@ -30,13 +30,13 @@
|
|||||||
},
|
},
|
||||||
"release": {
|
"release": {
|
||||||
"state": "known",
|
"state": "known",
|
||||||
"version": "1.0.10",
|
"version": "1.0.11",
|
||||||
"versionScheme": "semver"
|
"versionScheme": "semver"
|
||||||
},
|
},
|
||||||
"timestamps": {
|
"timestamps": {
|
||||||
"catalogUpdatedAt": {
|
"catalogUpdatedAt": {
|
||||||
"state": "known",
|
"state": "known",
|
||||||
"value": "2026-12-01",
|
"value": "2026-12-05",
|
||||||
"precision": "day"
|
"precision": "day"
|
||||||
},
|
},
|
||||||
"releasePublishedAt": {
|
"releasePublishedAt": {
|
||||||
|
|||||||
Reference in new issue
Block a user