360 Secure SkillHub
360 安全技能中心

Bring

封装 Bring! 购物清单的 Node CLI:先配置账号,再列出清单、查看条目,并用 smartadd/add 添加商品、remove 移除商品;支持多语言目录匹配、默认清单与语言缓存,配置和令牌保存在本地。

grewingm
grewingm
热度 70.51
最近更新 2026-07-01 12:19:07
分类:生活依赖:代码执行 / 读写文件 / 第三方 API应用场景:购物 / 任务管理

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add bring
Metadata
name
bring
description
Manage Bring! shopping lists - view, add, remove items from shared grocery lists.
allowed-tools
["exec"]
user-invocable
true

Bring Shopping List Integration

Invocation

The CLI lives at scripts/bring-cli.js. Always prefix with NODE_PATH=$(npm root -g):

NODE_PATH=$(npm root -g) node ~/.openclaw/workspace/skills/bring/scripts/bring-cli.js <command> [args]

Prerequisites

npm install -g bring-shopping

Setup

NODE_PATH=$(npm root -g) node ~/.openclaw/workspace/skills/bring/scripts/bring-cli.js configure <email> <password>

Config stored at ~/.openclaw/bring/config.json. Tokens cached at ~/.openclaw/bring/token.json (7-day expiry).

Commands

Command Args Notes
configure <email> <password> One-time setup
renew — Force re-login if token expired
lists — All lists with UUIDs
findlist <name> Partial name match
items [listUuid] Default list if omitted
add <listUuid> <item> [note] Raw add, no catalog lookup
smartadd <listUuid> <item> [locale] [note] Preferred: catalog-aware, gets icons
remove <listUuid> <item> Moves to recent
setdefault <listUuid> Avoid passing UUID every time
detectlang <listUuid> Auto-detect list language
setlang <listUuid> <locale> Cache language preference
getlang <listUuid> Cached or auto-detected

Supported locales: en-US, it-IT, es-ES, de-DE, fr-FR

Workflow

Adding items (prefer smartadd)

  1. If user doesn't specify a list, use default (check items without UUID first).
  2. Use smartadd with the list's locale for icon support. Fall back to add if catalog miss.
  3. Confirm what was added.

Viewing items

Run items (with listUuid or default). Present purchase items as "to buy" and recently as "recently bought".

Removing items

Run remove <listUuid> "<exact-item-name>". Item names are case-sensitive — match exactly from items output.

Gotchas

  • Item names are case-sensitive — copy exact names from items output.
  • remove moves to recent, doesn't delete.
  • Token cache expires after 7 days; run renew if commands start failing with auth errors.
  • smartadd needs the right locale to find catalog matches.
  • Lists use mixed languages (e.g. "Home in Florence" has Italian, German, English items). Detect per-list.