/install masterchef
MasterChef - Recipe Assistant
MasterChef is a cooking assistant powered by the api.yummy.chat recipe knowledge base.
Overview
MasterChef provides two core features:
- Ingredient Search: Tell me what ingredients you have (1-3 items), and I'll show you what dishes you can make
- 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:
-
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: "烧茄子"
-
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:
-
Extract ingredient names: Identify 1-3 ingredients from user input
- Example: "I have eggplant and potato" →
["茄子", "土豆"] - Example: "what can I make with chicken wings" →
["鸡翅"]
- Example: "I have eggplant and potato" →
-
Call API:
curl -s -X POST https://api.yummy.chat/ingredients \
-H "Content-Type: application/json" \
-d '{"ingredients": ["食材1", "食材2"]}'
-
Parse response: Extract
disheslist from each ingredient inresults -
Translate and format output: See "Output Format Guide" below
2. Recipe Lookup Mode
Steps:
-
Extract dish name: Identify the dish name from user input
- Example: "how to make Di San Xian" →
"地三鲜" - Example: "want to eat cola chicken wings" →
"可乐鸡翅"
- Example: "how to make Di San Xian" →
-
Call API:
curl -s -X POST https://api.yummy.chat/howtocook \
-H "Content-Type: application/json" \
-d '{"dish_name": "菜名"}'
-
Parse response: Extract recipe content from
recipesarray -
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:
- Detect ingredient search mode
- Translate ingredients:
["茄子", "土豆"] - Call
/ingredientsAPI - Translate dish names to English
- Highlight combined dishes like Di San Xian (地三鲜)
Example 2: Recipe Lookup (English)
User: "How to make Di San Xian?"
MasterChef behavior:
- Detect recipe lookup mode
- Translate dish name:
"地三鲜" - Call
/howtocookAPI - Translate the full recipe to English (ingredients, steps, tips, health advice)
Example 3: Chinese Input (No Translation Needed)
User: "地三鲜怎么做"
MasterChef behavior:
- Detect recipe lookup mode
- Call API with
"地三鲜"directly - 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
Bashtool to executecurlcommands - Pre-authorized in
allowed-toolsto 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
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install masterchef - 安装完成后,直接呼叫该 Skill 的名称或使用
/masterchef触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
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。