Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/fortunto2/solo-factorynpx agentmods add skills/fortunto2/solo-factory/pdf-printWrote 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/fortunto2/solo-factory/pdf-print)<a href="https://agentmods.dev/skills/fortunto2/solo-factory/pdf-print"><img src="https://agentmods.dev/badge/skills/fortunto2/solo-factory/pdf-print/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/fortunto2/solo-factory/pdf-print"><img src="https://agentmods.dev/badge/skills/fortunto2/solo-factory/pdf-print.svg" alt="Reviewed on agentmods" width="80" 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.00089 | $0.01525 |
| Opus 5.5 | $0.00036 | $0.00610 |
| Sonnet 5.5 | $0.00018 | $0.00305 |
| Haiku 4.5 | $0.00009 | $0.00153 |
Grade A, and why
solo-pdf-print 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 2mo 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 — 128 lines — stays where its author put it; the contents beside it link to each section on GitHub.
HTML → печатный PDF
Инструмент — WeasyPrint. Он один из трёх кандидатов умеет то, ради чего печать
вообще затевается: колонтитулы с номерами страниц, предсказуемые разрывы и
управление через @page.
0. Сначала то, на чём теряют час
На macOS WeasyPrint падает на импорте, хотя установлен:
OSError: cannot load library 'libgobject-2.0-0'
Библиотеки стоят в homebrew, но не в пути загрузчика. Лечится одной переменной:
export DYLD_FALLBACK_LIBRARY_PATH=/opt/homebrew/lib
uv run --with weasyprint python build.py
⚠️ Переменная нужна и в скрипте, и в CI, и в хуке — окружение хука отличается от окружения оболочки. Если её негде поставить, в начале скрипта:
import os; os.environ.setdefault("DYLD_FALLBACK_LIBRARY_PATH", "/opt/homebrew/lib")
1. Чем НЕ печатать
| Инструмент | Что не так |
|---|---|
headless Chrome --print-to-pdf |
Печатает, но не завершается: процесс висит до таймаута. Проверено 13.09.2026 — PDF записался, а subprocess упал по TimeoutExpired через 180 с. И он не умеет @page margin-boxes, то есть номеров страниц не будет вовсе |
| wkhtmltopdf | Движок Qt WebKit: ни flexbox, ни columns, ни современных break-* |
| pandoc → LaTeX | Хорош для книги, избыточен для одностраничника; кириллица требует настройки шрифтов |
Chrome остаётся уместен ровно в одном случае: когда страницу рисует JavaScript. WeasyPrint скрипты не выполняет — данные надо отдать уже в HTML.
2. Скелет, который работает
# /// script
# dependencies = ["weasyprint"]
# ///
from weasyprint import HTML
HTML(filename="out.html").write_pdf("out.pdf")
@page {
size: A4 portrait; /* landscape — для лент и таблиц */
margin: 15mm 14mm 16mm 14mm;
@bottom-right { content: counter(page) " / " counter(pages);
font: 8pt Georgia, serif; color: #888; }
}
@page :first { @bottom-right { content: ""; } } /* на титуле номер не нужен */
section { break-before: page; } /* не page-break-before: он устарел */
.card { break-inside: avoid; } /* карточку не рвать между страницами */
h3 { break-after: avoid; } /* заголовок не бросать внизу листа */
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.
- 2mo ago First seen · 128 lines · 89 tokens per session scan A 37d0c2239c0f
solo-pdf-print is a skill published in the GitHub repository fortunto2/solo-factory (18 stars, last pushed today), licensed MIT. It adds 89 tokens to every session and 1,525 once invoked, about $0.0004 per session on Opus 5.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-09-15.
solo-pdf-print compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| solo-pdf-printfortunto2/solo-factory | Skill | 18 | today | MIT | A | 89 | Claude Code |
| pdf-fillhardness1020/awesome-agent-architecture | Skill | 1.1k | 1mo ago | MIT | A | 12 | Claude Code, Codex |
| hk-pdf-exportdeepklarity/harness-kit | Skill | 107 | 3d ago | MIT | A | 62 | Claude Code |
| docxmelandlabs/openloomi | Skill | 1.0k | 1mo ago | Apache-2.0 | A | 168 | Claude Code, Codex |
| pdfmelandlabs/openloomi | Skill | 1.0k | 1mo ago | Apache-2.0 | A | 92 | Claude Code, Codex |
| task-multimodal-lookerskyfiredao/aia_kaiwu | Skill | 2 | yesterday | GPL-3.0 | A | 30 | Claude Code, Codex |
| pdftruongpx396/learn-harness-engineering-by-building-mini-claude-code | Skill | 7 | 6mo ago | MIT | A | 32 | Claude Code, Codex |