← 返回 Skills 市场
odrobnik

Bricklink

作者 Oliver Drobnik · GitHub ↗ · v1.4.2
cross-platform ✓ 安全检测通过
2456
总下载
1
收藏
2
当前安装
14
版本数
在 OpenClaw 中安装
/install bricklink
功能描述
BrickLink Store API helper/CLI (OAuth 1.0 request signing). Covers orders, store inventory (read + write), catalog, categories, colors, feedback, and push no...
使用说明 (SKILL.md)

BrickLink

Use scripts/bricklink.py.

Setup

See SETUP.md for prerequisites and setup instructions.

Commands

Read-only

  • bricklink.py get-orders [--direction in|out] [--status ...] [--include-status ...] [--exclude-status ...] [--filed true|false] - Lists orders you received or placed.

  • bricklink.py get-order \x3Corder_id> - Fetches details for a specific order.

  • bricklink.py get-order-items \x3Corder_id> - Fetches the item batches for a specific order.

  • bricklink.py get-order-messages \x3Corder_id> - Fetches messages associated with a specific order.

  • bricklink.py get-order-feedback \x3Corder_id> - Fetches feedback associated with a specific order.

  • bricklink.py get-feedback [--direction in|out] - Lists feedback you received (in) or posted (out).

  • bricklink.py get-feedback-item \x3Cfeedback_id> - Fetches a single feedback entry by id.

  • bricklink.py get-notifications - Lists unread push notifications (/notifications).

  • bricklink.py get-categories - Lists all catalog categories.

  • bricklink.py get-category \x3Ccategory_id> - Fetches a single category by id.

  • bricklink.py get-colors - Lists all catalog colors.

  • bricklink.py get-color \x3Ccolor_id> - Fetches a single color by id.

  • bricklink.py get-inventories [--item-type ...] [--status ...] [--category-id ...] [--color-id ...] - Lists your store inventory lots (supports include/exclude filters).

  • bricklink.py get-inventory \x3Cinventory_id> - Fetches a single inventory lot by id.

  • bricklink.py get-item \x3Ctype> \x3Cno> - Fetches a catalog item (PART/SET/MINIFIG/…).

  • bricklink.py get-supersets \x3Ctype> \x3Cno> [--color-id N] - Lists items that contain the specified item.

  • bricklink.py get-subsets \x3Ctype> \x3Cno> [--color-id N] [--box true|false] [--instruction true|false] [--break-minifigs true|false] [--break-subsets true|false] - Parts out an item into its included items.

  • bricklink.py get-price-guide \x3Ctype> \x3Cno> [--color-id N] [--guide-type stock|sold] [--new-or-used N|U] [--country-code XX] [--region ...] [--currency-code XXX] [--vat N|Y|O] - Fetches price guide statistics.

  • bricklink.py get-known-colors \x3Ctype> \x3Cno> - Lists known colors for a catalog item.

Mutating

Note: Order mutations (update-order, update-order-status, update-payment-status) only work for store orders (direction=out, where you are the seller). Purchases (direction=in) return 404 — the BrickLink API does not allow buyers to modify order status or file/archive incoming orders. Use the BrickLink website for those.

  • bricklink.py update-order \x3Corder_id> [--remarks ...] [--is-filed true|false] [--shipping-...] [--cost-...] — Updates allowed order fields (tracking, remarks, shipping/cost fields). Store orders only.

  • bricklink.py update-order-status \x3Corder_id> \x3Cstatus> — Updates the status of an order. Store orders only.

  • bricklink.py update-payment-status \x3Corder_id> \x3Cpayment_status> — Updates the payment status of an order. Store orders only.

  • bricklink.py send-drive-thru \x3Corder_id> [--mail-me] — Sends a "Drive Thru" email for an order.

  • bricklink.py post-feedback --order-id N --rating 0|1|2 [--comment ...] - Posts new feedback for an order.

  • bricklink.py reply-feedback \x3Cfeedback_id> --reply "..." - Replies to feedback you received.

  • bricklink.py create-inventory [--item-type ... --item-no ... --color-id N --quantity N --unit-price ... --new-or-used N|U ...] - Creates a single inventory lot from flags.

  • bricklink.py create-inventory --file batch.json - Creates multiple inventory lots from a validated JSON file (workspace or /tmp only).

  • bricklink.py update-inventory \x3Cinventory_id> [--quantity N --unit-price ... --new-or-used N|U --remarks ...] - Updates an inventory lot.

  • bricklink.py delete-inventory \x3Cinventory_id> - Deletes an inventory lot.

Utilities

  • bricklink.py order-detail-html \x3Corder_id> [--out path] [--inline-images] - Fetches order+items and renders a compact HTML view (similar to BrickLink orderDetail.asp).
