用 YAML 驱动生成、更新和管理 PowerPoint 幻灯片
复制安装指令,让 AI 自动完成配置 · 推荐新手
请帮我安装 askskill 上的 "powerpoint" 技能: 1. 下载 https://raw.githubusercontent.com/microsoft/hve-core/main/.github/skills/experimental/powerpoint/SKILL.md 2. 保存为 ~/.claude/skills/powerpoint/SKILL.md 3. 装好后重载技能,告诉我可以用了
根据以下 YAML 内容生成一个 5 页 PowerPoint,使用统一风格与版式:……
输出一个可打开的 PPTX 演示文稿。
根据新的 content.yaml 和 style.yaml,更新现有幻灯片的文本、形状和样式。
返回更新后的幻灯片文件。
导出后检查幻灯片渲染效果,并指出可能的排版、对比度或布局问题。
给出基于幻灯片图像的校验反馈。
适合需要从结构化 YAML 快速生成多页汇报的人。可以把内容、版式和样式分离管理,便于批量产出。
适合团队维护统一的 PowerPoint 模板与设计规范。通过 style.yaml 和布局映射,保持不同幻灯片的一致性。
适合在导出后检查排版与视觉效果的场景。工具支持将 PPTX 转成可视化结果并进行校验。
该文档介绍了一个基于 python-pptx 的 PowerPoint 技能,使用 YAML 配置驱动幻灯片内容与样式生成、更新和管理。文档说明了目录结构、必需文件、PowerShell/uv/Python 依赖,以及导出、验证和视觉检查所需的 LibreOffice、poppler 和 GitHub Copilot CLI。
Generates, updates, and manages PowerPoint slide decks using python-pptx with YAML-driven content and styling definitions.
This skill provides Python scripts that consume YAML configuration files to produce PowerPoint slide decks. Each slide is defined by a content.yaml file describing its layout, text, and shapes. A style.yaml file defines dimensions, template configuration, layout mappings, metadata, and defaults.
SKILL.md covers technical reference: prerequisites, commands, script architecture, API constraints, and troubleshooting. For conventions and design rules (element positioning, visual quality, color and contrast, contextual styling), follow pptx.instructions.md.
The Invoke-PptxPipeline.ps1 script handles virtual environment creation and dependency installation automatically via uv sync. Requires uv, Python 3.11+, and PowerShell 7+.
If uv is not installed:
# macOS / Linux
curl -LsSf https://astral.sh/uv/install.sh | sh
# Windows
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
# Via pip (fallback)
pip install uv
The Export and Validate actions require LibreOffice for PPTX-to-PDF conversion and optionally pdftoppm from poppler for PDF-to-JPG rendering. When pdftoppm is not available, PyMuPDF handles the image rendering.
The Validate action's vision-based checks require the GitHub Copilot CLI for model access.
# macOS
brew install --cask libreoffice
brew install poppler # optional, provides pdftoppm
# Linux
sudo apt-get install libreoffice poppler-utils
# Windows (winget preferred, choco fallback)
winget install TheDocumentFoundation.LibreOffice
# choco install libreoffice-still # alternative
# poppler: no winget package; use choco install poppler (optional, provides pdftoppm)
The validate_slides.py script uses the GitHub Copilot SDK to send slide images to vision-capable models. The Copilot CLI must be installed and authenticated:
# Install Copilot CLI
npm install -g @github/copilot-cli
# Authenticate (uses the same GitHub account as VS Code Copilot)
copilot auth login
# Verify
copilot --version
style.yaml — Dimensions, defaults, template configuration, and metadatacontent.yaml — Per-slide content definition (text, shapes, images, layout)content-extra.py — Custom Python for complex slide drawingsAll slide content lives under the working directory's content/ folder:
content/
├── global/
│ ├── style.yaml # Dimensions, defaults, template config, and theme metadata
│ └── voice-guide.md # Voice and tone guidelines
├── slide-001/
│ ├── content.yaml # Slide 1 content and layout
│ └── images/ # Slide-specific images
│ ├── background.png
│ └── background.yaml # Image metadata sidecar
├── slide-002/
│ ├── content.yaml # Slide 2 content and layout
│ ├── content-extra.py # Custom Python for complex drawings
│ └── images/
│ └── screenshot.png
├── slide-003/
│ ├── content.yaml
│ └── images/
│ ├── diagram.png
│ └── diagram.yaml
└── ...
style.yaml)The global style.yaml defines dimensions, template configuration, layout mappings, metadata, and defaults. Color and font choices are specified per-element in each slide's content.yaml rather than centralized in the style file.
See the style.yaml template for the full template, field reference, and usage instructions.
content.yaml)…
它使用 python-pptx 和 YAML 配置来生成、更新和管理 PowerPoint 幻灯片。内容、样式和布局可以通过独立文件定义。
需要 Python 3.11+、uv 和 PowerShell 7+。导出与校验还需要 LibreOffice;可选安装 poppler 的 pdftoppm;视觉校验需要 GitHub Copilot CLI。
幻灯片内容放在工作目录的 content/ 下,通常包括全局的 style.yaml、voice-guide.md,以及每个 slide-xxx 目录中的 content.yaml 和图片资源。
为设计思维教练提供身份、流程与状态基线
帮助你写出更规范、可维护的 Python 代码
将设计思维成果整理为可交接的 RPI 输入与上下文
将回复压缩为极简风格,同时保留技术准确性
通过 Python CLI 自动读写 Mural 内容并管理小组件
从多视角审查代码变更,输出结构化问题与风险。
本地处理幻灯片,支持模板检查、HTML 转可编辑 PowerPoint 与 PPTX 修复。
根据主题、受众与页数要求,自动生成带风格与语气的 PPT 演示文稿
快速创建或转换为动画丰富的网页演示文稿,适合路演、分享与提案制作。
创建、读取、编辑与整理 PPTX 演示文稿及其中的文本和备注内容。
根据主题自动生成并编辑演示文稿,支持质检与导出多种格式。
帮助你高效制作网页版汇报PPT,生成图表、结构图并支持多格式导出