← 返回 Skills 市场
stanestane

Brickset

作者 Stanislav Stankovic · GitHub ↗ · v1.1.0 · MIT-0
cross-platform ⚠ suspicious
71
总下载
0
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install brickset
功能描述
Human-friendly Brickset API v3 access for LEGO set lookup and Brickset automation. Use when you need to search LEGO sets, browse themes, years, or subthemes,...
使用说明 (SKILL.md)

Brickset

Use this skill for real Brickset API v3 operations with either raw JSON output or readable text summaries.

Requirements

  • BRICKSET_API_KEY must be set in the environment or workspace .env, or passed with --api-key
  • Python 3.10+

What works well

  • check-key — validate the API key
  • usage-stats — inspect 30-day API usage
  • themes — list Brickset themes
  • subthemes — list subthemes for a theme
  • years — list release years, globally or per theme
  • search — simple wrapper around getSets
  • get-sets — raw getSets access with JSON params
  • instructions2 — fetch instructions by set number
  • additional-images — fetch extra image URLs by Brickset setID
  • raw — call any Brickset method directly when the built-in subcommands are not enough

Output modes

  • Default: JSON for scripting and automation
  • --format text: readable summaries for humans

Commands

# Validate key
python {{baseDir}}/scripts/brickset.py --format text check-key

# Usage stats
python {{baseDir}}/scripts/brickset.py --format text usage-stats

# Browse catalog metadata
python {{baseDir}}/scripts/brickset.py --format text themes
python {{baseDir}}/scripts/brickset.py --format text subthemes Technic
python {{baseDir}}/scripts/brickset.py --format text years
python {{baseDir}}/scripts/brickset.py --format text years --theme Space

# Search sets
python {{baseDir}}/scripts/brickset.py --format text search "Galaxy Explorer" --page-size 5
python {{baseDir}}/scripts/brickset.py --format text search Blacktron --theme Space --page-size 10 --order-by YearFromDESC
python {{baseDir}}/scripts/brickset.py get-sets --params '{"setNumber":"6990-1","extendedData":1}'

# Instructions and images
python {{baseDir}}/scripts/brickset.py --format text instructions2 10497-1
python {{baseDir}}/scripts/brickset.py --format text additional-images 1700

# Direct/raw API access
python {{baseDir}}/scripts/brickset.py raw getReviews --param setID=1700
python {{baseDir}}/scripts/brickset.py --format text raw getCollection --param userHash=\x3Chash>

Notes

  • getSets consumes Brickset API quota.
  • Brickset's getSets endpoint is happier when userHash is present, so the CLI sends an empty one automatically for anonymous searches.
  • Use raw for methods like login, checkUserHash, getReviews, getCollection, or collection-management calls that are not wrapped yet.

Reference

  • Read references/api.md when you need the compact parameter guide for getSets or a reminder of which methods are available.

Script

  • scripts/brickset.py — main CLI entrypoint
安全使用建议
This skill mostly looks like a straightforward Brickset API CLI, but note two issues before installing: (1) the skill requires BRICKSET_API_KEY (per SKILL.md and the script) even though the registry metadata doesn't declare any required env vars — confirm you are comfortable providing your Brickset API key. (2) The bundled script searches for a .env file in the current directory and parent directories to find BRICKSET_API_KEY; if you keep other secrets in a parent .env, they won't be used by the script but the script will read that file — consider keeping your API key in a dedicated .env or pass it explicitly with --api-key. If you want higher assurance, review the full scripts/brickset.py content locally or run the script in an isolated environment before providing credentials.
功能分析
Type: OpenClaw Skill Name: brickset Version: 1.1.0 The brickset skill is a standard API wrapper for the Brickset v3 web service. The Python script (scripts/brickset.py) uses the standard library to perform authenticated requests to brickset.com and includes functionality to manage API keys via environment variables or local .env files. No evidence of data exfiltration, malicious execution, or prompt injection was found; the 'raw' command is a legitimate feature for accessing API endpoints not explicitly wrapped by the CLI.
能力标签
requires-sensitive-credentials
能力评估
Purpose & Capability
The SKILL.md and the bundled script clearly require a BRICKSET_API_KEY to call Brickset APIs, but the registry metadata lists no required environment variables or primary credential. That mismatch is incoherent (the skill does need an API key even though metadata doesn't declare it). Otherwise the requested functionality (searching sets, usage, instructions, raw calls) aligns with Brickset API usage.
Instruction Scope
The runtime instructions and CLI subcommands in SKILL.md map directly to calls to Brickset API methods (checkKey, getSets, getInstructions2, getAdditionalImages, etc.). The SKILL.md does not instruct the agent to read unrelated system files or send data to unexpected endpoints; it explicitly targets brickset.com API endpoints.
Install Mechanism
No install spec is provided (instruction-only with a bundled script). There is no remote download or archive extraction. The script is included in the skill bundle so nothing is fetched at install time.
Credentials
The script requires BRICKSET_API_KEY (via --api-key, environment, or workspace .env), but the registry metadata does not declare this. The code also scans for a .env file in the current directory and parent directories, which may read unrelated workspace secrets — although the script uses the .env only to obtain BRICKSET_API_KEY, the behavior broadens the surface that could accidentally pick up credentials stored in a parent .env.
Persistence & Privilege
The skill does not request always: true and does not modify other skills or system-wide configurations. It runs as a normal user-space CLI calling Brickset endpoints.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install brickset
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /brickset 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.1.0
Add human-readable text output mode and improve skill description/examples for ClawHub.
v1.0.0
Initial release: Brickset API v3 skill with key validation, usage stats, set search, themes/subthemes/years, instructions, additional images, and raw API access.
元数据
Slug brickset
版本 1.1.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 2
常见问题

Brickset 是什么?

Human-friendly Brickset API v3 access for LEGO set lookup and Brickset automation. Use when you need to search LEGO sets, browse themes, years, or subthemes,... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 71 次。

如何安装 Brickset?

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

Brickset 是免费的吗?

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

Brickset 支持哪些平台?

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

谁开发了 Brickset?

由 Stanislav Stankovic(@stanestane)开发并维护,当前版本 v1.1.0。

💬 留言讨论