一键导入
scale-recipe
Adjust recipe servings and display scaled ingredient quantities
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Adjust recipe servings and display scaled ingredient quantities
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Import recipes from URLs or plain text and convert to Cooklang format
Create a new Cooklang recipe interactively from a description or template
Convert Cooklang recipes to Markdown, JSON, YAML, or other formats
Track kitchen inventory, find expiring items, and discover recipes you can make now
Plan weekly meals interactively and generate combined shopping lists
Structure recipe folders, audit metadata consistency, and set up configuration files
| name | scale-recipe |
| description | Adjust recipe servings and display scaled ingredient quantities |
Display a recipe with adjusted serving sizes. Shows original vs scaled quantities for easy comparison.
Use this skill when:
Ask: "Which recipe do you want to scale?"
Ask: "How many servings do you need?"
Calculate factor: new_servings / original_servings
Using CookCLI:
cook recipe "Recipe.cook" --scale 2
Or with colon notation:
cook recipe "Recipe.cook:2"
Warn about:
=) - These don't scaleUser: "Scale the pasta recipe for 8 people"
Original recipe (serves 4):
---
title: Spaghetti Carbonara
servings: 4
---
Cook @spaghetti{400%g} in boiling water.
Fry @pancetta{150%g} until crispy.
Mix @eggs{4} with @parmesan{100%g}.
Season with @black pepper{} and @salt{=1%pinch}.
Run:
cook recipe "Spaghetti Carbonara.cook" --scale 2
Scaled output (serves 8):
Spaghetti Carbonara (scaled to 8 servings)
Ingredients:
- spaghetti: 800g (was 400g)
- pancetta: 300g (was 150g)
- eggs: 8 (was 4)
- parmesan: 200g (was 100g)
- black pepper: to taste
- salt: 1 pinch (FIXED - doesn't scale)
Steps:
[Recipe steps with scaled quantities inline]
User: "Halve the cake recipe"
Run:
cook recipe "Chocolate Cake.cook" --scale 0.5
# Double
cook recipe "Recipe.cook" --scale 2
cook recipe "Recipe.cook:2"
# Half
cook recipe "Recipe.cook" --scale 0.5
cook recipe "Recipe.cook:0.5"
# Specific servings (if original is 4, this makes 6)
cook recipe "Recipe.cook" --scale 1.5
# In shopping list
cook shopping-list "Recipe.cook:2"
Some ingredients shouldn't scale. Mark with =:
@salt{=1%tsp} -- stays 1 tsp regardless of scale
@baking soda{=1%tsp} -- leavening is chemistry, be careful
@vanilla{=1%tsp} -- flavor extracts often don't scale linearly
| Item | Scales? | Notes |
|---|---|---|
| Main ingredients | Yes | Meat, vegetables, pasta |
| Liquids | Yes | But may need adjustment |
| Seasonings | Partially | Start with less, adjust to taste |
| Leavening | Carefully | Baking soda/powder - use formulas |
| Cooking time | No | But larger batches may need more |
| Pan size | No | May need multiple batches |