# AgentBuff Presentation Skills

> An agent skill, reworked and extended from the open-source Frontend Slides skill, that lets a coding agent turn a brief into a single-file HTML slide deck and export it to PDF, PNG, JPG or PowerPoint from one render.

Asking an AI agent for slides usually ends in a generic deck with default fonts, or in a request to describe a visual taste in words. Frontend Slides by Zara Zhang solved that by showing real title slides to pick from. I reworked and extended it so the finished deck can leave the browser: one exporter renders every slide once and writes PDF, images and PowerPoint from the same pixels.

- The agent shows three real title slides, a safe preset, a bold template and a wildcard, so the look is picked by seeing it.
- My addition: one exporter renders each slide once at 1920 × 1080 and writes PDF, PNG, JPG and PowerPoint from the same captures.
- Slides sit on a fixed 16:9 stage that scales as a whole, so a phone letterboxes the slide instead of breaking its layout.

- 12 style presets
- 34 bold design systems bundled
- 4 export formats from one render

- Role: Reworked, extended and maintained
- Company: AgentBuff
- Period: Jun 2026
- Stack: Markdown, HTML, CSS, JavaScript, Node.js, Playwright, pptxgenjs, Python, python-pptx
- Source on GitHub: AgentBuff-Presentation-Skills (https://github.com/nugrahalabib/AgentBuff-Presentation-Skills)
- Original skill: Frontend Slides (https://github.com/zarazhangrui/frontend-slides)

## The problem

Asking an AI agent for slides usually ends in one of two places. Either the agent writes a generic deck with default fonts and colours, or it asks the user to describe a visual taste in words, which most people cannot do.

The deck also has to leave the browser. People want a PDF for email, images for a document, or a .pptx file for a colleague who works in PowerPoint. Re-typesetting the content in another tool makes the versions drift apart, and the agent has to do the same work twice.

*What changes for the deck author*

| Usually | With the skill |
| --- | --- |
| Describe a visual taste in words before seeing anything | Pick one of three real title slides made for this deck |
| Generic fonts and colour schemes that look machine made | Curated presets and 34 bold design systems, with rules against default choices |
| A deck that reflows and breaks on a phone | A fixed 1920 × 1080 stage that scales as a whole on every screen |
| Rebuild the slides by hand to get a PDF or a .pptx | One command writes PDF, PNG, JPG and PPTX from the same render |

## What is reworked, and what is mine

This is not a from-scratch project, and the page says so. AgentBuff Presentation Skills is **reworked and extended from the open-source Frontend Slides skill by Zara Zhang**, and it bundles the Bold Template Pack from her beautiful-html-templates library. Both are MIT licensed, and the license file keeps her copyright next to mine for the modifications.

*Where each part comes from*

| Part | Origin |
| --- | --- |
| Style discovery with three title previews | Frontend Slides |
| 12 style presets, the stage stylesheet, HTML and animation guides | Frontend Slides, with the skill renamed |
| Bold Template Pack: 34 design systems and their screenshots | beautiful-html-templates by Zara Zhang |
| PowerPoint import, PDF script and deploy script | Frontend Slides |
| export-deck.mjs: PDF, PNG, JPG and PowerPoint, image or editable, from one render | Added in this rework |
| SKILL.md sections on output formats, PowerPoint modes and running in other agents | Rewritten in this rework |

I compared the files with the upstream repositories on 26 November 2026: six supporting files are identical to Frontend Slides, four are renamed only, SKILL.md is rewritten in its sections on export and portability, and the exporter is new.

## How a deck is made

**From brief to exported deck** (Before reporting a deck as done, the agent checks rendered screenshots for text overflow and covered panels.)
1. Brief: Purpose, length, content, density and formats in one message
2. Shortlist: Presets and a compact template index, then only the shortlisted cards
3. Three title slides: A safe preset, a bold template and a wildcard
4. Pick: One look, or a mix of elements from several
5. Build: The whole deck as one HTML file on a fixed stage
6. Export or share: PDF, PNG, JPG or PowerPoint, or a live link

The repository is not an application. SKILL.md is a workflow map the agent reads first, and it points to supporting files that load only when a phase needs them. Reading a compact index and small preview cards first keeps the agent's context small, while 34 full design systems stay available for the one the user picks.

## Inside the skill

**About these images**
They come from a local test run on 26 November 2026 with a six-slide deck about the skill itself, written for this page; the only numbers on the slides come from the repository. The template slides in the Template pack tab are the upstream library's own screenshots.

**Style discovery**
Instead of asking about taste, the agent shows three title slides built for the user's own deck: one from the curated presets, at least one from the bold template pack, and one wildcard. Previews must look like a real first slide, with no option labels, template names or file paths on them. For formal decks the safe option is made more restrained.

*The three title slides from the test run: Swiss Modern preset, a bold template and a custom wildcard.*

*Safe option from the Swiss Modern preset: white, black, one red accent and a visible grid.*

*Wildcard designed for this brief: a press proof with crop marks, registration targets and a colour bar.*

**The HTML deck**
After the pick, the agent reads the one full design file for the chosen template and writes the whole deck as a single HTML file with inline CSS and JavaScript. It runs in any browser with keyboard, wheel and swipe navigation, and inline editing is on after the first draft: press E to edit text in the browser and save the file.

*The finished test deck in a browser at 1440 × 900, letterboxed on the fixed stage.*

*Slide 2 of the test deck in the chosen bold template: the four steps.*

*Slide 3: where the looks come from.*

**Template pack**
The pack holds 34 design systems from Zara Zhang's beautiful-html-templates library. Each has a short preview card for title previews and a full design file with fonts, palette, grid, components and slide types. The full file is treated as a recipe: fonts, palette and component grammar are kept, demo content is not copied.

*Twelve of the 34 bundled design systems, first slide of each (upstream screenshots).*

**Exports**
The exporter is the part this rework adds. The PDF pages, the PNG and JPG files and the image PowerPoint slides are all built from the same 1920 × 1080 captures, so every file looks like the deck in the browser.

*Slide 4 of the test deck: one render, four formats.*

*Slide 5: which format matches the deck and which can be edited.*

*The exported PDF from the test run: six 16:9 pages.*

**Any screen**
The base stylesheet locks every slide to a 1920 × 1080 canvas that scales as a whole, with no breakpoints that rearrange content. That keeps the layout intact on a phone, and it is also what makes a pixel-exact export possible. Print styles put one fixed-size slide on each page, and reduced-motion preferences shorten animations.

*The test deck on a 390 px phone in portrait and landscape: the slide keeps its 16:9 layout.*

*Slide 6 of the test deck: what each capability needs, with the credit to Frontend Slides.*

## The exporter I added

*The export commands from the test run and the checks run on their output.*

- **One render**: the script serves the deck folder on a local port, opens it in headless Chromium and shows one slide at a time with animations frozen in their final state.
- **Same pixels**: each slide is captured once at 1920 × 1080, and every output format is built from those captures.
- **Editable when needed**: the editable PowerPoint mode rebuilds native shapes and text boxes; the text can be edited, the look is approximate.
- **Nothing added to your project**: Playwright and pptxgenjs install once into a shared temp cache, so no node_modules folder appears in the skill or the project.

```bash
node scripts/export-deck.mjs ./presentation.html --format=all
node scripts/export-deck.mjs ./presentation.html --format=pptx --pptx-mode=editable
python scripts/extract-pptx.py presentation-editable.pptx extracted
```

*Which format to send*

| Format | Looks like the deck | Text can be edited |
| --- | --- | --- |
| PDF | Yes, one page per slide | No |
| PNG or JPG | Yes, one image per slide | No |
| PowerPoint, image mode (default) | Yes | No |
| PowerPoint, editable mode | Approximately | Yes |

In the test run, the six-slide deck produced a six-page PDF, six PNG and six JPG files at 1920 × 1080, and two PowerPoint files with six slides each. Reading the editable PowerPoint back with extract-pptx.py recovered the slide text, which is also how an existing .pptx is turned into a new HTML deck: the script pulls out text, images and speaker notes, the user confirms the content, and the agent rebuilds it in the chosen style.

## Design decisions

- HTML deck as the single source: Every other format is exported from it, so nothing is typeset twice and versions cannot drift.
- Screenshot-based export: Capturing the settled slide is the only way to get PDF, images and PowerPoint that look exactly like the browser.
- Editable PowerPoint as an opt-in: Rebuilt text boxes can be edited, but fonts and wrapping change, so the exact copy stays the default.
- Fixed 1920 × 1080 stage: A fixed canvas keeps layouts intact on phones and makes pixel-exact capture possible.
- Progressive disclosure: An index and small cards first, one full design file only after the pick, so the agent's context stays small.
- No plugin packaging: Plain Markdown and scripts let any agent with file and shell access use the skill.

The repository stores no keys or tokens, and its scripts make no calls to a model provider; the agent that reads SKILL.md brings the model. The exporter serves only the deck's own folder on a random local port and closes it after capture, and the deploy script leaves login to the Vercel CLI, so no credential is written into the skill folder.

**At a glance**
- Based on: Frontend Slides and beautiful-html-templates by Zara Zhang (MIT)
- License: MIT
- Built: June 2026
- Style presets: 12
- Bold templates: 34
- Export formats: PDF, PNG, JPG, PPTX
- PowerPoint modes: Image or editable
- Needs: Node.js for export, Python for PowerPoint import

**Building tools for AI agents?** I build skills and apps that agents can follow safely, with outputs people can check.

Source: https://nugrahalabib.com/work/agentbuff-presentation-skills
Author: Nugraha Labib Mujaddid (https://nugrahalabib.com)
Published: 2026-11-27. Updated: 2026-11-27.
