/lan-print-scan:discover-printersfrom lan-print-scan
Find the printers this machine can see — networked (mDNS/Bonjour, IPP, raw 9100, eSCL scanners), USB-attached, and CUPS queues already set up — and say which queues are dead. Use when the user asks what printers there are, why a printer isn't showing, or before profiling or adding one.
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" discover
Takes ~12 s (one avahi-browse per service type). Returns JSON with four parts:
| Key | What it is |
|---|---|
network | One entry per device, merged across _ipp, _ipps, _pdl-datastream, _printer, _uscan(s) by UUID. Carries make_model, host, ip, mac, uris (ipps / ipp / dnssd / socket), capabilities (color, duplex, scan, fax, pdl, airprint), kind (document or label), suggested_id, and registered_as if already in the registry. |
cups_queues | Every local CUPS queue with reachable true/false/null and why. |
usb | USB devices from printer vendors (HP, Epson, Brother, Canon …). |
tooling | Which CLI tools exist. A missing avahi-browse means no network discovery, not no printers. |
idle proves nothing. CUPS reports the queue's state,
not the printer's. Trust reachable. A queue whose .local host does not resolve
is for a printer on a different network (e.g. printers at another site when at home).kind: label (Brother QL/PT, DYMO, Zebra) belongs to the label-printer
plugin. Mention it, don't profile it here.printctl.py probe 192.168.1.x (IPP on 631).… (2) suffixes after a reset). The
UUID merge handles that; the service name with the suffix is the live one.Finish with a short table: printer, address, status (registered / not registered /
stale queue), and offer the next step — profile-printer for new ones,
tidy-queues for dead ones.
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