CommunityImagegithub.com

presentation-slides

Build a slide deck as a FreeShow .show file, one PNG per slide, a PowerPoint .pptx, and an ODP for LibreOffice. Use when someone wants slides, a presentation, a FreeShow show, PowerPoint, Google Slides, or an ODP, with large readable type, one title size and one body size for the whole deck, and a background that keeps the words on a single calm colour. Draws a word-free seasonal background when no image is given.

What is presentation-slides?

presentation-slides is a Claude Code agent skill that build a slide deck as a FreeShow .show file, one PNG per slide, a PowerPoint .pptx, and an ODP for LibreOffice. Use when someone wants slides, a presentation, a FreeShow show, PowerPoint, Google Slides, or an ODP, with large readable type, one title size and one body size for the whole deck, and a background that keeps the words on a single calm colour. Draws a word-free seasonal background when no image is given.

Works with~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/vicholz/skills/tree/HEAD/presentation-slides

Installed? Explore more Image skills: steipete/songsee, affaan-m/frontend-design, mattpocock/improve-codebase-architecture · View all 6 →

Ask in your favorite AI

Open a new chat with this agent skill pre-loaded.

Documentation

Presentation slides

Build the deck by running the tool in this folder. Do not draw the slides by hand and do not pick font sizes yourself. The tool fits the type, places it on the calm part of the background, and writes every format.

When to use this

Use it for a talk, a lesson, lyrics-style slides, or any deck that should open in FreeShow first, and also as PNGs, PowerPoint, Google Slides, or LibreOffice.

What to collect

Ask only for what the user has not already given.

  • A title and the points (or a short paragraph) for each slide.
  • Optionally one background for the whole deck, or a different one per slide. That can be an image file, or a short description of what to create.
  • Optionally the canvas size. The default is 1920×1080 (16:9).
  • Optionally which formats. The default is all of them: PNG, FreeShow, PPTX, ODP.
  • Optionally a date, hemisphere (north or south), or a theme name, when the user wants a season other than today.

If they give neither an image nor a description, do not ask again. The tool paints a seasonal background.

Design rules the tool enforces

  • Graphics stay on the sides and edges. The centre is one flat colour so the words sit on a single field.
  • A generated background has no words, letters, numbers, or logos.
  • Type is as large as it can be without overflowing, being clipped, or crowding the edges. Safe margins are 6% of the canvas (at least 64×48 px).
  • One title size and one body size are used for every slide. Each is the largest size that still fits the tightest slide. The fitter measures with the bundled Montserrat and Caveat Brush files, then shrinks that shared size until every planned line fits.
  • The text box is the whole calm region: edge to edge of the area free of graphics, already inside the safe margin. Do not size a box from a character count or from the width of the words. Title and body each get one box of that full width.
  • Text is centred in that box. Left or right alignment is only used when the calm region itself sits on the left or the right side of the slide. Vertical alignment is still top, middle, or bottom from where that region sits.
  • Text colour is the palette colour with the best contrast against that region. That is almost always white or dark grey. Do not add a shadow, an outline, or a glow. The flat field is the contrast.
  • Words are never broken. Title size shrinks until the longest single word fits. A body line stays on one line when a slightly smaller shared size (down to about 85% of the largest size that fits) would hold the whole phrase. A bullet's marker and the indent after it count toward that width. Lines are fitted to about 96% of the box (a 4% safety margin) so a small difference in font metrics in PowerPoint, Impress, or FreeShow does not add a wrap. Each planned line is its own paragraph, so those apps wrap only where the fitter already broke the line. Longer lines wrap only on spaces.
  • Tracking is 25/1000 em on every glyph (letter-spacing: 0.025em). Line spacing is twice the font size (a 14 px font has a 28 px line box). Fitting uses both.
  • Bullets are red. The short rule under the title is blue. Words wrapped in *asterisks* are red as well. If one of those colours was already chosen for the text, the next palette colour is used instead.

Backgrounds

Priority:

  1. An image path the user supplied (background on the deck or on a slide). The tool scales it to cover the canvas.
  2. A description. Generate an image with the prompt below, save the PNG, and put that path in background. Then run the tool.
  3. No image and no description. Run the tool as-is. It draws a seasonal edge decoration from the date (or from theme) and leaves the centre flat. No image model is required.

