Know what every dish costs before you plate it: 10 AI skills for recipe costing

allergen-matrix-builder

build the allergen matrix the law actually requires, all 14, dish by dish

How the two work together

Claude thinks it through. Paste the Claude prompt into Claude Code, or drop the folder into your skills folder. Claude does the judgement: what to look for, what is worth doing, what is right.

Codex gets it done. At the hand-off point Claude runs Codex on your machine with one command and passes it the Codex prompt. Codex does the mechanical part and hands the result back. Claude checks it before you see it.

No API key to set up: Claude calls the Codex you already have installed. If Codex is not installed, Claude does that half itself and tells you.

Prompt for Claude

---
name: allergen-matrix-builder
description: Builds the allergen matrix the law requires you to hold, checking every dish against all 14 mandated allergens from its own ingredients, and picks a lawful way to tell customers for however the dish is sold. It never guesses an allergen from a dish's name and never marks "may contain" without that being deliberate. Use before any dish goes on a menu, and the moment any ingredient changes.
---

# The allergen matrix you can show a customer and defend

Give this every dish and its full ingredient list, down to any sub-ingredient or additive. Get back a matrix marking each of the 14 allergens per dish, the line that caused each mark, and the exact wording for how it's sold.

## What it does

1. **Check every dish against the fixed list of 14 allergens**: celery, cereals containing gluten (wheat, rye, barley, oats), crustaceans, eggs, fish, lupin, milk, molluscs, mustard, peanuts, sesame, soybeans, sulphur dioxide and sulphites (over ten parts per million), and tree nuts. This "applies to additives, processing aids and any other substances which are present in the final product", so a stock cube or glaze counts as much as a headline ingredient.
2. **Mark an allergen present only where an ingredient line actually contains it**, named. Never infer one from a dish's name or cuisine.
3. **Decide how the information is given, based on how the food is sold.** For non-prepacked food the FSA's lawful methods are: "full written allergen information on a menu, chalkboard or in an information pack", or "verbally, with a written notice... explaining how your customers can obtain this information". For a buffet, "a sign directing customers to ask staff."
4. **Write the staff script to match the notice, word for word.**
5. **Keep "may contain" separate from "contains"**: a deliberate decision about cross-contamination, flagged, never generated automatically.

## Then it checks

1. All 14 allergens appear as a column for every dish, none dropped.
2. Every "present" mark names the ingredient line that caused it.
3. No mark was inferred with no ingredient line behind it.
4. The information method matches how the dish is served, and matches the staff script.
5. Every dish's ingredient list was actually supplied.

Any check fails: name it, redo once. Failed twice: say what is wrong and stop.

## Rules

- Public information only. Never invent a fact, number or quote, or an ingredient/allergen not shown in the recipe.
- Anything sent in someone's name says whose name it is.
- Never mark a dish allergen-free with no ingredient list supplied; flagged incomplete, not cleared.
- Never treat "may contain" as a substitute for checking the dish's own ingredients for a declared allergen.
- Working document for the owner to check against their recipes and current FSA guidance, and for an EHO or food safety adviser before relying on it with customers. Not food safety advice.

## Built from
- Food Standards Agency, "Allergen guidance for food businesses", https://www.gov.uk/government/publications/allergen-guidance-for-food-businesses/allergen-guidance-for-food-businesses, published 2 April 2020, updated 17 July 2026, read 4 November 2026: the 14-allergen list and disclosure methods, behind steps 1 and 3.
- Business Companion (CTSI), "Labelling of non-prepacked foods", https://www.businesscompanion.info/en/quick-guides/food-and-drink/labelling-of-non-prepacked-foods, reviewed November 2025, read 4 November 2026: confirms allergen info is required, and the verbal-plus-notice route, used in step 3.

Prompt for Codex

# allergen-matrix-builder

## You are given
A list of dishes, each with a full ingredient list including sub-ingredients of any compound product, additives and processing aids. For each dish, how it is sold (`non-prepacked menu item`, `buffet`, `PPDS`). Any existing allergen notice or staff script wording in use.

## Produce
Write into a `./allergen-matrix-output/` folder:

1. `allergen-matrix.csv`: `dish_name`, then one column per allergen in this exact order: `celery`, `cereals_containing_gluten`, `crustaceans`, `eggs`, `fish`, `lupin`, `milk`, `molluscs`, `mustard`, `peanuts`, `sesame`, `soybeans`, `sulphur_dioxide_and_sulphites`, `tree_nuts`. Each cell holds `present`, `absent`, `may contain`, or `not confirmed`. `not confirmed` only where the ingredient list was incomplete.
2. `evidence-log.csv`: `dish_name`, `allergen`, `ingredient_line_cited`, `mark`. One row for every cell marked `present` or `may contain`, naming the ingredient line. A `present` mark with no row here is an error.
3. `disclosure-method.csv`: `dish_name`, `sale_method`, `disclosure_method`, `notice_wording_verbatim`, `staff_script_verbatim`, `wording_matches` (`yes`/`no`).
4. `gaps.md` - numbered list of: every dish with any `not confirmed` cell; every `present`/`may contain` mark with no evidence row; every dish where `wording_matches` is `no`; every dish with no `sale_method`.

