scale-recipe
Skill1 starsChanged 38 days agoMITView on GitHub
Use when the user wants a Cooklang recipe (.cook) for more or fewer people - "double this", "halve the cake", "scale the carbonara for 6", "how much flour for 3 loaves". Shows scaled quantities without changing the file; changing the saved recipe is cooklang-editing.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- cooklang/cooklang-skillsword for word, first seen Oct 6, 2026
Other versions1 project uses a version of this.
Word for word · 1
- cooklang/cooklang-skills★ 9100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository13 other files it gives its agents.
- cooklang-editingSkill
- cooklang-validationSkill
- export-recipeSkill
- meal-planningSkill
- metadataSkill
- nutrition-goalsSkill
- nutrition-reportsSkill
- organize-collectionSkill
- pantrySkill
- recipe-importSkill
- recipe-searchSkill
- report-authoringSkill
- shopping-listSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Use when the user wants a recipe's quantities for a different number of servings or batches.
- Very specific: line 18
No numeric servings and the user asked for a head count: look at the body, judge how many portions it makes, state that assumption, then …
- Very specific: line 19
Call read_recipe with path and scale.
- Distinctive: line 28
Timers and cookware: don't change. Say when it matters: a doubled stew needs a bigger pot, a doubled cake needs two tins or a longer bake, …
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Skill: scale-recipe
Use when the user wants a recipe's quantities for a different number of servings or batches.
Needs the Cook MCP server (tools like read_recipe and validate). If these tools are missing, the Cook MCP server isn't connected: if you installed the cooklang plugin or extension, check that its cook server is running (e.g. /mcp) or reinstall it; otherwise add it from https://github.com/cook-md/cook-mcp. Do not work out scaled amounts by hand instead.
Workflow
- Find the recipe with
search_recipes(orlist_recipes) and use the path exactly as returned. Never scale a recipe the collection doesn't have. - Work out the factor.
read_recipetakesscaleas a factor (2 doubles, 0.5 halves), not a target number of servings.- "For 6 people": read the recipe once (no
scale) and takeservingsfrom its metadata; factor = 6 / servings (e.g. 6 / 4 = 1.5). - "Double", "half", "3 loaves of a 1-loaf recipe": the factor is given.
- No numeric
servingsand the user asked for a head count: look at the body, judge how many portions it makes, state that assumption, then pick the factor. Offer to addservings(metadata skill) so it scales exactly next time.
- "For 6 people": read the recipe once (no
- Call
read_recipewithpathandscale. Every quantity in the parsedrecipe(ingredients[].quantity,timers) is already scaled, andrecipe.metadata.map.servingsshows the new count. Use those numbers; do not multiply anything yourself. Steps come back asitemsthat point at ingredients by index, not as text. - Present the scaled ingredient list (original → scaled where helpful, original amounts are in
source). If the user is cooking from it and wants the steps with amounts filled in, render them withrender_report(sameinput_pathandscale, a template that loops oversections; the export-recipe skill has one) rather than rebuilding sentences by hand. - Point out what the numbers can't tell them (below).
What scaling does and doesn't cover
- Fixed quantities written
{=…}(e.g.@salt{=1%pinch}) do not scale. Find them insourceand say so ("salt stays 1 pinch").validatewarns "Unnecessary scaling lock modifier" on them; that is a parser quirk, not a problem. - Unitless counts scale too: 3 eggs × 1.5 = 4.5 eggs. Round to something cookable and say what you rounded (4 large or 5 small eggs).
- Recipe references (
@./Sauces/Pesto{150%g}) scale as one line. Their own ingredients are not expanded byread_recipe; for the full scaled ingredient list across sub-recipes, callshopping_listwithrecipes: ["<path>:<factor>"](e.g."Dinner/Lasagne.cook:1.5"), which follows references. - Timers and cookware don't change. Say when it matters: a doubled stew needs a bigger pot, a doubled cake needs two tins or a longer bake, roasting more food crowds the pan.
- Baking and seasoning are less linear than the arithmetic. Leavening (baking soda, yeast) and salt are safest scaled modestly and adjusted; beyond about 2× suggest cooking in batches.
Rules
- Scaling to show amounts does not touch the file. Only change the saved recipe if the user asks to make the new size permanent; then follow cooklang-editing: update every quantity and
servingsin the frontmatter,validatethe content, save withwrite_recipe(full file). - For a meal plan, scale each reference inside the
.menu(@./Dinner/Chili{6%servings}); see the meal-planning skill. - For a shopping list at a different size, give
"<path>:<factor>"toshopping_listrather than scaling and summing yourself (shopping-list skill).
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

