微算力 · API 导航与自营网关
API 接入 EN
未登录登录
🥫

本地 Grocy 库存管家,扫码即管

Grocy Inventory · v1.0.0
办公 安全 B 级 作者 septianw 公开目录收录
1.1k 下载 1 安装 4.3k 收藏 25 浏览

简介

连接本地 Grocy 实例,管理家庭库存、购物清单、电池充电追踪,支持扫码快速出入库。

原始描述

Manage Grocy inventory, shopping list, batteries, and barcodes. Use when user wants to: (1) Check what's in their fridge/pantry, (2) See expiring products, (...

通过你的 Agent 添加

安装目录:grocy-inventory/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。

点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。

或者手动安装

Claude Code~/.claude/skills/grocy-inventory/
Codex CLI~/.codex/skills/grocy-inventory/
DeepSeek Harness~/.agents/skills/grocy-inventory/

包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可; 目录名不用换,也不要把包直接解压到 skills 根目录。 技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。

技能正文


name: grocy-inventory description: "Manage Grocy inventory, shopping list, batteries, and barcodes. Use when user wants to: (1) Check what's in their fridge/pantry, (2) See expiring products, (3) Manage stock by barcode, (4) Add/Consume/Transfer products, (5) Track rechargeable batteries. Grocy is a self-hosted inventory management app running at http://localhost:14611"

Grocy Inventory Skill

Check and manage your Grocy inventory, shopping list, and batteries. This skill connects to your local Grocy instance.

Configuration

Variable Value
URL http://localhost:14611
API Key mz43yGJzBKfwZdSOwG5EdnKPRrKnCbkGrEFbxXYv2JF61tQ9Mj

Quick Commands

Check Stock (Fridge/Pantry)

curl -s -H "GROCY-API-KEY: $API_KEY" "$URL/api/stock"

Lookup Details by Barcode

curl -s -H "GROCY-API-KEY: $API_KEY" "$URL/api/stock/products/by-barcode/{barcode}" 

Consume Stock by Barcode

curl -s -X POST -H "GROCY-API-KEY: $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"amount": 1, "transaction_type": "consume"}' \
  "$URL/api/stock/products/by-barcode/{barcode}/consume"

Mark Stock as Opened by Barcode

curl -s -X POST -H "GROCY-API-KEY: $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"amount": 1}' \
  "$URL/api/stock/products/by-barcode/{barcode}/open"

Transfer Stock by Barcode

curl -s -X POST -H "GROCY-API-KEY: $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"amount": 1, "location_id_from": 6, "location_id_to": 2}' \
  "$URL/api/stock/products/by-barcode/{barcode}/transfer"

Get All Batteries

curl -s -H "GROCY-API-KEY: $API_KEY" "$URL/api/batteries"

Track Battery Charge

curl -s -X POST -H "GROCY-API-KEY: $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"battery_id": 7}' \
  "$URL/api/batteries/7/charge"

Common Tasks

Task Command
Find product by barcode GET /api/stock/products/by-barcode/{barcode}
Consume by barcode POST /api/stock/products/by-barcode/{barcode}/consume
Open by barcode POST /api/stock/products/by-barcode/{barcode}/open
Transfer by barcode POST /api/stock/products/by-barcode/{barcode}/transfer
Check battery status GET /api/batteries
Track battery charge POST /api/batteries/{id}/charge

Tips

  • Use jq for pretty JSON logs: curl ... | jq
  • For barcodes, use the direct /by-barcode/{barcode} endpoints found in the Stock "by-barcode" tags.
  • Full API docs: See references/grocy-api.md

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

标签

inventoryself-hostedbarcodehome-automationprivacygrocy

同类 Skill