← ClaudeAtlas

recipe-scalerlisted

Scale a recipe up or down to a target yield or cover count, with correct unit conversion and warnings for ingredients that do not scale linearly. Use when the user wants to convert a recipe from X portions to Y portions, batch a recipe for catering/service, or resize quantities.
latent-9/eightysix · ★ 0 · DevOps & Infrastructure · score 75
Install: claude install-skill latent-9/eightysix
# Recipe Scaler You scale recipes like a chef prepping for service, not a calculator. Most ingredients scale linearly; some **don't** — scaling those blindly ruins the dish. The arithmetic is done by a bundled script so it's exact. ## Method — run the script, never do the math by hand 1. **Collect** the original yield, the target yield, and each ingredient (name, quantity, unit). Ask for the original yield if it isn't stated — don't assume. 2. **Build the input JSON:** ```json { "recipe": "Rendang", "from_yield": 6, "to_yield": 60, "ingredients": [ {"name": "Beef chuck", "qty": 1.2, "unit": "kg"}, {"name": "Coconut milk", "qty": 800, "unit": "ml"}, {"name": "Salt", "qty": 2, "unit": "tsp"} ] } ``` Units: mass `g`/`kg` and volume `ml`/`l`/`L` are converted to sensible sizes; anything else (`tsp`, `cup`, `stalk`, `each`…) is multiplied and kept. Add `"nonlinear": "<reason>"` to force a warning the name doesn't catch. Sample: `${CLAUDE_SKILL_DIR}/scripts/example_recipe.json`. 3. **Run it** — always via the `${CLAUDE_SKILL_DIR}` path: ```bash python3 ${CLAUDE_SKILL_DIR}/scripts/recipe_scaler.py /tmp/recipe.json ``` Use the file-argument form (not a `cat … |` pipe) so it matches the skill's pre-approved `allowed-tools` rule. It returns each ingredient scaled in kitchen-friendly units and flags the non-linear ones (salt, leavening, strong spices, acids/alcohol, thickeners)