Communitygithub.com

Rylai PPTX

使用 python-pptx 與可選的 LibreOffice 來建立、檢查、擷取、編輯、渲染與驗證 PowerPoint 簡報。

Rylai PPTX 是什麼?

此技能讓開發者或 AI 代理能夠以程式化方式操作 PowerPoint 簡報,其核心是以 python-pptx 為基礎。它支援從頭建立簡報(使用 JSON 內容規格)、檢查現有投影片的結構、擷取投影片文字為 Markdown,以及編輯投影片——所有操作均在不破壞原始檔案的情況下進行。可選的 LibreOffice 整合僅用於將 PPTX 渲染為 PDF,以便進行視覺驗證。該技能明確設計為使用本地圖片路徑,拒絕遠端圖片連結,並要求使用者先確認投影片數量、物件與輸出位置。為了確保品質,它必須在生成後檢查文字是否超出邊界、圖片是否清晰,以及投影片層級結構是否一致。它支援 Claude Code、Codex 與 Hermes 等平台,且隨附的命令列介面可直接在本機執行。

相容平台✓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 從本地內容建立簡報。僅在需要 PDF 渲染時才使用 LibreOffice(可選)。 請勿使用熱連結圖片、擷取遠端範本,或覆寫原始簡報檔,除非使用者明確要求。

執行環境

安裝前先進行檢查:

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 檔案所在位置解析。

隨附的命令列介面

建置簡報:

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.

相關技能