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

智能食谱管理与膳食规划助手

tandoor-recipes · vv1.0.0
入口已确认,内容待校验 文件树里有 SKILL.md,但正文还没采回,frontmatter 未核对。
效率 安全 A 级 作者 itsnikhil 公开目录收录
566 下载 176 安装 1.8k 收藏 19.4k 浏览

简介

基于开源 Tandoor 平台的食谱管理技能,支持膳食计划制定、购物清单同步与食谱创建,帮助用户实现高效的厨房数字化管理。

原始描述

Manage recipes, meal plans, and shopping lists in Tandoor Recipe Manager. Use when the user wants to create recipes, plan meals, search for recipes, or manage their shopping list.

通过你的 Agent 添加

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

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

或者手动安装

Claude Code~/.claude/skills/tandoor-recipes/
Codex CLI~/.codex/skills/tandoor-recipes/
DeepSeek Harness~/.agents/skills/tandoor-recipes/

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

中文使用说明 来自收录源

核心用法

Tandoor Recipes 技能通过 Node.js CLI 脚本与自托管的 Tandoor Recipe Manager 实例进行交互,提供完整的食谱生命周期管理能力。用户需配置 TANDOOR_URL 和 TANDOOR_API_TOKEN 环境变量后,即可通过标准化命令行接口执行食谱搜索、详情查看、膳食计划编排、购物清单管理等操作。技能支持基于关键词的食谱检索、按日期范围的膳食计划查询、食材与单位的参考数据浏览,以及完整的购物清单 CRUD 操作,所有通信均通过 HTTPS 协议与配置的 Tandoor 实例进行安全传输。

显著优点

该技能的最大优势在于其完善的功能覆盖与严格的安全设计。功能层面,它实现了从食谱创建、搜索到膳食规划、购物清单生成的完整工作流闭环,支持将食谱食材一键添加至购物清单,大幅提升厨房管理效率。安全层面,代码通过 Zod Schema 对所有输入进行严格验证,使用 encodeURIComponent 防止 URL 注入,无 eval、exec 等危险函数,依赖仅包含经过广泛验证的 zod 库(v3.23.8),且版本已锁定。此外,权限申请与功能完全匹配,仅需 API 访问相关的环境变量,无过度权限申请,数据仅存储于用户自托管的实例中,隐私可控。

潜在缺点与局限性

首先,该技能要求用户已部署并维护自托管的 Tandoor Recipe Manager 实例,对于无技术背景或未部署该服务的用户存在使用门槛。其次,功能执行完全依赖网络连接与目标 Tandoor 实例的可用性,离线场景下无法使用。另外,虽然技能本身代码安全,但最终安全性也取决于用户配置的 Tandoor 实例版本与 HTTPS 配置,若上游实例存在漏洞或配置不当(如使用 HTTP),可能影响整体安全性。最后,食材添加到购物清单需手动解析并逐条添加,暂不支持一键批量导入食谱全部食材的自动化操作。

适合的目标群体

本技能最适合已部署 Tandoor Recipe Manager 的自托管用户,尤其是注重隐私、不愿将食谱数据托管于云端的家庭用户。对于需要系统化管理家庭膳食计划、自动生成购物清单以减少食物浪费的厨房管理者,以及希望通过结构化方式整理个人食谱库的烹饪爱好者具有极高价值。同时,适合技术背景较强的用户,能够正确配置环境变量并维护 API Token 安全。

使用风险与注意事项

主要风险集中于环境变量配置与 Token 管理。TANDOOR_API_TOKEN 若泄露,可能导致攻击者访问或修改用户的食谱与购物数据,建议定期轮换 Token 并确保环境变量不被意外提交至代码仓库。性能方面,所有操作均通过网络 API 调用,响应速度取决于用户 Tandoor 实例的网络状况与硬件性能,建议在脚本中设置合理的超时时间。此外,需确保 TANDOOR_URL 使用 HTTPS 协议,避免中间人攻击风险。最后,创建食谱时的食材与单位需与 Tandoor 实例中的参考数据匹配,否则可能导致创建失败,建议先使用 get-foods 和 get-units 命令验证数据存在性。

技能正文


name: tandoor-recipes description: Manage recipes, meal plans, and shopping lists in Tandoor Recipe Manager. Use when the user wants to create recipes, plan meals, search for recipes, or manage their shopping list. metadata: { "openclaw": { "emoji": "🍽️", "requires": { "bins": ["node"], "env": ["TANDOOR_URL", "TANDOOR_API_TOKEN"] }, "primaryEnv": "TANDOOR_API_TOKEN" } }

Tandoor Recipe Manager

Interact with the user's Tandoor Recipe Manager to manage recipes, meal plans, and shopping lists.

How to Use

Required env vars: TANDOOR_URL (Tandoor instance URL) and TANDOOR_API_TOKEN