## Rules
- Codex matches ingredients against the fixed 14-allergen list, cites evidence, and records the disclosure method. It never infers an allergen from a name, cuisine or similarity to another dish, and never marks a dish allergen-free with no ingredient list supplied.
- All 14 columns are present for every dish, in the same order; none dropped because a dish "obviously" doesn't contain it.
- `may contain` is only used where the input explicitly states a cross-contamination risk; never added on Codex's own judgement.
- Compound ingredients are expanded to their own sub-ingredients where supplied, and flagged in `gaps.md` where not.
- British English, GBP, DD Month YYYY dates. No em dashes.
- Every file ends with: this is a working document prepared for the owner to check against their own recipes and current Food Standards Agency guidance, and for environmental health or a food safety adviser to check before it is relied on with customers. It is not food safety advice.

## Return
The absolute path and row count of each file. The number of dishes processed, and for each, how many of the 14 allergens are marked `present`. The number of `not confirmed` cells and which dishes. Any `present`/`may contain` mark with no evidence row, as an error. The number of dishes where wording doesn't match. The `gaps.md` item count.

Built from the best public work on this

Sources for allergen-matrix-builder

Everything below was opened and read on 4 November 2026. Nothing is cited that could not be loaded.

1. Food Standards Agency, "Allergen guidance for food businesses"

https://www.gov.uk/government/publications/allergen-guidance-for-food-businesses/allergen-guidance-for-food-businesses, published 2 April 2020, updated 17 July 2026, read 4 November 2026.

This is the primary FSA page and the source of the full allergen list used in step 1: "celery", "cereals containing gluten (such as wheat, rye, barley and oats)", "crustaceans (such as prawns, crabs and lobsters)", "eggs", "fish", "lupin", "milk", "molluscs (such as mussels and oysters)", "mustard", "peanuts", "sesame", "soybeans", "sulphur dioxide and sulphites (if the sulphur dioxide and sulphites are at a concentration of more than ten parts per million)", and "tree nuts (such as almonds, hazelnuts, walnuts, brazil nuts, cashews, pecans, pistachios and macadamia nuts)". It also states this "applies to additives, processing aids and any other substances which are present in the final product", which is why the skill expands compound ingredients rather than stopping at the headline list.

For non-prepacked food it sets out the lawful methods used in step 3: "full written allergen information on a menu, chalkboard or in an information pack", or "verbally, with a written notice placed in a clearly visible position" explaining how the information can be obtained, with "written allergen information, supported by a conversation, works best for consumers" as the FSA's own stated preference. For buffets it gives the example of "displaying a sign directing customers to ask staff for allergen information". On prepacked food generally, it states allergens "must be emphasised each time they appear in the ingredients list."

Where the skill departs: the page also covers PPDS labelling, which is handled in the recipe-version-control-and-allergen-redeclaration skill, since PPDS triggers a labelling event rather than a menu-wording choice.

2. Business Companion (Chartered Trading Standards Institute), "Labelling of non-prepacked foods"

https://www.businesscompanion.info/en/quick-guides/food-and-drink/labelling-of-non-prepacked-foods, last reviewed November 2025, read 4 November 2026.

Confirms the legal requirement behind the FSA's practical guidance: "You are required to provide the following food information for non-prepacked food:", listing "allergens present in the food" as a required item. It sets out the same written/verbal split used in step 3, including the example wording "Please ask us about allergens in our food" for a verbal-plus-notice route, and notes the information "can appear on a notice in close proximity to the product or on the shelf edge" where it isn't given on a label.

Where the skill departs: the page is a plain-English summary of the Food Information Regulations 2014 rather than the Regulations themselves, and says so. It is used here because it states the legal requirement in terms a kitchen can act on, not as a substitute for the Regulations.

Best public prompt we found for this job

The closest public artefact is `codazoda/allergymax` on GitHub, read from api.github.com on 4 November 2026, which returned a `stargazers_count` of 0 and the description "An allergy and food tracker with AI prompt export." It is a personal food-and-allergy log, built for an individual tracking their own reactions, not a business tool.

What we took: the basic idea of a fast, no-friction way to record which foods carry which allergens, intended to be checked often rather than built once and forgotten.

What we did not copy, and why: it tracks one person's own food log, with no concept of the 14 legally mandated allergens, no per-dish ingredient evidence trail, and nothing about how the information must be disclosed to a customer under UK law. A tool built for personal allergy tracking has no reason to know about PPDS labels or buffet signage, and bolting those on would be building a different tool under a borrowed name.

Want this running in your business?

I optimise how businesses run — your sales, your visibility, your social media — and build bespoke software where nothing off the shelf fits. The first conversation is free. Work starts from £150 a day.