agentleFS
pamelafoxpamelafox/presentation-skills/skills/fetch-slides/SKILL.md

fetch-slides

Skill129 starsChanged 7 months agoMITView on GitHub

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.

  • Installs packages

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

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

    line 13

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.