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/vibeinging/yiyi/pdfnpx skills add vibeinging/YiYi --skill pdfgit clone --depth 1 https://github.com/vibeinging/YiYiWrote 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.
[](https://agentmods.dev/skills/vibeinging/yiyi/pdf)<a href="https://agentmods.dev/skills/vibeinging/yiyi/pdf"><img src="https://agentmods.dev/badge/skills/vibeinging/yiyi/pdf.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00027 | $0.02778 |
| Opus 5 | $0.00014 | $0.01389 |
| Sonnet 5 | $0.00005 | $0.00556 |
| Haiku 4.5 | $0.00003 | $0.00278 |
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 6d 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.
How it starts
The opening of the file, as written. The whole thing — 273 lines — stays where its author put it; the contents beside it link to each section on GitHub.
PDF Processing
Reading & Extracting Text
Use Python's pypdf via run_python_script. If pypdf isn't installed,
call pip_install(["pypdf"]) first.
# extract_pdf.py
import sys
from pypdf import PdfReader
reader = PdfReader(sys.argv[1])
for i, page in enumerate(reader.pages, 1):
text = page.extract_text() or ""
print(f"=== Page {i} ===")
print(text)
Run with run_python_script(script_path="extract_pdf.py", args=["/path/to/document.pdf"]).
Then summarize / analyze / answer questions about the captured stdout.
For Tables in PDFs
- Extract raw text with the script above.
- Parse the tabular structure from the text output (look for repeating column-aligned rows).
- If the user wants it as a spreadsheet, write a Python script that
uses
openpyxlto emit.xlsx(see thexlsxskill).
Creating Professional PDFs
Use the create_pdf.py script to generate beautiful, content-rich PDF documents.
Step 1: Build a JSON structure file
Create a JSON file describing the document content. Be thorough and detailed — include rich content, not just bullet points.
{
"title": "Document Title",
"subtitle": "A detailed subtitle explaining the document purpose",
"author": "Author Name",
"date": "2024-01-15",
"header": "Document Title — Confidential",
"footer": "© 2024 Company Name",
"theme": "professional",
"page_size": "A4",
"body": [
{ "type": "toc" },
{ "type": "heading", "level": 1, "text": "Introduction" },
{ "type": "paragraph", "text": "Write full, detailed paragraphs here. Avoid short one-liners. Each paragraph should be 3-5 sentences with substantive content that provides real value to the reader." },
...
]
}
Step 2: Run the script
python3 scripts/create_pdf.py structure.json output.pdf
Available Themes
| Theme | Style |
|---|---|
professional |
Navy + blue accents, corporate feel |
minimal |
Black + red accents, clean typography |
modern |
Purple + pink accents, contemporary |
What ships with it
12 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.
- forms.md 12 KB
- LICENSE.txt 1.4 KB
- reference.md 16 KB
- scripts/check_bounding_boxes.py 2.7 KB runs code
- scripts/check_fillable_fields.py 268 B runs code
- scripts/convert_pdf_to_images.py 1008 B runs code
- scripts/create_pdf.py 26 KB runs code
- scripts/create_validation_image.py 1.2 KB runs code
- scripts/extract_form_field_info.py 4.2 KB runs code
- scripts/extract_form_structure.py 3.9 KB runs code
- scripts/fill_fillable_fields.py 3.7 KB runs code
- scripts/fill_pdf_form_with_annotations.py 3.2 KB runs code
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.
- 6d ago First seen · 273 lines · 27 tokens per session scan A 76d35554daa5
pdf is a skill published in the GitHub repository vibeinging/YiYi (51 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 27 tokens to every session and 2,778 once invoked, about $0.0001 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
pydicom
Use pydicom to read, inspect, write, transform, and safely preflight local DICOM datasets and pixel data. Applies to DICOM metadata, transfer syntaxes, compression plugins, frames, private elements, JSON, and bounded de-identification review.
foundry-hosted-agent-validation
Step-by-step process for validating a Python Foundry hosted agent sample (under python/samples/04-hosting/foundry-hosted-agents/) end to end — running it locally (native runtime and azd ai agent run) and after deploying it to an Azure AI Foundry project with azd. Use this when asked to validate a hosted agent sample.
skill-doc-delivery
Convert markdown to DOCX, PPTX, XLSX, PDF office documents — use when you need exportable deliverables.
pdf-extract-create-workflow
Complete PDF lifecycle: download, extract, and generate structured documents with reportlab.
document-direct-python
Use direct Python execution for reliable document creation including spreadsheets, PDFs, and structured reports.
pdf-verification-cli
Verify PDF page count and content using command-line tools when Python libraries unavailable.