用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/danielrosehill/Claude-Network-CUPS-Plugin --skill add-printer命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
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.
Use when mDNS discovery fails or the user wants to scan all devices on the subnet.
基于 SOC 职业分类
正在显示 SKILL.md
| name | add-printer |
| description | Use when the user wants to register a new printer on the networked CUPS server. |
Register a printer on the CUPS server. Requires the printer's network URI and optional driver specification.
name — friendly name for the printer (required, e.g. "Office-HP-LaserJet")uri — network URI (required, e.g. ipp://printer.lan:631/ipp/print or socket://192.168.1.50:9100)driver — driver name (optional; CUPS auto-detects if unset, e.g. "drv:///sample.drv/generic.ppd")Pre-flight warning. Inform the user:
Adding a printer to CUPS requires lpadmin group or sudo privilege on the CUPS server.
If this fails, you may need to:
- Add your user to the lpadmin group on the server: sudo usermod -a -G lpadmin <user>
- Or provide a password when prompted for sudo.
Call MCP tool add_printer with name, uri, and optional driver. The MCP server is network-cups (registered in .mcp.json).
Report result. On success:
Printer added: <name> at <uri>.
Run list-printers to verify.
On failure, emit the MCP error and suggest:
systemctl status cups.diagnose-network-printing to check CUPS connectivity.