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:
yige authored and GitHub committed 2026-12-01 15:49:14 +08:00
1 parent d100f2e6e5
commit 00bd0f7989
3 files changed
+15 -15

No files matched your search

+9 -9
View File
@@ -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.