用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/danielrosehill/Claude-Network-CUPS-Plugin --skill discover-printers-bonjour命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Use when the user wants to register a new printer on the networked CUPS server.
Use when CUPS connections are timing out and you suspect ufw firewall is blocking ports.
Use when network printing fails and you need one-shot triage across all layers.
基于 SOC 职业分类
正在显示 SKILL.md
| name | discover-printers-bonjour |
| description | Use when you want to scan the LAN for printers via mDNS/Bonjour. |
Scan the local network for printers advertising via mDNS (Bonjour/Avahi). Return a table of discovered devices.
add-printerCheck avahi-daemon. Verify the service is running:
systemctl is-active avahi-daemon
If inactive, output:
avahi-daemon is not running.
To start it: sudo systemctl start avahi-daemon
To enable on boot: sudo systemctl enable avahi-daemon
Stop here until the user confirms the service is running.
Browse for printers. Run with a 5-second timeout:
timeout 5 avahi-browse -rt _ipp._tcp _ipps._tcp _printer._tcp 2>/dev/null || true
Parse lines matching = (result/resolved) into a table.
Extract fields. For each result line, extract (using regex or field split):
name (service name, before @)hostname (host field, or derive from full address.local record)IPv4 (address field, IPv4 only)port (port number)model (from ty= TXT field, e.g. "HP LaserJet Pro M404n")rp (resource path, e.g. /ipp/print, from TXT field)Format as table:
Name Host IPv4 Port Model Path
Office-HP printer01.local 192.168.1.50 631 HP LaserJet Pro M404n /ipp/print
...
Handle empty result. If no printers found after 5 seconds:
No printers found via Bonjour.
Possible reasons:
- Printer does not support mDNS/Bonjour.
- Printer is on a different VLAN or network segment.
- Bonjour advertisement is disabled on the printer.
Try: discover-printers-arp (ARP-based network scan)
discover-printers-arp.