maroto-pdf

maroto-pdf is a skill for Claude Code, Codex from johnfercher/maroto. It costs 76 tokens per session (736 once invoked), scanned A, original, MIT.

A guide to generating PDF files from Go programs with the Maroto library. It covers page setup, layouts, text, images, codes, signatures, tables, and tests.

In plain words
What is it for?
Use it to build invoices, reports, certificates, and other PDFs, including tables, page breaks, QR codes, barcodes, and layout tests.
Why use it?
It removes the need to work out the library's setup and layout patterns from scratch when producing PDFs in Go.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Claude Code; mentions Codex.

Good fit Use it to build invoices, reports, certificates, and other PDFs, including tables, page breaks, QR codes, barcodes, and layout tests.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/johnfercher/maroto/maroto-pdf
About the project

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.

johnfercher/maroto · 2,767 stars · on GitHub · maroto.tech

Install

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.

Any agent
npx skills add johnfercher/maroto --skill maroto-pdf
Clone the repo
git clone --depth 1 https://github.com/johnfercher/maroto

Made for: Claude Code, Codex.

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 maroto-pdf

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

agentmods 80×15 button for maroto-pdf

Your own site · 80×15
<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>
Per session 76 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 736 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.00076 $0.00736
Opus 5.5 $0.00030 $0.00294
Sonnet 5.5 $0.00015 $0.00147
Haiku 4.5 $0.00008 $0.00074

Measured 9d ago against content hash 52470a8264da, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

skills/maroto-pdf/SKILL.md · 51 lines

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

  1. Copy the whole skills/maroto-pdf/ folder into your project, in the directory your agent loads skills from — the folder name must stay maroto-pdf, matching the name in the frontmatter above. The agent then discovers SKILL.md and 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/
    
  2. Each file links to the others for the decisions it doesn't cover.

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

Read the full file on GitHub · 51 lines

Files

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.

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. 9d ago First seen · 51 lines · 76 tokens per session scan A 52470a8264da

Subscribe to this mod's changes

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.