Agent skill · writing content · aiskillstore

cocktail-recipe-scaling

Scale one supplied cocktail recipe to a target serving count or liquid yield. Use when the user needs a reconciled ingredient sheet with explicit rounding, non-scaled actions, and container fit.

Why this skill is useful

Adds a specific algorithm for scaling cocktail recipes that includes unique handling of ingredient types and tolerances not commonly found in general knowledge.

What it needs

Requires python3 installed locally. About 2k tokens when loaded. Last updated 2026-08-07. 405 stars on the source repository.

What this skill does

Cocktail recipe scaling Apply one scale factor to eligible ingredients, then expose every exception. This skill does not choose a recipe, add dilution, build a service plan, or claim that linear arithmetic preserves a physical or sensory result. Fix the scaling basis Collect the original yield and target yield. Both values must use the same unit, such as servings, ml, or oz. If the units differ, stop and request a user-approved conversion. Do not perform a hidden unit conversion inside the scaling run. Ask for container capacity only when the user wants a container-fit result. Capacity must use the yield unit. Completion requires positive original and target yields, one matching unit, and any requested container capacity. Classify every recipe line Read the input contract before creating the calculator input. Assign one scaling mode to each line. linear covers stable measured ingredients that use the scale factor. countup covers whole items that round upward to a stated increment. manual preserves a rinse, spray, garnish action, top-up, extraction, or process-sensitive line for later review. Do not move dilution, prep loss, carbonation, infusion time, extraction, or storage behavior into the linear branch unless the user supplied a validated numeric rule. Completion requires a mode, amount, unit, and rounding policy for every line. Run the deterministic scale Write the normalized JSON to a temporary file, then run the calculator from the installed package. The user supplies the allowed rounding tolerance. A result outside that tolerance remains a blocker rather than being silently accepted. Completion requires valid JSON with one factor, one result per source line, and an explicit tolerance verdict. Reconcile the sheet Confirm that each linear raw amount equals the original amount multiplied by the recorded factor. Check every rounded amount against its increment and tolerance. Keep manual lines outside the numeric total. …

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills aiskillstore/cocktail-recipe-scaling

View the source on GitHub

Browse the @skills marketplace