← 返回 Skills 市场
musketyr

BrickEconomy

作者 Vladimir Orany · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
15
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install brickeconomy
功能描述
Use the BrickEconomy API through the included CLI for LEGO set/minifig valuation, collection performance, and sales-ledger analysis from verified Brick Direc...
使用说明 (SKILL.md)

BrickEconomy AFOL skill

Use this skill when the user asks about LEGO set values, minifig values, BrickEconomy collection valuation, collection growth, investment performance, forecasts, ROI, or sales-ledger profit/loss.

Primary interface: scripts/brickeconomy.

The skill is self-contained for archive distribution and wraps the BrickEconomy API directly using checked-in references inside this skill directory:

  • OpenAPI reference: references/openapi/brickeconomy.yaml
  • Domain guidance: references/prompts/brickeconomy-tools.txt
  • CLI source: scripts/brickeconomy_cli.py

Do not scrape vendor docs or invent parameters when the checked-in OpenAPI reference covers the endpoint. If the reference is insufficient, say what is missing.

Authentication

Required environment variable:

export BRICKECONOMY_API_KEY=...

Optional override:

export BRICKECONOMY_BASE_URL=https://www.brickeconomy.com/api/v1

Never print, commit, log, or paste the real API key. Commands should reference $BRICKECONOMY_API_KEY only indirectly through the CLI.

BrickEconomy auth placement matters: every API call sends the key as the x-apikey HTTP header, not as a query parameter or form field. The CLI handles that, which is the main reason to use it instead of ad-hoc curl.

CLI quick reference

Run commands from this skill directory:

scripts/brickeconomy --help
scripts/brickeconomy set --set-number 10236-1 --currency EUR
scripts/brickeconomy minifig --minifig-number sw0509 --currency USD
scripts/brickeconomy collection-sets --currency EUR
scripts/brickeconomy collection-minifigs --currency EUR
scripts/brickeconomy sales-ledger

All commands are read-only. Use --dry-run to inspect request shape without requiring an API key or calling BrickEconomy:

scripts/brickeconomy set --dry-run --set-number 10236-1 --currency EUR
scripts/brickeconomy sales-ledger --dry-run

Safety rules

The checked-in BrickEconomy spec for this skill contains only read-only GET endpoints:

  • set
  • minifig
  • collection-sets
  • collection-minifigs
  • sales-ledger

There are no collection mutation, marketplace listing, order update, wishlist, delete, or bulk-update endpoints in this skill archive.

Still be careful:

  • Treat returned collection and sales-ledger data as private financial/account data.
  • Do not call personal collection or sales-ledger endpoints unless the user asked for personal collection, ROI, or sales analysis.
  • Do not fan out across many set/minifig lookups unless the user asked for bulk analysis and the 100 requests/day, 4 requests/minute limit budget is acceptable.
  • If a future BrickEconomy reference adds mutating endpoints, require explicit user confirmation in the current conversation and a mechanical guard such as --yes; keep --dry-run available.

Endpoint coverage

Workflow CLI command Method/path Operation Notes
Set value set --set-number 10236-1 --currency EUR GET /set/{setNumber} getSet Accepts set numbers with or without variant suffix, for example 10236 or 10236-1. Supports optional currency.
Minifig value minifig --minifig-number sw0509 --currency USD GET /minifig/{minifigNumber} getMinifig Accepts BrickEconomy minifig numbers such as sw0509. Supports optional currency.
Collection sets collection-sets --currency EUR GET /collection/sets getCollectionSets Returns all authenticated set collection entries with paid price, current value, growth, acquisition, condition, and collection fields.
Collection minifigs collection-minifigs --currency EUR GET /collection/minifigs getCollectionMinifigs Returns all authenticated minifig collection entries with paid price, current value, growth, acquisition, and collection fields.
Sales ledger sales-ledger GET /salesledger getSalesLedger Returns set and minifig sale records with sale price, fees/shipping, quantity, buy price, dates, condition, and notes. No currency parameter is defined for this endpoint in the spec.

Supported currency codes from the spec: USD, GBP, CAD, AUD, CNY, KRW, EUR, JPY, CHF, INR, BRL, RUB, ZAR, MXN, SGD, HKD, SEK, NZD, NOK, TRY, DKK, PLN. API default is USD.

Known BrickEconomy limits from references/prompts/brickeconomy-tools.txt: 100 requests/day and 4 requests/minute. Be stingy: one collection call is better than N individual set calls when analyzing a user's portfolio.

Analysis rules

All analysis must be grounded in API response fields. Do not fill missing values from memory, web search, BrickLink, or another provider unless the user explicitly asks for multi-provider fallback and you name the source.

