← 返回 Skills 市场
nullying

Lianke Print Box

作者 NullYing · GitHub ↗ · v0.1.1 · MIT-0
cross-platform ✓ 安全检测通过
271
总下载
0
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install ai-lk-print-box
功能描述
链科云打印盒 - 通过 lk-print CLI 远程打印和扫描。需要先运行 lk-print auth 配置 ApiKey/DeviceId/DeviceKey 凭据(或通过环境变量提供)。当用户需要打印文件、查询打印机状态、提交打印任务、扫描文档时使用此 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/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
安全使用建议
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.
功能分析
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.
能力评估
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.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install ai-lk-print-box
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /ai-lk-print-box 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
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.
元数据
Slug ai-lk-print-box
版本 0.1.1
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 2
常见问题

Lianke Print Box 是什么?

链科云打印盒 - 通过 lk-print CLI 远程打印和扫描。需要先运行 lk-print auth 配置 ApiKey/DeviceId/DeviceKey 凭据(或通过环境变量提供)。当用户需要打印文件、查询打印机状态、提交打印任务、扫描文档时使用此 Skill。NOT for: 本地打印机直接操作、非链... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 271 次。

如何安装 Lianke Print Box?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install ai-lk-print-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)开发并维护,当前版本 v0.1.1。

💬 留言讨论