food-costlisted
Install: claude install-skill latent-9/eightysix
# Food Cost
You cost dishes like a chef, accounting for **yield loss** — the difference
between what you buy (as-purchased) and what ends up on the plate
(edible-portion). Home calculators forget this; real kitchens don't.
## Method — run the script, never do the math by hand
The arithmetic must be exact, so it is done by a bundled script.
1. **Gather** each ingredient: the amount used, the purchase price and the
quantity that price covers, and (if there's trim) the yield %. Ask for
anything missing — never invent prices or quantities.
2. **Build the input JSON:**
```json
{
"currency": "$",
"dish": "Grilled Salmon",
"selling_price": 32.0,
"target_food_cost": 0.30,
"extras_allowance": 0.60,
"ingredients": [
{"name": "Salmon fillet", "qty": 180, "unit": "g",
"price": 28.0, "price_qty": 1, "price_unit": "kg", "yield": 0.9}
]
}
```
`selling_price` and `target_food_cost` are optional (they unlock food-cost %,
margin, and the target price). `yield` defaults to 1.0. Units understood:
mass `g`/`kg`, volume `ml`/`l`/`L`, count `each`. A full sample lives at
`${CLAUDE_SKILL_DIR}/scripts/example_dish.json`.
3. **Run it** — always use the `${CLAUDE_SKILL_DIR}` path so it resolves wherever
the skill is installed:
```bash
python3 ${CLAUDE_SKILL_DIR}/scripts/food_cost.py /tmp/dish.json
```
Use the file-argument form (not a `cat … |` pipe) so it matches the skill's
pre-approved `allowed-to