← Back to Skills Marketplace
nullying

Lianke Print Box

by NullYing · GitHub ↗ · v2.0.0 · MIT-0
cross-platform ✓ Security Clean
237
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install lianke-box
Description
链科云打印盒 - 通过 lk-print CLI 远程打印和扫描。当用户需要打印文件、查询打印机状态、提交打印任务、扫描文档时使用此 Skill。NOT for: 本地打印机直接操作、非链科设备。
README (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
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install lianke-box
  3. After installation, invoke the skill by name or use /lianke-box
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Slug lianke-box
Version 2.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is Lianke Print Box?

链科云打印盒 - 通过 lk-print CLI 远程打印和扫描。当用户需要打印文件、查询打印机状态、提交打印任务、扫描文档时使用此 Skill。NOT for: 本地打印机直接操作、非链科设备。 It is an AI Agent Skill for Claude Code / OpenClaw, with 237 downloads so far.

How do I install Lianke Print Box?

Run "/install lianke-box" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Lianke Print Box free?

Yes, Lianke Print Box is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Lianke Print Box support?

Lianke Print Box is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Lianke Print Box?

It is built and maintained by NullYing (@nullying); the current version is v2.0.0.

💬 Comments