/lan-print-scan:server-routesfrom lan-print-scan
Share printing and scanning from one server, so clients and agents print and scan through it instead of talking to the device. Covers setting up shared CUPS queues, printing from a client, and the escl-scan relay. Use for "print through the server", "share the printer", "scan relay", or when off the LAN.
Ships in lan-print-scan. 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.
None: SKILL.md is the whole skill.
First read site.md in the data dir (see README) if it exists: it holds this deployment's addresses, queues and access commands.
Anything there overrides the examples below. If it's missing, run skill onboard.
CUPS refuses remote clients until it's told otherwise. In cupsd.conf, allow only your own networks, and keep /admin local:
ServerAlias *
DefaultAuthType None
<Location />
Order allow,deny
Allow localhost
Allow 192.168.1.0/24
</Location>
<Location /admin>
Order allow,deny
Allow localhost
</Location>
<Policy default>
<Limit All>
Order deny,allow
</Limit>
</Policy>
This has no login: anything on those networks can print. Add a VPN or tailnet range if you want remote printing. Back the file up first,
then restart CUPS. Snap CUPS keeps its config in /var/snap/cups/common/etc/cups/. Then make a permanent shared queue:
lpadmin -p <queue> -E -v ipp://<printer>:631/ipp/print -m everywhere
lpadmin -p <queue> -o printer-is-shared=true
Don't use the queues cups-browsed creates on its own: they aren't shared. Give the printer a DHCP reservation.
lp -h <server>:631 -d <queue> FILE
lpstat -h <server>:631 -p <queue>
Convert to PDF first with printctl.py topdf.
scripts/escl-scan needs only Python, so nothing else is installed on the server. Link it onto the PATH, then run it there:
escl-scan --host <printer> --status
escl-scan --host <printer> --format pdf --resolution 300 --mode gray # writes ~/printing/scans/ on the server
Confirm the page is on the glass first. Copy the file back, then delete it from the server. Flatbed only, A4. For several pages, run it once
per page and join them with pdfunite.
What SKILL.md sets; muted values are Claude Code's defaults
network-cups@danielrosehill is listed by theantagonist2020/samr — review the source before installing
npx claudepluginhub theantagonist2020/samr --plugin network-cups15 skills in this plugin
/add-printer-to-machineAdd a registered printer as a CUPS queue on this computer (driverless IPP Everywhere, no vendor driver), optionally as the default, or produce the exact command to add it on another Linux/macOS machine on the LAN. Use when the user says "add the printer to this/that computer", "install the printer", "set up printing on X", or printing fails because no queue exists./check-cups-firewallUse when CUPS connections are timing out and you suspect ufw firewall is blocking ports./clear-jobsClean out the print queue - list pending and stuck print jobs on this computer and on the print server its queue forwards to, cancel the stuck ones (or all of them), and say why they stuck. Use on "clear the print queue", "clean out the printer queue", "cancel my print jobs", "nothing is printing", "the printer is stuck", or when a job sits in "printing" with "filter failed".Other plugins' skills for the same job