用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/kimtth/agent-pptify-kit --skill pptx-slide-specification命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Create editable, production-ready PPTX decks with narrative planning, explicit layout specs, asset guidance, and quality checks.
Prepare the narrative, sources, and design context for an editable PPTX deck.
Validate and repair editable PPTX artifacts, including layout, package, accessibility, and visual checks.
基于 SOC 职业分类
正在显示 SKILL.md
| name | pptx-slide-specification |
| description | Author or repair coordinate-explicit JSON specifications for editable PPTX decks. |
Use this skill when writing or repairing a coordinate-explicit JSON deck spec.
Author final coordinates directly in layout_tree; plugin scripts will not choose layouts, measure browser boxes, or shrink text to fit. Split dense material across slides rather than relying on tiny fonts.
id, title, and complete layout_tree.layout_design element on normal content slides.slides; use stable readable IDs such as s01_overview.summary for audit metadata. Newly generated decks require summary.design_context unless a user-provided brand guide or reference PPTX is documented as the primary style source.summary.design_context when using design references.render_mode: "layout" or omit it for generated decks. OOXML mode is only for extracted specs with ooxml_elements.layout_tree; do not rely on shorthand layout specs.summary.layout_policy and
summary.accessibility. They define the usable content region and document
language before the PPTX is built.Use this compact form for production decks. Values may change for a different slide size or an approved design system, but all values must be explicit.
{
"summary": {
"layout_policy": {
"safe_margin": 0.5,
"content_bottom": 6.7,
"footer_top": 6.85,
"minimum_gap": 0.12
},
"accessibility": {
"language": "en-US",
"presentation_title": "Quarterly operating review"
}
}
}
content_bottom must be lower than footer_top. Content objects must end at
or above content_bottom. Footer objects may use the space from footer_top
to the slide edge. A footer never overlaps content.
id, title, and layout_tree.accessibility.reading_order, an ordered list
of meaningful object IDs. The order must follow the intended reading sequence.hidden: true only for appendix/reference slides that should remain in the PPTX package but not appear during normal presentation.pattern, layout_pattern, composition.pattern, layout, sections, bullets, objects, or theme as render-time shorthand. Decide all positions, sizes, z-order, colors, font sizes, and relationships in the JSON before rendering.python-pptx-looking slides: plain white background, Calibri-only text, default theme colors, and bullet-only layouts are design failures unless explicitly requested.slide_size (width, height in inches), root_group_id, groups keyed by ID, and objects keyed by ID.groups and objects are id-keyed maps; object_ids/group_ids are arrays. Add notes only when useful for audit or speaker context.{
"id": "s01_overview",
"title": "Overview",
"layout_tree": {
"slide_size": { "width": 13.333, "height": 7.5 },
"root_group_id": "root",
"groups": { "root": { "id": "root", "role": "slide", "layout_mode": "absolute", "object_ids": ["title"], "group_ids": [], "bbox": {
layout_design full-bleed bands may cross an edge.content object may extend past the slide bounds (0,0)–(width,height) or into the safe margin.footer object may enter the declared footer rail. It must stay on the
slide canvas and cannot overlap a content object.id, role, layout_mode, object_ids, group_ids, and bbox.layout_mode: "absolute" for generated slides to make the coordinate contract explicit.bbox; siblings at the same level must not overlap unless one is layout_design behind the other.id, kind, role, classification, content, style, bbox, and z_index.kind values: text, shape, image, line, table.classification is layout_design for decorative/background objects, content for meaningful text, tables, lines, and media.rect, round_rect, oval, triangle, diamond, hexagon, parallelogram, chevron, pentagon, trapezoid, and arrow variants.content.shape; text on a shape uses content.text. Image content uses content.path, content.blob_base64, and content.alt.content.alt. Decorative images must have
classification: "layout_design" and must not appear in the slide reading
order.source_ref with source_id, locator, claim_type, and
verification_status. Use locator for a page, figure, table, section, or
spreadsheet range.content.rows; make column widths sum to bbox.width, size rows for wrapped text, and split long tables with repeated headers.content.x1, content.y1, content.x2, and content.y2.chart objects. Build charts from editable text, shapes, lines, and tables. A chart image may support the slide, but it cannot be the only presentation of editable chart values or labels.style.font_size and style.color.style.line and style.line_width.content.shape, style.fill, and style.line.style.color; do not rely on inferred contrast or default text color.z_index stack: background band (0) < card/panel (1) < rule (2) < image/diagram (3) < body text (4) < label/badge (5) < callout/number (6). Decorative overlaps are allowed only when the lower object is layout_design.layout_design object or style-derived visual structure such as an accent band, card shell, divider, signature shape, or image treatment.Recommended/minimum pt: title 24–32/20; H2 16–20/14; claim 13–15/12; body 11–12/10; evidence 10–11/10; label 9–10/9; footer/meta 8–9/8. Decorative layout_design text may go below the content floor; any content text must stay at 9 pt or above.
No renderer is bundled. Author the JSON spec and a small python-pptx build script. To keep rendered output matching audited coordinates:
slide_layouts[6] so placeholders, theme text, and bullet styles do not leak in.bbox with Inches(...) geometry; never rely on placeholder auto-position.word_wrap = True and auto_size = MSO_AUTO_SIZE.NONE; disable shape autofit/auto-grow.margin_left/right/top/bottom), or subtract them from capacity estimates.MSO_ANCHOR) and horizontal alignment (PP_ALIGN) explicitly.style.font_size→Pt, colors→RGBColor, style.line_width→Pt/Emu, dash→MSO_LINE_DASH_STYLE.pptx-visual-assets); do not stretch to a mismatched bbox.show="0" and keep them last.A JSON-audit pass can still overflow if the build script skips these text-frame controls.
font_size only as a last resort, and never below the type scale minimum.layout_design full-bleed bands may cross an edge.