node ./scripts/tandoor.js <command> [args...]

What You Can Do

🔍 Find Recipes

Search by name:

node ./scripts/tandoor.js search-recipes "pasta"
node ./scripts/tandoor.js search-recipes "chicken" 20  # limit to 20 results

Get full recipe details:

node ./scripts/tandoor.js get-recipe 42

📅 Meal Planning

See available meal types (Breakfast, Lunch, Dinner, etc.):

node ./scripts/tandoor.js get-meal-types

Add a recipe to the meal plan:

node ./scripts/tandoor.js add-to-meal-plan <recipe_id> "<meal_type>" "<YYYY-MM-DD>"
# Example: Add recipe 42 as Dinner on Feb 10th
node ./scripts/tandoor.js add-to-meal-plan 42 "Dinner" "2025-02-10"

View meal plans for a date range:

node ./scripts/tandoor.js get-meal-plans "2025-02-08" "2025-02-14"

🛒 Shopping List

View current shopping list:

node ./scripts/tandoor.js get-shopping-list
node ./scripts/tandoor.js get-shopping-list "true"   # show checked items
node ./scripts/tandoor.js get-shopping-list "both"   # show all

Add an item to the shopping list:

node ./scripts/tandoor.js add-shopping-item "<food>" "<amount>" "<unit>" "[note]"
# Example:
node ./scripts/tandoor.js add-shopping-item "Chicken Breast" "500" "g" "For stir fry"

Check off an item:

node ./scripts/tandoor.js check-shopping-item <item_id>

Remove an item:

node ./scripts/tandoor.js remove-shopping-item <item_id>

➕ Create New Recipes

node ./scripts/tandoor.js create-recipe "<name>" "<ingredients>" "<instructions>" [servings]

Example:

node ./scripts/tandoor.js create-recipe "Grilled Cheese" \
  "2 slices bread
2 slices cheese
1 tbsp butter" \
  "1. Butter the bread
2. Add cheese between slices
3. Grill until golden brown" \
  2

📚 Browse Reference Data

node ./scripts/tandoor.js get-keywords          # all keywords
node ./scripts/tandoor.js get-keywords "italian" # search keywords
node ./scripts/tandoor.js get-foods "chicken"    # search foods
node ./scripts/tandoor.js get-units              # all units

Workflows

Plan Dinner for the Week

  1. Search for recipes the user might enjoy:
    node ./scripts/tandoor.js search-recipes "chicken"
    
  2. Note the recipe IDs from the results
  3. Get available meal types (to confirm "Dinner" exists):
    node ./scripts/tandoor.js get-meal-types
    
  4. Add each recipe to a day (repeat for each day):
    node ./scripts/tandoor.js add-to-meal-plan 42 "Dinner" "2025-02-10"
    node ./scripts/tandoor.js add-to-meal-plan 15 "Dinner" "2025-02-11"
    # ... continue for each day
    

Check Today's Meal Plan

  1. Get today's meal plans:
    node ./scripts/tandoor.js get-meal-plans "2025-02-08"
    
  2. If user wants recipe details, get the full recipe:
    node ./scripts/tandoor.js get-recipe <recipe_id>
    

Add Recipe Ingredients to Shopping List

  1. Get the recipe details to see all ingredients:
    node ./scripts/tandoor.js get-recipe <recipe_id>
    
  2. Parse the ingredients from the response (look at steps[].ingredients[])
  3. Add each ingredient to the shopping list:
    node ./scripts/tandoor.js add-shopping-item "Chicken Breast" "500" "g"
    node ./scripts/tandoor.js add-shopping-item "Onion" "2" "piece"
    # ... continue for each ingredient
    

Create and Schedule a New Recipe

  1. Create the recipe:
    node ./scripts/tandoor.js create-recipe "Pasta Carbonara" \
      "200g spaghetti
    100g pancetta
    2 eggs
    50g parmesan" \
      "1. Cook pasta
    2. Fry pancetta
    3. Mix eggs with parmesan
    4. Combine all and serve" \
      2
    
  2. Note the recipe ID from the response
  3. Add to meal plan:
    node ./scripts/tandoor.js add-to-meal-plan <new_recipe_id> "Dinner" "2025-02-12"
    

Clear Checked Items from Shopping List

  1. View checked items:
    node ./scripts/tandoor.js get-shopping-list "true"
    
  2. Remove each checked item by ID:
    node ./scripts/tandoor.js remove-shopping-item <item_id>
    

Troubleshooting

"Food not found" or "Unit not found"
Search for the correct name in Tandoor first:

node ./scripts/tandoor.js get-foods "chicken"
node ./scripts/tandoor.js get-units "gram"

"Meal type not found"
Run get-meal-types to see exact names (case-insensitive match).

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

标签

productivityautomationapilifestyle

同类 Skill