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/seifbenayed/cloclo/pdfnpx skills add SeifBenayed/cloclo --skill pdfgit clone --depth 1 https://github.com/SeifBenayed/clocloWhat 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.00092 | $0.02700 |
| Opus 5 | $0.00046 | $0.01350 |
| Sonnet 5 | $0.00018 | $0.00540 |
| Haiku 4.5 | $0.00009 | $0.00270 |
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 2d 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.
This is a copy
75% identical to pdf — 62 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
How it starts
The opening of the file, as written. The whole thing — 358 lines — stays where its author put it; the contents beside it link to each section on GitHub.
PDF Processing Guide
Tool-First Workflow
Use the Pdf tool for ALL standard operations. Do NOT use Python/pypdf unless you need features the tool doesn't have.
Available Pdf tool actions
| Task | Tool call |
|---|---|
| Inspect PDF metadata | Pdf { action: "inspect", file_path: "doc.pdf" } |
| Extract all text | Pdf { action: "extract_text", file_path: "doc.pdf" } |
| Extract text per page | Pdf { action: "extract_pages_text", file_path: "doc.pdf" } |
| Split pages | Pdf { action: "split", file_path: "doc.pdf", pages: "1-3", output_path: "out.pdf" } |
| Merge PDFs | Pdf { action: "merge", file_paths: ["a.pdf", "b.pdf"], output_path: "merged.pdf" } |
| Get form fields | Pdf { action: "get_form_fields", file_path: "form.pdf" } |
| Fill fillable form | Pdf { action: "fill_form", file_path: "form.pdf", field_values: {"name": "John"}, output_path: "filled.pdf" } |
| Create blank PDF | Pdf { action: "create", output_path: "blank.pdf", pages: 2 } |
| Add text to non-fillable PDF | Pdf { action: "add_text", file_path: "doc.pdf", texts: [{"page": 1, "x": 100, "y": 500, "text": "Hello", "size": 12}], output_path: "out.pdf" } |
When to fall back to Python/Bash
- Converting PDF to images (requires pypdfium2)
- Extracting form structure from non-fillable PDFs (requires pdfplumber)
- OCR on scanned PDFs
- Advanced encryption/decryption (requires qpdf CLI)
For these cases, see REFERENCE.md and FORMS.md.
Form Filling Workflow
Fillable PDFs (have form fields)
Pdf { action: "get_form_fields", file_path: "form.pdf" }
# → returns field names and types
Pdf { action: "fill_form", file_path: "form.pdf", field_values: {"LastName": "Smith", "FirstName": "John"}, output_path: "filled.pdf" }
Non-fillable PDFs (no form fields — use text annotations)
Pdf { action: "extract_text", file_path: "form.pdf" }
# → read the text to understand the layout
Pdf { action: "add_text", file_path: "form.pdf", texts: [
{"page": 1, "x": 200, "y": 700, "text": "John Smith", "size": 10},
{"page": 1, "x": 200, "y": 650, "text": "123 Main St", "size": 10}
], output_path: "filled.pdf" }
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.
- 2d ago First seen · 358 lines · 92 tokens per session scan A d87b5734a258
pdf is a skill published in the GitHub repository SeifBenayed/cloclo (114 stars, last pushed 4mo ago), licensed MIT. It adds 92 tokens to every session and 2,700 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. It is 75% identical to pdf, differing in 62 lines, and is treated as a copy.
Other skills, from other repositories
skill-doc-delivery
Convert markdown to DOCX, PPTX, XLSX, PDF office documents — use when you need exportable deliverables.
document-gen-resilient
Multi-path document generation with tool checks, Unicode handling, and Python fallbacks.
pdf-explore
Read, extract, and cross-check content across scientific PDFs. Use when a task needs methods, figures, tables, citations, accessions, or claims from multiple places in one or more papers.
make-resume
中文可编辑简历制作技能:根据用户经历选择或复刻模板,生成可编辑 HTML 简历并提供 PDF 导出;当用户输入“/make-resume”或要求制作、修改、复刻简历文件时使用。.
paper-reader
Use when user asks to "read paper", "analyze paper", "summarize paper", "读论文", "分析文献", "帮我看一下这篇paper", "论文笔记", or provides a PDF file that appears to be an academic paper. Specialized for CV/DL papers. Also supports Zotero integration: "读一下这篇论文 ...", "快速看一下这篇论文 ...", "批判性分析这篇论文 ...", "读一下 Zotero 里的 XXX", "批量读一下 Zotero…
decrypt4pdf
对加密的 PDF 文件进行解密。当用户提到 PDF 解密、解除 PDF 密码、解 PDF 时使用。.