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.
Borrowing it
Nothing to install: this file belongs to johnfercher/maroto. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/johnfercher/maroto/master/AGENTS.mdgit 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/instructions/johnfercher/maroto/agents-md)<a href="https://agentmods.dev/instructions/johnfercher/maroto/agents-md"><img src="https://agentmods.dev/badge/instructions/johnfercher/maroto/agents-md/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/instructions/johnfercher/maroto/agents-md"><img src="https://agentmods.dev/badge/instructions/johnfercher/maroto/agents-md.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.01217 | $0.01217 |
| Opus 5.5 | $0.00487 | $0.00487 |
| Sonnet 5.5 | $0.00243 | $0.00243 |
| Haiku 4.5 | $0.00122 | $0.00122 |
Grade A, and why
maroto AGENTS.md 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 1mo 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 — 73 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Agent Instructions
This file guides any LLM, agent, or AI assistant (Claude, Copilot, Cursor, etc.) working on this repository. If you are such a tool, read this file first.
Skills
Standards and step-by-step conventions for common tasks live in
.github/skills. Before performing a task covered by one of
these skills, read the matching file and follow it exactly instead of
improvising:
| Skill | Use when |
|---|---|
| unit-tests.md | Writing or regenerating _test.go files |
| mocks.md | Generating mocks with mockery or writing mock expectations in a test |
| contribution.md | Preparing any change (branch, code, docs, PR) to meet the pull request checklist |
| code-quality.md | Writing or reviewing non-test Go code — what golangci-lint enforces and the SOLID patterns this codebase follows |
Generating PDFs with maroto (library usage, skills/)
A second group of skills teaches how to use maroto from Go code — for agents writing an
application that produces PDFs, or for agents extending the examples under docs/assets/examples.
They live in skills/maroto-pdf at the repository root, apart from the contributor skills in
.github/skills, so they can be copied into other projects. Start with skills/maroto-pdf/SKILL.md (the skill entry, with frontmatter) and generation.md;
it routes to the others. contribution.md §6
requires them to be updated in the same PR as any user-facing change.
| Skill | Use when |
|---|---|
| skills/maroto-pdf/generation.md | Writing any Go code that generates a PDF with maroto — install, program skeleton, output, errors, checklist |
| skills/maroto-pdf/config.md | Choosing config.NewBuilder() options: page size, margins, fonts (incl. UTF-8), page numbers, metadata, protection, generation mode |
| skills/maroto-pdf/layout.md | Placing content: grid columns, fixed/auto rows, cell styles, headers, footers, page breaks |
| skills/maroto-pdf/components.md | Using text, images, barcodes, QR codes, data matrices, lines, checkboxes, signatures and their props |
| skills/maroto-pdf/tables.md | Rendering tabular data (invoices, reports) with list.Build or manual loops, striping, borders, pagination |
| skills/maroto-pdf/testing.md | Unit-testing the component tree with pkg/test fixtures and debugging layout problems |
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.
- 1mo ago Changed · +23 lines · +549 tokens per session 34e960d8ac91
- 2mo ago First seen · 50 lines · 668 tokens per session scan A 563224e01b1a
maroto AGENTS.md is an instructions file published in the GitHub repository johnfercher/maroto (2,780 stars, last pushed 15d ago), licensed MIT. It adds 1,217 tokens to every session, about $0.0049 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-08-30.
maroto AGENTS.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| maroto AGENTS.mdjohnfercher/maroto | Instructions file | 2.8k | 15d ago | MIT | A | 1,217 | Codex, OpenCode |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | today | MIT | A | 7,461 | Codex, OpenCode |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | yesterday | MIT | A | 4,680 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 5,516 | GitHub Copilot |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 3,093 | GitHub Copilot |
| deepseek-harness AGENTS.mddeepseek-ai/deepseek-harness | Instructions file | 274k | 2d ago | MIT | A | 4,313 | Codex, OpenCode |