运行时依赖
安装命令
点击复制本土化适配说明
AFOL Rebrickable 安装说明: 安装命令:["openclaw skills install afol-rebrickable"]
技能文档
Rebrickable AFOL 技能 当用户请求 Rebrickable 目录查找、Rebrickable 套装或零件列表管理、用户收藏分析、可建造性检查、拥有的套装中的迷你人物、所有零件库存或丢失零件跟踪时使用此技能。 主要接口:scripts/rebrickable。 此技能为自包含的存档分布,直接使用 checked-in 引用包装 Rebrickable API:OpenAPI 引用:references/openapi/rebrickable.yaml 领域指导:references/prompts/rebrickable-tools.txt CLI 源代码:scripts/rebrickable_cli.py 不要刮取供应商文档或发明参数,当 checked-in OpenAPI 引用涵盖端点时。 如果引用不足,请说明缺少的内容。 身份验证 所需环境变量:export REBRICKABLE_API_KEY=... 可选环境变量:export REBRICKABLE_USER_TOKEN=... # 用于用户收藏端点 export REBRICKABLE_BASE_URL=https://rebrickable.com/api/v3 永远不要打印、提交、记录或粘贴真实 API 密钥或用户令牌。 命令应仅通过 CLI 间接引用凭证。 Rebrickable 身份验证位置很重要:API 身份验证进入 Authorization 标头作为密钥 。 CLI 处理该标头并在干跑中删除它。 用户特定端点包括用户令牌在 URL 路径中。 将 REBRICKABLE_USER_TOKEN视为私有,即使它不是 API 密钥。 CLI 快速参考 从此技能目录运行命令: scripts/rebrickable --help scripts/rebrickable colors --page-size 5 scripts/rebrickable sets --search "Millennium Falcon" --page-size 5 scripts/rebrickable set --set-num 75192-1 scripts/rebrickable set-parts --set-num 75192-1 --page-size 20 scripts/rebrickable parts --part-num 3001 scripts/rebrickable element --element-id 300121 scripts/rebrickable minifigs --search "Darth Vader" --page-size 5 scripts/rebrickable part-categories --page-size 20 scripts/rebrickable themes --page-size 20 用户只读示例,只有当 REBRICKABLE_USER_TOKEN 配置或传递 --user-token 时: scripts/rebrickable profile scripts/rebrickable set-lists scripts/rebrickable set-list-sets --list-id 123 scripts/rebrickable all-sets --search "Star Wars" --page-size 20 scripts/rebrickable part-lists scripts/rebrickable part-list-parts --list-id 456 --page-size 20 scripts/rebrickable all-parts --part-num 3001 --page-size 20 scripts/rebrickable all-minifigs --search "astromech" --page-size 20 scripts/rebrickable build --set-num 8043-1 scripts/rebrickable lost-parts --page-size 20 变异命令受到保护。除非传递 --yes,否则它们不会执行;首先使用 --dry-run: scripts/rebrickable create-set-list --dry-run --name "Wanted builds" --is-buildable true scripts/rebrickable add-sets-to-list --dry-run --list-id 123 --sets-json '[{"set_num":"8043-1","quantity":1}]' scripts/rebrickable update-set-in-list --dry-run --list-id 123 --set-num 8043-1 --quantity 2 scripts/rebrickable remove-set-from-list --dry-run --list-id 123 --set-num 8043-1 scripts/rebrickable create-part-list --dry-run --name "Missing dark bluish gray" scripts/rebrickable add-part-to-list --dry-run --list-id 456 --part-num 3001 --color-id 72 --quantity 4 scripts/rebrickable update-part-in-list --dry-run --list-id 456 --part-num 3001 --color-id 72 --quantity 8 scripts/rebrickable remove-part-from-list --dry-run --list-id 456 --part-num 3001 --color-id 72 scripts/rebrickable add-lost-part --dry-run --inv-part-id 806698 --lost-quantity 1 scripts/rebrickable remove-lost-part --dry-run --lost-part-id 999 安全规则 默认为只读:公共目录命令:colors、color、element、minifigs、minifig、minifig-parts、minifig-sets、part-categories、part-category、parts、part、part-colors、part-color、part-color-sets、sets、set、set-parts、set-minifigs、set-alternates、themes、theme 用户读取命令:profile、set-lists、set-list、set-list-sets、all-sets、part-lists、part-list-parts、all-parts、all-minifigs、build、lost-parts 变异操作需要在当前对话中显式用户确认执行:create-set-list、update-set-list、delete-set-list、add-sets-to-list、update-set-in-list、remove-set-from-list、create-part-list、delete-part-list、add-part-to-list、update-part-in-list、remove-part-from-list、add-lost-part、remove-lost-part 存储的凭证不是权限。在任何变异之前,重新声明确切的平台、列表 ID、套装编号、零件编号、颜色 ID、数量、丢失零件记录以及操作是否创建、更新或删除数据。 等待显式确认,例如 "是的,添加套装 8043-1 到 Rebrickable 列表 123"。 CLI 机械上执行此操作:变异命令除非传递 --yes,否则将失败,--dry-run 将打印请求形状,Authorization 标头和 REBRICKABLE_USER_TOKEN 路径段被删除。 如果用户要求 "添加到我的收藏" 或 "显示我的收藏" 而没有指定平台和 Brickset