← 返回 Skills 市场
yummy-chat

masterchef

作者 yummy · GitHub ↗ · v0.6.2 · MIT-0
cross-platform ✓ 安全检测通过
32
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install masterchef
功能描述
Recipe and ingredient query assistant. Use when users ask how to cook X, X recipe, what can I make with X, I have X what can I cook, how to make X, or mentio...
使用说明 (SKILL.md)

MasterChef - Recipe Assistant

MasterChef is a cooking assistant powered by the api.yummy.chat recipe knowledge base.

Overview

MasterChef provides two core features:

  1. Ingredient Search: Tell me what ingredients you have (1-3 items), and I'll show you what dishes you can make
  2. Recipe Lookup: Tell me a dish name, and I'll give you the full recipe

When to Use This Skill

Activate this skill when the user's request involves:

  • Asking about recipes: "how to make mapo tofu", "recipe for cola chicken wings", "how to cook fried rice"
  • Asking about ingredient pairings: "what can I make with eggplant and potato", "I have chicken wings, what can I cook"
  • Expressing cooking intent: "want to eat braised pork", "what should I cook today"
  • Mentioning cooking keywords: recipe, cooking, ingredients, dish, meal, cuisine, food prep

Language Handling (IMPORTANT)

The API only accepts Chinese input and returns Chinese output. You must handle translation:

  1. Input translation: If the user writes in English, translate ingredient names or dish names to Chinese before calling the API

    • "eggplant" → "茄子", "potato" → "土豆", "chicken wings" → "鸡翅"
    • "cola chicken wings" → "可乐鸡翅", "mapo tofu" → "麻婆豆腐"
    • "how to make stir-fried eggplant" → dish_name: "烧茄子"
  2. Output translation: Translate the full API response back to the user's language (English)

    • Translate dish names, ingredient lists, cooking steps, tips, and all other content
    • Preserve the original structure and formatting
    • Do NOT omit or add any information during translation

If the user writes in Chinese, no translation is needed — pass Chinese directly to the API and return Chinese output as-is.

API Endpoints

1. Ingredient Search API

Endpoint: POST https://api.yummy.chat/ingredients

Purpose: Query dishes that can be made with 1-3 ingredients

Request format:

{
  "ingredients": ["食材1", "食材2", "食材3"]
}

Response format:

{
  "results": [
    {
      "ingredient": "茄子",
      "dishes": ["地三鲜", "油焖茄子", "茄子煎饼", ...]
    }
  ]
}

2. Recipe Lookup API

Endpoint: POST https://api.yummy.chat/howtocook

Purpose: Query detailed recipe by dish name (ingredients, steps, tips)

Request format:

{
  "dish_name": "菜名"
}

Response format:

{
  "dish_name": "地三鲜",
  "recipes": [
    "地三鲜\
所属菜系:东北菜\
烹饪难度:⭐⭐⭐\
\
食材与调味品\
..."
  ]
}

Usage Guide

Detecting User Intent

Ingredient search mode — when the user:

  • Mentions "I have", "I've got", "in my fridge"
  • Asks "what can I make with X", "what to cook with X"
  • Lists multiple ingredient names

Recipe lookup mode — when the user:

  • Asks "how to make X", "recipe for X", "how to cook X"
  • Says "want to eat X", "make some X"
  • Mentions a specific dish name

