From hp5200-printer
Create a document according to user's instructions, format it with Typst, and print to the HP DeskJet 5200 network printer. Use when the user asks to create and print a document, make a printout, print a letter, create something for printing, or says 'print this'.
npx claudepluginhub danielrosehill/claude-code-plugins --plugin hp5200-printerThis skill uses the workspace's default tool permissions.
Create a formatted document from the user's instructions using Typst, then send it to the local HP DeskJet 5200 printer.
Guides Next.js Cache Components and Partial Prerendering (PPR): 'use cache' directives, cacheLife(), cacheTag(), revalidateTag() for caching, invalidation, static/dynamic optimization. Auto-activates on cacheComponents: true.
Guides building MCP servers enabling LLMs to interact with external services via tools. Covers best practices, TypeScript/Node (MCP SDK), Python (FastMCP).
Share bugs, ideas, or general feedback.
Create a formatted document from the user's instructions using Typst, then send it to the local HP DeskJet 5200 printer.
The CUPS queue name is HP-DeskJet-5200 by default (set up by the find-printer skill). If the user has a different queue name, substitute it everywhere below.
.typ source file under ~/printing/drafts/.typst compile (output PDF also in drafts/).pdftotext <file>.pdf - | head -40.lp once approved..typ and .pdf to ~/printing/done/ after successful printing.Use these defaults unless the user specifies otherwise:
#set page(paper: "a4", margin: (top: 2.5cm, bottom: 2.5cm, left: 2.5cm, right: 2.5cm))
#set text(font: "IBM Plex Sans", size: 11pt, lang: "en")
#set par(justify: true, leading: 0.65em)
letter if the user is in the US)#set text(lang: "he", dir: rtl) and a Hebrew-capable fontAdapt the Typst template to the document type:
#set page(paper: "a4", margin: 2.5cm)
#set text(font: "IBM Plex Sans", size: 11pt)
#set par(justify: true)
#align(right)[
<Sender Name> \
<Sender City> \
#datetime.today().display("[day]/[month]/[year]")
]
#v(1.5cm)
Dear ...,
<body>
Sincerely, \
<Sender Name>
#set page(paper: "a4", margin: 2.5cm)
#set text(font: "IBM Plex Sans", size: 11pt)
#set par(justify: true)
= Document Title
<body>
#set page(paper: "a4", margin: 2.5cm)
#set text(font: "IBM Plex Sans", size: 11pt)
= Title
#for item in (
"Item one",
"Item two",
) {
[- #item]
}
mkdir -p ~/printing/drafts ~/printing/done
typst compile ~/printing/drafts/document.typ ~/printing/drafts/document.pdf
pdftotext ~/printing/drafts/document.pdf - | head -40
If compilation fails, read the error, fix the .typ source, and retry.
Only print after user approval:
lp -d HP-DeskJet-5200 ~/printing/drafts/document.pdf
Common options if requested:
lp -n 3 -d HP-DeskJet-5200 file.pdflp -o sides=two-sided-long-edge -d HP-DeskJet-5200 file.pdflp -o landscape -d HP-DeskJet-5200 file.pdf.typ file directly.~/printing/drafts/ while iterating; move to ~/printing/done/ after successful printing.lp.