Index of every page on this site: llms.txt
All skills
pamelafox avatar

/thumbnail-of-pptx

@bf3c709
Run it yourself

Capture a thumbnail image of a slide from a OneDrive/Office presentation link. Opens the PowerPoint web viewer in a headless browser and screenshots the slide canvas, producing a clean 16:9 image with no viewer chrome. Works even when the PPTX is not downloadable (e.g. personal OneDrive shares), since it screenshots the rendered slide rather than converting the file. USE FOR: make a thumbnail from a PPTX, screenshot a slide, title-slide image, OneDrive slide thumbnail, talk thumbnail from slides.

Use this Skill: https://skilld.dev/gh/pamelafox/presentation-skills/thumbnail-of-pptx

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈130 tokens for metadata: the name and description. ≈527 when used: this file.

Description uses 6.5% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈521 characters, or 6.5%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

Thumbnail of a PPTX slide

Run the thumbnail_of_pptx.py script to capture a slide thumbnail from a OneDrive/Office presentation link:

uv run thumbnail_of_pptx.py <url> <output_path>

Arguments

  • url (required): A OneDrive sharing link, or an aka.ms short link that redirects to one (e.g. https://aka.ms/my-talk-slides). The link must open the Office Online / PowerPoint web viewer.
  • output_path (required): Path to write the PNG thumbnail (e.g. thumbnail.png). Parent directories are created if needed.
  • --slide N (optional): 1-based slide number to capture. Defaults to 1, the title slide.
  • --scale N (optional): Device scale factor for a crisper image. Defaults to 2.
  • --wait MS (optional): Milliseconds to wait for the slide to render before screenshotting. Defaults to 9000. Increase for large decks or slow networks.

Outputs

A single PNG image of the requested slide, cropped to the slide canvas (roughly 16:9, no PowerPoint viewer UI).

Prerequisites

Playwright browsers must be installed:

uv run playwright install chromium

How it works

  1. Launches headless Chromium and navigates to the URL (following aka.ms redirects to the real OneDrive viewer).
  2. Waits for the network to go idle, then waits a fixed delay for the Office Online viewer to stream in and paint the slide.
  3. Locates the viewer iframe (named wacIframe, with a fallback that finds any frame containing a <canvas>).
  4. Optionally advances to slide N by focusing the canvas and pressing the right-arrow key.
  5. Element-screenshots the slide <canvas> so the output contains only the slide, not the surrounding viewer chrome.

Notes

  • This is complementary to fetch-slides: use fetch-slides when you need the full deck as a PDF (requires LibreOffice for PPTX), and this skill when you just want a lightweight thumbnail image of one slide and the file may not be downloadable.
  • Because it relies on the public web viewer, the sharing link must be viewable by anyone with the link.

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts13d3 checks · Risk SAFE
  • Gen Agent Trust Hub13d

    This skill captures slide thumbnails from Microsoft PowerPoint and OneDrive links using a headless browser. It is functional and safe, though it requires an initial setup to download browser components and handles external URLs provided by the user.

  • Socket13d

    No alerts

  • Snyk13d

    Risk: LOW · No issues

Signed by skilld at bf3c709. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 weeks ago.

Activeupdated 3 weeks ago
argument-hint
<url> <output_path>

README badge

README badge for pamelafox/presentation-skills/thumbnail-of-pptx