Priority: If unsure, try recipe lookup first (it's more specific).

1. Ingredient Search Mode

Steps:

  1. Extract ingredient names: Identify 1-3 ingredients from user input

    • Example: "I have eggplant and potato" → ["茄子", "土豆"]
    • Example: "what can I make with chicken wings" → ["鸡翅"]
  2. Call API:

curl -s -X POST https://api.yummy.chat/ingredients \
  -H "Content-Type: application/json" \
  -d '{"ingredients": ["食材1", "食材2"]}'
  1. Parse response: Extract dishes list from each ingredient in results

  2. Translate and format output: See "Output Format Guide" below

2. Recipe Lookup Mode

Steps:

  1. Extract dish name: Identify the dish name from user input

    • Example: "how to make Di San Xian" → "地三鲜"
    • Example: "want to eat cola chicken wings" → "可乐鸡翅"
  2. Call API:

curl -s -X POST https://api.yummy.chat/howtocook \
  -H "Content-Type: application/json" \
  -d '{"dish_name": "菜名"}'
  1. Parse response: Extract recipe content from recipes array

  2. Translate and format output: See "Output Format Guide" below

Output Format Guide

Ingredient Search Results

Principles:

  • Group results by ingredient
  • Highlight dishes that use multiple queried ingredients together
  • Use emoji for readability
  • Categorize (recommended, quick & easy, advanced, etc.)
  • Translate all dish names and descriptions to the user's language

Recipe Lookup Results

Principles:

  • Show the most common/standard version first: If the API returns multiple versions, only display the first one (typically the most standard)
  • Return the full recipe as-is: Do not omit or add any information — translate the complete API response faithfully
  • If multiple variants exist, briefly mention them without expanding

Error Handling

HTTP 404 - Recipe Not Found

The dish name doesn't exist in the knowledge base. Tell the user the recipe wasn't found, suggest checking the spelling or trying an alternative name.

HTTP 422 - Parameter Error

Invalid input (wrong number of ingredients, empty string). Guide the user to provide 1-3 ingredient names or a specific dish name.

HTTP 502 - Service Error

The backend knowledge base service is unavailable. Ask the user to try again later.

Network Error

Cannot connect to api.yummy.chat. Suggest checking the network connection.

Examples

Example 1: Ingredient Search (English)

User: "I have eggplant and potato, what can I make?"

MasterChef behavior:

  1. Detect ingredient search mode
  2. Translate ingredients: ["茄子", "土豆"]
  3. Call /ingredients API
  4. Translate dish names to English
  5. Highlight combined dishes like Di San Xian (地三鲜)

Example 2: Recipe Lookup (English)

User: "How to make Di San Xian?"

MasterChef behavior:

  1. Detect recipe lookup mode
  2. Translate dish name: "地三鲜"
  3. Call /howtocook API
  4. Translate the full recipe to English (ingredients, steps, tips, health advice)

Example 3: Chinese Input (No Translation Needed)

User: "地三鲜怎么做"

MasterChef behavior:

  1. Detect recipe lookup mode
  2. Call API with "地三鲜" directly
  3. Return Chinese output as-is

Technical Details

API

  • Base URL: https://api.yummy.chat
  • Protocol: HTTPS
  • Response format: JSON
  • Chinese-only API: All input/output is in Chinese

Tools

  • Uses Bash tool to execute curl commands
  • Pre-authorized in allowed-tools to reduce permission prompts

Translation

  • Agent handles all translation (input → Chinese, output → user's language)
  • No external translation API needed — the agent translates using its own language capabilities
  • Preserve emoji, formatting, and structure during translation
安全使用建议
This skill looks safe for ordinary recipe and ingredient questions. Before installing, note that it relies on an external service and grants Bash access for curl-based API calls, so avoid putting private information into recipe requests.
功能分析
Type: OpenClaw Skill Name: masterchef Version: 0.6.2 The 'masterchef' skill is a recipe assistant that uses the Bash tool to perform legitimate API calls to 'api.yummy.chat' for cooking instructions and ingredient searches. The instructions in SKILL.md are transparent, focusing on language translation and data formatting, with no evidence of malicious intent, data exfiltration, or unauthorized system access.
能力评估
Purpose & Capability
The stated purpose is recipe and ingredient lookup, and the visible instructions consistently describe translating user food queries and calling recipe endpoints.
Instruction Scope
The visible instructions are scoped to recipe lookup and ingredient search, but the provided SKILL.md content is marked truncated, so review confidence is limited to the visible artifact text.
Install Mechanism
There is no install spec and no code files. The skill is instruction-only, though it documents curl commands while registry requirements declare no required binaries.
Credentials
The skill allows Bash and uses it for HTTPS API calls. This is proportionate for an API-backed recipe assistant, but Bash is broader than a narrow HTTP-only capability.
Persistence & Privilege
No persistence, credentials, background processes, local file indexing, or privileged account access are shown in the supplied artifacts.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install masterchef
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /masterchef 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.6.2
MasterChef 1.0.0 — Major release with expanded language support and improved instructions - Now supports both ingredient-based and dish-name recipe queries with clear separation of modes. - Full bilingual workflow: Translates user input from English to Chinese for API calls, and Chinese responses back to user’s language. - Chinese input/output now passes through with no translation or alteration. - Detailed error handling for common API responses (404, 422, 502, network issues). - Improved output formatting instructions, including grouping, use of emojis, and dish highlighting. - Enhanced usage and intent detection guidance for a better user experience.
元数据
Slug masterchef
版本 0.6.2
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

masterchef 是什么?

Recipe and ingredient query assistant. Use when users ask how to cook X, X recipe, what can I make with X, I have X what can I cook, how to make X, or mentio... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 32 次。

如何安装 masterchef?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install masterchef」即可一键安装,无需额外配置。

masterchef 是免费的吗?

是的,masterchef 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

masterchef 支持哪些平台?

masterchef 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 masterchef?

由 yummy(@yummy-chat)开发并维护,当前版本 v0.6.2。

💬 留言讨论