/lan-print-scan:check-cups-firewallfrom lan-print-scan
Use when CUPS connections are timing out and you suspect ufw firewall is blocking ports.
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.
Audit the local ufw firewall for CUPS (631/tcp, 631/udp) and mDNS (5353/udp) access rules.
Check if ufw is active. Run:
sudo ufw status
If output shows "inactive", report:
ufw is not active. Firewall is not enforcing rules.
(Another firewall may be in use — check nftables or firewalld.)
Stop here.
Detect alternate firewalls. Check for:
sudo systemctl is-active firewalld && echo "firewalld is running"
sudo nft list tables 2>/dev/null && echo "nftables is active"
If either is active, report:
<firewall> is the active firewall, not ufw.
This skill only audits ufw rules. Consult <firewall> docs.
Stop here.
Parse ufw status. Run:
sudo ufw status verbose
Check for rules matching:
631/tcp (both in/out, or default allow-out)631/udp (both in/out, or default allow-out)5353/udp (mDNS, for Bonjour printer discovery)Emit checklist. Output three rows:
Firewall Rule Audit (ufw)
Port Proto Direction Status
631 tcp in PASS (allow 631/tcp in)
631 tcp out PASS (allow 631/tcp out)
631 udp in PASS (allow 631/udp in)
631 udp out PASS (allow 631/udp out)
5353 udp in WARN (not found; Bonjour discovery may fail)
5353 udp out PASS (allow 5353/udp out)
Mark as PASS if found, FAIL if explicitly denied, WARN if missing but not critical.
Show remediation commands. If any FAILs or WARNs, output:
To allow CUPS (631/tcp and 631/udp):
sudo ufw allow 631/tcp
sudo ufw allow 631/udp
To allow mDNS (5353/udp) for printer discovery:
sudo ufw allow 5353/udp
To reload: sudo ufw reload
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./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