Build editable Russian or English PowerPoint presentations from a supplied visual reference. Use for a new deck based on PPTX, PDF, screenshots or a reference board, including photo sourcing, portrait cutouts and slide-by-slide visual checks.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of slide-reference?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/popokole-slide-reference)
---
name: slide-reference
description: Build editable Russian or English PowerPoint presentations from a supplied visual reference. Use for a new deck based on PPTX, PDF, screenshots or a reference board, including photo sourcing, portrait cutouts and slide-by-slide visual checks.
---
# Reference-led PowerPoint
Use the agent's vision and language skills for the design analysis and narrative. Use the local commands below for reproducible file operations. Keep the working plan, sources and previews in the user's job directory. Commands are relative to this skill folder; replace paths with actual paths.
## From reference to brief
Start each new presentation brief with a language choice. If the current request already specifies Russian, English, or both, use that choice immediately. Otherwise ask in the user's language: “На каком языке сделать презентацию: русском, английском или подготовить две отдельные версии?” Wait for the answer before drafting slides. A previous deck's language or the chat language is not a choice for a new deck. For a batch, a stated common choice applies to every deck in that batch. For an edit to existing slides, retain their language unless the user requests a change.
1. Run `python scripts/reference.py inspect REFERENCE JOB/analysis`. For an online reference, obtain the actual slides or images via the host's web tools. Inspect the source visually. For a board, identify the individual slide boundaries and ignore cast shadows and the outside canvas. For PPTX, render it and inspect the native inventory alongside it. For PDF, inspect the exported page images.
2. Write a reusable design prompt in the job folder. Name the actual source slide or panel for each layout. Specify aspect ratio, text and photo zones as fractions of slide width/height, type hierarchy, empty space, image masks, crop, layering, repeated shapes and colours. Mark estimates from screenshots. Identify what can change with the content. Save any explicit user overrides separately and apply them consistently. Do not import a source brand into a different organisation's deck unless requested.
3. After analysis, ask who will be in the audience, what they know and what the talk should achieve. Then ask for additional wishes, including duration, topic and source materials when still missing. Use information already provided. An audience changes the explanation, examples and vocabulary; preserve the agreed design.
4. Map every planned slide to a reference layout. Keep supplied content order or exercise timing when important to the assignment. For two languages, localize examples and idiom separately in the same plan. Put detail and citations in language-appropriate notes. When text wraps beyond its box, shorten it or use a compatible reference layout without sacrificing meaning.
## Source photos and prepare cutouts
Describe the subject, pose, gaze, light and intended crop before searching. Use the host's web/image search (no API key needed when available), or `python scripts/media.py search "two university students discussing a project"` with a Pexels API key in the PEXELS_API_KEY environment variable. Choose an image with a usable source and retain its credit, page URL and licence link. Fetch the actual authorised image URL with `python scripts/media.py fetch IMAGE_URL JOB/assets/original.jpg`.
For a transparent portrait run `python scripts/media.py cutout JOB/assets/original.jpg JOB/assets/portrait.png`. First use downloads a segmentation model if it is absent. Inspect the alpha contour on the intended background for missing fingers, hair, or objects. If recognition fails, try another source photo or installed model. Keep the cutout as a picture in the slide.
## Build and deliver
- **Image/PDF reference or new layouts.** Author a JSON plan as described in [plan.md](references/plan.md). Use `node scripts/build.cjs JOB/plan.json ru JOB/result-ru.pptx` and likewise `en`. The renderer supports arbitrary editable text, native shapes and gradients, cropped photos, freeform shapes and speaker notes. It has no hard-coded visual theme. Use a trusted native chart/table authoring path when the brief needs these objects; the v1 JSON renderer has no chart or table element.
- **Native PPTX with unchanged slide structure.** Reuse the source slide parts. In the inventory, identify the slide part, text-shape ID and existing runs. Run `python scripts/reference.py fill ORIGINAL.pptx JOB/replacements.json JOB/result.pptx`. Example mapping: `{"ppt/slides/slide1.xml":{"2":["Новый заголовок"]}}`. Each replacement list must contain one string per original run to retain the individual formatting. This command changes text only. For a new slide sequence, image swaps, translated notes or chart data use a native editor and verify its output before delivery.
- Render **every exported PPTX**, in each language. On Windows with PowerPoint, use `powershell -ExecutionPolicy Bypass -File scripts/render.ps1 JOB/result.pptx JOB/render`. On other systems with LibreOffice use `python scripts/render.py JOB/result.pptx JOB/render`. Use a separate preview directory for each deck. Then run `python scripts/contact.py JOB/render JOB/preview.jpg`. Inspect the board and any suspect full-size slides for unintended collisions, legibility, masks, photo framing and missing content. Compare to the referenced source panels. PowerPoint rendering also measures text bounds. Correct the plan and render again when checks fail.
- Return the requested editable files. For a distance target, report the actual body size and avoid promising physical visibility without the projector dimensions and room conditions.
See [setup](SETUP.md) for dependencies and how to run the skill from Claude Code, Codex or a DeepSeek-powered tool runner.