pptx

GitHub

利用Python库创建、检查和编辑PPTX演示文稿。支持幻灯片检查、模板使用、图表插入及高级OOXML操作,适用于以PPT为输入或交付物的场景。

skills/builtin/pptx/1.0.0/SKILL.md simplexai-labs/linger

Trigger Scenarios

生成PowerPoint演示文稿 修改现有PPT内容 提取PPT文本和布局信息

Install

npx skills add simplexai-labs/linger --skill pptx -g -y
More Options

Non-standard path

npx skills add https://github.com/simplexai-labs/linger/tree/main/skills/builtin/pptx/1.0.0 -g -y

Use without installing

npx skills use simplexai-labs/linger@pptx

指定 Agent (Claude Code)

npx skills add simplexai-labs/linger --skill pptx -a claude-code -g -y

安装 repo 全部 skill

npx skills add simplexai-labs/linger --all -g -y

预览 repo 内 skill

npx skills add simplexai-labs/linger --list

SKILL.md

Frontmatter
{
    "name": "pptx",
    "description": "Create, inspect, or edit PowerPoint PPTX presentations with Python. Use when slides are an input or deliverable, including templates, charts, notes, and layout changes."
}

PowerPoint with Python

Runtime

Install Python packages into the current Context's isolated ./agent project:

uv --directory ./agent add python-pptx
uv --directory ./agent add pillow

Run scripts with uv --directory ./agent run python .... Convert script and document paths to absolute paths first; --directory changes the command's working directory. Keep work under ./playground/<scope>/ and publish the finished PPTX through the available delivery tool. No Node package or JavaScript generator is required for this workflow.

Work with the deck

  • Inspect: Open with Presentation(path). Record slide dimensions, layouts, placeholders, groups, text, charts, and image positions. For a supplied deck, preserve its theme and master rather than rebuilding it.
  • Create: Set the slide size and a consistent visual system. Put one clear message on each slide. Use editable shapes and native charts for data that the user may need to change; add images at their correct aspect ratio.
  • Edit: Change only requested slides and shapes. Within text frames, edit runs where possible so existing fonts, links, and emphasis survive. When replacing a shape, carry forward its position and relevant styling.
  • Advanced features: python-pptx does not expose every PowerPoint feature. Inspect OOXML parts in the PPTX ZIP for notes, animation, transitions, comments, and other unsupported content. Make targeted XML edits only when needed, retaining relationships and untouched parts.

Example: inspect text and geometry

from pptx import Presentation

deck = Presentation("/absolute/path/input.pptx")
for slide_number, slide in enumerate(deck.slides, start=1):
    for shape in slide.shapes:
        if shape.has_text_frame:
            print(slide_number, shape.left, shape.top, shape.width, shape.height, shape.text)

Check the result

Reopen the finished file with python-pptx and verify slide count, expected text, media, charts, and notes relevant to the task. Check shape bounds against the slide dimensions and look for obvious overlap. If a slide renderer is available, render and inspect every changed slide; the Runtime does not include LibreOffice by default. Geometry checks alone do not prove that fonts and text render correctly, so state when visual inspection was unavailable.

Version History

  • d8ebc34 Current 2026-11-14 00:26

Same Skill Collection

skills/builtin/canvas/1.0.0/SKILL.md
skills/builtin/canvas/1.0.1/SKILL.md
skills/builtin/canvas/1.0.2/SKILL.md
skills/builtin/collaborate/1.0.0/SKILL.md
skills/builtin/create-meeting-minutes/1.0.0/SKILL.md
skills/builtin/docx/1.0.0/SKILL.md
skills/builtin/holistic-context/1.0.0/SKILL.md
skills/builtin/humanlike-browse/1.0.0/SKILL.md
skills/builtin/humanlike-browse/1.0.1/SKILL.md
skills/builtin/humanlike-browse/1.0.2/SKILL.md
skills/builtin/humanlike-browse/1.0.3/SKILL.md
skills/builtin/humanlike-browse/1.0.4/SKILL.md
skills/builtin/humanlike-browse/1.0.8/SKILL.md
skills/builtin/impeccable/1.0.0/SKILL.md
skills/builtin/impeccable/1.0.1/SKILL.md
skills/builtin/lev8-search/1.0.0/SKILL.md
skills/builtin/lev8-search/1.0.1/SKILL.md
skills/builtin/media-generation/1.0.3/SKILL.md
skills/builtin/pdf/1.0.0/SKILL.md
skills/builtin/pptx/1.0.1/SKILL.md
skills/builtin/pptx/1.0.2/SKILL.md
skills/builtin/proactive-response/1.0.0/SKILL.md
skills/builtin/proactive-response/1.0.1/SKILL.md
skills/builtin/skill-installer/1.0.0/SKILL.md
skills/builtin/slide-deck/1.0.0/SKILL.md
skills/builtin/slide-deck/1.0.1/SKILL.md
skills/builtin/superpowers/1.0.0/SKILL.md
skills/builtin/taste/1.0.0/SKILL.md
skills/builtin/taste/1.0.1/SKILL.md
skills/builtin/teamhub-files/1.0.0/SKILL.md
skills/builtin/teamhub-files/1.0.1/SKILL.md
skills/builtin/teamhub-files/1.0.2/SKILL.md
skills/builtin/teamhub-files/1.0.3/SKILL.md
skills/builtin/xlsx/1.0.0/SKILL.md
skills/builtin/artifact/1.0.0/SKILL.md
skills/builtin/artifact/1.0.1/SKILL.md
skills/builtin/artifact/1.0.2/SKILL.md
skills/builtin/chat-card/1.0.0/SKILL.md
skills/builtin/personal-profile/1.0.0/SKILL.md
skills/builtin/personal-profile/1.0.1/SKILL.md
skills/builtin/personal-profile/1.0.2/SKILL.md
skills/builtin/personal-profile/1.0.3/SKILL.md
skills/builtin/personal-profile/1.0.4/SKILL.md
skills/builtin/personal-profile/1.0.5/SKILL.md

Metadata

Files
0
Version
d8ebc34
Hash
90f5213a
Indexed
2026-11-14 00:26

Home - Wiki
Copyright © 2011-2026 iteam. Current version is 2.156.0. UTC+08:00, 2026-11-14 03:24
浙ICP备14020137号-1