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
-
Resolve the exact PDF path and confirm the file exists.
-
Run the bundled counter from this skill directory:
python3 scripts/count_pdf_pages.py <path-to-pdf> -
Treat exit code
0plus a single integer on stdout as success. Exit code2means none of the available backends could determine the count; report the dependency/error message instead of guessing. -
Compare the integer to the user's rule:
- maximum
N: pass whencount <= N; - minimum
N: pass whencount >= N; - exact
N: pass whencount == N.
- maximum