maroto: Instructions file for Codex

AGENTS.md

maroto AGENTS.md is an instructions file for Codex, OpenCode from johnfercher/maroto. It costs 1,217 tokens per session, scanned A, original, MIT.

Repository instructions for AI coding tools working on the Maroto Go project. They describe required skills, dependencies, quality checks, and the definition of finished work.

In plain words
What is it for?
For contributing to Maroto, including writing tests, generating mocks, reviewing Go code, and validating changes before a pull request.
Why use it?
They help an agent follow the project's rules instead of guessing how to test, format, lint, or prepare changes.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md.

This is johnfercher/maroto's own configuration. It tells Codex and OpenCode how to work on maroto itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything maroto configures →

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,780 stars · on GitHub · maroto.tech

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/johnfercher/maroto/master/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/johnfercher/maroto

Made for: Codex, OpenCode.

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 AGENTS.md

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

agentmods 80×15 button for maroto AGENTS.md

Your own site · 80×15
<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>
Per session 1,217 This file is loaded in full into every session.
When invoked 1,217 The same file — it is already loaded in full.
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.01217 $0.01217
Opus 5.5 $0.00487 $0.00487
Sonnet 5.5 $0.00243 $0.00243
Haiku 4.5 $0.00122 $0.00122

Measured 1mo ago against content hash 34e960d8ac91, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

AGENTS.md · 73 lines

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

Read the full file on GitHub · 73 lines

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. 1mo ago Changed · +23 lines · +549 tokens per session 34e960d8ac91
  2. 2mo ago First seen · 50 lines · 668 tokens per session scan A 563224e01b1a

Subscribe to this mod's changes

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.

Related

maroto AGENTS.md compared with instructions from other repositories

maroto AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
maroto AGENTS.mdjohnfercher/marotoInstructions file2.8k15d agoMITA1,217Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode