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 從公開儲存庫中收錄這些內容。

檢舉或申請下架