← 返回 Skills 市场
nullying

Lianke Print Box

作者 NullYing · GitHub ↗ · v2.0.0 · MIT-0
cross-platform ✓ 安全检测通过
237
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install lianke-box
功能描述
链科云打印盒 - 通过 lk-print CLI 远程打印和扫描。当用户需要打印文件、查询打印机状态、提交打印任务、扫描文档时使用此 Skill。NOT for: 本地打印机直接操作、非链科设备。
使用说明 (SKILL.md)

链科云打印盒 Skill

通过 lk-print CLI 操作链科云打印盒,远程控制打印机和扫描仪。

When to Use

USE this skill when:

  • 用户要打印文件(PDF、图片、Office文档)
  • 查询打印机状态或打印任务状态
  • 扫描文档
  • 管理云打印盒设备

When NOT to Use

DON'T use this skill when:

  • 操作本地直连打印机(非云打印盒)
  • 非链科设备

Setup

# 全局安装(注册 lk-print 到 PATH)
uv tool install git+https://github.com/liankenet/lk-print-box.git

# 一次性认证
lk-print auth --api-key \x3CYOUR_API_KEY> --device-id \x3CYOUR_DEVICE_ID> --device-key \x3CYOUR_DEVICE_KEY>

# 验证
lk-print auth --status

凭据获取:ApiKey 从 https://open.liankenet.com 注册,DeviceId/DeviceKey 扫描设备二维码获取

打印流程

1. 确认设备在线

lk-print device
# 检查 data.info.online: 1=在线, 0=离线, null=从未开机

2. 获取打印机列表

# USB 打印机(推荐)
lk-print printers

# 全部打印机(含网络)
lk-print printers --type 3

# JSON 格式
lk-print printers --json

从输出中获取 hash_id(后续命令需要)。

3. 获取打印机参数(可选,用于了解打印机能力)

lk-print printer-params \x3Chash_id>
# 返回支持的纸张、颜色、双面等能力

4. 提交打印任务

# 打印本地文件(默认 A4 黑白)
lk-print print /path/to/file.pdf

# 打印 URL 文件
lk-print print https://example.com/doc.pdf

# 指定参数
lk-print print file.pdf --paper-size 9 --color 2 --copies 3

# 双面打印
lk-print print file.pdf --duplex 2

# 横向打印
lk-print print file.pdf --orientation 2

# 指定页数范围
lk-print print file.pdf --page-range "1,3,5-10"

# 指定打印机
lk-print print file.pdf --printer \x3Chash_id>

5. 查询任务状态

lk-print job-status \x3Ctask_id>
# task_state: READY=排队, PARSING=解析, SENDING=发送, SUCCESS=完成, FAILURE=失败

取消打印

lk-print cancel-job \x3Ctask_id>

扫描流程

# 1. 列出扫描仪
lk-print scanners

# 2. 查看扫描参数
lk-print scanner-params \x3Cscanner_id>

# 3. 创建扫描任务
lk-print scan \x3Cscanner_id>
lk-print scan \x3Cscanner_id> --color-mode RGB24 --format PDF --size A4

# 4. 查询扫描结果
lk-print scan-status \x3Ctask_id>

# 5. 删除扫描任务
lk-print scan-delete \x3Ctask_id>

参数速查

纸张 (--paper-size)

纸张 纸张
9 A4 11 A5
70 A6 1 Letter
5 Legal 13 B5

缩放 (--scale)

说明
fit 自适应(默认)
fitw 宽度优先
fith 高度优先
fill 拉伸全图
cover 裁剪铺满
none 原始大小
90% 自定义百分比

Notes

  • 打印任务是异步的print 命令返回 task_id,需用 job-status 查询结果
  • 查询状态建议间隔 10秒 轮询
  • 未指定打印机时默认使用第一台 USB 打印机
  • JSON 格式输出便于程序解析(--json
安全使用建议
This skill is internally consistent for controlling Lianke cloud printers via the lk-print CLI. Before installing, verify the GitHub repository (owner, stars, recent commits, release tags) to ensure you trust the binary you’ll install. Keep your API key and device keys private — do not paste them into public logs or share them. Consider testing installation and printing in a controlled environment first (not on production devices). If you are concerned about autonomous agent use, keep model-invocation limited or only invoke the skill manually.
功能分析
Type: OpenClaw Skill Name: lianke-box Version: 2.0.0 The skill bundle provides a standard interface for interacting with Lianke Cloud Print Box hardware via the `lk-print` CLI. It includes instructions for authentication, device management, and remote printing/scanning tasks. The installation process uses `uv` to fetch the tool from a specific GitHub repository (github.com/liankenet/lk-print-box.git), and the operational instructions in SKILL.md are consistent with the stated purpose without any signs of prompt injection or malicious intent.
能力评估
Purpose & Capability
The skill is described as a wrapper around the lk-print CLI for cloud printing and scanning. The only required binary is lk-print and the SKILL.md shows CLI commands that match the stated functionality (device listing, print/scan, job status). There are no unexpected environment variables or unrelated capabilities requested.
Instruction Scope
Runtime instructions only tell the agent to install the lk-print tool, run lk-print auth with an API key/device credentials, and call lk-print commands to print/scan/query. The instructions do not ask the agent to read unrelated system files, environment variables, or exfiltrate data to third-party endpoints beyond Lianke's service.
Install Mechanism
Install is performed via a 'uv' package pointing to git+https://github.com/liankenet/lk-print-box.git which will produce an lk-print binary. Installing code from a GitHub repo is a reasonable way to obtain the CLI but carries the usual risk of running third-party code; users should verify the repository and its contents (owner, recent commits, release tags) before installing.
Credentials
The skill does not require environment variables or broad credentials. The SKILL.md instructs the user to provide an API key, device id, and device key to 'lk-print auth' — these are specific to the Lianke service and proportional to the skill's purpose.
Persistence & Privilege
The skill is not marked always:true and does not request system-wide configuration changes or cross-skill modification. It can be invoked by the agent (default), which is appropriate for this kind of integration.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install lianke-box
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /lianke-box 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v2.0.0
lianke-box 1.0.0 - Initial release of the 链科云打印盒 (Lianke Cloud Print Box) skill. - Enables remote control of Lianke cloud-connected printers and scanners via the lk-print CLI. - Supports printing files, querying printer and job status, submitting print jobs, scanning documents, and device management. - Not intended for direct control of locally connected or non-Lianke devices. - Includes setup instructions, usage flows for printing and scanning, and parameter reference tables.
元数据
Slug lianke-box
版本 2.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Lianke Print Box 是什么?

链科云打印盒 - 通过 lk-print CLI 远程打印和扫描。当用户需要打印文件、查询打印机状态、提交打印任务、扫描文档时使用此 Skill。NOT for: 本地打印机直接操作、非链科设备。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 237 次。

如何安装 Lianke Print Box?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install lianke-box」即可一键安装,无需额外配置。

Lianke Print Box 是免费的吗?

是的,Lianke Print Box 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Lianke Print Box 支持哪些平台?

Lianke Print Box 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Lianke Print Box?

由 NullYing(@nullying)开发并维护,当前版本 v2.0.0。

💬 留言讨论