Communitygithub.com

Rylai PPTX

使用 python-pptx 创建、检查、提取、编辑、渲染和验证 PowerPoint 演示文稿,并可选择 LibreOffice 进行 PDF 导出。

Rylai PPTX 是什么?

Rylai PPTX 是一个 AI 助手技能,专注于使用 python-pptx 库处理 PowerPoint 演示文稿。它支持从本地内容构建演示文稿,检查现有幻灯片,提取文本为 Markdown,编辑幻灯片,以及使用 LibreOffice 将 PPTX 渲染为 PDF 进行视觉验证。该技能设计为不热链图片、不获取远程模板,也不覆盖源文件,除非用户明确要求。它适用于 Claude Code、Codex 和 Hermes 等 AI 代理平台,通过 JSON 构建格式定义幻灯片结构,并提供了一个捆绑的 CLI 脚本 (rylai_pptx.py) 来执行构建、检查、提取和渲染操作。使用该技能时,AI 代理需确认受众、目的、源材料、输出路径和大致幻灯片数量,然后编写特定的 python-pptx 编辑脚本,最后检查幻灯片标题和提取文本以确保质量。

兼容平台✓Claude Code✓Codex CLI~Cursor
npx skills add https://github.com/Rylaispirit/rylai-codex-hermes-skills/tree/HEAD/skills/pptx

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

Rylai PPTX 是做什么的?

由 Rylai 编写的原始 Codex-Hermes-Claude 技能。

使用 python-pptx 从本地内容构建演示文稿。仅在有需要时使用 LibreOffice 进行可选的 PDF 渲染。不要热链图片、获取远程模板或覆盖源演示文稿,除非用户明确要求。

运行环境

安装前先探测:

python -c "import pptx; print(pptx.__version__)"

仅在缺少时安装:

python -m pip install python-pptx

将 scripts/rylai_pptx.py 解析为该技能目录的相对路径。

工作流程

  1. 确认受众、目的、源材料、输出路径和大致幻灯片数量。
  2. 在编辑现有演示文稿之前先进行检查。
  3. 从头构建时,创建一个紧凑的 JSON 内容规约。
  4. 仅使用本地图片路径。将 URL 视为无效输入。
  5. 生成演示文稿,然后检查幻灯片标题和提取的文本。
  6. 当 LibreOffice 可用时,渲染为 PDF 并目视检查代表性幻灯片。
  7. 确认文本适应、图片清晰,且演示文稿具有一致的层级结构。

对于现有演示文稿,在工作区编写特定任务的 python-pptx 编辑脚本。保留原始文件、不修改未触及的幻灯片,并将修订版保存到新路径。

JSON 构建格式

{
  "title": "项目回顾",
  "subtitle": "决策与下一步",
  "slides": [
    {
      "title": "当前状态",
      "bullets": ["运行良好的部分", "需要关注的部分"]
    },
    {
      "title": "证据",
      "bullets": ["指标一", "指标二"],
      "image": "local-chart.png"
    }
  ]
}

image 字段为可选,必须指向本地文件。相对图片路径从 JSON 文件所在位置解析。

捆绑 CLI

构建:

python scripts/rylai_pptx.py build deck.json output.pptx

检查结构:

python scripts/rylai_pptx.py inspect output.pptx

提取文本为 Markdown:

python scripts/rylai_pptx.py extract output.pptx output.md

使用 LibreOffice 渲染为 PDF:

python scripts/rylai_pptx.py render output.pptx rendered

仅当打算替换已有输出时使用 --force。

质量标准

  • PPTX 文件重新打开成功且包含预期的幻灯片数量。
  • 标题、正文文本和幻灯片顺序与批准的内容一致。
  • 没有文本被裁剪或置于幻灯片边界之外。
  • 图片来自本地、可归属的文件,并且在演示尺寸下保持可读。
  • 渲染输出中没有空白或损坏的幻灯片。
  • 不将源演示文稿、用户路径、远程资源或临时测试产物打包到技能中。

Individual skills in this repo

This repo contains 12 individual skills — each has its own dedicated page.

Rylaispirit/rylai-codex-hermes-skills

Plan, build, render, and verify academic presentation decks with citations, accessible visuals, clear argument flow, speaker-ready pacing, and visual QA.

Rylaispirit/rylai-codex-hermes-skills

Create publication-quality chart images from supplied data using an available plotting library, with explicit scales, labels, and visual QA.

Rylaispirit/rylai-codex-hermes-skills

Plan, draft, and review persuasive copy for landing pages, product pages, ads, email, headlines, offers, calls to action, positioning, and message variants.

Rylaispirit/rylai-codex-hermes-skills

Plan, draft, revise, and audit creative or long-form writing with a portable core workflow that does not depend on missing legacy templates.

Rylaispirit/rylai-codex-hermes-skills

Create, inspect, edit, and verify Word DOCX files with python-docx, including Markdown conversion, text replacement, metadata inspection, and optional PDF render.

Rylaispirit/rylai-codex-hermes-skills

Create or optimize marketing images, social graphics, product mockups, banners, cover art, listing visuals, brand assets, image prompts, WebP files, and OG images.

Rylaispirit/rylai-codex-hermes-skills

Create, inspect, extract, merge, split, rotate, and render PDF files with local open-source tools, including structural and visual verification.

Rylaispirit/rylai-codex-hermes-skills

Create editable PowerPoint decks from a local JSON specification using Rylai's visual system, python-pptx, deterministic slide types, and optional rendering.

Rylaispirit/rylai-codex-hermes-skills

Perform an evidence-led SEO audit using accessible pages, source code, crawl data, and current search documentation without assuming missing plugins.

Rylaispirit/rylai-codex-hermes-skills

Extract a practical design system from screenshots or mockups and produce implementation-ready UI specifications using vision and repository context.

Rylaispirit/rylai-codex-hermes-skills

Plan and produce video with available AI tools or programmatic frameworks. Use for video prompts, avatars, explainers, demos, templates, pipelines, and generation.

Rylaispirit/rylai-codex-hermes-skills

Create, inspect, edit, and verify Excel XLSX workbooks with openpyxl, including CSV import, formulas, styling, error checks, and optional LibreOffice rendering.

相关技能