当前位置: 首页 > Skill >

Bring! Shopping List

Bring! Shopping List

Bring! Shopping List

Manage Bring! shopping lists (Einkaufsliste / grocery list) — add, remove, check off items, batch ops, default list support. Use when: user wants to set up B...

1.2.7 2026.11.25 429
获取Skill文件查看使用说明
作 者:陆辰 许可证: 更新时间:2026.11.25
本文目录展开

Bring! Shopping Lists

Manage Bring! shopping lists via the unofficial REST API. Requires curl and jq.

Security & data handling

Be upfront with the user about what this skill accesses and stores:

  • Network: talks only to Bring!'s official API at api.getbring.com — no third-party services, no telemetry, no other hosts.
  • Files written locally:
    • ~/.config/bring/credentials.json — the user's Bring! email + password (chmod 600, owner-only).
    • ~/.cache/bring/token.json — cached access/refresh token.
  • Why the password is stored: Bring!'s unofficial API has no token-only login. The skill caches a token and auto-refreshes it, but keeps the password so it can re-login once the token and refresh token expire. The stored password therefore grants ongoing access to the Bring! account from this machine — treat credentials.json as a secret.
  • Destructive actions: remove / remove-multi permanently delete items, and every change syncs instantly to everyone on a shared list. Confirm with the user before removing items, especially on shared lists.

Agent Setup Guide

When a user asks you to set up or use Bring for the first time, follow these steps:

Step 1: Check if already configured

Run scripts/bring.sh lists first. If it works, setup is already done — skip to usage.

Step 2: Set up credentials

Bring! requires an email + password. If the user doesn't have an account yet, they can create one for free at getbring.com or in the Bring! app.

If they signed up via Google/Apple: They need to set a direct password first in the Bring! app (Settings → Account → Change Password) before the API works.

Ask the user how they'd like to provide their credentials. Be transparent about the trade-off — never imply the credentials stay off-chat if the user picks the chat option:

"I need your Bring! email and password. Two ways: • Terminal (recommended, most private): you type them into your own terminal — they never appear in this chat. • Chat (convenient): you paste them here. ⚠️ Heads-up: anything typed in chat becomes part of this conversation's history and may be retained in logs/backups. I'll write them straight to a local config file and never repeat them, but I can't un-send a chat message.

Which do you prefer?"

Option A — via terminal (recommended): Give the user this command to run in their own terminal. Credentials never pass through the chat:

mkdir -p ~/.config/bring
read -rp "Bring! Email: " BEMAIL
read -rsp "Bring! Password: " BPASS && echo
jq -n --arg e "$BEMAIL" --arg p "$BPASS" '{email: $e, password: $p}' > ~/.config/bring/credentials.json
chmod 600 ~/.config/bring/credentials.json
unset BEMAIL BPASS

Tell the user: "Run that in your terminal, then come back and I'll continue the setup."

Option B — via chat (convenient, but credentials pass through the chat): Use only if the user explicitly chooses this after the warning above. The user shares email + password in chat; write them directly to the config file using jq for safe JSON encoding (prevents injection via special characters) and do not echo them back:

mkdir -p ~/.config/bring
jq -n --arg e "USER_EMAIL" --arg p "USER_PASSWORD" '{email: $e, password: $p}' > ~/.config/bring/credentials.json
chmod 600 ~/.config/bring/credentials.json

After writing, confirm: "Done — saved to the local config file (chmod 600), and I won't repeat them. Note they're now in this chat's history — feel free to clear it on your end."

⚠️ Do NOT use scripts/bring.sh setup — it requires an interactive terminal (TTY) which agents don't have. Always create the credentials file manually as shown in Step 3.

Step 3: Save credentials and test login

mkdir -p ~/.config/bring
jq -n --arg e "USER_EMAIL" --arg p "USER_PASSWORD" '{email: $e, password: $p}' > ~/.config/bring/credentials.json
chmod 600 ~/.config/bring/credentials.json
scripts/bring.sh login

If login fails: double-check email/password. The user may need their Bring! password (not Google/Apple SSO — Bring requires a direct account password).

Step 4: Show existing lists and ask for a default

scripts/bring.sh lists

This shows all the user's Bring! lists. The user may have multiple lists, e.g.:

  • Einkaufsliste (main grocery list)
  • Drogerie (drugstore items)
  • Baumarkt (hardware store)
  • A shared list with a partner/family

