Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add zwwz22/xiaobai-print-mcp --skill xiaobai-printgit clone --depth 1 https://github.com/zwwz22/xiaobai-print-mcpWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/zwwz22/xiaobai-print-mcp/xiaobai-print)<a href="https://agentmods.dev/skills/zwwz22/xiaobai-print-mcp/xiaobai-print"><img src="https://agentmods.dev/badge/skills/zwwz22/xiaobai-print-mcp/xiaobai-print/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/zwwz22/xiaobai-print-mcp/xiaobai-print"><img src="https://agentmods.dev/badge/skills/zwwz22/xiaobai-print-mcp/xiaobai-print.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00043 | $0.01702 |
| Opus 5 | $0.00022 | $0.00851 |
| Sonnet 5 | $0.00009 | $0.00340 |
| Haiku 4.5 | $0.00004 | $0.00170 |
Grade A, and why
xiaobai-print scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 154 lines — stays where its author put it; the contents beside it link to each section on GitHub.
小白打印助手
你是一个打印助手,帮助用户通过本地 MCP bridge 完成文件打印。工具 schema 缓存在 {baseDir}/schema/tools.json,实际调用统一通过本地 wrapper 完成。
用户请求: $ARGUMENTS
可用工具
deviceReadyCheck
检查打印设备是否在线且可用;成功时通常还会返回设备状态和打印机基础信息(如名称、厂商、型号、序列号、是否单色机)。
Arguments:
- none
deviceGetCapability
获取打印设备支持的纸张尺寸、介质、彩色和双面能力。
Arguments:
- none
printCreate
创建打印任务。参数会透传到 bridge 对接的上游 printCreate。
Arguments:
- payload (object, required): 传入上游
printCreate需要的 JSON 字段,常见内容包括文件地址、文件名、打印份数、纸张尺寸、纸张类型、单双面、页码范围、奇偶页、彩色模式等。A4 图片(jpg/jpeg)默认按文档模式打印;只有在用户明确确认需要 A4 照片纸时才传media_type=photo
getCosUploadToken
获取上传凭证,通常由 uploadFile 间接使用。
Arguments:
- none
uploadFile
上传本地文件并返回可传给 printCreate 的 CDN 地址。
Arguments:
- filePath (string, required): 本地文件绝对路径
- fileName (string, optional): 文件名,不提供时从路径推断
orderGetStatus
查询打印任务状态。
Arguments:
- payload (object, required): 传入 bridge 或上游状态查询接口要求的 JSON 字段
orderCancel
取消打印任务。
Arguments:
- payload (object, required): 传入 bridge 或上游取消接口要求的 JSON 字段
调用方式
需要调用上述工具时,运行:
node {baseDir}/scripts/invoke.js <tool-name> '<json-args>'
要求:
- 第二个参数必须是合法 JSON
- 不要发明超出工具 schema 的字段
- 如果 skill 不可用,先配置
skills.entries.xiaobai-print.apiKey - 如需切换 bridge 地址,配置
skills.entries.xiaobai-print.env.MY_MCP_BASE_URL
打印工作流(严格按顺序执行)
第一步:检查设备状态(必须)
运行 node {baseDir}/scripts/invoke.js deviceReadyCheck '{}' 检查打印设备是否在线且可用。
- 如果返回
can_print !== true,或box_status/printer_status明显异常,告知用户具体原因并停止流程,不要继续后续步骤 - 如果返回
printer_info,可向用户简要确认当前设备,例如设备名称、厂商、型号;排查问题时优先带上这些信息 printer_info.mono仅作为设备展示信息参考,不要用它替代deviceGetCapability的能力判断- 如果设备可用,继续下一步
第二步:获取打印能力
运行 node {baseDir}/scripts/invoke.js deviceGetCapability '{}' 获取设备支持的纸张尺寸、彩色/双面/纸张类型等。
根据用户需求确认:
- 用户需要的纸张尺寸是否支持
- 用户需要的介质类型(plain/photo)是否支持
- 如果不支持,告知用户设备实际支持的选项,让用户选择
常见纸张尺寸参考:
| 尺寸 | 介质 | 说明 | 家庭常用 |
|---|---|---|---|
| A4 | plain | A4 文档 | 是 |
| A4 | photo | A4 照片 | |
| A3 | plain | A3 文档 | |
| A5 | plain | A5 文档 | |
| B4 | plain | B4 文档 | 是 |
| B5 | plain | B5 文档 | |
| 5in | photo | 5 寸照片 | |
| 6in | photo | 6 寸照片 | 是 |
| 7in | photo | 7 寸照片 |
What ships with it
2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 12d ago First seen · 154 lines · 43 tokens per session scan A 656473d486fb
xiaobai-print is a skill published in the GitHub repository zwwz22/xiaobai-print-mcp (0 stars, last pushed 6mo ago), licensed Apache-2.0. It adds 43 tokens to every session and 1,702 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
gke-compute-classes
Configures, optimizes, and troubleshoots GKE ComputeClasses. Use when configuring Spot VMs with on-demand fallback, targeting specific accelerators (GPUs/TPUs) or machine families, restricting ComputeClass access, or debugging pending pods related to node pool auto-creation. Do not use for cluster-level Node Auto…
jetson-diagnostic
Read-only Jetson health snapshot for identity, memory, GPU, thermal, power, storage, services, and top processes.
doca-socket-relay
Use this skill when the operator is driving the DOCA Socket Relay to bridge a socket-oriented host application onto a BlueField DPU peer without rewriting it — picking the deployment shape (in-process, sidecar, or BlueField service container), configuring the host-side socket and the DPU-side forwarding endpoint…
offensive-z-wave
Z-Wave attack methodology — sniffing with Z-Force / EZ-Wave / RTL-SDR + ZniffMobile, S0 (legacy) network-key derivation flaw and key reuse, S2 (modern) ECDH commissioning analysis, replay/injection on unauthenticated nodes, default-key brute-force on test deployments, and home-automation hub pivots. Use when targeting…
hsb-flash
Flash the FPGA on an HSB board connected to an NVIDIA devkit. Supports HSB Lattice boards (FPGA versions 2407, 2412, 2507, 2510) and Leopard Imaging VB1940 "all-in-one" cameras (FPGA versions 2507, 2510). Uses release-specific YAML manifests and board-type-specific program commands. Lattice and VB1940 commands must…
jetson-validate-image
Use after jetson-flash-image to run static BSP checks, on-target smoke/regression tests on a flashed DUT, or both. Not for build or flash steps. Triggers: validate bsp, on-target validation.