pdf-report-builder
Skill5 starsChanged 4 months agoMITView on GitHub
Сборка PDF-отчётов из Markdown без обязательных зависимостей. Скрипт pdf_report_builder.py конвертирует markdown (файл или stdin) в HTML (pandoc или встроенный конвертер) и далее в PDF первым доступным движком: Chromium/Chrome headless --print-to-pdf, weasyprint или pandoc с PDF-движком (pdflatex/tectonic/typst). Поддержка заголовков, списков, таблиц, кода, цитат, ссылок, кастомный заголовок документа, встраивание графиков (Chart.js). Триггеры: 'отчёт в pdf', 'markdown в pdf', 'собери отчёт', 'pdf report', 'markdown to pdf', 'отчёт для клиента', 'document to pdf'.
- Installs packages
In this repository59 other files it gives its agents.
- skills/chronos/references/AGENTS.mdAGENTS.md
- api-contract-testingSkill
- api-doc-generatorSkill
- canonSkill
- censorSkill
- changelog-generatorSkill
- chronosSkill
- code-reviewSkill
- commit-lintSkill
- commit-message-writerSkill
- coverage-analyzerSkill
- csv-proSkill
- data-analysisSkill
- deweySkill
- diagram-makerSkill
- doc-compareSkill
- docs-productSkill
- docs-projectSkill
- docs-systemSkill
- dsh-runnerSkill
- frontend-a11ySkill
- frontend-design-tasteSkill
- frontend-perfectionSkill
- frontend-performanceSkill
- frontend-testingSkill
- github-repo-hygieneSkill
- long-running-agent-workflowSkill
- mermaid-to-imageSkill
- mobile-frontendSkill
- plan-skillSkill
- prd-to-appSkill
- presentation-craftSkill
- presentation-engineeringSkill
- presentation-makerSkill
- raster-to-svgSkill
- reddit-karmaSkill
- repo-community-filesSkill
- repo-metadata-healthSkill
- repo-readme-assetsSkill
- repo-social-previewSkill
- secret-scannerSkill
- security-reviewSkill
- seo-auditSkill
- seo-contentSkill
- seo-crawlSkill
- seo-schemaSkill
- seo-toolkitSkill
- skill-feedbackSkill
- skill-forgeSkill
- skill-suggesterSkill
- sql-helperSkill
- systematic-debuggerSkill
- test-generatorSkill
- test-graphicsSkill
- velesSkill
- version-bumperSkill
- video-script-writerSkill
- web-replicationSkill
- web-scraperSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 2 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 23
Use this skill when:
- Distinctive: line 29
Do NOT use when:
- Very specific: line 84
Do not use for slide decks or presentation design.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
PDF Report Builder
Сборка PDF-отчёта из Markdown-файла: заголовки, таблицы, код, цитаты — в аккуратный одностраничный PDF.
Загружай этот скилл когда нужно сделать PDF-документ из Markdown: отчёт по проекту, README в PDF, спецификацию, чек-лист для клиента, экспорт документации вне GitHub.
🎯 When to use
Use this skill when:
- Есть
.md-файл и нужен PDF (отчёт, README, спецификация, сопроводительное письмо) - Нужно отправить документ клиенту/коллеге в печатном формате
- Просят «сделай отчёт в pdf», «markdown в pdf», «собери документ»
- Нужен PDF с графиками (встраивает Chart.js в HTML перед конвертацией)
Do NOT use when:
- Достаточно HTML — проще отдать
.mdили github-rendered страницу - Нужна презентация — это
presentation-maker - Нужна интерактивная диаграмма — это
diagram-maker/data-analysis
📦 Files
SKILL.md— этот файлscripts/pdf_report_builder.py— конвертер markdown → PDF (Python 3 stdlib)
🧰 Usage
# Из файла:
python3 skills/pdf-report-builder/scripts/pdf_report_builder.py -i report.md -o report.pdf --title "Project Report"
# Из stdin (пайплайн):
cat notes.md | python3 pdf_report_builder.py --stdin -o notes.pdf --title "Notes"
# Markdown с графиками → PDF:
# 1. Сгенерируй HTML с графиками через data-analysis --output html
# 2. Конвертируй HTML в PDF через pdf-report-builder
python3 skills/pdf-report-builder/scripts/pdf_report_builder.py -i report.html -o report.pdf --title "Отчёт с графиками"🧭 Движки (по приоритету)
- Chrome/Chromium/Edge headless —
--headless --print-to-pdf(обычно стоит на macOS) - weasyprint —
python3 -m pip install weasyprint - pandoc + PDF-движок —
pdflatex/tectonic/typst/context
Если ни одного нет — скрипт печатает подсказку по установке и завершается с кодом 1.
Разметка отрисовывается через pandoc (если установлен) или встроенный конвертер
(заголовки, списки, таблицы, код, цитаты, ссылки).
📊 Встраивание графиков
Для PDF с графиками используй пайплайн:
data-analysis --output html— генерирует HTML с Chart.js графикамиpdf-report-builder -i report.html -o report.pdf— конвертирует в PDF
HTML-отчёт автоматически включает:
- Гистограммы для числовых полей
- Bar charts для категорий
- Scatter plots для корреляций
- Монохромную палитру (или porcelain/palm через
--preset)
🔬 Проверка результата
file out.pdf→ «PDF document, version 1.4»- Открыть в просмотрщике и проверить: заголовки, таблицы, код-блоки, графики не обрезаны.
- Для кириллицы: шрифт по умолчанию без проблем (системный), размер страницы A4 по умолчанию.
Boundaries
- Do not use for slide decks or presentation design; use
presentation-maker.
Evidence and completion gate
Run the documented command against the user’s actual input. Report the command, exit status, files changed or produced, and relevant stdout/stderr. Separate blocked or pre-existing failures from failures introduced by the current work. Do not call the result complete when the script was only described or when an artifact was not reopened and checked.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

