pdf-page-count
Skill2 starsChanged 10 days agoMITView on GitHub
Use when the user asks for the page count of an existing PDF, whether a PDF meets an exact/minimum/maximum page limit, or the numeric page-count result for another workflow. Triggers on "PDF pages", "page count", "몇 페이지", and "분량 제한 확인". NOT for creating, editing, rendering, or visually reviewing a PDF; use a PDF skill, when installed, for those tasks.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- gigio1023/gigio-skillsword for word, first seen Oct 13, 2026
Other versions1 project uses a version of this.
Word for word · 1
- gigio1023/gigio-skills★ 2100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository53 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- 1password-cliSkill
- codex-delegateSkill
- credo-journalSkill
- credo-paper-planSkill
- credo-releaseSkill
- credo-tasteSkill
- cursor-cli-delegationSkill
- english-prompt-reviewSkill
- mermaid-diagramsSkill
- pr-review-commentSkill
- read-agent-sessionsSkill
- reddit-searchSkill
- release-notesSkill
- small-model-handoffSkill
- spot-gpu-evaluationSkill
- toss-portfolio-stateSkill
- vuln-reportSkill
- zcode-cliSkill
- bug-diagnosisSkill
- coding-standardsSkill
- commit-and-pushSkill
- copydeskSkill
- design-docSkill
- design-explorationSkill
- draft-prSkill
- evaluation-analysisSkill
- evaluation-auditSkill
- evaluation-designSkill
- evaluation-operationsSkill
- find-unknownsSkill
- frontend-designSkill
- git-worktree-setupSkill
- idea-critiqueSkill
- insight-dashboardSkill
- install-skill-packSkill
- internal-source-researchSkill
- interviewSkill
- literature-researchSkill
- load-testingSkill
- ml-experimentSkill
- model-routingSkill
- orchestrate-subagentsSkill
- praxis-directionSkill
- prompting-guideSkill
- review-panelSkill
- session-handoffSkill
- skill-builderSkill
- terminologySkill
- work-planSkill
- write-issueSkill
- write-notionSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 3 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
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
- Distinctive: line 18
Run the bundled counter from this skill directory:
- Very specific: line 26
Treat exit code 0 plus a single integer on stdout as success.
- Distinctive: line 38
If another task changed the source document, count the rebuilt output PDF, not the stale pre-edit artifact.
- Distinctive: line 42
Do not infer pages from filename, file size, source-document pagination, or a viewer thumbnail count.
≈ “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.
Files
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>The script needs Python 3.7 or newer (the macOS system
python3works) and one of the counting backends listed under Gotchas.- 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
One successful counter result for the exact output file completes counting. Do not render pages or run additional backends unless the file changed or a concrete discrepancy calls that result into question.
Output Contract
Report the file, page count, limit if any, and result. When over or under the limit, include the exact difference. Example: 27 pages; maximum 25; fail by 2 pages. Keep any requested caveat or next action, but omit backend narration on success.
If another task changed the source document, count the rebuilt output PDF, not the stale pre-edit artifact. If no rebuilt PDF exists, state that the count is for the currently supplied file.
Gotchas
- Do not infer pages from filename, file size, source-document pagination, or a viewer thumbnail count.
- Encrypted or malformed PDFs may fail every backend. Surface the failure; do not report zero pages.
- The script tries
pypdf,pdfinfo, then macOSmdls. If no backend works, report that; installingpypdforpdfinfoneeds the user's go-ahead. Do not rewrite the script during the counting task. - A request to check a limit does not authorize layout compression or content cuts. Offer or perform PDF editing only when asked.
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
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.

