/lan-print-scan:add-printer-to-machinefrom lan-print-scan
Add 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.
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.
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/printctl.py" install <id> [--default] [--queue NAME]
This runs lpadmin -p <queue> -E -v <uri> -m everywhere. IPP Everywhere is the
right choice for any AirPrint/Mopria printer (the registry's
capabilities.airprint: true). CUPS builds the PPD from the printer's own IPP
attributes, so no hplip, Epson or Brother driver is needed. Only fall back to a
vendor driver when the printer doesn't do IPP (old USB lasers). For USB IPP printers,
ipp-usb exposes them as network IPP.
URI choice (--uri, default ipps):
ipps: ipps://<host>.local:631/ipp/print. The .local hostname is derived from
the MAC on HP, Epson and Brother (HPXXXXXXXXXXXX, EPSONXXXXXX,
BRWXXXXXXXXXXXX), so it survives both DHCP changes and the printer renaming its
mDNS service. Use this by default.dnssd: ipps://<service name>._ipps._tcp.local/. Avoid it. The service name
carries collision suffixes like (2) that the printer drops or changes after a
reset, and the queue then silently points at nothing. The HP here has been
advertising as … [XXXXXX] (2).ipp: plain-text IPP. Only use it for printers whose TLS is broken.On Ubuntu the user is in lpadmin, so no sudo is needed. If lpadmin says
Forbidden, the script retries with sudo -n. If that fails too, tell the user to run
the printed command with sudo.
--default sets the system default (lpadmin -d). For a per-user default without
touching the system, run lpoptions -d <queue> instead.
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/printctl.py" install <id> --dry-run
This prints a single lpadmin … line. Run it on the target:
ssh <host> '<command>'. They need cups and cups-client
installed and must resolve .local names (nss-mdns). Otherwise swap the
hostname for the IP.lpadmin line works.The remote install is recorded only if done on this machine. For a remote host, add a
note with registry set --id X --field installed_elsewhere=<host>.
Check printctl.py queues: the new queue should say reachable: true. Don't send a
test page unless the user asks, because that uses paper and ink. print --dry-run
proves the queue accepts options.
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
/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"./diagnose-network-printingUse when network printing fails and you need one-shot triage across all layers.Other plugins' skills for the same job