solo-pdf-print

solo-pdf-print is a skill for Claude Code from fortunto2/solo-factory. It costs 89 tokens per session (1,525 once invoked), scanned A, original, MIT.

A guide for turning HTML or Markdown into print-ready PDF files with WeasyPrint. It covers page breaks, page numbers, A4 layout, Cyrillic text, and checking the final pages.

In plain words
What is it for?
Use it when preparing documents for printing or delivery as PDFs, especially when the page layout must be checked first.
Why use it?
It helps avoid broken page layouts and common printing problems, including a macOS library-path issue and tools that hang or lack needed print controls.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: built for openclaw.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is uv run python bin/md_to_pdf.py --out OUT.pdf FILE1.md FILE2.md.

Part of the solo plugin — 60 skills, 2 commands, 2 agents, 5 hooks shipped together

Good fit Use it when preparing documents for printing or delivery as PDFs, especially when the page layout must be checked first.

Compare 6 skills from other repositories ↓
Install

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.

Clone the repo
git clone --depth 1 https://github.com/fortunto2/solo-factory
agentmods
npx agentmods add skills/fortunto2/solo-factory/pdf-print

Made for: Claude Code.

Or install solo, the plugin that ships this one along with the rest of its 60 skills, 2 commands, 2 agents, 5 hooks.

Wrote 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.

agentmods badge for solo-pdf-print

README.md
[![agentmods](https://agentmods.dev/badge/skills/fortunto2/solo-factory/pdf-print/github.svg)](https://agentmods.dev/skills/fortunto2/solo-factory/pdf-print)
Your own site
<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.

agentmods 80×15 button for solo-pdf-print

Your own site · 80×15
<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>
Per session 89 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,525 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 2mo ago against content hash 37d0c2239c0f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

skills/pdf-print/SKILL.md · 128 lines

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; }    /* заголовок не бросать внизу листа */

Read the full file on GitHub · 128 lines

Changes

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.

  1. 2mo ago First seen · 128 lines · 89 tokens per session scan A 37d0c2239c0f

Subscribe to this mod's changes

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.

Related

solo-pdf-print compared with skills from other repositories

solo-pdf-print next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
solo-pdf-printfortunto2/solo-factorySkill18todayMITA89Claude Code
pdf-fillhardness1020/awesome-agent-architectureSkill1.1k1mo agoMITA12Claude Code, Codex
hk-pdf-exportdeepklarity/harness-kitSkill1073d agoMITA62Claude Code
docxmelandlabs/openloomiSkill1.0k1mo agoApache-2.0A168Claude Code, Codex
pdfmelandlabs/openloomiSkill1.0k1mo agoApache-2.0A92Claude Code, Codex
task-multimodal-lookerskyfiredao/aia_kaiwuSkill2yesterdayGPL-3.0A30Claude Code, Codex
pdftruongpx396/learn-harness-engineering-by-building-mini-claude-codeSkill76mo agoMITA32Claude Code, Codex