If an image generator is not available, still run the tool. It writes PROMPTS.txt with the prompt it would have used and draws the seasonal background so the deck is not blocked.

Prompt template

Fill the subject in. Keep the rest word for word so the centre stays empty.

Create a 1920x1080 pixel 16:9 presentation background. Subject: <what the user described, or "a <season> theme">. Paint one large perfectly flat single-colour field across the centre, about 70 percent of the width and height, with no texture, no gradient, no vignette, and no objects. Keep every illustration, pattern, and decoration in the outer edges and corners only. Do not include any words, letters, numbers, logos, or watermarks. The centre must stay empty so slide text can sit on one colour. Use only these colours: white #FFFFFF, yellow #FDE430, tan #CEB893, red #F3483E, blue #42A0D9, and dark grey #4F4E4E. The flat centre is one of those colours, with nothing else mixed into it.

Change 1920x1080 when the canvas is not the default. The same text is what the tool writes into PROMPTS.txt.

Themes, if you set theme instead of guessing: winter, spring, summer, autumn, christmas, new_year, valentine, st_patrick, easter, halloween, thanksgiving. Holidays win over the season when the date is close. hemisphere: south flips the seasons and leaves the holidays on the calendar date.

Palette

Defined once, in slides_tool/palette.py, and used everywhere unless the deck overrides it. Do not invent other colours for type, bullets, rules, emphasis, or the drawn seasonal decorations.

NameHex
whiteFFFFFF
yellowFDE430
tanCEB893
redF3483E
blue42A0D9
dark grey4F4E4E

The tool picks the text colour by contrast. Bullets are red, the title rule is blue, and *emphasised words* are red and set in the brush face, skipping a colour when it was already chosen for the text. Seasonal art uses the same list: the edge band is dark grey, the centre is one flat palette colour (white, or tan for autumn, Thanksgiving, and Halloween), and the motifs are yellow, tan, red, blue, or white. Nothing is mixed into a seventh colour.

Type

Proxima Nova cannot be bundled (it is a commercial face). Montserrat (SIL OFL) is the stand-in: a geometric grotesque with Thin, Light, Regular, SemiBold, Bold, ExtraBold, and Black. Body text is Montserrat Light. Titles are Montserrat Bold unless the slide sets title_style to semibold, light, regular, thin, extrabold, black, or brush. ExtraBold and Black are rare. Thin, Light, and Regular are the quiet weights. SemiBold and Bold are the ones to prefer.

Opulent is not available under an open licence. Caveat Brush (SIL OFL) is the accent: a brush script with a swift painted stroke. Use it for a slide title ("title_style": "brush") or for *key words* inside a line. Do not set a whole deck in the brush face.

Every glyph, including the brush, uses 25/1000 em tracking and line spacing of twice the font size, in the PNG, the PPTX (spc and exact line spacing), the ODP (fo:letter-spacing and fo:line-height), and the FreeShow CSS (letter-spacing and line-height).

PowerPoint and LibreOffice only match the PNG when Montserrat and Caveat Brush are installed. The files are in fonts/ with OFL-Montserrat.txt and OFL-CaveatBrush.txt. If they are missing, the applications substitute another face and the line breaks can shift. The PNG renderer always uses the bundled files.

Override any entry in the deck. Omitted names keep the default.

"palette": { "yellow": "E6C200", "blue": "1D6FA5" }

Workflow

  1. Write a deck file next to where you want the output. JSON, YAML, or Markdown all work. JSON is the easiest to get right.
  2. If the user described a background, generate it with the prompt and set background to the saved file. Skip this when they supplied a file, and skip it when they said nothing about a background.
  3. Run one command from this skill folder. It creates a virtualenv on first use and installs Pillow, python-pptx, PyYAML, and odfpy.
./scripts/render.sh examples/deck.json -o dist

Windows, from this folder:

scripts\render.cmd examples\deck.json -o dist
.\scripts\render.ps1 examples\deck.json -o dist

Or, if the dependencies are already installed:

python3 -m slides_tool examples/deck.json -o dist
  1. Read dist/layout.json. Check the checklist below against the PNGs.
  2. Give the user the output paths and the import notes for the formats they asked for.

Useful flags: --formats png,freeshow (aliases images, show, ppt), --date 2026-11-29, --hemisphere south, --width, --height, --media-root /path/to/folder.

