xiaobai-print

xiaobai-print is a skill for Claude Code from zwwz22/xiaobai-print-mcp. It costs 43 tokens per session (1,702 once invoked), scanned A, original, Apache-2.0.

A Chinese-language printing assistant that uses a local bridge to check a printer, confirm its capabilities, upload a file, create a print job, and check or cancel that job.

In plain words
What is it for?
Checking printer availability, finding supported paper and color or duplex options, uploading local files, creating print jobs, and checking or cancelling them.
Why use it?
It provides a defined workflow for printing instead of guessing which printer settings or tool fields are supported. It also handles the file upload needed before a print job can be created.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: built for openclaw.

Good fit Checking printer availability, finding supported paper and color or duplex options, uploading local files, creating print jobs, and checking or cancelling them.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/zwwz22/xiaobai-print-mcp/xiaobai-print
Install

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.

Any agent
npx skills add zwwz22/xiaobai-print-mcp --skill xiaobai-print
Clone the repo
git clone --depth 1 https://github.com/zwwz22/xiaobai-print-mcp

Made for: Claude Code.

Wrote 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.

agentmods badge for xiaobai-print

README.md
[![agentmods](https://agentmods.dev/badge/skills/zwwz22/xiaobai-print-mcp/xiaobai-print/github.svg)](https://agentmods.dev/skills/zwwz22/xiaobai-print-mcp/xiaobai-print)
Your own site
<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.

agentmods 80×15 button for xiaobai-print

Your own site · 80×15
<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>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,702 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 12d ago against content hash 656473d486fb, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

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.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/invoke.js), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skills/xiaobai-print/SKILL.md · 154 lines

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 寸照片

Read the full file on GitHub · 154 lines

Files

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.

Changes

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.

  1. 12d ago First seen · 154 lines · 43 tokens per session scan A 656473d486fb

Subscribe to this mod's changes

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.

Related

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…

google/skills · 83 tokens

jetson-diagnostic

Read-only Jetson health snapshot for identity, memory, GPU, thermal, power, storage, services, and top processes.

NVIDIA/skills · 30 tokens

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…

NVIDIA/skills · 236 tokens

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…

SnailSploit/Claude-Red · 113 tokens

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…

NVIDIA/skills · 94 tokens

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.

NVIDIA/skills · 50 tokens