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/github.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/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 printer-xml

Your own site · 80×15
<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="Reviewed on agentmods" width="80" 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.5 $0.00045 $0.02824
Sonnet 5.5 $0.00022 $0.01412
Haiku 4.5 $0.00011 $0.00706

Measured 1mo ago against content hash ada5ea5dc1a8, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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. 1mo 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 6mo ago), licensed MIT. It adds 112 tokens to every session and 7,060 once invoked, about $0.0004 per session on Opus 5.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.

Related

Other skills, from other repositories

apify-youtube-transcript-scraper

Get YouTube captions, timestamped quotations, SRT/VTT and translated transcripts for videos, channels and playlists through the harshmaur/youtube-transcript-scraper Apify Actor.

sickn33/agentic-awesome-skills · 48 tokens

foundry-hosted-agent-validation

Step-by-step process for validating a Python Foundry hosted agent sample (under python/samples/04-hosting/foundry-hosted-agents/) end to end — running it locally (native runtime and azd ai agent run) and after deploying it to an Azure AI Foundry project with azd. Use this when asked to validate a hosted agent sample.

microsoft/agent-framework · 82 tokens

skill-doc-delivery

Convert markdown to DOCX, PPTX, XLSX, PDF office documents — use when you need exportable deliverables.

nyldn/claude-octopus · 29 tokens

meta-web-to-pdf-briefing

Render a topic into a distributable PDF briefing in three steps: web search → bullet summary → styled PDF. Trigger when the user asks for a PDF briefing on a single topic.

opensquilla/opensquilla · 45 tokens

pkf-writing

Author, update, convert, validate, persist, and render PKF (.pkf) content through message-inline, Library Asset, or Memory Page carriers. Use for structured reports, knowledge pages, delivery cards, or any .pkf body. NOT for recall, memory-graph placement, or curation decisions — those belong to the memory skill.

Prismer-AI/PrismerCloud · 78 tokens

chat-complex-documents

Chat with and search your complex documents — ask questions, extract tables and fields, and get answers grounded in the source. Connects the hosted Unstructured Transform MCP server to parse, structure, and enrich PDFs, Word/Excel/PowerPoint, images, scanned files, emails, and 60+ other formats into clean, AI-ready…

vellum-ai/vellum-assistant · 90 tokens