安全使用建议
This skill appears coherent with its BrickLink CLI purpose. Before installing: (1) Only provide your BrickLink OAuth consumer key/secret and token value/secret (do not supply unrelated credentials). (2) Be aware the tool will look for a config file in your workspace (workspace/bricklink/config.json) or use environment variables — verify which path it will read and keep secrets in a safe place. (3) The repo contains a helper/README that mentions parsing a downloaded HTML consumer-registration file; if you use that option, only point it at files you trust (it will read local content to extract secrets). (4) The script contacts api.bricklink.com and img.bricklink.com (expected). If you need stronger assurance, review the full scripts/bricklink.py before use or run the CLI in an isolated environment.
功能分析
Type: OpenClaw Skill Name: bricklink Version: 1.4.2 The OpenClaw AgentSkills skill bundle for BrickLink is classified as benign. The Python script `scripts/bricklink.py` correctly implements OAuth 1.0 for API authentication, loading credentials securely from environment variables or a workspace-specific `config.json`. Crucially, file input (`create-inventory --file`) and output (`order-detail-html --out`) operations are rigorously sanitized by `scripts/_pathguard.py` and `_load_batch_file` to prevent path traversal, restricting access to the workspace or `/tmp` directories. All network requests are directed to legitimate BrickLink API and image domains, and the `SKILL.md` documentation contains no prompt injection attempts or malicious instructions for the AI agent.
能力评估
Purpose & Capability
Name/description (BrickLink CLI, OAuth 1.0 signing, store/inventory/orders) align with the included Python script and the required OAuth env vars. The required binaries (python3) and four OAuth env vars are exactly what a BrickLink API helper needs.
Instruction Scope
Runtime instructions stay on-task (calling BrickLink store APIs, rendering HTML, reading a local config or environment variables). The CLI can read a workspace config file (workspace/bricklink/config.json) or environment variables; references include a notes file about parsing a downloaded consumer-registration HTML file (a helper to extract OAuth secrets). That behavior (parsing a local HTML file) is expected for convenience but means the CLI may read a local file you point it at — only supply files you trust.
Install Mechanism
Instruction-only skill (no external installer). Code is included in the repository as Python scripts; no downloads or remote installers are invoked by the skill metadata.
Credentials
The four required environment variables are the OAuth consumer and token secrets expected for BrickLink API access. The scripts also consult benign environment variables for workspace detection (BRICKLINK_WORKSPACE / OPENCLAW_WORKSPACE / PWD / TMPDIR) but do not request unrelated credentials.
Persistence & Privilege
The skill is not marked always:true and is user-invocable. It does not request persistent/system-wide privileges or modify other skills; autonomous invocation (disable-model-invocation=false) is the platform default and not in itself a problem.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install bricklink
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /bricklink 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.4.2
fix: use /Users/oliver/clawd for workspace root to preserve symlink paths
v1.4.1
- Removed the `--yes` confirmation flag from all mutating commands for a simpler workflow. - Updated mutating command syntax and options for clarity and consistency. - Added documentation for batch inventory creation with a JSON file (`--file batch.json`). - Cleaned up feedback posting and replying command examples. - No changes to core features or API coverage.
v1.4.0
Version 1.4.0 - Bump version number to 1.4.0. - No new features or command changes listed in SKILL.md. - Maintenance update.
v1.3.3
Remove invented sensitivity metadata field
v1.3.2
Declare missing dependencies, env vars, and sensitivity in metadata
v1.3.1
Rename .clawdhubignore to .clawhubignore
v1.3.0
Refactor: move setup/prerequisites to SETUP.md, keep SKILL.md lean
v1.2.3
Document API restriction: order mutations only work for store orders (seller), not purchases (buyer)
v1.2.2
Declare OAuth env vars in requires.env metadata
v1.2.1
- Added scripts/_pathguard.py utility module. - Minor updates to scripts/bricklink.py. - Version bump to 1.2.1.
v1.2.0
Security hardening: removed --base (credential relay risk), --creds-html (arbitrary file read), --config (arbitrary path). Config now only from workspace/bricklink/config.json.
v1.1.2
Fix SKILL.md version sync
v1.1.1
Remove private invoice template from published package
v1.1.0
Add invoice template, migrate metadata to openclaw format
元数据
Slug bricklink
版本 1.4.2
许可证
累计安装 2
当前安装数 2
历史版本数 14
常见问题

Bricklink 是什么?

BrickLink Store API helper/CLI (OAuth 1.0 request signing). Covers orders, store inventory (read + write), catalog, categories, colors, feedback, and push no... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 2456 次。

如何安装 Bricklink?

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

Bricklink 是免费的吗?

是的,Bricklink 完全免费(开源免费),可自由下载、安装和使用。

Bricklink 支持哪些平台?

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

谁开发了 Bricklink?

由 Oliver Drobnik(@odrobnik)开发并维护,当前版本 v1.4.2。

💬 留言讨论