用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/danielrosehill/Claude-Network-CUPS-Plugin --skill print-file命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 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 | print-file |
| description | Use when the user wants to print a local file to a networked printer. |
Submit a file to print on a networked CUPS printer. Validate file existence, confirm copy count, and submit via MCP.
path — absolute or relative path to the file (required)printer — printer name (optional; uses default if unset)copies — number of copies (optional; defaults to 1)Validate file. Check that path exists and is readable:
test -r "$path" || { echo "File not readable: $path"; exit 1; }
Stop if file not found or not readable.
Load defaults. If printer unset, read MCP_CUPS_DEFAULT_PRINTER from env or config.json. If still unset, run list-printers to show options and ask user to choose one.
Warn on copy limit. If copies exceeds MCP_CUPS_MAX_COPIES (from env or config), warn the user: "Copy count exceeds safety limit . Proceed?" and wait for confirmation before continuing.
Confirm with user: Show:
Ready to print:
File: <path>
Printer: <name>
Copies: <N>
Proceed? (yes/no)
Halt if user says no.
Call MCP tool print_file with path, printer, copies. The MCP server is network-cups (registered in .mcp.json).
Report result: On success, emit:
Submitted to <printer>: <path> (<N> copies).
On failure, show the MCP error and suggest diagnose-network-printing.