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

/fetch-slides

@bf3c709
Run it yourself

Fetch presentation slides from a URL and convert them to PDF. Supports direct PDF URLs, PPTX URLs, OneDrive sharing links, and RevealJS HTML presentations. For RevealJS, also extracts slide text content and links to a markdown file. USE FOR: download slides, fetch slides from URL, convert PPTX to PDF, get RevealJS slides, OneDrive slides.

Use this Skill: https://skilld.dev/gh/pamelafox/presentation-skills/fetch-slides

Nothing lands on disk. Nothing to clean up.

Fork this Skill

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

SKILL.md

≈89 tokens for metadata: the name and description. ≈415 when used: this file.

Description uses 4.4% 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 ≈355 characters, or 4.4%.

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.

Fetch slides from a URL

Run the fetch_slides.py script to download and convert slides:

uv run fetch_slides.py <url> <output_dir>

Arguments

  • url (required): URL of the slides. Supported formats:
    • Direct PDF URL (e.g., https://example.com/slides.pdf)
    • PPTX URL (auto-detected via Content-Type header)
    • OneDrive sharing link (e.g., https://onedrive.live.com/:p:/g/personal/... or https://1drv.ms/...)
    • RevealJS HTML presentation URL (e.g., https://example.com/slides/)
  • output_dir (required): Directory to save output files. Created if it doesn't exist.

Outputs

  • slides.pdf — Always produced. The presentation as a PDF file.
  • slides_content.md — Only for RevealJS presentations. Contains extracted text content and links from each slide, with section headings marked.

Prerequisites

  • For PPTX conversion: LibreOffice must be installed
    • macOS: brew install --cask libreoffice
    • Ubuntu: apt-get install libreoffice
  • For RevealJS presentations: Playwright browsers must be installed
    • uv run playwright install chromium

How it works

  1. The script makes an HTTP HEAD request to detect the content type
  2. Based on the content type:
    • PDF: Downloads directly
    • PPTX: Downloads the file, then converts to PDF using LibreOffice (headless mode)
    • OneDrive: Converts the sharing URL to a direct download URL (appends ?download=1), then handles as PDF or PPTX
    • RevealJS HTML: Uses Playwright to open the presentation with ?print-pdf appended, renders to PDF. Also parses the HTML to extract slide text content and links.

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.

2 warnings12d3 checks · Risk SAFE
  • Gen Agent Trust Hub12d

    The skill fetches and converts presentation slides from various URL formats. It uses LibreOffice for file conversion and Playwright for web rendering. While functional, it processes untrusted external content, posing minor risks of indirect prompt injection and server-side request forgery (SSRF).

  • Socket12d

    1 alert: gptAnomaly

  • Snyk12d

    Risk: MEDIUM · 1 issue

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_dir>

README badge

README badge for pamelafox/presentation-skills/fetch-slides