/lan-print-scan:clear-jobsfrom lan-print-scan
Clean 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".
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.
This handles jobs. Removing whole printer queues is tidy-queues, and label printers (P-touch, QL,
NIIMBOT bridges) are not CUPS jobs at all: they belong to the label-printer plugin.
For each document queue (lpstat -a, skipping label printers), run:
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/printctl.py" jobs -p <queue>
The output lists the local jobs and, when the queue forwards to a print server (ipp://<server>:631/printers/<q>),
the server's jobs and printer message too. A client queue can look empty while the server holds the stuck
job. Report each job as id, age, size and where it is (here or the server).
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/printctl.py" clean-jobs -p <queue> --dry-run # stuck = pending > 5 min
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/printctl.py" clean-jobs -p <queue> [--stale MIN | --all]
user field is another person).left in the result must be empty for that queue. If a server job survives, the server refused remote cancel
(/admin local-only setups allow cancel but not admin): run cancel <id> on the server itself.filter failed / gstoraster in the printer message: the server's CUPS could not convert the PDF. Reprint as
PostScript (print --ps, skill print) or on a direct queue to the printer, if the site has one.printer not responding, connecting to device: the printer is off or asleep, or its IP moved
(printer-status, diagnose-network-printing).After cancelling, run jobs -p <queue> again and report what is left: nothing, or what and why.
Site specifics (which server, which direct queue) belong in the private site.md in the data dir, not here.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
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./diagnose-network-printingUse when network printing fails and you need one-shot triage across all layers./discover-printersFind 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./discover-printers-arpUse when mDNS discovery fails or the user wants to scan all devices on the subnet./onboardFirst-run setup. Scan the local network for printers and scanners, check the tools, register what's found, and choose where this plugin runs, ideally a home server. Use on "set up printing", "onboard", "find the printers on my network", or the first time this plugin is used on a machine.