Pptx Slide Specification

作者 wshobson46891e7e60da无许可证收录于 2026年10月8日更新于 2026年10月8日

Use when authoring or repairing a coordinate-explicit JSON specification for an editable PPTX deck.

仅含说明Documents & Office
AI 生成的概览

指导编写或修复可编辑 PPTX 演示文稿的坐标明确 JSON 规范。

功能
该技能提供一套规则与契约,用于编写 JSON 幻灯片规范,其中每个对象的最终位置都以英寸明确给出。内容涵盖必需的根字段、每页幻灯片结构、布局树内容、对象属性、安全边距、页脚区域、原生对象类型、替代文本、来源引用、最小字号以及 z 轴顺序。它还描述了将边界框映射到空白幻灯片版式并拒绝无效几何的构建契约。参考文件包含精简模式与修复指南。
适用场景
适用于创建或修复可编辑 PowerPoint 演示文稿的坐标明确 JSON 规范,尤其是需要在编写阶段而非由渲染器决定位置时。也适合需要明确布局契约、无障碍元数据以及一致网格与间距的工作。
运行要求
不包含脚本,仅为说明文档。它依赖任务本地的构建器来创建幻灯片并设置几何、文本、图像和样式属性,同时需要访问随附的参考文件。

PPTX Slide Specification

Author final coordinates directly in layout_tree. No renderer may decide placement, shrink text, or infer layout after the audit.

Required contract

  • The root JSON contains summary and slides.
  • Every slide has a stable id, a message-led title, an accessibility reading order, and a complete layout_tree.
  • A layout tree declares slide size, root group, id-keyed groups and objects, final inch bboxes, styles, z-indexes, and classifications.
  • Every meaningful object has id, kind, role, classification, content, style, bbox, and z_index.
  • Production summary contains an explicit layout_policy (safe margin, content bottom, footer top, minimum gap) and accessibility metadata.

Authoring rules

  1. Use stable readable IDs, absolute groups, and positive inch dimensions.
  2. Keep normal content inside the safe margin and above the footer rail. Only background layout_design objects may be full bleed.
  3. Use native text, shape, line, table, and image objects. Recreate labels and values from any supporting visual as native objects.
  4. Give meaningful images alt text. Record source_ref for sourced claims.
  5. Keep content text at 9 pt or greater; shorten, resize, or split dense content before reducing type.
  6. Use shared grids, consistent gaps, explicit color, explicit font size, and an intentional z-order.

Build contract

A task-local builder starts from a blank slide layout and maps all bboxes with Inches(...). Explicitly set wrapping, disabled auto-size, text insets, anchors, alignment, fonts, colors, line settings, image aspect ratio, and hidden-slide state. Reject zero or negative geometry before adding an object.

See references/layout-contract.md for the compact schema and repair guidance.

来源与署名

来源:wshobson/agents位于plugins/pptx-deck-creation/skills/pptx-slide-specification提交46891e7

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架