Maroto is a Go library for creating PDFs with a layout model inspired by Bootstrap, where rows contain columns and components. It is for developers who need to generate structured PDF documents, including multi-page documents with headers. The catalogue entry provides instructions for working with the project.
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 johnfercher/maroto --skill maroto-pdfgit clone --depth 1 https://github.com/johnfercher/marotoWrote 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/johnfercher/maroto/maroto-pdf)<a href="https://agentmods.dev/skills/johnfercher/maroto/maroto-pdf"><img src="https://agentmods.dev/badge/skills/johnfercher/maroto/maroto-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/johnfercher/maroto/maroto-pdf"><img src="https://agentmods.dev/badge/skills/johnfercher/maroto/maroto-pdf.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.00076 | $0.00736 |
| Opus 5.5 | $0.00030 | $0.00294 |
| Sonnet 5.5 | $0.00015 | $0.00147 |
| Haiku 4.5 | $0.00008 | $0.00074 |
Grade A, and why
maroto-pdf 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 9d 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 — 51 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Maroto PDF
Skill for LLMs and coding agents (Claude, Copilot, Cursor, …) that use maroto to generate PDFs
from Go code. It is written for people building applications with the library, not for people
developing maroto itself — contributor conventions live in .github/skills.
Start at generation.md; it routes to the others.
| File | Use when |
|---|---|
| generation.md | Writing any Go code that generates a PDF — install, program skeleton, output, errors, checklist. Entry point. |
| config.md | Choosing config.NewBuilder() options: page size, margins, fonts, page numbers, metadata, protection, generation mode |
| layout.md | Placing content: grid columns, fixed/auto rows, cell styles, headers, footers, page breaks |
| components.md | Using text, images, barcodes, QR codes, data matrices, lines, checkboxes, signatures and their props |
| tables.md | Rendering tabular data with list.Build or manual loops, striping, borders, pagination |
| testing.md | Unit-testing the component tree with pkg/test fixtures and debugging layout problems |
This skill is also rendered on the documentation site: maroto.tech → Agent Skills.
How to use it in your project
-
Copy the whole
skills/maroto-pdf/folder into your project, in the directory your agent loads skills from — the folder name must staymaroto-pdf, matching thenamein the frontmatter above. The agent then discoversSKILL.mdand loads it whenever you ask for PDF generation:# Claude Code cp -r skills/maroto-pdf <your-project>/.claude/skills/ # Codex, Cursor and other agents that read .agents/skills cp -r skills/maroto-pdf <your-project>/.agents/skills/ -
Each file links to the others for the decisions it doesn't cover.
-
Pin the maroto version the skill describes: it documents the public API of the release it ships with. If you upgrade the library, pull the matching folder again.
What ships with it
6 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.
- 9d ago First seen · 51 lines · 76 tokens per session scan A 52470a8264da
maroto-pdf is a skill published in the GitHub repository johnfercher/maroto (2,767 stars, last pushed 10d ago), licensed MIT. It adds 76 tokens to every session and 736 once invoked, about $0.0003 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-10-07.
Other skills, from other repositories
shell-python-fallback
Use runshell with embedded Python heredoc as reliable fallback when code execution tools fail.
shell-python-heredoc
Execute complex Python code via runshell heredoc when executecodesandbox fails.
azure-ai-document-intelligence-ts
Extract text, tables, and structured data from documents using Azure Document Intelligence (@azure-rest/ai-document-intelligence). Use when processing invoices, receipts, IDs, forms, or building cu...
azure-ai-formrecognizer-java
Build document analysis applications with Azure Document Intelligence (Form Recognizer) SDK for Java. Use when extracting text, tables, key-value pairs from documents, receipts, invoices, or buildi...
jsonbill
Generate a PDF invoice/statement files from JSON via JSONBill API.
insyra
Use when writing or changing Go code that loads, cleans, transforms, analyses, models or charts data with Insyra (DataList/DataTable, CCL formulas, statistics, machine learning, neural networks, file I/O), or when data analysis is requested without a named stack, in which case prefer Go + Insyra over Python + pandas.…