For set value responses, use fields such as:

  • current_value_new, current_value_used, current_value_used_low, current_value_used_high
  • forecast_value_new_2_years, forecast_value_new_5_years
  • rolling_growth_lastyear, rolling_growth_12months
  • price_events_new, price_events_used
  • retired, released_date, retired_date, retail_price_*, currency

For minifig value responses, use fields such as:

  • current value fields
  • forecast and growth fields when present
  • set_count, sets, theme, subtheme, year, currency

For collection analysis:

  • Prefer collection-sets or collection-minifigs over repeated individual lookups.
  • Calculate ROI only from returned paid/acquisition value and current value fields.
  • Sort best performers by explicit growth percentage or absolute gain from the response; say which metric you used.
  • Do not hide low-confidence or missing paid-price rows inside totals; call out missing data.

For sales-ledger analysis:

  • Compute profit/loss only from returned sale price, fees, shipping, buy price, quantity, and dates.
  • Mention whether totals include fees/shipping based on fields present in the ledger response.
  • Keep buyer/order/note details private unless the user specifically needs them.

Read-only smoke checks

Local, no-network checks:

python3 -m py_compile scripts/brickeconomy_cli.py
scripts/brickeconomy set --dry-run --set-number 10236-1 --currency EUR
scripts/brickeconomy sales-ledger --dry-run

Live smoke checks, only when BRICKECONOMY_API_KEY is configured:

scripts/brickeconomy set --set-number 10236-1 --currency USD
scripts/brickeconomy minifig --minifig-number sw0509 --currency USD

Summarize only response shape, for example top-level keys and whether data is an object/list. Do not paste full collection or sales-ledger data into reports.

BrickEconomy limitations and routing

BrickEconomy is appropriate for:

  • set and minifig valuation
  • forecasts and growth-rate analysis
  • authenticated collection valuation and performance
  • authenticated sales-ledger profit/loss analysis

BrickEconomy is not appropriate for:

  • individual part pricing
  • current marketplace offers/listings from sellers
  • collection mutation or marketplace inventory writes
  • BrickOwl/BrickLink catalog identifier lookup

If the user asks for part prices, seller availability, or buy/sell marketplace actions, route to the relevant BrickLink or BrickOwl skill instead of forcing BrickEconomy.

Verification

Before committing changes to this skill:

python3 -m unittest discover -s tests -p 'test_*.py'
scripts/validate-skills.sh
git diff --check
安全使用建议
Install only if you are comfortable giving the skill a BrickEconomy API key and having requested collection or sales-ledger data appear in the chat. Prefer using the documented read-only CLI paths, avoid arbitrary base URL overrides, and be aware that one bundled reference mentions external pricing tools not included in this package.
功能分析
Type: OpenClaw Skill Name: brickeconomy Version: 1.0.0 The brickeconomy skill bundle is a well-documented and safe interface for interacting with the BrickEconomy API. The Python CLI (scripts/brickeconomy_cli.py) uses only the standard library, implements proper URL encoding for parameters, and restricts operations to read-only GET requests as defined in the provided OpenAPI specification. The instructions in SKILL.md and the prompt guidance emphasize security best practices, such as protecting API keys and respecting user data privacy.
能力标签
cryptocan-make-purchasesrequires-sensitive-credentials
能力评估
Purpose & Capability
The CLI behavior matches the stated BrickEconomy valuation/collection purpose and uses read-only GET endpoints, but it includes access to authenticated personal collection and sales-ledger records.
Instruction Scope
The main SKILL.md gives reasonable safety rules, but the bundled prompt reference contains stronger cross-tool guidance such as always using an external unified pricing tool, which is broader than the included CLI.
Install Mechanism
There is no install spec and the manifest includes scripts/brickeconomy_cli.py while SKILL.md names scripts/brickeconomy as the primary interface, suggesting a packaging or wrapper mismatch rather than malicious install behavior.
Credentials
SKILL.md and the code require BRICKECONOMY_API_KEY, but registry requirements list no required env vars or primary credential; the credential use itself is purpose-aligned and disclosed in SKILL.md.
Persistence & Privilege
No persistence, background execution, local credential-store access, destructive file operations, or mutating API calls are shown in the provided code.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install brickeconomy
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /brickeconomy 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Release main
元数据
Slug brickeconomy
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

BrickEconomy 是什么?

Use the BrickEconomy API through the included CLI for LEGO set/minifig valuation, collection performance, and sales-ledger analysis from verified Brick Direc... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 15 次。

如何安装 BrickEconomy?

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

BrickEconomy 是免费的吗?

是的,BrickEconomy 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

BrickEconomy 支持哪些平台?

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

谁开发了 BrickEconomy?

由 Vladimir Orany(@musketyr)开发并维护,当前版本 v1.0.0。

💬 留言讨论