← 返回 Skills 市场
musketyr

AFOL

作者 Vladimir Orany · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
13
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install afol
功能描述
Use this orchestration skill to choose the right AFOL provider skill for catalog lookup, marketplace pricing, collection management, valuation, and cross-pro...
使用说明 (SKILL.md)

AFOL meta skill

Use 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:

  • Orchestration reference: references/prompts/afol-router.txt
  • CLI source: scripts/afol_cli.py
  • Metadata-only OpenAPI placeholder: references/openapi/afol.yaml

Do 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.

Provider routing

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.

Credential readiness

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.

CLI quick reference

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.

Canonical workflows

“Tell me everything about set 10236-1”

  1. Use rebrickable set --set-num 10236-1 for canonical set identity and basic catalog data.
  2. Use rebrickable set-parts --set-num 10236-1 only if inventory/parts matter.
  3. Use brickset details --set-number 10236-1 for richer metadata, images, instructions, release status, ratings, and Brickset IDs.
  4. Use brickeconomy set --set-number 10236-1 --currency \x3Ccurrency> only when the user asks about value, ROI, investment, or current/forecast prices.
  5. Use marketplace provider skills only when the user asks about buying, selling, price guides, or listings.

“What is this minifig worth?”

  1. Identify the minifig number with rebrickable minifigs --search ... if the user did not provide one.
  2. Use brickeconomy minifig --minifig-number \x3Cid> --currency \x3Ccurrency> for valuation and forecast fields.
  3. Use bricklink price-guide or item lookup only if the user asks for market validation or current marketplace pricing.

“Compare BrickLink vs BrickOwl price”

  1. Resolve the entity first; do not guess provider IDs.
  2. Use BrickLink and BrickOwl read-only lookup/price/catalog commands.
  3. Report assumptions clearly: item type, color, condition, currency, quantity, and whether shipping is included.
  4. Do not create listings, orders, feedback, member notes, or coupons unless the user explicitly asks and approves the exact write.

“Prepare collection valuation”

  1. Prefer one collection endpoint over many individual lookups.
  2. Use brickeconomy collection-sets / collection-minifigs for value, growth, and ROI when available.
  3. Use Rebrickable or Brickset private collection endpoints only if the matching user token/hash is configured and the user asked for private collection analysis.
  4. Treat collection and sales-ledger payloads as private financial/account data; summarize, do not dump raw rows.

“Find IDs across providers”

  1. Start from Rebrickable set/part/minifig/color identity when possible.
  2. Use provider-specific mapping or lookup commands for BrickLink, BrickOwl, and Brickset.
  3. If an official reference lacks an endpoint for a mapping, say so; do not invent IDs.
  4. Keep null/not-found distinct from not-checked-yet.

Safety rules

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:

  • Rebrickable list/set/part writes require the Rebrickable skill’s --yes; use --dry-run first.
  • Brickset collection/wishlist writes require the Brickset skill’s --yes; use --dry-run first.
  • BrickOwl inventory writes/deletes require the BrickOwl skill’s --yes; use --dry-run first.
  • BrickLink inventory/order/feedback/coupon/member-note writes require the BrickLink skill’s --yes; use --dry-run first.
  • BrickEconomy is currently read-only in this skill pack, but private collection and sales-ledger reads are still sensitive.

Never checkout, order, buy, sell, update inventory, delete listings, post feedback, or alter collections from inference alone.

Common pitfalls

  1. Starting with marketplace APIs for identity questions. Use Rebrickable or Brickset first; marketplaces are noisy and condition/currency-sensitive.
  2. Treating Brick Directory as the source of truth. The app is optional glue. The durable layer is provider skills over official APIs.
  3. Bulk fan-out by habit. BrickEconomy has tight limits; marketplace calls can be expensive/noisy. Start narrow.
  4. Leaking private data. Collection, inventory, order, store, and sales-ledger data should be summarized, not pasted raw.
  5. Guessing IDs. Resolve IDs via provider lookup/mapping commands instead of fabricating BrickLink, BrickOwl, Brickset, or Rebrickable IDs.
  6. Letting credentials imply approval. They only prove access; writes still need explicit approval and provider guard flags.

Live smoke checks

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.

Verification checklist

  • Route catalog/identity questions to Rebrickable or Brickset first.
  • Route valuation/forecasting to BrickEconomy.
  • Route marketplace, inventory, order, feedback, coupon, and member-note workflows to BrickLink or BrickOwl.
  • Keep Brick Directory optional, never a dependency for provider data.
  • Report credential readiness without printing secret values.
  • Use provider skill dry-runs and --yes guards for any write.
安全使用建议
This skill appears safe to install as a routing helper if you want AFOL provider orchestration. Before using it with real accounts, verify the CLI path, review the separate provider skills it will route to, set only the credentials you need, and require explicit confirmation for any action that changes listings, orders, notes, feedback, coupons, or collection data.
功能分析
Type: OpenClaw Skill Name: afol Version: 1.0.0 The 'afol' skill bundle is a legitimate orchestration tool for LEGO-related APIs (Rebrickable, Brickset, BrickLink, etc.). The core logic in 'scripts/afol_cli.py' safely checks for the presence of API credentials without printing their values and provides deterministic routing based on user keywords. The 'SKILL.md' instructions emphasize safety, requiring explicit user consent for write operations and warning against data leakage.
能力标签
requires-sensitive-credentials
能力评估
Purpose & Capability
The purpose is coherent: the skill routes LEGO/AFOL tasks to provider-specific skills and the included CLI only produces routing and credential-readiness hints. Its intended downstream workflows include private collection, marketplace, and valuation/account data, so users should notice the sensitivity.
Instruction Scope
The instructions are mostly well scoped and say read-only by default, summarize private data, and require explicit approval for writes. The write-capable marketplace actions are high impact but are disclosed and bounded in the visible artifacts.
Install Mechanism
There is no install spec and the code is a simple local Python CLI. However, SKILL.md documents `scripts/afol` while the manifest only includes `scripts/afol_cli.py`, so the documented entrypoint may be missing or mispackaged.
Credentials
No environment variables are required by registry metadata, but the skill documents optional provider API keys, OAuth tokens, user hashes, and private account credentials. This is purpose-aligned for provider integrations, and the code checks presence without printing secret values.
Persistence & Privilege
The provided code shows no persistence, background workers, file writes, network calls, or automatic credential transmission. Any account mutation is delegated to provider skills and is documented as requiring explicit user approval.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install afol
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /afol 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Release main
元数据
Slug afol
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

AFOL 是什么?

Use this orchestration skill to choose the right AFOL provider skill for catalog lookup, marketplace pricing, collection management, valuation, and cross-pro... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 13 次。

如何安装 AFOL?

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

AFOL 是免费的吗?

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

AFOL 支持哪些平台?

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

谁开发了 AFOL?

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

💬 留言讨论