If the user has NO lists: Tell them to create one in the Bring! app first. The API does not support creating or deleting lists — this must be done in the app. Once they've created a list, continue with setup.

Ask the user which list should be the default. This lets them skip typing the list name every time.

If they have only ONE list: set it as default automatically and inform them. If they have MULTIPLE lists: show the list names and ask which one to use as default. Explain they can still target other lists by name (e.g., "Put nails on the Baumarkt list").

Step 5: Set default list

Update the credentials file to include the chosen default:

# Read existing config and add default_list
jq --arg list "CHOSEN_LIST_NAME" '. + {default_list: $list}' ~/.config/bring/credentials.json > /tmp/bring_conf.json && mv /tmp/bring_conf.json ~/.config/bring/credentials.json
chmod 600 ~/.config/bring/credentials.json

Step 6: Confirm setup

Show the user their current list content to confirm everything works:

scripts/bring.sh show

Tell them: "All set! You can now say things like 'Put milk on the list' or 'What's on the shopping list?'"

Important: Lists can only be managed in the app

The Bring! API does not support creating or deleting lists. If the user asks to create a new list or delete one, tell them: "Lists can only be created and deleted in the Bring! app. Once you've made the change there, I can immediately work with the new list."

Handling shared lists

Bring! lists are often shared between family members or partners. Changes made by the agent sync instantly to all devices sharing that list. Inform the user:

  • "Any items I add will show up immediately on all phones that share this list."
  • This is usually desired (e.g., partner sees the updated grocery list), but worth mentioning.

Setup (manual / reference)

Credentials via env vars BRING_EMAIL + BRING_PASSWORD, or config file ~/.config/bring/credentials.json:

{"email": "user@example.com", "password": "YOUR_BRING_PASSWORD", "default_list": "Einkaufsliste"}

Interactive setup (TTY required): scripts/bring.sh setup

Commands

All commands accept a list name (partial match) or UUID. If default_list is configured, the list argument can be omitted.

# List all shopping lists
scripts/bring.sh lists

# Show items on a list (or default list)
scripts/bring.sh show
scripts/bring.sh show "Einkaufsliste"

# Add item (with optional specification/quantity)
scripts/bring.sh add "Milch" "fettarm, 1L"
scripts/bring.sh add "Einkaufsliste" "Milch" "fettarm, 1L"

# Add multiple items at once (use "item|spec" for specifications)
scripts/bring.sh add-multi "Brot" "Käse|Gouda" "Butter|irische"

# Complete/check off item (moves to recently purchased)
scripts/bring.sh complete "Milch"

# Complete multiple items at once
scripts/bring.sh complete-multi "Milch" "Brot" "Käse"

# Move item back from recently to purchase list
scripts/bring.sh uncomplete "Milch"

# Remove item entirely
scripts/bring.sh remove "Milch"

# Remove multiple items at once
scripts/bring.sh remove-multi "Milch" "Brot" "Käse"

Targeting specific lists

When the user has multiple lists, they can target a specific one by name:

  • "Put nails on the Baumarkt list" → scripts/bring.sh add "Baumarkt" "Nails"
  • "What's on the Drogerie list?" → scripts/bring.sh show "Drogerie"

List names support partial case-insensitive matching, so "einkauf" matches "Einkaufsliste".

If no list is specified, the default_list from the config is used.

JSON Output

Append --json to lists and show for raw JSON:

scripts/bring.sh lists --json
scripts/bring.sh show --json
scripts/bring.sh show "Einkaufsliste" --json

Notes

  • Specifications are the small description text under an item (e.g., quantity, brand)
  • complete moves items to "recently purchased" (like checking off in the app)
  • remove deletes items entirely from the list
  • Token is cached at ~/.cache/bring/token.json and auto-refreshed
  • Changes sync instantly to all devices sharing the list
  • Item names with special characters (quotes, umlauts, emoji) are fully supported
  • Bring! requires a direct account password — Google/Apple SSO logins don't work with the API
  • country in credentials.json controls the item catalog language (default: DE)
  • When showing items to the user, consider only showing the "TO BUY" section unless they specifically ask for recently completed items — the recently list can be very long
  • If remove fails with "not found", suggest the user check the exact item name with show
  • Creating/deleting lists is not supported by the Bring! API — users must manage lists in the Bring! app

