Source Code
Recipe Lookup
CLI for AI agents to find recipes for their humans. "What can I make with chicken?" โ now your agent can help.
Uses TheMealDB API. No account or API key needed.
Usage
"Search for pasta recipes"
"Give me a random dinner idea"
"What Italian dishes can I make?"
"Tell me about meal ID 52772"
Commands
| Action | Command |
|---|---|
| Search | recipes search "query" |
| Get details | recipes info <meal_id> |
| Random meal | recipes random |
| List categories | recipes categories |
| By area/cuisine | recipes area <area> |
Examples
recipes search "chicken" # Find chicken recipes
recipes info 52772 # Get full recipe by ID
recipes random # Surprise me!
recipes categories # List all categories
recipes area Italian # Italian dishes
recipes area Mexican # Mexican dishes
Output
Search/list output:
[52772] Spaghetti Bolognese โ Italian, Beef
Info/random output:
๐ฝ๏ธ Spaghetti Bolognese
ID: 52772 | Category: Beef | Area: Italian
Tags: Pasta,Meat
๐ Ingredients:
โข 500g Beef Mince
โข 2 Onions
โข 400g Tomato Puree
...
๐ Instructions:
[Full cooking instructions]
๐ฅ Video: [YouTube URL if available]
๐ Source: [Recipe source if available]
Areas (Cuisines)
American, British, Canadian, Chinese, Croatian, Dutch, Egyptian, Filipino, French, Greek, Indian, Irish, Italian, Jamaican, Japanese, Kenyan, Malaysian, Mexican, Moroccan, Polish, Portuguese, Russian, Spanish, Thai, Tunisian, Turkish, Ukrainian, Vietnamese
Notes
- Uses TheMealDB free API
- No authentication required
- Meal ID is the database identifier
- Filter commands (area) return IDs only โ use
infofor details - Categories endpoint includes descriptions
Agent Implementation Notes
Script location: {skill_folder}/recipes (wrapper to scripts/recipes)
When user asks about recipes/cooking:
- Run
./recipes search "ingredient or dish"to find options - Run
./recipes info <id>for full recipe with ingredients and instructions - Run
./recipes randomfor dinner inspiration - Run
./recipes area <cuisine>to explore by cuisine
Workflow example:
User: "What can I make for dinner?"
1. recipes random โ Get a random idea
2. recipes info <id> โ Full recipe details
User: "I want something Italian"
1. recipes area Italian โ List Italian dishes
2. recipes info <id> โ Pick one and get full recipe
Don't use for: Nutritional info, calorie counts, dietary restrictions (API doesn't provide this).