From network-cups
Use when CUPS connections are timing out and you suspect ufw firewall is blocking ports.
How this skill is triggered — by the user, by Claude, or both
Slash command
/network-cups:check-cups-firewallThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Audit the local ufw firewall for CUPS (631/tcp, 631/udp) and mDNS (5353/udp) access rules.
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
Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub danielrosehill/claude-code-plugins --plugin network-cups