/solo:solo-pdf-print [что печатаем, напр. «отчёт из markdown» или «карточки A4»]from solo
Generates print-ready PDFs from HTML using WeasyPrint. Handles page breaks, page numbers, Cyrillic fonts, and macOS setup issues.
Ships in solo. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Инструмент — WeasyPrint. Он один из трёх кандидатов умеет то, ради чего печать
вообще затевается: колонтитулы с номерами страниц, предсказуемые разрывы и
управление через @page.
На 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")
| Инструмент | Что не так |
|---|---|
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.
# /// 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; } /* заголовок не бросать внизу листа */
Единицы — мм и pt, не px: на бумаге пиксель ничего не значит. Ширину карточек задавать в мм, чтобы после разрезания они были предсказуемого размера.
Системные Georgia / Times New Roman покрывают кириллицу целиком, включая ә ҙ ҡ ң ө ҫ ү һ. Веб-шрифты для печати не нужны и только тормозят сборку. Если шрифт всё же подключается — проверить именно эти буквы: подстановка глифа из другого шрифта видна как скачок начертания в середине слова.
pdftotextpdftotext вытаскивает текст в порядке потока и не покажет ни наложений, ни
обрезанных блоков, ни пустых страниц. Смотреть надо картинку:
pdftoppm -f 1 -l 2 -r 76 -png out.pdf /tmp/page # первые две страницы в PNG
и открыть PNG. Что ловится только так:
break-before на пустой секции;Готовый пример с русской типографикой — 6-crm/bin/md_to_pdf.py: markdown +
weasyprint, таблицы, @bottom-right, жёсткий разрыв между файлами.
DYLD_FALLBACK_LIBRARY_PATH=/opt/homebrew/lib \
uv run python bin/md_to_pdf.py --out OUT.pdf FILE1.md FILE2.md
.8pt сплошная, поля внутри не меньше 4pt,
и запас 2-3 мм на неточность резака.Стиль текста — /solo:humanize. Готовый генератор многостраничного документа
с деревом и карточками — ~/personal/family/bin/shezhere-print.py.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub fortunto2/solo-factory --plugin solo71 skills in this plugin
/solo-android-releaseShip an Android app to testers or to Google Play, or push an update to an app already listed there. Use when the user says "make the Android app available to testers", "internal/open testing link", "publish to Play", "release the APK/AAB", "Play Console", "upload a new version", wants install attribution set up (Play referrer UTMs, Install Referrer API, an in-app counter and the matching Data safety form), or hits a Play policy deadline ("app doesn't meet target API level requirements"). Leads with the MINIMAL tester-link workflow (fastest), then the FULL production listing, then UPDATE for an existing app. Carries the exact Play Console browser steps, signing/keystore setup, the testing-track comparison, required assets, and the gotchas (lintVitalRelease crash, 16 KB alignment, target API deadline) so you don't re-learn them./solo-apple-app-iconBuild an iOS 26+ layered app icon (.icon / Icon Composer) from a designer's SVG, generated by script rather than drawn by hand, and check every appearance without launching the app. Use when the user says "иконка приложения", "сделай иконку", "app icon", "Icon Composer", "layered icon", "иконка не как в фигме", "тёмная иконка выглядит плохо", or when an app still ships a folder of flattened PNGs. Do NOT use for in-app icons and SF Symbols (that is symbol work), or for the App Store screenshot set./solo-auditUse when "audit KB", "check frontmatter", "find broken links", "tag cleanup", "knowledge base quality", or docs need health check. Do NOT use for SEO audits (/seo-audit) or code reviews (/review)./solo-boardParticipate on Get Posting Board (getpostingboard.dev), the API-only bulletin board where agents exchange findings. Use when the user says "иди на борду", "board", "getpostingboard", "пообщайся с агентами", "выложи находку", "спроси на доске", asks to set up a recurring board loop, or asks how to post there. Also covers coordinating several sessions of one operator on the board. Do NOT use for social media or Reddit (/reddit) or for GitHub outreach (/github-outreach)./solo-buildUse when "build it", "start building", "execute plan", "implement tasks", "ship it", track ID referenced, or plan tasks need execution. Do NOT use for planning (/plan) or scaffolding (/scaffold)./solo-call-enStart live transcription and a rolling agent summary for a phone call in English in seconds, without editing config. Use when user says "звонок по-английски, включи английский", "call-en", "english call", or a call in English is about to start. Do NOT use for a room or conference in English (use /supervox) or for transcribing a finished recording (use /transcribe).Other plugins' skills for the same job