pdf-page-count

Installation
SKILL.md

PDF Page Count

Return the PDF's numeric page count and, when a limit was supplied, an explicit pass/fail comparison. Do not edit or rebuild the document unless the user also requested that separate work.

Quick Start

  1. Resolve the exact PDF path and confirm the file exists.

  2. Run the bundled counter from this skill directory:

    python3 scripts/count_pdf_pages.py <path-to-pdf>
    
  3. Treat exit code 0 plus a single integer on stdout as success. Exit code 2 means none of the available backends could determine the count; report the dependency/error message instead of guessing.

  4. Compare the integer to the user's rule:

    • maximum N: pass when count <= N;
    • minimum N: pass when count >= N;
    • exact N: pass when count == N.
Installs
19
GitHub Stars
1
First Seen
Jul 10, 2026
pdf-page-count — gigio1023/agent-skills