Oliver Drobnik

BrickLink

開發程式設計v1.4.4
作者:Oliver Drobnik更新於 2026-09-24共 16 個版本 · 最新版本釋出於 2026-09-24bricklink@clawhub_odrobnik/bricklink
指令碼工具

據 AlphaMoat 統計,截至 2026-09,BrickLink 累計下載 3,858 次、獲 1 個星標,在全部 5,078 個 AI 技能中排名第 2,708 位,在「開發程式設計」分類(577 個)中排名第 352 位。

累計安裝
143
累計下載
3858
星標
1
全站排名
#2,708
全站前 54% · 「開發程式設計」前 62%
平台累計安裝累計下載星標評論
ClawHub ↗11838571-
SkillHub ↗14338581—

各平台的計數口徑不同,統計時間不一致。

這個技能是做什麼的

CLI 提供讀取訂單及商品詳情、查詢目錄和價格指南等功能,也能更新店鋪訂單、傳送或回覆反饋,以及建立、更新或刪除庫存記錄。訂單變更僅適用於賣家店鋪訂單。寫入命令可能立即修改線上訂單、反饋或庫存;應優先使用只讀或最小許可權憑據,逐條審閱目標和變更。訂單詳情與發票匯出可能包含客戶個人資訊,儲存檔案時應選擇受保護路徑並清理臨時副本。 需要 Python 和已配置的 BrickLink OAuth 憑據。

資料釋出於 2026-10-29

可以用來做什麼

  • 查詢 BrickLink 店鋪訂單、庫存和目錄資訊
  • 在確認後更新店鋪訂單、反饋或庫存
  • 生成供內部檢查的訂單詳情或發票檔案

什麼時候用

  • 已明確店鋪賬號、物件和操作範圍時
  • 執行變更前能檢查當前狀態並人工複核命令時
  • 使用最小許可權憑據並妥善儲存含客戶資訊的匯出檔案時

示例提示詞

以下是根據技能文件生成的示例,不代表實際執行結果。

列出指定 BrickLink 店鋪庫存的只讀檢查步驟,並將任何建立、更新或刪除操作單獨標記為需人工確認;不要呼叫 CLI。

月度資料趨勢

累計下載3858
2284313039752026-03 · 累計下載 24012026-05 · 累計下載 29772026-06 · 累計下載 31402026-07 · 累計下載 34632026-08 · 累計下載 36192026-09 · 累計下載 385826-0326-09
星標1
0122026-03 · 星標 12026-05 · 星標 12026-06 · 星標 12026-07 · 星標 12026-08 · 星標 12026-09 · 星標 126-0326-09

2026-09 起統計方法調整:同名技能按作者分別統計,並覆蓋全部技能。圖中虛線為調整前的月份,與之後的資料不直接比較,也不計算跨越調整的增長。

月份累計下載環比星標
2026-093858—1
2026-083619+4.5%1
2026-073463+10.3%1
2026-063140+5.5%1
2026-052977—1
2026-032401—1

SKILL.md 原文

以下是作者釋出的原始檔案,按純文字顯示,本站未做修改或稽核;其中的連結不可點選,命令請核實後再執行。抓取於 2026-10-23。

4.8 KB · ClawHub v1.4.4
---
name: bricklink
description: "BrickLink Store API helper/CLI (OAuth 1.0 request signing). Covers orders, store inventory (read + write), catalog, categories, colors, feedback, and push notifications."
summary: "BrickLink Store API CLI: orders, inventory, catalog, pricing, feedback."
version: 1.4.4
homepage: https://github.com/odrobnik/bricklink-skill
metadata:
  openclaw:
    emoji: "🧱"
    requires:
展開全部(共 74 行)
      bins: ["python3"]
      env: ["BRICKLINK_CONSUMER_KEY", "BRICKLINK_CONSUMER_SECRET", "BRICKLINK_TOKEN_VALUE", "BRICKLINK_TOKEN_SECRET"]
---

# BrickLink

Use `scripts/bricklink.py`.

## Setup

See [SETUP.md](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. Include/exclude flags are repeatable and accept comma-separated lists (e.g. `--exclude-status purged,completed`).
- `bricklink.py get-order <order_id>` - Fetches details for a specific order.
- `bricklink.py get-order-items <order_id>` - Fetches the item batches for a specific order.
- `bricklink.py get-order-messages <order_id>` - Fetches messages associated with a specific order.
- `bricklink.py get-order-feedback <order_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 <feedback_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 <category_id>` - Fetches a single category by id.

- `bricklink.py get-colors` - Lists all catalog colors.
- `bricklink.py get-color <color_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 <inventory_id>` - Fetches a single inventory lot by id.

- `bricklink.py get-item <type> <no>` - Fetches a catalog item (PART/SET/MINIFIG/…).
- `bricklink.py get-supersets <type> <no> [--color-id N]` - Lists items that contain the specified item.
- `bricklink.py get-subsets <type> <no> [--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 <type> <no> [--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 <type> <no>` - 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 <order_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 <order_id> <status>` — Updates the status of an order. Store orders only.
- `bricklink.py update-payment-status <order_id> <payment_status>` — Updates the payment status of an order. Store orders only.
- `bricklink.py send-drive-thru <order_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 <feedback_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 <inventory_id> [--quantity N --unit-price ... --new-or-used N|U --remarks ...]` - Updates an inventory lot.
- `bricklink.py delete-inventory <inventory_id>` - Deletes an inventory lot.

### Utilities

- `bricklink.py order-detail-html <order_id> [--out path] [--inline-images]` - Fetches order+items and renders a compact HTML view (similar to BrickLink orderDetail.asp).
- `bricklink.py order-invoice-html <order_id> [--out path]` - Fetches order+items and renders a printable invoice HTML using the workspace `bricklink/invoice-template.html` styling.

「開發程式設計」分類下的熱門技能

Oliver Drobnik 的其他技能

資料月份:2026-09 · 下載/星標/安裝數聚合自公開技能註冊庫(ClawHub、SkillHub),按月更新。口徑說明見資料方法。