title_style on a slide may be semibold, bold (the default), light, regular, thin, extrabold, black, or brush. *words* inside a title or a point are drawn in Caveat Brush. examples/christmas/deck.json is a Christmas deck (date 2026-12-25) with one brush title.

Deck file

{
  "title": "Seasonal Notes",
  "date": "2026-11-29",
  "width": 1920,
  "height": 1080,
  "hemisphere": "north",
  "slides": [
    {
      "title": "Seasonal Notes",
      "points": ["No background was supplied", "The middle stays *clear*"],
      "notes": "Optional speaker note"
    }
  ]
}

points become bullets. body or paragraphs are plain lines. background or background_prompt may sit on the deck or on one slide. author is optional.

Markdown uses a # Slide title heading per slide, - bullets, and notes: / background: / background_prompt: lines. YAML front matter can hold the deck fields. See examples/deck.md and examples/deck.yaml.

What the command writes

Inside the output directory:

  • slides/01.png, slides/02.png, … full slides, one PNG each.
  • media/slide-01.png, … the background only, no words.
  • <deck-title>.show FreeShow show.
  • <deck-title>.project FreeShow project zip with the background files inside.
  • <deck-title>.pptx PowerPoint, also the file to import into Google Slides.
  • <deck-title>.odp LibreOffice / OpenOffice.
  • layout.json sizes, contrast, alignment, and the text box for each slide.
  • GOOGLE-SLIDES.txt when a PPTX was written.
  • PROMPTS.txt only when a description had no image and the seasonal art was used instead.

FreeShow

The .show file is UTF-8 JSON in the shape FreeShow exports and imports: a [id, show] pair. A bare show object also imports. This matches the format documented at https://freeshow.app/docs/format-show and the Show type in ChurchApps/FreeShow src/types/Show.ts.

  • Each slide's words are text items. Lines are items[].lines[].text[].value with CSS font-size, line-height (twice the size), and letter-spacing: 0.025em. There is no text-shadow and no text stroke. The item's style is the box (top, left, width, height). That width is the full calm region, and the line's align is text-align:center unless the region sits to one side.
  • Each layout cue points at that slide and at a background media id. showActions.ts activateActions loads that id from show.media and calls getMedia on media.path (not on the base64 field).
  • media.path is a data:image/png;base64,… URL. media.ts isLocalFile treats data: as not a file, and getMedia then returns that URL unchanged. Image.svelte passes it through encodeFilePath into the image src. files.ts locateMediaFile only searches the disk and the media folders, so an absolute path from another computer, or a relative path, does not load, and the separate base64 field is never read.
  • media.name is still the file name (slide-01.png). The same PNG is also written under media/ and stored again in media.base64.
  • The .project file is a zip in the shape exportProject (src/frontend/components/export/project.ts) writes and extractZipDataAndMedia (src/electron/data/import.ts) reads: data.json plus each PNG. Show paths inside it are the file names listed in files. On import, missing paths are extracted and rewritten to real paths.
  • Slide text sets the face in the text chunk style string, the same way FreeShow's own shows do (font-family:Montserrat in src/frontend/utils/createData.ts). There is no separate fontFamily field. Body text is font-family:Montserrat;font-weight:300. A bold title is font-family:Montserrat;font-weight:700. Emphasis is font-family:'Caveat Brush';font-weight:400. TextboxLines.svelte puts that string on the span.
  • FreeShow lists installed fonts with window.queryLocalFonts() (getFontsList in src/frontend/components/helpers/fonts.ts). A face that is not installed is not in that list, and the CSS falls back to another face.
  • settings.customFonts is loaded when the show opens (Slides.svelte and SlideContent.svelte call loadCustomFonts). loadLocalFont fetches filePathToURL(path). A relative path such as fonts/Montserrat-Light.ttf becomes file:///fonts/Montserrat-Light.ttf, which is not the folder beside the show, so it does not load. The tool writes the absolute path of the copy it just placed in fonts/ next to the show, and name is Montserrat or Caveat Brush (the FontFace family). Import the .show or the .project on that same computer and the file loads. Moving the folder breaks those paths.
  • A folder of fonts next to the show is not scanned. The .project zip lists the same absolute paths in files. extractZipDataAndMedia (src/electron/data/import.ts) rewrites a path that does not exist and extracts the file, which is how a project import on another computer can still load the faces. If that rewrite does not happen, install the fonts.

