pdf

pdf is a skill for Codex from Rylaispirit/rylai-codex-hermes-skills. It costs 30 tokens per session (714 once invoked), scanned A, original, MIT.

A local toolkit for working with PDF files, which are fixed-layout documents often used for reports and forms. It can inspect, extract, create, edit, combine, separate, rotate, and render PDFs with structural and visual checks.

In plain words
What is it for?
Use it to inspect unfamiliar PDFs, extract text, change pages, merge or split files, rotate pages, convert Office documents to PDF, and verify the output.
Why use it?
It provides a repeatable way to handle PDF files while preserving the original and checking that the result still works.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: mentions Codex.

Good fit Use it to inspect unfamiliar PDFs, extract text, change pages, merge or split files, rotate pages, convert Office documents to PDF, and verify the output.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/rylaispirit/rylai-codex-hermes-skills/pdf
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Rylaispirit/rylai-codex-hermes-skills --skill pdf
Clone the repo
git clone --depth 1 https://github.com/Rylaispirit/rylai-codex-hermes-skills

Made for: Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for pdf

README.md
[![agentmods](https://agentmods.dev/badge/skills/rylaispirit/rylai-codex-hermes-skills/pdf/github.svg)](https://agentmods.dev/skills/rylaispirit/rylai-codex-hermes-skills/pdf)
Your own site
<a href="https://agentmods.dev/skills/rylaispirit/rylai-codex-hermes-skills/pdf"><img src="https://agentmods.dev/badge/skills/rylaispirit/rylai-codex-hermes-skills/pdf/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for pdf

Your own site · 80×15
<a href="https://agentmods.dev/skills/rylaispirit/rylai-codex-hermes-skills/pdf"><img src="https://agentmods.dev/badge/skills/rylaispirit/rylai-codex-hermes-skills/pdf.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 30 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 714 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00030 $0.00714
Opus 5 $0.00015 $0.00357
Sonnet 5 $0.00006 $0.00143
Haiku 4.5 $0.00003 $0.00071

Measured 9d ago against content hash 72d17f42de3e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

pdf scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/rylai_pdf.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/pdf/SKILL.md · 107 lines

How it starts

The opening of the file, as written. The whole thing — 107 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Rylai PDF

Original Codex-Hermes-Claude skill by Rylai.

Use local files and deterministic tools. Preserve the source document unless the user explicitly requests an in-place replacement. Never invent passwords, embed credentials, or upload documents to an external service without direct approval.

Runtime

Use Python 3 with:

  • pypdf for page-level inspection and editing.
  • pdfplumber when higher-quality text extraction is useful.
  • pypdfium2 or Poppler pdftoppm for optional page rendering.
  • LibreOffice only when converting an Office source into PDF.

Probe before installing:

python -c "import pypdf; print(pypdf.__version__)"
python -c "import pdfplumber; print(pdfplumber.__version__)"

Install only missing Python packages:

python -m pip install pypdf pdfplumber pypdfium2

Resolve scripts/rylai_pdf.py relative to this skill directory.

Workflow

  1. Confirm the input path, requested operation, output path, and page range.
  2. Run info before editing an unfamiliar or encrypted PDF.
  3. Write to a new output path. Use --force only when replacement is intended.
  4. Re-open the result and check page count, metadata, and extracted text where applicable.
  5. For layout-sensitive work, render representative pages and inspect the PNG output.
  6. Report skipped checks when Poppler, LibreOffice, OCR, or another optional dependency is absent.

For scanned pages with no useful text layer, use an available local OCR engine. Keep the original PDF and state which OCR tool and language model were used.

Bundled CLI

Inspect:

python scripts/rylai_pdf.py info input.pdf

Extract selected pages:

python scripts/rylai_pdf.py extract input.pdf output.txt --pages 1-3,7

Merge:

python scripts/rylai_pdf.py merge output.pdf first.pdf second.pdf

Split selected pages into individual files:

python scripts/rylai_pdf.py split input.pdf output-pages --pages 2-5

Rotate selected pages clockwise:

python scripts/rylai_pdf.py rotate input.pdf rotated.pdf 90 --pages 1,3

Read the full file on GitHub · 107 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 107 lines · 30 tokens per session scan A 72d17f42de3e

Subscribe to this mod's changes

pdf is a skill published in the GitHub repository Rylaispirit/rylai-codex-hermes-skills (55 stars, last pushed 26d ago), licensed MIT. It adds 30 tokens to every session and 714 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.