forguse/ref-to-pptx-skill
Developer ToolsA Codex skill that turns a visual reference and your content into an HTML-previewed, editable PowerPoint deck.
This repo is an agent skill pack · 1 skillsSkill list and install →What it does
Ref-to-PPTX is an Agent Skill for Codex and other Agent Skills-compatible clients. You supply a visual reference (PDF, PPTX or screenshot) plus the content you want to present — an outline, paper or script — and the skill designs pages from that reference. It first builds an HTML preview, then exports and verifies an editable PPTX. The skill directory holds the instructions (SKILL.md) and Python/Node scripts; the PPTX export itself is handled by the bundled, version-pinned PPT Master dependency.
Install
- Download the ZIP and extract it so the directory is named
ref-to-pptx. - Place the whole directory in
~/.agents/skills/for user-level use, or.agents/skills/inside a project. Other clients that support Agent Skills import the directory in their own way — see the Codex Skill installation guide.
The repository ships with one skill folder at the root, no plugin manifest and no root package manifest. You need Python 3.12+, Node.js 20+ and Playwright, plus the fonts chosen in the deck configuration.
Quick start
Start by uploading a reference document and your content to the agent, e.g.:
用 $ref-to-pptx 把我上传的大纲做成 6 页汇报。版式和字级参考我上传的参考稿,每页按实际内容调整。先给我 HTML 预览,核对后交付可编辑的 PPTX。
For the command-line flow, run inside the skill directory.
1. Install Playwright and Chromium and build the preview:
npm install --no-save --package-lock=false playwright@1.62.1
npx playwright install chromium
python scripts/build_html.py --spec work/authoring/deck.json --out work/my-deck
node scripts/render_check.cjs --out work/my-deck --channel chromium
Open work/my-deck/preview.html; page screenshots are saved under work/my-deck/screenshots/. You can use a local browser with --channel chrome or --channel msedge. Linux system dependencies are covered by the Playwright docs.
2. Install export dependencies and fetch the PPT Master dependency:
python -m pip install "python-pptx>=0.6.21" "XlsxWriter>=3.0.0" "skia-pathops>=0.9.2" "uharfbuzz>=0.50.0" Pillow
python scripts/fetch_ppt_master.py --dest vendor/ppt-master
If the script cannot reach GitHub, download the pinned PPT Master ZIP manually, save it as vendor/ppt-master-b243a950e9f85998705551fb1b77c6459573ff39.zip, and rerun the fetch script. Record per-page observations in work/html-observations.json (UTF-8, page numbers as keys), then:
python scripts/review_gate.py record --out work/my-deck --stage html --file work/html-observations.json
python scripts/export_pptx.py --out work/my-deck --ppt-master vendor/ppt-master --pptx work/my-deck/slides.pptx
3. Verify the result:
Open work/my-deck/slides.pptx and compare it with the HTML preview, checking fonts, line breaks, image crops and positions. To keep a full verification record, export each slide of the actual PPTX as numbered screenshots 01.png, 02.png, etc., and register them following the PPTX verification flow.
The full runtime details, including Chinese-language guidance, are in the runtime guide.
Constraints
- Python 3.12+ and Node.js 20+ are required, along with Playwright and a Chromium-based browser of your choosing.
- PPTX export depends on a specific pinned PPT Master revision, verified during download; offline use requires fetching that ZIP manually.
- Fonts used in the deck must be installed locally, otherwise rendering and the exported PPTX can diverge.
- The
template/directory currently only contains placeholder files; no templates have been published yet (template directory). Layout guidance lives in the page prototypes guide, and paper/template credits are recorded separately (credits). - Scripts and docs are MIT-licensed (LICENSE); separately published templates may carry their own licenses.
HotRepo's take
Ref-to-PPTX entered the HotRepo new-project list on 2026-11-28 with 102 stars and 11 forks, all gained within roughly three hours of the recorded observation window — a very short sample, so it indicates early attention rather than an established trend. Structurally the repository is a thin skill layer: the hard part of PPTX generation is delegated to the version-pinned upstream PPT Master project (dependency lock), while this repo contributes the authoring workflow, HTML preview, review gate and export checks. That division is honest and makes the pipeline inspectable, but it also means the output quality depends heavily on the upstream exporter and on locally installed fonts.
Written by AI from the project's public information and HotRepo's records, updated . The project's own docs are the source of truth.
You might also like
- sleepy-zone/ai-ref-library-cnA local Chinese search interface for three public AI image reference sets: faces, poses and costumes.
- chuspeeism/dashi-ppt-skillTurns source documents into themed, browser-editable slide decks that export to real PPTX, PDF or offline HTML.
- hugohe3/ppt-masterTurns documents or topics into editable native PowerPoint decks through an AI agent chat.
- alchaincyf/huashu-designAn agent skill that turns a one-line design brief into a deliverable HTML webpage, clickable app prototype, or editable PPTX, mainly for people who work without a graphics tool.
- humanlayer/skillsA collection of installable Claude Code and Codex skills for research, implementation, visual PRs, and agent-loop design.