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.
npx agentmods add skills/hmbown/codewhale/pdfnpx skills add Hmbown/CodeWhale --skill pdfgit clone --depth 1 https://github.com/Hmbown/CodeWhaleWhat 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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00031 | $0.00295 |
| Opus 5 | $0.00015 | $0.00148 |
| Sonnet 5 | $0.00006 | $0.00059 |
| Haiku 4.5 | $0.00003 | $0.00030 |
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 3d ago.
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.
What it actually says
Use this skill for any task where a PDF is the primary input or output.
Workflow
- Identify the PDF operation: read, extract, OCR, split, merge, rotate, watermark, redact, fill forms, encrypt/decrypt, or create.
- Preserve originals. Write outputs with explicit names.
- Use the most reliable available tool:
- the built-in
Filetool (action: "read") for basic text extraction from PDFs pdftotext,pdfinfo,qpdf, ormutoolwhen installed- Python libraries such as
pypdf,pdfplumber,PyMuPDF, orreportlabwhen available - OCR tools only for scanned pages
- the built-in
- For extraction, report page coverage and note when layout, tables, or OCR quality may affect accuracy.
- For generated or modified PDFs, verify page count, text extraction where possible, and file size. For redaction, confirm removed text is not extractable from the output.
Ask before installing dependencies or running OCR over large documents. Do not represent a visually scanned PDF as fully accurate text unless OCR quality has been checked.
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.
- 3d ago First seen · 30 lines · 31 tokens per session scan A 14d37e1c04d7
pdf is a skill published in the GitHub repository Hmbown/CodeWhale (40,889 stars, last pushed yesterday), licensed MIT. It adds 31 tokens to every session and 295 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.
Other skills, from other repositories
pdf-editing
Use the bundled tools; do not install nano-pdf, pypdf, qpdf, Poppler, or another PDF package during a task.
pdf-processor
Extracts text and tables from PDF files, fills forms, and merges documents. Use when working with PDF files or when the user mentions PDFs, forms, or document extraction.
document-converter
Convert documents bidirectionally via the pi-doc-engine facade: ingest PDF/DOCX/PPTX/XLSX to provenance-stamped Markdown (with OCR), and produce templated DOCX/PDF from Markdown with diagrams, TOC and round-trip merge. Use on "convert this PDF to markdown", "ingest these docs into kb", "make a DOCX from markdown with…
beautiful-pdfs
Build polished PDF documents by composing semantic HTML/CSS and rendering HTML to PDF.
image-vision
Inspect attached or local images and visually analyze PDFs with vision. Use for photos, screenshots, scans, charts, diagrams, OCR, handwriting, UI inspection, or any task that depends on pixels, layout, or other non-structural page content.
office-docx
生成与读取 Word 文档(.docx)——报告、合同、交付文档、投标书;原生 docx 渲染,支持 heading/paragraph/table/code/list 内容块与居中标题.