Import the .show directly. The background is in path, so it does not depend on where the file is copied. To import the bundled project instead, choose FreeShow Project and pick the .project zip.

If a particular FreeShow build will not display a data URL, relink the show to a real folder. That writes absolute paths, which locateMediaFile can open when the files are on this computer.

./scripts/relink.sh dist/seasonal-notes.show --media-root "$HOME/Documents/FreeShow/Media"

Windows: scripts\relink.cmd or .\scripts\relink.ps1 with the same arguments. Or build with --media-root so the show is written with those absolute paths from the start.

This was checked against the source above. It was not opened inside the FreeShow app itself.

PowerPoint and Google Slides

The PPTX is a normal 16:9 deck (13.333 in × 7.5 in, or the same ratio when the canvas is not 16:9). Each slide is one picture and editable text boxes. Each box is the full calm region, not a width taken from the words. Autofit is off, insets are zero, and wrap stays on. Each planned line is its own paragraph, so a wrap happens only where the fitter already broke the line. There is no text shadow or glow. Character spacing is 25/1000 em. Baselines are twice the font size apart: the line box itself is the font's em, and the rest of that leading is space after the paragraph. An exact line box of twice the font size drops the glyphs to the bottom of the box in LibreOffice and PowerPoint, so the text would sit on the title rule. Body text is the family Montserrat Light. A bold title is the family Montserrat with the bold bit set, because that file's family name is Montserrat and its style is Bold (Montserrat Bold is only the full name, and asking for it by that string substitutes a regular face). The other weights are the families Montserrat Thin, Montserrat SemiBold, Montserrat ExtraBold, and Montserrat Black. Emphasis is Caveat Brush. Those faces have to be installed for PowerPoint, LibreOffice, or Google Slides to match the PNG. Without them the app substitutes another face and the lines move. The files are in fonts/.

Google Slides: File, Import slides, Upload, and choose the PPTX. Or upload it to Drive and open it with Google Slides.

Optional Drive API conversion, when the user has OAuth set up and the Drive API enabled. Do not invent credentials.

POST https://www.googleapis.com/upload/drive/v3/files?uploadType=multipart
metadata: {"name": "<title>", "mimeType": "application/vnd.google-apps.presentation"}
media: the .pptx as application/vnd.openxmlformats-officedocument.presentationml.presentation

Scope drive.file is enough for a file the user creates this way.

ODP

The .odp is a normal OpenDocument zip (uncompressed mimetype first, then content.xml, styles, and the PNGs). Open it in LibreOffice Impress or OpenOffice. Text is real text, not a flattened picture. Each text frame is the full calm region, with one paragraph per planned line and no text shadow.

Font

Montserrat and Caveat Brush (both SIL OFL) are in fonts/, with OFL-Montserrat.txt and OFL-CaveatBrush.txt. The PNG renderer uses those files directly. FreeShow, PowerPoint, LibreOffice, and Google Slides use the installed faces. Install them for the current user (no administrator account), then quit and reopen FreeShow before importing again:

./scripts/install-fonts.sh

Windows: scripts\install-fonts.cmd or .\scripts\install-fonts.ps1. macOS copies into ~/Library/Fonts. Linux copies into ~/.local/share/fonts and refreshes the font cache. Windows copies into %LOCALAPPDATA%\Microsoft\Windows\Fonts and registers them for the current user. If the faces are missing, those apps substitute another face and the lines can move. The .show still names Montserrat and Caveat Brush, so after the install a re-import (or reopening the show) picks them up.

Checklist

  • The output folder contains each format the user asked for, and layout.json.
  • title_px is the same on every slide, and body_px is the same on every slide.
  • On the PNGs, no word is cut off, no word crosses the safe margin, and the words sit on the flat colour.
  • contrast in layout.json is at least 4.5. shadow is none on every slide. No output adds a text shadow, outline, or glow.
  • In layout.json, each slide's box width equals its region width. The words are centred in that box unless align is left or right.
  • The background image has no words. If the user supplied or described a picture, the PNGs use that picture rather than the seasonal fallback.
  • The .show file's layout cues reference real slides and real media entries, and each slide's title and points appear in the text items.
  • Tell the user the file paths, and how to import the FreeShow file and the PPTX.

Related Skills