← Back to Skills Marketplace
stanestane

Brickset

by Stanislav Stankovic · GitHub ↗ · v1.1.0 · MIT-0
cross-platform ⚠ suspicious
71
Downloads
0
Stars
0
Active Installs
2
Versions
Install in OpenClaw
/install brickset
Description
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,...
README (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
Usage Guidance
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.
Capability Analysis
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.
Capability Tags
requires-sensitive-credentials
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install brickset
  3. After installation, invoke the skill by name or use /brickset
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Slug brickset
Version 1.1.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 2
Frequently Asked Questions

What is 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,... It is an AI Agent Skill for Claude Code / OpenClaw, with 71 downloads so far.

How do I install Brickset?

Run "/install brickset" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Brickset free?

Yes, Brickset is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Brickset support?

Brickset is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Brickset?

It is built and maintained by Stanislav Stankovic (@stanestane); the current version is v1.1.0.

💬 Comments