# Frontend Slides: designed web slide decks, also from PowerPoint (zarazhangrui/frontend-slides) — skill card for AI agents

> AgentGid skill card. Checked on 2026-10-31 against commit 9906a34 (version 2.1.0).
> Every fact comes from the pack's own files at that commit. Numbers marked "as reported" are the author's.
> Human page: https://agentgid.com/skills/zarazhangrui/frontend-slides/

## Explain it to a non-programmer
Your AI assistant makes a slide deck as one web page that opens in any browser. It asks about your talk first, shows you three different looks as real title slides, and builds the whole deck in the one you pick. It can also turn a PowerPoint file into such a deck, and share it as a link or a PDF.

## Who it is for
- You need slides for a pitch, a class, a conference talk or an internal meeting
- You can't describe the look you want, but you know it when you see it
- You have an old PowerPoint file and want a web version of it
- You use Claude Code, Codex, Gemini CLI, OpenCode or another assistant that can run commands on your computer
- Not for: You need an editable PowerPoint or Keynote file as the result: the output is a web page (or a PDF snapshot)
- Not for: Your assistant can't read files or run commands, for example a plain chat window

## What it is
- Kind: knowledge, scripts
- License: MIT
- Repository: https://github.com/zarazhangrui/frontend-slides

## What it does
- Three modes: a new deck, a PowerPoint conversion, or improving an existing web deck
- Asks all questions at once: purpose, number of slides, how ready your content is, low or high density
- If you give it images, it looks at each one, marks it usable or not and plans slides around them
- Shows 3 previews: 1 safe preset (12 to choose from), at least 1 bold template (34 in the pack) and 1 wildcard
- Builds the deck as one self-contained file on a fixed 1920×1080 canvas that scales to the window
- Checks the rendered slides for overflowing text and overlapping panels; splits crowded slides
- Offers to share: a live link on Vercel, a PDF, both, or nothing
- Never cuts: fixed 16:9 stage on every screen, no scrolling or overflow inside a slide, no internal labels (template names, file names, "Option A") on the slides
- Level low density: Speaker-led: one idea per slide, large type, 1 to 3 bullets
- Level high density: Reading-first: self-contained slides, grids and tables, 4 to 8 bullets

## Skills
| Skill | Call | Changes code? | In plain words |
|---|---|---|---|
| frontend-slides | /frontend-slides:frontend-slides (plugin) or /frontend-slides (copied folder), or plain language | yes | Makes a designed slide deck as one web page, from scratch or from a PowerPoint file |

### frontend-slides
- Asks for: What the deck is for: pitch, teaching, conference talk or internal
- Asks for: About how many slides: 5-10, 10-20 or 20+
- Asks for: Your content: ready, rough notes or just a topic
- Asks for: Low density (you speak) or high density (people read it)
- Asks for: Optional: a folder of images or a logo, or a .pptx file to convert
- Gives: 3 title-slide previews in different styles, opened in your browser
- Gives: The full deck as one web page, opened in your browser
- Gives: A summary: file location, style, slide count, how to change colours and fonts
- Gives: Text editing in the browser (E key)
- Gives: On request: a live link on Vercel and/or a PDF
- Say: "I want to create a pitch deck for my AI startup"

## Know before installing
- It writes files in your project: previews go to .frontend-slides/slide-previews/ (deleted at the end), the deck is a .html file, images go to an assets/ folder.
- A shared link is public and stays live until you delete the project in your Vercel dashboard. The deploy step needs a Vercel account and a login.
- The deploy script installs the Vercel tool for your whole computer (npm install -g vercel) if it can't run it any other way.
- PDF export downloads Playwright and a Chromium browser (about 150 MB) into a temporary folder each run, so the first export takes 30-60 seconds.
- Decks load fonts from Google Fonts or Fontshare, so they look right only with an internet connection.
- Text you edit in the browser is auto-saved in that browser's local storage; Ctrl+S saves the file.

## Install (official commands)
- Claude Code (plugin): `/plugin marketplace add https://github.com/zarazhangrui/frontend-slides` && `/plugin install frontend-slides@frontend-slides` — Send as two separate messages. Use the HTTPS URL: the short owner/name form may make Claude Code try SSH. Then type /frontend-slides:frontend-slides. Remove: `/plugin remove frontend-slides`.
- Claude Code (copied folder): `git clone https://github.com/zarazhangrui/frontend-slides.git ~/.claude/skills/frontend-slides` — Or copy SKILL.md, the support files, bold-template-pack and scripts into ~/.claude/skills/frontend-slides/. Then type /frontend-slides. Remove: `delete ~/.claude/skills/frontend-slides`.
- Codex, Kimi Code, OpenCode, Gemini CLI and others: Send the agent the GitHub link and ask it to use the Frontend Slides skill; it starts from SKILL.md and reads the support files it needs.

## What runs on the user's machine
- Code on the machine: yes (PowerPoint import, sharing as a link and PDF export (the deck itself is made from text instructions))
- Network: optional
- Install: Markdown instructions, one CSS file, style references and three scripts. No hooks; nothing runs on install or at session start.
- Converting a PowerPoint: Runs a Python script that reads your .pptx and writes extracted-slides.json plus the slide images into assets/ in the folder you give it. May ask to pip install python-pptx. No network.
- Previews and delivery: The assistant writes preview files to .frontend-slides/slide-previews/, opens them and the final deck in your browser, and deletes the previews at the end.
- Share as a link (only if you say yes): A shell script copies the deck and the local files it references into a temp folder, checks for the Vercel tool (npx, or npm install -g vercel), asks you to log in and publishes a public production deploy on Vercel.
- Export to PDF (only if you say yes): A shell script installs Playwright and Chromium into a temp folder, serves the deck's folder on a local port, screenshots each slide at 1920×1080 (1280×720 with --compact), writes the PDF next to the deck or where you say, deletes the temp folder and opens the PDF.
- Viewing a deck: The deck loads its fonts from Google Fonts or Fontshare; edits are kept in the browser's local storage.