推荐文章

更多
PHP时间戳与日期字符串相互转换方法详解

本文介绍PHP中时间数值(Unix时间戳)与日期字符串之间的相互转换方法。通过strtotime和date函数,实现将当前时间、指定日期转换为时间戳,以及将时间戳格式化为可读的日期时间字符串,并提供相关在线计算工具推荐。

2025.11.30 1,034
PHP日期转时间戳时区偏差怎么解决

在 PHP 中将日期字符串转换为时间戳时,若未显式指定时区,默认使用脚本配置的 date.timezone 或系统时区。当服务器时区与业务逻辑预期(如 UTC )不一致时,会产生偏差。解决核心是确保输入字符串携带明确时区信息,或在转换前统一设置时区上下文。

2026.10.24 1,031
PHP跨域配置:怎么安全地允许指定域名而非使用通配符

在 PHP 中安全地允许指定域名跨域,核心是解析请求头中的 Origin ,验证其是否在白名单内,然后动态设置 Access-Control-Allow-Origin 响应头。不要使用通配符 * ,也不要硬编码单一域名。

2025.03.29 1,018
JavaScript中利用replace结合正则实现replaceAll效果

JavaScript原生仅支持replace()进行单次或全局替换,缺乏类似Java的replaceAll()便捷方法。本文总结四种在JS中实现全量替换的方案:使用带g标志的正则、带gm标志的正则、扩展String原型以及split后join。通过对比代码示例,展示各方法的实现细节与适用场景,帮助开发者根据需求选择最优解。

2025.04.29 1,017
OpenAI的Jalapeno芯片未落地,教你分辨300兆瓦算力消息

OpenAI计划在SB Energy租赁的数据中心部署约300兆瓦自研Jalapeno推理芯片,但目前双方仍处于洽谈阶段,交易细节与上线时间表均未公布。本文带你按报道原文核实项目所处阶段,厘清芯片发布、电力功率与实际推理算力的边界,并将融资意向与签约、开工、投运节点分开追踪,避免误将规划容量计入现有算力。

2026.12.02 1,013
PHP实现基础文件上传:HTML表单与$_FILES处理流程

在 HTML 表单中设置 enctype="multipart/form-data" ,并在 PHP 后端通过 $_FILES 数组接收文件,调用 move_uploaded_file() 将临时文件移动到目标目录即可完成上传。

2026.09.07 1,013
Skill 文件
  • SKILL.md
    • Bring! Shopping Lists
    • Security & data handling
    • Agent Setup Guide
      • Step 1: Check if already configured
      • Step 2: Set up credentials
      • Step 3: Save credentials and test login
      • Step 4: Show existing lists and ask for a default
      • Step 5: Set default list
      • Step 6: Confirm setup
      • Important: Lists can only be managed in the app
      • Handling shared lists
    • Setup (manual / reference)
    • Commands
    • Targeting specific lists
    • JSON Output
    • Notes
  • 项目或源文件

相关 Skill

更多
Bring! Shopping List App (Unofficial) Bring! Shopping List App (Unofficial) 通过非官方的 bring-shopping Node.js 库及邮箱密码登录管理 Bring! 购物清单。适用于 API 风格访问,支持查看列表、读取、增删及勾选商品。
service-qa-coach service-qa-coach Review support quality for chat, email, phone, social DM, or marketplace service teams. Use when a team needs a QA scorecard, failure-mode analysis, coaching plan, calibration checklist, or service-improvement brief without live ticketing, CRM, or contact-center system access.
高中数学作业批改助手 高中数学作业批改助手 >图片识别 直接读取学生手写作答照片,识别公式、符号、步骤 🧮 自动推导 根据题目自动生成参考答案和评分细则,无需教师预设 📊 逐步给分 每个关键步骤独立评分,体现过程分 📝 结构化报告 输出含识别内容、参考答案、逐步评分、改进建议的完整报告 🗂 批量批改 支持一次性批改多道题,最终汇总得分表
Vibration Analysis Vibration Analysis 分析来自CMS趋势、RMS/峰值、频谱及SCADA报警的风机传动链(主轴、齿轮箱、发电机)振动数据。
Traditional Bone Tool Making Basics Traditional Bone Tool Making Basics Use when you need custom, durable, repairable tools like awls, needles, scrapers, harpoons, or fishing hooks made from local animal bones or antlers and comm...