Install
openclaw skills install afolUse this orchestration skill to choose the right AFOL provider skill for catalog lookup, marketplace pricing, collection management, valuation, and cross-provider workflows.
openclaw skills install afolUse this skill when the user asks a broad AFOL collector question and it is not obvious which provider-specific skill should handle it. This is the human-facing router over the provider skills, not another vendor API wrapper.
Primary interface: scripts/afol.
The skill composes the checked-in provider skills and keeps orchestration guidance inside this skill directory:
references/prompts/afol-router.txtscripts/afol_cli.pyreferences/openapi/afol.yamlDo not route through the Brick Directory app by default. Prefer the official provider skills directly. Brick Directory may be useful later for app-specific rendered reports or internal cross-provider mappings, but it is not the canonical data layer for this skill.
| User intent | Start with | Then use | Why |
|---|---|---|---|
| Find a set, part, minifig, element, color, theme, or inventory | rebrickable | brickset for richer set metadata | Rebrickable is the canonical catalog/data backbone. |
| Exact set metadata, images, instructions, reviews, release status, owned/wanted context | brickset | rebrickable for inventory/parts | Brickset has strong editorial/set metadata and user collection fields. |
| Marketplace pricing, price guides, orders, inventory, feedback, coupons, member notes | bricklink | brickowl for marketplace comparison | BrickLink is the main marketplace and price-guide source. |
| BrickOwl store inventory, catalog ID lookup, listing management | brickowl | bricklink for market comparison | BrickOwl has separate store/catalog IDs and marketplace workflows. |
| Set or minifig valuation, forecasts, growth, ROI, collection performance, sales ledger | brickeconomy | bricklink for current market validation | BrickEconomy is the value/forecasting provider. |
| Cross-provider ID translation | rebrickable | bricklink, brickowl, brickset | Normalize to stable catalog IDs first, then fan out. |
| “Tell me everything about set X” | rebrickable + brickset | brickeconomy, then marketplaces if pricing is requested | Avoid expensive/bulk pricing unless the user asked for it. |
Use scripts/afol credentials to check which capabilities are unlocked without printing secret values.
Provider env vars:
export REBRICKABLE_API_KEY=... # catalog lookup and public Rebrickable reads
export REBRICKABLE_USER_TOKEN=... # optional private Rebrickable collection reads/writes
export BRICKSET_API_KEY=... # Brickset public reads
export BRICKSET_USER_HASH=... # optional private Brickset collection/wishlist/notes
export BRICKOWL_API_KEY=... # BrickOwl store/account reads and guarded writes
export BRICKLINK_API_CONSUMER_KEY=... # BrickLink OAuth1 credential set
export BRICKLINK_API_CONSUMER_SECRET=...
export BRICKLINK_API_TOKEN_VALUE=...
export BRICKLINK_API_TOKEN_SECRET=...
export BRICKECONOMY_API_KEY=... # BrickEconomy valuation and private portfolio reads
Never print, commit, log, or paste real credentials. Report only whether each provider is ready.
Run commands from this skill directory:
scripts/afol --help
scripts/afol route "What is set 10236-1 worth?"
scripts/afol route "Find parts for Millennium Falcon"
scripts/afol route "Compare BrickLink and BrickOwl price for 3001 red"
scripts/afol credentials
The CLI does not call provider APIs. It gives deterministic routing and credential-readiness hints so an agent can load/use the correct provider skill next.
rebrickable set --set-num 10236-1 for canonical set identity and basic catalog data.rebrickable set-parts --set-num 10236-1 only if inventory/parts matter.brickset details --set-number 10236-1 for richer metadata, images, instructions, release status, ratings, and Brickset IDs.brickeconomy set --set-number 10236-1 --currency <currency> only when the user asks about value, ROI, investment, or current/forecast prices.rebrickable minifigs --search ... if the user did not provide one.brickeconomy minifig --minifig-number <id> --currency <currency> for valuation and forecast fields.bricklink price-guide or item lookup only if the user asks for market validation or current marketplace pricing.brickeconomy collection-sets / collection-minifigs for value, growth, and ROI when available.Read-only by default. Credentials are capability, not consent.
Writes are allowed only after explicit current-conversation user intent and the provider skill’s mechanical guard:
--yes; use --dry-run first.--yes; use --dry-run first.--yes; use --dry-run first.--yes; use --dry-run first.Never checkout, order, buy, sell, update inventory, delete listings, post feedback, or alter collections from inference alone.
Local, no-network checks:
python3 -m py_compile scripts/afol_cli.py
scripts/afol route "What is set 10236-1 worth?"
scripts/afol credentials
Provider live smoke tests belong in the provider skills. This meta skill should not call external APIs itself.
--yes guards for any write.