## Steps only the person can do
- Create a Vercel account and log in with vercel login (only to share the deck as a link) (https://vercel.com/signup) Then: The agent runs scripts/deploy.sh and gives back the public URL
- Delete the Vercel project when the shared deck should go offline (https://vercel.com/dashboard) Then: Nothing; the link stops working
- Install Node.js (for link sharing or PDF export) and Python with python-pptx (for PowerPoint import) if they are missing (README.md (Requirements)) Then: The agent runs the matching script

## Mistakes to avoid
- Not: Expect an editable PowerPoint or Keynote file at the end. Instead: Take the HTML deck, or a PDF if you need a file; use a PPTX-producing pack if the result must stay editable in PowerPoint. Why: The skill builds one self-contained HTML file; the PDF is a static snapshot
- Not: Paste both plugin install lines into one Claude Code message, or use the short owner/name form. Instead: Send the marketplace add line, wait, then send the install line; use the HTTPS URL. Why: The short form may make Claude Code try SSH and fail
- Not: Export a deck made elsewhere to PDF without checking its slide markup. Instead: Make sure every slide uses class="slide" and images use relative paths before running the export. Why: The export script finds slides by the .slide class and serves only the deck's folder over HTTP
- Not: Deploy a single HTML file whose images come from CSS background-image or unusual paths. Instead: Put the HTML and all its assets into one folder and deploy the folder, then open the live URL and check the images. Why: The deploy script only picks up files it can find in src, href and url() references
- Not: Copy only SKILL.md into the skills folder. Instead: Copy the support files, bold-template-pack and scripts too, or clone the whole repo. Why: SKILL.md reads STYLE_PRESETS.md, viewport-base.css, html-template.md and the scripts at each phase

## What leaves the machine
- The deck HTML plus the local files it references (or the whole deck folder), as a public production deploy → Vercel, Only when the person picks Deploy to URL after delivery. Opt out: Answer No thanks or Export to PDF only
- Font requests when a deck or preview is opened (the viewer's IP address and browser details, as with any web font) → Google Fonts or Fontshare, Every time the deck is viewed or exported to PDF. Opt out: Self-host the fonts and change the font link in the generated HTML
- Package downloads (Playwright from npm and a Chromium browser); no deck content → npm registry and the Playwright browser download host, Each PDF export. Opt out: Do not use PDF export

## Lines in the pack aimed at agents (ask the person first)
- "npm install -g vercel" (scripts/deploy.sh): The deploy script installs a global CLI when npx cannot run Vercel; ask the person before running deploy.sh on a machine without Vercel
- "(install python-pptx if needed: `pip install python-pptx`)" (SKILL.md): Ask the person before installing a Python package, and prefer a virtual environment
- "If not found, install Node.js first (`brew install node` on macOS, or download from https://nodejs.org)." (SKILL.md): Installing Node.js is a system-wide change; let the person do it or get a clear yes first
- "elif npx --yes vercel --version &>/dev/null 2>&1; then" (scripts/deploy.sh): npx --yes downloads and runs the latest Vercel CLI without a prompt; mention this to the person before sharing

## May I use it like this?
- commercial-app: yes (MIT: keep the license notice)
- redistribute-files: yes (MIT: keep the copyright and permission notice in copies)
- client-work: yes (MIT allows use in work for others; fonts in the decks come from Google Fonts or Fontshare under their own licenses)

## Which one to pick
- If You want one self-contained HTML deck, picked from three visual previews, with optional PPTX import, PDF and Vercel link: skill:zarazhangrui/frontend-slides
- If You need to hand over an editable PowerPoint (PPTX) after editing slides in the browser: skill:chuspeeism/dashi-ppt-skill
- If You want an editorial magazine or Swiss grid deck with speaker notes, timers and rehearsal mode: skill:op7418/guizang-ppt-skill
- If You prefer writing slides in Markdown with a developer presentation framework: skill:slidevjs/slidev

## Works well with
- agent:claude-code: The pack ships a Claude Code plugin with the /frontend-slides:frontend-slides command
- tool:vercel: The share step publishes the deck with the Vercel CLI
- tool:python-pptx: PowerPoint import reads the .pptx with python-pptx
- asset:fontshare: Decks load display fonts from Fontshare or Google Fonts

## Works in and needs
- Works in Claude Code: plugin
- Works in Claude Code: skills folder
- Works in Codex, Kimi Code, OpenCode, Gemini CLI: reads SKILL.md from the GitHub link
- Needs An agent with filesystem access and shell: It writes the deck files and opens them in the browser
- Needs Python with python-pptx: Only for PowerPoint import
- Needs Node.js and a Vercel account: Only for sharing as a link
- Needs Node.js: Only for PDF export; Playwright installs itself

## How to tell it works
Type /frontend-slides:frontend-slides and say "I want to create a pitch deck for my AI startup". It should answer with all four questions in one message, then open three different title-slide previews in your browser. That is how you know the skill is running.

## Related
- zarazhangrui/beautiful-html-templates

## Safety
Install only from github.com/zarazhangrui/frontend-slides. The share step publishes the deck to a public Vercel URL and may install the Vercel tool globally; the PDF step downloads Playwright and Chromium each run. Both run only after you say yes.
