/fathom:pdf [what to print]from fathom
This skill should be used when the user wants a PDF to share with people who can't open the original, such as "/fathom:pdf", "make a PDF of this view", "export this artifact to PDF", "turn this into a one-pager", "I need to send this to someone without Claude", or "print this page". Prints a fathom view, a claude.ai artifact, a local HTML page, or what was just said in chat to a PDF that fits one US Letter page by default, condensing or paginating when it doesn't fit. For reading, merging, splitting, or filling existing PDFs, use a general PDF tool instead.
Ships in fathom. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
PDF is a format: the one that opens for everyone. An artifact opens only for people with a Claude license, and a view in a repo only for people with the repo, so this skill turns the page into one a reader can get as an email attachment, a ticket attachment, or a chat file. The default is a one-pager, the shape a reader without the original context will actually read.
Use the most recent view or artifact in the conversation unless the arguments name something else.
| Source | Get HTML to print |
|---|---|
A fathom view (an HTML file stamped <meta name="fathom-version">) | The path fathom views <record dir> --path <view name> prints, which is the view's latest render, printed with --record <its record dir>. Don't build the path from the version: a re-save at the same version writes v<N>-2.html beside v<N>.html |
| An artifact published in this session | The local .html file it was published from |
| A claude.ai artifact URL | Artifact action: "read"; it saves the full HTML locally and names the path. Copy it into the scratchpad as artifact.html, the file you print and pass to --links-from. For a multi-file artifact, fetch the published files the page references with paths into the same folder, and each uploaded asset (an image or font the page loads by an asset address) with its own path call, using the address exactly as the page shows it; paths can't read uploads. A read of someone else's artifact returns a summary rather than HTML: say it can't be printed faithfully and offer a one-pager written from the summary |
| A Claude Docs link | Not this skill: export it with the Docs connector's export to PDF, which keeps the doc's own layout |
| A reply, plan, or summary from the chat | Write a one-pager (step 4), then render it |
A local .html file or a URL | Use it as is |
| Argument | Script flag |
|---|---|
| (none) | one US Letter page, portrait |
a4 | --paper a4 |
landscape | --landscape |
pages: <n> | --pages <n> |
full, as-is, all pages | --paginate: 100% scale, as many pages as it takes |
one-pager, one page, summary | the user already chose condensing: on overflow, go straight to step 4 without asking |
fancy, polished, dress it up | the report style (step 4, Style), even when the page would print as is |
| an output path | the <out.pdf> argument |
Write the PDF to ~/Downloads/<slug>.pdf, where the slug is the page's
<title> in kebab-case, unless the user names a path; Downloads is where
they'll pick it up to attach it. When producing both a one-pager and the full
document, the full one gets a -full suffix.
The script prints in the light color scheme with print media, opens every
<details>, and injects assets/print.css: white paper, no screen padding, no
reading-width cap, tables unboxed from their scroll containers and allowed to
wrap code, no rows split across pages. Read the HTML for what that can't fix,
and write those overrides to a stylesheet in the scratchpad passed with
--css:
height,
position, and min-height so they take their natural size.The page's own stylesheet often sits later in the document than the injected
one, so an override needs !important to win.
A page whose purpose is interaction (a form, a calculator, a game) has nothing to print. Say so and offer a one-pager that describes what it does.
Used for chat sources, for condensing a page that doesn't fit, for fancy, and
for a summary-only source.
A fathom view condenses from the record, not from the view. Rewriting a
view into a shorter one makes a document from a document, which is how two
copies of a fact start to drift. Render a new view with /fathom:render, from
the same record version, with a brief whose verbosity is one page (the kind's
status brief, or one the user names), then print the path its fathom save
reported. Everything below about
writing the page still applies; the facts come from fathom show, and every one
carries its citation.
For any other source, copy assets/one-pager.html into the scratchpad as
<slug>.html and fill it. Many artifacts build their page with a script from an
embedded data object (const DATA = {…}). Read the numbers from that object with
a short script rather than from the rendered text: it holds the item-level data
the per-row comparisons need. Run it with python3 -I and keep it out of the
folder holding the artifact.
What the user asked for earlier in the conversation outranks every default below. A request made while the page was being built ("link the pipelines", "show which tests changed", "keep it to the decision") still holds when the user asks for the PDF, even though it isn't in the arguments. Reread the conversation for them before condensing.
Design the page before filling the template. Load
/frontend-design:frontend-design, then plan the layout around the shape the
content already has: a chain of steps reads as a row of linked cards, each
carrying what ties it to the one before; a before and after reads as two
columns; counts read as a proportion bar rather than a table. Give the page one
memorable element and keep the rest quiet. The template is a kit of parts, not a
layout. A page laid out only to fit comes out cramped: lopsided columns, labels
wrapping in narrow table cells, nothing that tells the eye where to start. The
rules below say what goes on the page; the plan says where it goes.
git config user.name) when the content is their work.warn or bad only when the answer itself
is bad news..why),
next to its numbers, instead of a counts table plus a separate section
restating the categories./fathom:record), never onto the page.orders-api (before | after)). When a full PDF goes alongside, end with a
footer naming it as where the dropped detail lives.Style. Who reads the page decides it:
| Keep the source's style (default) | fancy |
|---|---|
| The user's team, the thread the page came from | Leadership, another team, an auditor, a ticket attachment |
| A working update or progress snapshot | A verdict or decision: a sign-off, an assessment, an incident summary |
| A source with a look worth keeping (its charts, its colors) | A source whose look is plain or built for a screen |
Use fancy only when the arguments ask for it. When the page delivers a
verdict, or the user names a reader from the right-hand column, render the
default and offer the fancy version in the report.
A page written from a source without fancy keeps the source's look: copy its
font <link> tags, set the template's tokens (--body, --mono, --display,
--fg, --muted, --rule, --accent, --good/--bad) from its light theme,
match its headings, and keep its signature elements (a pill, an eyebrow line, its
chart colors). A page written from chat uses the template's tokens as they are.
With fancy, render with --css ${CLAUDE_PLUGIN_ROOT}/skills/pdf/assets/fancy.css --margin 0: a dark header band with a metadata grid, serif headings, dark table
heads, and status pills. Fill the template's eyebrow, metadata grid (source,
date, author, a tracking link when there is one), verdict box, cards, and
conclusion box. Put a sensitivity label in the footer only when the user or the
source names one.
The record version goes in the footer only. For a fathom view, keep the
view's "Rendered from <record title> v<N> for <audience>" line as the
small footer at the end of the page (the foot of the last page when it
paginates), never in the H1, the eyebrow, or the metadata grid, in either
style.
uv run --script ${CLAUDE_PLUGIN_ROOT}/skills/pdf/scripts/to-pdf.py <page.html | url> <out.pdf> --preview <scratchpad>/preview [flags]
For a fathom view, add --record <dir>: the script runs fathom check on the
view first and prints nothing when it fails. A PDF reaches whoever it's sent
to, so before printing a view, ask who that is when the user hasn't said, and
when they are wider than the view's fathom-visibility stamp, render the view
again at that visibility (/fathom:render) instead of printing this one. When
the page is a one-pager written from an artifact, add --links-from <artifact.html>: the script reports
how many of its links the PDF kept, naming the ones it lost. Put each missing
link back unless the readers can't open it.
A layout fits when it lands on the page budget with nothing past the right
margin. The script renders real PDFs and counts their pages, picking the largest
scale between --min-scale (75% by default, the smallest that still reads
comfortably) and 100% that fits. Its first run downloads its Python packages
into uv's cache; it prints with the installed Google Chrome.
| Exit | Meaning | Do |
|---|---|---|
| 0 | Written; stdout names pages, scale, link count, path, and the preview PNGs | Step 6, after restoring any missing link the readers can open |
| 3 | Too many pages at the floor; stdout gives the page count at 100% and at 75% | Handle the overflow (below) |
| 4 | Content runs past the right margin; stdout names the widest elements | Write --css that wraps or narrows them, or rerun with --landscape when it's one wide table |
| 5 | A fathom view failed its check, or has no --record | Fix the view (or the record) with /fathom:render; never print around it |
| 1 | Chrome, uv, or the page failed to load | Report the error as printed |
Overflow. Take the first row that matches:
--margin 0.3in, or --landscape when a wide table
is what grows the page. If neither fits, go to 3.AskUserQuestion. Offer a condensed
one-pager (name what it leaves out), the full document (--paginate, giving
its page count), or both.Fit a one-pager by layout before scale. A page you wrote should print at 95%
or more. At 90% or more, tighten (shorter lede, table padding, one-line rows);
below 90%, restructure (move or merge sections, fold a list into a table's rows,
collapse rows that say the same thing). Cut content only after the layout has no
slack left, and never lower --min-scale.
When the script warns that the H1 wraps, shorten the H1 and rerender.
Read the preview PNGs before reporting. A render can succeed and still be wrong:
a chart that drew blank because its script failed, text clipped inside a
fixed-height box, a dark panel that ignored the light theme. Fix it with --css
or in the one-pager and rerender.
A page that fits can still read badly. For a page written in step 4, judge the preview's design as well as its fit:
print.css wraps every pre, so a command block
needs white-space: pre !important and a font size its longest line fits in.Fix what fails and rerender until every one passes.
Report in a few lines: each file as a link ([name.pdf](file:///full/path))
with its page count and scale, for a condensed page what it left out, for a
fathom view the record version, audience, and visibility it was stamped with, any number in
the source that its own data contradicts, and the offer of a fancy version when
the Style table points there.
scripts/to-pdf.py: render, fit, check width, gate fathom views on their
check, and write previews. --help lists every flag.assets/print.css: the print overrides injected into every page.assets/one-pager.html: the print-first template for step 4, sized in
points for Letter and A4.assets/fancy.css: the fancy style.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
Generated from the plugin's indexed repository (chris-peterson/fathom) — no native marketplace selected
npx claudepluginhub p/chris-peterson-fathom7 skills in this plugin
/compactThis skill should be used when a fathom record has grown past what its readers need and should be pruned, such as "/fathom:compact", "compact the record", "clean up the record", "prune facts that no longer matter", "these facts are stale, remove them", or when a fathom hook reports that the conversation was compacted and names records to compact. Finds facts that are wrong, duplicated, or no longer relevant, groups them by theme, and retracts only what the user confirms, theme by theme, never on its own judgment./proofRule a claim true or false, with sources and how each is known. Triggers on 'are you sure?', 'prove it', 'source?'. When the session keeps a fathom record, the ruling goes into the record./recordThis skill should be used when the user is gathering the facts of a piece of work (an incident, an investigation, a migration, a test campaign) and wants them kept in one place every document can be rendered from, such as "/fathom:record", "start a record for this incident", "add this to the record", "here's the audit log export", "what does this change in the timeline", "keep track of what we know", or when the user pastes a blob of evidence (a log export, a chat transcript, an API dump) into a session that already has a fathom record. Extracts what's new, records each fact with its certainty and basis, and surfaces contradictions instead of silently revising./renderThis skill should be used when the user wants a document made from a fathom record, for one reader, such as "/fathom:render", "write this up for managers", "render the analysis", "make the RCA page", "an explainer for the product team", "a postmortem draft", "render all the views", or "re-render as of the latest version". Renders a view from the record as of a version, an audience brief, a format, and a style; cites every fact, stamps the version and audience, and runs fathom check before the view is published./slackThis skill should be used when the user wants something from the session shared in Slack, such as "/fathom:slack", "copy to Slack", "post this in Slack", "write this up for the channel", "copy the transcript for Slack", "summarize this for the team", or "explain this in Slack for a non-technical audience". Rewrites the last reply (or the transcript, a paste, or what the arguments name) for Slack's composer, withholds what the channel's readers may not see, converts it to Slack markup, and copies it to the clipboard./wtfRedo what you just said so the user can read it, and quietly stop doing whatever made it unreadable. Modes combine — 'wat' unintelligible, 'wall' too long, 'eli' too advanced, 'ste' Simplified Technical English — and a percentage dials down the length. Bare invocation means diagnose all four yourself, with the patience gone.