summarize-pdf-aloud
Skill: summarize-pdf-aloud
When to Use
Use this skill when the user asks to:
- Find and read a PDF summary out loud
- Speak a document summary
- Have a PDF summarized verbally
- Listen to a PDF summary
- Read a PDF aloud
- Summarize and speak a document
Input Parameters
| Parameter | Required | Description | Example |
|---|---|---|---|
pdf_filename |
No | Optional: specific PDF filename to search for. If not provided, will search all PDFs in common locations | financial_statements.pdf |
search_directories |
No | Optional: comma-separated list of directories to search. Defaults to current directory, Desktop, and Downloads | $HOME/Documents,/Users/username/Desktop |
Procedure
- Search for PDF files in common directories: current directory, Desktop, and Downloads using ls and mdfind commands
- Display found PDFs to user and ask which one to summarize if multiple results (use ask_user)
- Extract text from the selected PDF using pdftotext command: pdftotext "{{pdf_path}}" - | head -500
- Generate a concise summary of the extracted text (2-3 sentences capturing key information)
- Use the 'say' command to read the summary aloud: say "{{summary_text}}"
- Report completion status to user with the summary text provided
Reference Commands
Commands from a successful execution (adapt to actual inputs):
ls -la *.pdf 2>/dev/null || ls -la ~/Desktop/*.pdf 2>/dev/null | head -5 || ls -la ~/Downloads/*.pdf 2>/dev/null | head -5
mdfind -name .pdf 2>/dev/null | head -10
pdftotext "$HOME/Downloads/240630_Avenue_Bank_Limited_Financial_Statements.pdf" - 2>/dev/null | head -500
say "Avenue Bank Limited Annual Report for June 30, 2024. This Australian digital bank reported an 8.6 million dollar loss, an improvement from 9.5 million in 2023. The bank generated 556 thousand in net interest income and invested heavily in IT infrastructure and staff. CEO Peita Piper led the bank from ideation through full licensing and market launch."
Replace {{PLACEHOLDER}} values with actual credentials from the key store.
Example
Example requests that trigger this skill:
find a PDF on my computer and say out loud the summary of the document
More from dalehurley/phpbot
desktop-control
Control the mouse, keyboard, and read screen content via accessibility. Use this skill when the user asks to click somewhere on screen, type text into an app, move the mouse, press keyboard shortcuts, read what's on screen, get the accessibility tree of the current window, automate desktop interactions, or control the computer.
39summarize-unread-emails
Retrieve and summarize all unread emails from your inbox, organized by category, sender, and date. Use this skill when the user asks to summarize unread emails, get an overview of unread messages, organize inbox emails, or review pending email communications. Provides a structured summary with categorization and timeline analysis.
20homebrew
Install, manage, and search for software packages on macOS using Homebrew. Use this skill when the user asks to install software, apps, CLI tools, developer utilities, programming languages, databases, or any package on a Mac. Supports formulae (CLI tools) and casks (GUI apps). Can also search, update, upgrade, uninstall, and diagnose Homebrew issues.
11open-application
Open or launch applications on your computer by name. Use this skill when the user asks to open, launch, or start an application like Mail, Finder, Safari, Chrome, or any other installed macOS application. Works with both built-in and third-party applications.
10csv-tools
Parse, query, filter, sort, transform, and summarize CSV and JSON data files. Use this skill when the user asks to view a CSV, filter data, get statistics from a data file, convert CSV to JSON or vice versa, sort data, or analyze tabular data.
9get-weather-forecast
Retrieve current weather conditions and multi-day forecasts for any location using the wttr.in API. Use this skill when the user asks for weather information, weather forecast, current conditions, temperature, or weather updates for a specific city or location. Provides detailed weather data including temperature, wind, precipitation, and visibility.
8