mirror of
https://git.openapi.site/https://github.com/desirecore/market.git
synced 2026-12-05 20:59:36 +08:00
fix(pptx): 确定主题后再加载制稿规则 / Load authoring rules after clarifying the topic (#415)
## 中文 - 新建演示文稿缺主题时先问一个主题或用途问题,已明确主题或资料后由模型调用 PPT Skill。 - Plan 简要记录目标、交付和检查项。给出原生细横线的有效尺寸示例,保留全页预览与可编辑源稿和 PPTX。 - 校验市场目录、全部中英文内容和翻译哈希,更新到 1.0.8。 ## English - Ask for the topic or purpose before loading the PPT skill when a new deck has neither. The model loads the skill once the topic or source is available. - Keep the Plan to the goal, deliverables, and checks. Show a valid size for editable thin horizontal rules and retain full-deck preview and editable exports. - Validated the catalog and translation freshness. Bump the skill to 1.0.8.
This commit is contained in:
3 files changed
+15
-15
No files matched your search
@@ -1,8 +1,8 @@
|
||||
---
|
||||
license: "Anthropic Source Available License"
|
||||
name: pptx
|
||||
description: "For presentation creation or revision, first call Skill with {\"skill\":\"pptx\"} and omit source, even if the topic is missing. Preview in the workbench and deliver an editable PPTX. Also use for existing PowerPoint files."
|
||||
version: 1.0.7
|
||||
description: "For a new presentation with no topic or purpose, ask for it in chat first. When the topic or source is known, call Skill with {\"skill\":\"pptx\"} and omit source. Preview in the workbench and deliver an editable PPTX. Use for existing PowerPoint files too."
|
||||
version: 1.0.8
|
||||
type: procedural
|
||||
risk_level: low
|
||||
status: enabled
|
||||
@@ -22,7 +22,7 @@ tags:
|
||||
- office
|
||||
metadata:
|
||||
author: anthropic
|
||||
updated_at: '2026-11-29'
|
||||
updated_at: '2026-12-01'
|
||||
i18n:
|
||||
default_locale: en-US
|
||||
source_locale: zh-CN
|
||||
@@ -32,16 +32,16 @@ metadata:
|
||||
zh-CN:
|
||||
name: 演示文稿处理
|
||||
short_desc: "在工作台制作演示文稿并导出可编辑 PPTX"
|
||||
description: "用户要制作或修改演示文稿时,先调用 Skill 工具加载 pptx(参数 {\"skill\":\"pptx\"},省略 source),包括只说要做 PPT。用工作台预览并交付可编辑 PPTX。也处理已有 PowerPoint 文件。"
|
||||
description: "新建演示文稿缺少主题或用途时,先在聊天中问清。已有主题或资料后调用 Skill 加载 pptx(参数 {\"skill\":\"pptx\"},省略 source)。用工作台预览并交付可编辑 PPTX。也处理已有 PowerPoint 文件。"
|
||||
body: ./SKILL.zh-CN.md
|
||||
source_hash: sha256:b4fef3573cb9b510
|
||||
source_hash: sha256:ebb1bec2720ceed7
|
||||
translated_by: human
|
||||
en-US:
|
||||
name: Presentation Processing
|
||||
short_desc: "Create presentations in the workbench and export an editable PPTX"
|
||||
description: "For presentation creation or revision, first call Skill with {\"skill\":\"pptx\"} and omit source, even if the topic is missing. Preview in the workbench and deliver an editable PPTX. Also use for existing PowerPoint files."
|
||||
description: "For a new presentation with no topic or purpose, ask for it in chat first. When the topic or source is known, call Skill with {\"skill\":\"pptx\"} and omit source. Preview in the workbench and deliver an editable PPTX. Use for existing PowerPoint files too."
|
||||
body: ./SKILL.md
|
||||
source_hash: sha256:b4fef3573cb9b510
|
||||
source_hash: sha256:ebb1bec2720ceed7
|
||||
translated_by: human
|
||||
market:
|
||||
icon: >-
|
||||
@@ -70,13 +70,13 @@ market:
|
||||
|
||||
Honor the requested template, method, and format. Default to the workbench source and an editable PPTX. If the topic is missing, ask one topic or purpose question in chat and make supporting material optional. A short talk can use about six slides. Proceed once the topic or material is available.
|
||||
|
||||
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. Start once the topic is known. Save a short Plan under the normal protocol, 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. Start once the topic is known. 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.
|
||||
|
||||
## 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.
|
||||
|
||||
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. Shape width and height are at least 0.15 inches. 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.
|
||||
|
||||
|
||||
@@ -6,13 +6,13 @@
|
||||
|
||||
制作 PPT 时采用用户指定的模板、方式和格式。默认交付工作台源稿与可编辑 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 或任务则沿用。
|
||||
|
||||
## 版式与预览
|
||||
|
||||
全稿统一网格、配色和字号,每页一个焦点。培训稿用大字封面、分行清单、原生流程卡、示范对照和按列对齐的行动表。数据稿用原生图表。标题只由 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,箭头放在间隔。短标签,按词意显式换行。形状宽高至少 0.15 英寸,颜色为不带 # 的六位 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 导出预览并说明。
|
||||
|
||||
|
||||
@@ -11,12 +11,12 @@
|
||||
"zh-CN": {
|
||||
"name": "演示文稿处理",
|
||||
"summary": "在工作台制作演示文稿并导出可编辑 PPTX",
|
||||
"description": "用户要制作或修改演示文稿时,先调用 Skill 工具加载 pptx(参数 {\"skill\":\"pptx\"},省略 source),包括只说要做 PPT。用工作台预览并交付可编辑 PPTX。也处理已有 PowerPoint 文件。"
|
||||
"description": "新建演示文稿缺少主题或用途时,先在聊天中问清。已有主题或资料后调用 Skill 加载 pptx(参数 {\"skill\":\"pptx\"},省略 source)。用工作台预览并交付可编辑 PPTX。也处理已有 PowerPoint 文件。"
|
||||
},
|
||||
"en-US": {
|
||||
"name": "Presentation Processing",
|
||||
"summary": "Create presentations in the workbench and export an editable PPTX",
|
||||
"description": "For presentation creation or revision, first call Skill with {\"skill\":\"pptx\"} and omit source, even if the topic is missing. Preview in the workbench and deliver an editable PPTX. Also use for existing PowerPoint files."
|
||||
"description": "For a new presentation with no topic or purpose, ask for it in chat first. When the topic or source is known, call Skill with {\"skill\":\"pptx\"} and omit source. Preview in the workbench and deliver an editable PPTX. Use for existing PowerPoint files too."
|
||||
}
|
||||
},
|
||||
"category": "productivity",
|
||||
@@ -30,13 +30,13 @@
|
||||
},
|
||||
"release": {
|
||||
"state": "known",
|
||||
"version": "1.0.7",
|
||||
"version": "1.0.8",
|
||||
"versionScheme": "semver"
|
||||
},
|
||||
"timestamps": {
|
||||
"catalogUpdatedAt": {
|
||||
"state": "known",
|
||||
"value": "2026-11-29",
|
||||
"value": "2026-12-01",
|
||||
"precision": "day"
|
||||
},
|
||||
"releasePublishedAt": {
|
||||
|
||||
Reference in new issue
Block a user