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 skills add rojim666/SztuCode --skill pdfgit clone --depth 1 https://github.com/rojim666/SztuCodeWrote 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/rojim666/sztucode/pdf)<a href="https://agentmods.dev/skills/rojim666/sztucode/pdf"><img src="https://agentmods.dev/badge/skills/rojim666/sztucode/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.
<a href="https://agentmods.dev/skills/rojim666/sztucode/pdf"><img src="https://agentmods.dev/badge/skills/rojim666/sztucode/pdf.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector warn
SkillSpector: 1 finding, up to medium
These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →
- medium Privilege Escalation · line 106 Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.Fix: Avoid sudo/root unless strictly required. Prefer least-privilege patterns. If elevation is needed, document the justification and scope.
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.00051 | $0.01475 |
| Opus 5.5 | $0.00020 | $0.00590 |
| Sonnet 5.5 | $0.00010 | $0.00295 |
| Haiku 4.5 | $0.00005 | $0.00147 |
Grade B, and why
pdf scanned grade B with 1 finding 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 3mo 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.
Asks for rootmediumPrivilege escalation
A mod that escalates privileges can change anything on the machine, not only the project.
sudo apt-get install -y poppler-utils How it starts
The opening of the file, as written. The whole thing — 143 lines — stays where its author put it; the contents beside it link to each section on GitHub.
PDF Skill
When To Use
- Read or review PDF content where layout and visuals matter.
- Create PDFs programmatically with reliable formatting.
- Fill and validate interactive PDF forms.
- Validate final rendering before delivery.
Workflow
- Prefer visual review: render PDF pages to PNGs and inspect them.
- Use
pdftoppmfrom the bundled runtime or system Poppler when available. - If unavailable, install Poppler or ask the user to review the output locally.
- Use
- Use
reportlabto generate PDFs when creating new documents. - Use
pdfplumberorpypdffor text extraction and quick checks; do not rely on text extraction for layout fidelity. - After each meaningful update, re-render pages and verify alignment, spacing, and legibility.
Fill And Validate AcroForms
Visual review alone is not a correctness check for a fillable PDF. A page /Widget annotation can render a value from its appearance stream while the canonical /AcroForm/Fields tree is missing or contains a stale value.
- Keep the result interactive by default; set
flatten=Trueonly when the user explicitly requests a completed, static form. Preserve the source PDF, and do not flatten a signed PDF without an explicit workflow decision. - Inspect both representations before filling: enumerate fields from
reader.get_fields()and/Widgetannotations from every page's/Annots, following/Parentand/Kids. If a widget and a canonical field have the same name but are distinct objects with no/Parentrelationship, do not callreattach_fields()blindly: it can create a second top-level field with the same name. Report the ambiguity or produce a static result. - Recover genuinely orphaned widgets, fill all pages, and write the result with
pypdf:
from pypdf import PdfReader, PdfWriter
from pypdf.generic import NameObject
reader = PdfReader(input_pdf)
writer = PdfWriter()
writer.clone_document_from_reader(reader)
# Restores widgets that are missing from /AcroForm/Fields.
writer.reattach_fields()
fields = writer.get_fields() or {}
missing = set(expected_values) - set(fields)
if missing:
raise ValueError(f"Form fields not found after repair: {sorted(missing)}")
values_to_write = dict(expected_values)
if flatten:
# Paint every existing value before removing every widget.
values_to_write = {
name: field.get("/V", "/Off" if field.get("/FT") == "/Btn" else "")
for name, field in fields.items()
}
values_to_write.update(expected_values)
writer.update_page_form_field_values(
None, values_to_write, auto_regenerate=False, flatten=flatten
)
if flatten:
# pypdf's flatten=True paints appearances but does not remove widgets.
writer.remove_annotations(subtypes="/Widget")
writer.root_object.pop(NameObject("/AcroForm"), None)
with open(output_pdf, "wb") as stream:
writer.write(stream)
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.
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.
- 3mo ago First seen · 143 lines · 51 tokens per session scan B be18be0cf948
pdf is a skill published in the GitHub repository rojim666/SztuCode (110 stars, last pushed 18d ago), licensed MIT. It adds 51 tokens to every session and 1,475 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
pdf compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| pdfrojim666/SztuCode | Skill | 110 | 18d ago | MIT | B | 51 | Codex |
| pdf-officialevoelsewhere/evoflux | Skill | 13 | 26d ago | Apache-2.0 | A | 146 | Claude Code, Codex |
| foundry-hosted-agent-validationmicrosoft/agent-framework | Skill | 15k | 13d ago | MIT | A | 82 | Claude Code, Codex |
| pdfHmbown/CodeWhale | Skill | 41k | yesterday | MIT | A | 31 | Claude Code, Codex |
| papyrus-diagnose-compilationkirodotdev/KiroCrew | Skill | 5.1k | today | Apache-2.0 | A | 60 | Claude Code, Codex |
| dinotty-viewerxichan96/dinotty | Skill | 741 | today | MIT | A | 108 | Claude Code |
| document-processingericrisco/rsc-harness | Skill | 682 | 4d ago | MIT | A | 84 | Claude Code, Codex |