printer-xml

printer-xml is a skill for Claude Code from levi-qiao/sherlock-claude. It costs 112 tokens per session (7,060 once invoked), scanned B, original, MIT.

An XML template guide for creating PDFs with the Printer-X format. The XML controls page layout, data, images, conditions, repeated sections, and scripts before the PDF rendering service produces the final document.

In plain words
What is it for?
Use it to create or edit PDF templates such as proposals, reports, or other documents with fixed layouts and dynamic content.
Why use it?
It gives developers a defined way to turn structured data into precisely positioned PDF documents. It is useful when a normal HTML page is not the input format required by the rendering service.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the anthropics-file-generation plugin — 9 skills shipped together

Good fit Use it to create or edit PDF templates such as proposals, reports, or other documents with fixed layouts and dynamic content.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/levi-qiao/sherlock-claude/printer-xml
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 levi-qiao/sherlock-claude --skill printer-xml
Clone the repo
git clone --depth 1 https://github.com/levi-qiao/sherlock-claude

Made for: Claude Code.

Or install anthropics-file-generation, the plugin that ships this one along with the rest of its 9 skills.

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 printer-xml

README.md
[![agentmods](https://agentmods.dev/badge/skills/levi-qiao/sherlock-claude/printer-xml.svg)](https://agentmods.dev/skills/levi-qiao/sherlock-claude/printer-xml)
Your own site
<a href="https://agentmods.dev/skills/levi-qiao/sherlock-claude/printer-xml"><img src="https://agentmods.dev/badge/skills/levi-qiao/sherlock-claude/printer-xml.svg" alt="Measured on agentmods" height="20"></a>
Per session 112 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 7,060 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. 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.00112 $0.07060
Opus 5 $0.00056 $0.03530
Sonnet 5 $0.00022 $0.01412
Haiku 4.5 $0.00011 $0.00706

Measured 8d ago against content hash ada5ea5dc1a8, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade B, and why

printer-xml scanned grade B with 1 finding 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 8d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/extract_pdf_pages.py, scripts/validate_xml.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Unrestricted tool accessmediumExcessive agency

A wildcard tool grant or "run any command" leaves no least-privilege boundary at all.

### `<script>` — Execute arbitrary script code
plugins/anthropics-file-generation/skills/printer-xml/SKILL.md · 677 lines

How it starts

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

Printer-X XML Template Guide

This guide covers how to write XML templates for the gaia-printer-x PDF rendering engine. The engine parses the XML, evaluates expressions, runs scripts, and renders each element onto a PDF page.

Document Structure

Every template has three top-level sections inside the root element. The root element name is arbitrary (e.g., <proposal>, <document>, <report>).

<proposal>
    <!-- 1. Font mappings -->
    <font_mapping>
        <font name="arial"   value="ARIAL"/>
        <font name="arialbd" value="ARIALBD"/>
        <font name="tahoma"  value="TAHOMA_EPOS"/>
        <font name="hei"     value="SIMHEI"/>
    </font_mapping>

    <!-- 2. Page definitions -->
    <page_setting>
        <page name="A4" size="epos_A4" x="0" y="0" width="2100" height="2970">
            <!-- Optional page template (background applied to every paragraph using this page) -->
            <template x="0" y="0" width="2100" height="2970">
                <image src="'bg.jpg'" x="0" y="0" width="2100" height="2970"/>
            </template>
        </page>
    </page_setting>

    <!-- 3. Content paragraphs (one per page) -->
    <paragraph page="A4">
        <!-- elements -->
    </paragraph>

    <paragraph page="A4">
        <!-- elements for second page -->
    </paragraph>
</proposal>

Page Sizes

Size name Width × Height (units) Notes
epos_A4 2100 × 2970 Standard A4
A4 2100 × 2970 Same as epos_A4
A4Rotate 2970 × 2100 A4 landscape
A3 2970 × 4200 A3 portrait
epos_A4Rotate 2970 × 2100 A4 landscape variant

1 unit ≈ 0.1 mm. A4 at 2100 wide means 210 mm wide.

Elements Reference

<text> — Render text

<text x="100" y="200" width="800" height="50"
      font="arial" font_size="28" color="black"
      bold="true" align="center"
      value="value.userName"/>

Read the full file on GitHub · 677 lines

Files

What ships with it

3 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. 8d ago First seen · 677 lines · 112 tokens per session scan B ada5ea5dc1a8

Subscribe to this mod's changes

printer-xml is a skill published in the GitHub repository levi-qiao/sherlock-claude (6 stars, last pushed 4mo ago), licensed MIT. It adds 112 tokens to every session and 7,060 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it B with 1 finding (unrestricted tool access). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.