Quick Answer: The Ref-to-PPTX skill is an agent skill for Codex and other Agent Skills clients. It designs slides from a visual reference you upload plus your content, produces an HTML preview, and exports an editable PPTX through the PPT Master exporter. Install the whole folder in ~/.agents/skills/ or your project's .agents/skills/, then run its build, render-check, and export scripts.

Most AI slide tools give you a deck that looks generic, or one you can't edit after it's generated. The Ref-to-PPTX skill, published in the forguse/ref-to-pptx-skill repository, takes a different route. You hand it a reference deck, a PDF, or a screenshot, and it lays out your content to match that reference. Then it gives you a checkpoint before anything becomes a file you have to fix by hand.

Why the HTML preview comes before the PPTX

The workflow runs in two stages, and the order matters. The skill first builds an HTML preview from a visual specification, a page-by-page outline, and SVG sources. You review that preview in a browser, and only then does it export the editable PowerPoint.

That ordering is deliberate. Layout problems are cheap to fix in HTML and expensive to fix in a finished deck. If a title wraps badly or an image crops in the wrong place, you catch it while the change still costs one edit to the spec.

Here's where most people get tripped up, though. The HTML preview is not the deliverable. The README tells you to open the actual slides.pptx, compare it to the preview, and check fonts, line breaks, image crops, and positions. Preview and export can diverge, because fonts, text metrics, and renderers differ between the browser and PowerPoint. Trust the preview for layout intent and the PPTX for what your audience will see.

Install the skill folder correctly

The install step is simple, but a common mistake is copying only SKILL.md. The skill needs the whole directory, including the other files alongside it. Download the ZIP, extract it, and rename the folder to ref-to-pptx. Keep SKILL.md and its neighbors intact.

Then place the folder in one of two locations:

  • User-level: ~/.agents/skills/ applies to every project on your machine.
  • Project-level: .agents/skills/ in a single repository keeps the skill scoped to that project.

Other clients that support Agent Skills can import the directory in their own way. The Codex skills documentation covers Codex specifically.

Upload the reference before you ask for slides

This is the step people skip, and it changes the output most. The skill designs pages from your reference, so it needs one. Upload a PDF, PPTX, or screenshot, and include the content: an outline, a paper, or a speaker script.

The README's example prompt shows the pattern. It asks for a six-page report, tells the skill to take layout and font sizing from the uploaded reference, and asks for an HTML preview before the PPTX. Adjusting each page to its actual content is part of the design, so you don't need to specify every slide.

Be specific about what the reference controls. "Match the layout and type scale of my reference, but adjust each page to its content" gives the skill clear permission to adapt. A vague request leaves it guessing which visual decisions matter.

The command pipeline, step by step

The command-line flow runs from the skill directory and needs Python 3.12+, Node.js 20+, and Playwright. Depending on your system, python may need to be py -3 or python3. Install the fonts the project selects, or the preview and export will fall back to substitutes.

StepCommand or actionWhat you check
Install renderernpm install --no-save playwright@1.62.1, then npx playwright install chromiumChromium is available for screenshots
Build previewpython scripts/build_html.py --spec work/authoring/deck.json --out work/my-deckpreview.html opens and each page reads correctly
Render checknode scripts/render_check.cjs --out work/my-deck --channel chromiumPer-page screenshots in screenshots/
Export PPTXpython scripts/export_pptx.py --out work/my-deck --ppt-master vendor/ppt-master --pptx work/my-deck/slides.pptxFonts, wrapping, image crops, and positions in the real file

Two details in that table catch people. First, the Playwright version is pinned. Upgrading it without a reason can change rendering, so keep the version the README specifies. Second, the export step depends on the PPT Master exporter, which the README fetches with scripts/fetch_ppt_master.py. That script unpacks a specific commit and verifies its attribution. If your Python process can't reach GitHub, download the pinned ZIP manually and save it under vendor/ with the exact filename the README gives.

The export also needs python-pptx, XlsxWriter, skia-pathops, uharfbuzz, and Pillow. PyMuPDF is optional and only helps if you want to inspect PDF content.

Record your review, then verify the real file

The README asks you to record observations for each HTML page in work/html-observations.json, keyed by page number, before export. Then review_gate.py logs them under the html stage. That gate exists so the export doesn't happen on autopilot. A specific note like "subtitle clears the title's left edge and reads fully" is more useful than "looks good," because it makes a later mismatch easy to spot.

The final verification step is the one most people skip. To keep a complete review record, render each slide of the actual PPTX to numbered images such as 01.png and 02.png, then register them through the verification workflow documented in references/runtime.md. Some agent environments include a PPTX renderer that can do this for you. If yours doesn't, open the file in PowerPoint or Keynote and step through every slide.

Where the skill has real limits

Be realistic about what the skill can and can't do. A few limitations are worth knowing before you commit a deadline to it:

  • Fonts are your responsibility. The skill cannot install licensed typefaces for you. Missing fonts shift line breaks, and a shift in line breaks can push text past its box.
  • The template library is empty for now. The template/ directory currently holds only placeholder files. Future templates will ship there with their own licenses, so check each one before you use it as a visual reference.
  • Layout judgment is the agent's job. The page layout guide gives useful patterns, such as a side-by-side figure layout for comparing research results or a single hero image for a travel cover. Still, you have to review whether the chosen pattern serves your message.
  • The Chinese README is the primary source. The English walkthrough above is a translation of the install and workflow steps, so check the original for the latest command syntax.

The license is worth reading too. The skill's scripts and documentation are MIT licensed, which covers the tooling, but each published template can carry its own terms. The research template credits file records authors, DOIs, and licenses for the papers it uses.

Frequently Asked Questions

What is the Ref-to-PPTX skill?

The Ref-to-PPTX skill is an agent skill for Codex and other Agent Skills clients that designs presentation pages from an uploaded visual reference and your content. It builds an HTML preview first, then exports an editable PPTX using the PPT Master exporter. The skill's scripts and docs are MIT licensed.

How do I install the Ref-to-PPTX skill in Codex?

Download the repository ZIP, extract it, and rename the folder ref-to-pptx. Keep SKILL.md and the other files in that directory. Then place the whole folder in ~/.agents/skills/ for all projects, or in .agents/skills/ inside one project.

Why does my PPTX look different from the HTML preview?

Preview and export use different rendering engines, so fonts, line breaks, and text metrics can shift. Install the fonts the project selects, then check the exported slides.pptx in PowerPoint or Keynote. Use the HTML preview to judge layout intent and the real PPTX to judge final appearance.

Can the skill match the fonts and layout of my own deck?

Yes, if you upload the reference first. Ask the skill to take layout and type sizing from the reference and adjust each page to its content. The skill makes those choices with judgment, so review each page against the reference before you export.

Ref-to-PPTX is most useful when you want slides that match a reference you already trust and still need to edit afterward. Pick one short deck, such as a three-page internal update, and run it through the HTML preview and PPTX export this week. Then note which page needed a manual fix, because that fix tells you what your reference doesn't control. Pass this workflow to a teammate who keeps rebuilding decks by hand from a reference they can't edit.