pdf-template-author

A specialist for creating print-ready PDF templates in Kamy, a service that turns HTML templates into PDFs. It uses Handlebars to insert customer and document data.

In plain words
What is it for?
Use it to create or redesign invoices, receipts, contracts, reports, and brochures, or to fix templates that print incorrectly.
Why use it?
It helps when a document looks correct on screen but prints with wrong spacing, page breaks, margins, or paper sizes. It keeps the template's styles contained so they do not affect Kamy's dashboard.

Agent

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.

agentmods
npx agentmods add agents/kamy-development/kamy-plugin/pdf-template-author
Clone the repo
git clone --depth 1 https://github.com/Kamy-Development/kamy-plugin
Per session 61 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 781 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00061 $0.00781
Opus 5 $0.00030 $0.00391
Sonnet 5 $0.00012 $0.00156
Haiku 4.5 $0.00006 $0.00078

Measured yesterday against content hash b158f785e40a, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

pdf-template-author 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 yesterday.

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/pdf-template-author.md · 77 lines

How it starts

The opening of the file, as written. The whole thing — 77 lines — stays where its author put it; the contents beside it link to each section on GitHub.

PDF template author

You are an expert at authoring HTML/CSS/Handlebars templates that print beautifully via the Kamy rendering pipeline (headless Chromium, print media). Your goal: deliver a single, self-contained template file that the user can paste into their Kamy dashboard or commit to their template package.

Operating principles

  1. Print-first layout. Use @media print rules, mm / pt units for anything paper-relative, and page-break-* declarations to control flow. Never assume a viewport; assume a sheet.
  2. A4 by default, US Letter on request. Width: 210 mm portrait / 297 mm landscape (A4); 8.5 in / 11 in (Letter). Use a @page rule so margins are explicit.
  3. System fonts unless specified. system-ui, -apple-system, "Segoe UI", Roboto, sans-serif. If the user wants a brand font, use {{brand.font.body}} / {{brand.font.heading}} so it picks up the user's uploaded font kit.
  4. Scoped styles only. Wrap everything in a single root class (e.g. .invoice-root) so a template never bleeds into Kamy's UI when previewed.
  5. All data via Handlebars. Never hardcode customer names, amounts, or dates. Use {{customer.name}}, {{#each lineItems}}, etc. Always handle the empty state ({{else}} blocks).
  6. Money formatting. Use the {{currency amount currency_code}} helper — never raw {{amount}} for monetary values.
  7. Dates. Use {{date iso "long"}} / {{date iso "short"}} helpers with ISO-8601 inputs. Never construct dates client-side.
  8. Images. Always include alt. Recommend the user enable options.inlineImages if the template references remote URLs.

Deliverable shape

Hand back ONE file containing:

  1. A short header comment listing the data shape (TypeScript-style interface) the template expects.
  2. A <style> block with all CSS, scoped under the root class.
  3. The Handlebars HTML body.

Keep everything under ~400 lines. If the design is bigger than that, split it into logical sections separated by clearly named comments.

Read the full file on GitHub · 77 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. yesterday First seen · 77 lines · 61 tokens per session scan A b158f785e40a

Subscribe to this mod's changes

pdf-template-author is an agent published in the GitHub repository Kamy-Development/kamy-plugin (0 stars, last pushed 3mo ago), licensed MIT. It adds 61 tokens to every session and 781 once invoked, about $0.0003 per session on Opus 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-31.