← Back to Skills Marketplace
nullying

Lianke Print Box

by NullYing · GitHub ↗ · v0.1.1 · MIT-0
cross-platform ✓ Security Clean
271
Downloads
0
Stars
0
Active Installs
2
Versions
Install in OpenClaw
/install ai-lk-print-box
Description
链科云打印盒 - 通过 lk-print CLI 远程打印和扫描。需要先运行 lk-print auth 配置 ApiKey/DeviceId/DeviceKey 凭据(或通过环境变量提供)。当用户需要打印文件、查询打印机状态、提交打印任务、扫描文档时使用此 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/ai-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 appears to do what it says: control a Lianke cloud print/scan box via the lk-print CLI. Before installing: (1) confirm you trust the vendor (open.liankenet.com) because print/scan jobs and files will be uploaded to their cloud; (2) review the GitHub repo being installed to ensure the installer/binary is legitimate; (3) be prepared to provide ApiKey, DeviceId, and DeviceKey (SKILL.md uses these, even though metadata omits explicit env var entries); (4) avoid sending highly sensitive documents unless you trust the provider's handling of uploaded content. If you need extra assurance, inspect the repo code locally before running the uv install command.
Capability Analysis
Type: OpenClaw Skill Name: ai-lk-print-box Version: 0.1.1 The skill bundle provides instructions and metadata for an AI agent to interface with the 'Lianke Cloud Print Box' using the `lk-print` CLI tool. It includes standard installation procedures via `uv` from a GitHub repository (github.com/liankenet/ai-lk-print-box.git) and outlines legitimate operations such as device authentication, print job submission, and document scanning. No evidence of data exfiltration, malicious execution, or prompt injection was found; the required credentials (ApiKey/DeviceKey) are consistent with the stated purpose of accessing a cloud-based hardware service.
Capability Assessment
Purpose & Capability
Name/description match the runtime instructions: the skill drives a cloud print/scan service via the lk-print CLI and requires ApiKey/DeviceId/DeviceKey credentials that the SKILL.md documents. The declared required binary (lk-print) and primary credential (ApiKey) align with the purpose.
Instruction Scope
SKILL.md limits actions to listing devices/printers, submitting print/scan jobs, and checking/canceling job status. It asks the agent to operate on local files (paths) and URLs for printing, which is expected for a printing CLI. There are no instructions to read unrelated system files or to exfiltrate arbitrary data beyond the expected upload of print/scan content to the cloud service.
Install Mechanism
Install uses a git+https URL to a GitHub repository (uv tool install git+https://github.com/liankenet/ai-lk-print-box.git) to obtain the lk-print binary. This is a reasonable way to install a CLI, but installing code from a repository carries the usual risk of running code fetched from upstream; the repo and its contents should be reviewed before install.
Credentials
The skill sensibly requires an ApiKey and device credentials (DeviceId/DeviceKey) to access the cloud printing service. However, the registry metadata lists no required env vars while also declaring primaryEnv: ApiKey — and the SKILL.md explicitly references DeviceId/DeviceKey (which can be provided via env vars). This is a small inconsistency in metadata vs documentation, not a functional mismatch, but users should be aware those three credentials are needed.
Persistence & Privilege
The skill is not always-on and does not request modification of other skills or system-wide settings. It does not declare any special config paths or elevated privileges beyond needing the CLI binary and credentials.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install ai-lk-print-box
  3. After installation, invoke the skill by name or use /ai-lk-print-box
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v0.1.1
- Added note in the description that you must configure ApiKey/DeviceId/DeviceKey credentials using lk-print auth or environment variables before use. - Updated metadata: added "primaryEnv":"ApiKey". - No functional or usage changes to the CLI documented.
v0.1.0
lianke-print-box 0.1.0 – Initial release - Add support for remote printing and scanning via lk-print CLI with Lianke cloud print box devices. - Enables operations including: printing documents, querying printer and print job status, scanning documents, and managing devices. - Thorough Chinese documentation with usage examples, command references, and tips. - Not for direct local USB/network printer use; only for Lianke cloud print box hardware.
Metadata
Slug ai-lk-print-box
Version 0.1.1
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 2
Frequently Asked Questions

What is Lianke Print Box?

链科云打印盒 - 通过 lk-print CLI 远程打印和扫描。需要先运行 lk-print auth 配置 ApiKey/DeviceId/DeviceKey 凭据(或通过环境变量提供)。当用户需要打印文件、查询打印机状态、提交打印任务、扫描文档时使用此 Skill。NOT for: 本地打印机直接操作、非链... It is an AI Agent Skill for Claude Code / OpenClaw, with 271 downloads so far.

How do I install Lianke Print Box?

Run "/install ai-lk-print-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 v0.1.1.

💬 Comments