smithery.ai

pdf-reader

Reads text content from PDF files. Use when you need to extract text, analyze content, or summarize information from a PDF document. Supports limiting the number of pages read.

First seen Mar 24, 2026

Installation

$ npx skills add https://smithery.ai

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery.ai · top by installs.

npx skills add https://smithery.ai

Browse all from smithery.ai

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,593 B
  • docs SUMMARY.md 194 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 2 installs

SKILL.md

PDF Reader Skill

Description

This skill allows you to extract and read text content from PDF files using pypdf.

Usage

To read a PDF file, execute the following command using uv:

XDG_CACHE_HOME=/tmp/.cache UV_CACHE_DIR=/tmp/.uv-cache \
uv run --with pypdf python3 ~/deploy/configs/llm/skills/pdf-reader/scripts/read_pdf.py <path_to_pdf> [--pages <number_of_pages>]

Examples

Read an entire PDF:

XDG_CACHE_HOME=/tmp/.cache UV_CACHE_DIR=/tmp/.uv-cache \
uv run --with pypdf python3 ~/deploy/configs/llm/skills/pdf-reader/scripts/read_pdf.py /path/to/document.pdf

Read only the first 5 pages:

XDG_CACHE_HOME=/tmp/.cache UV_CACHE_DIR=/tmp/.uv-cache \
uv run --with pypdf python3 ~/deploy/configs/llm/skills/pdf-reader/scripts/read_pdf.py /path/to/document.pdf --pages 5

Troubleshooting

If uv fails because it cannot write to ~/.cache/uv (common in sandboxed sessions), re-run with temporary cache directories:

XDG_CACHE_HOME=/tmp/.cache UV_CACHE_DIR=/tmp/.uv-cache \
uv run --with pypdf python3 ~/deploy/configs/llm/skills/pdf-reader/scripts/read_pdf.py <path_to_pdf> [--pages <number_of_pages>]

If uv is not available, ensure pypdf is installed via pip:

pip install pypdf
python3 ~/deploy/configs/llm/skills/pdf-reader/scripts/read_pdf.py <path_to_pdf> --pages <number_of_pages>