Rebrickable AFOL Skill for Openclaw

A powerful LEGO management skill for catalog lookups, inventory tracking, and buildability analysis via the Rebrickable API.

musketyr
v1.0.0
May 10, 2026
0
637
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install afol-rebrickable

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install afol-rebrickable using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Rebrickable AFOL Skill?

The Rebrickable AFOL skill is a specialized technical tool designed for Adult Fans of LEGO (AFOL) who want to integrate their collection management directly into their AI workflows. By leveraging Openclaw Skills, this tool provides a robust CLI interface to the Rebrickable API, enabling seamless catalog searching, part identification, and collection synchronization.

Built with developer safety and precision in mind, the skill includes built-in OpenAPI references and domain guidance. It allows users to query over 60,000 sets and 200,000 parts while maintaining a local, secure environment for managing private inventory data and lost-parts tracking.

Rebrickable AFOL Skill Use Cases

  • Searching the LEGO catalog for specific set numbers, themes, or part categories.
  • Analyzing buildability to see if you own the required parts for a specific MOC or official set.
  • Managing digital inventories by adding or updating sets and parts in your Rebrickable lists.
  • Identifying mystery elements using element IDs or specific color codes.
  • Tracking lost parts and managing minifig inventories across a global collection.

How Rebrickable AFOL Skill Works

  1. The skill acts as a wrapper for the Rebrickable API v3, utilizing a local Python CLI (rebrickable_cli.py).
  2. It securely loads credentials from environment variables to authenticate requests using the key-based Authorization header.
  3. For catalog lookups, it sends GET requests to Rebrickable's public endpoints to retrieve real-time LEGO data.
  4. For collection management, it uses a user token to access private lists, part inventories, and profile details.
  5. All mutating operations (POST, PUT, DELETE) are protected by a mandatory dry-run and explicit confirmation flow to prevent accidental data loss.

Rebrickable AFOL Skill Setup

To get started with this skill in Openclaw Skills, configure your environment variables and run the CLI script:

# Set your Rebrickable API Key
export REBRICKABLE_API_KEY=your_api_key_here

# (Optional) Set your User Token for collection management
export REBRICKABLE_USER_TOKEN=your_user_token_here

# Run the help command to verify installation
scripts/rebrickable --help

Rebrickable AFOL Skill Data Schema & Taxonomy

The skill organizes data based on the Rebrickable domain model, ensuring high fidelity with the official LEGO catalog:

Data Category Key Identifiers Primary Usage
Sets set_num Catalog lookup, build analysis, and set-list management.
Parts part_num, color_id Inventory tracking and lost-part management.
Elements element_id Direct mapping of LEGO Element IDs to part/color pairs.
Collections list_id User-defined groupings of sets and parts.
Minifigs set_num Character-specific lookups and part breakdowns.

Rebrickable AFOL Skill Advanced Features

  • Dry-run capability for all mutating commands to verify JSON request shapes without affecting the live database.
  • Support for all-parts inventory filtering to optimize performance for massive collections.
  • Detailed build analysis to determine percentage completion of sets based on owned inventory.
  • Comprehensive coverage of Rebrickable's OpenAPI spec for colors, themes, and part categories.
  • Redaction of sensitive headers and tokens in CLI output to maintain developer privacy.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*