{"skills":[{"name":"Make freezer labels from batch records","description":"Prepare labels with the dish, portions and true freezing date, and flag records that need checking before printing.","content":"# Make freezer labels from batch records\n\nPrepare labels with the dish, portions and true freezing date, and flag records that need checking before printing.\n\n## When to use this skill\n\n- Someone has batch-cooked soups, stews or sauces and wants labels for the tubs going into the freezer.\n- A household or small kitchen keeps a freezer log and wants labels printed from it.\n- Someone asks whether a batch can still be labelled and frozen given when it was cooked or its use-by date.\n\n## When not to use it\n\n- Food sold or supplied by a business. In England, Wales and Northern Ireland, food prepacked for direct sale must carry its name and a full ingredients list with the 14 regulated allergens emphasised; follow the FSA guidance or the local equivalent.\n- Deciding how long frozen food will keep or whether a batch is safe to eat. The label records facts; it does not set a shelf life or prove safety.\n- Declaring a dish free from an allergen. Only the ingredient records and original packaging can show that.\n\n## What you need\n\n- A dated batch sheet containing dish name, number of containers, portions per container and freezing record.\n- Original food or packaging instructions and date labels where a use-by date applies. Use explicit full dates.\n\n## Ask before you start\n\nIf any of these are missing or unclear, ask before doing the work.\n\n- Which country are you in? The rules here follow Food Standards Agency guidance for England, Wales and Northern Ireland; in Scotland check Food Standards Scotland, and elsewhere the national food safety authority.\n- On what date did each batch actually go into the freezer, as opposed to when it was bought or cooked?\n- For bought or ready-made items, what is the use-by date and does the pack say the food is suitable for freezing?\n- How long was any cooked rice or other cooked food left at room temperature before it was chilled or frozen?\n\n## Method\n\n1. Separate purchase, cooking and freezing dates in each record. Only the freezing date goes on the label. A missing or ambiguous freezing date sends the batch to review ('missing-freeze-date').\n2. Check pack dates and instructions. FSA guidance (England, Wales and Northern Ireland) allows food to be frozen up to midnight on its use-by date, so a batch first frozen after that date goes to review ('past-use-by'). Follow any 'suitable for freezing' or 'do not freeze' instruction; if the record lacks or contradicts a needed instruction, use 'check-instructions'.\n3. Check handling history against food-specific guidance. For cooked rice the FSA advises chilling it as quickly as possible, ideally within one hour, and getting it into the freezer within an hour of cooking, and says the risk comes from how rice was stored before reheating. Rice left at room temperature for hours is 'unsafe-handling' and should be discarded. For other cooked leftovers the FSA advises refrigerating within one to two hours and freezing as soon as possible.\n4. Count containers and portions exactly as recorded. Containers with different portion counts get separate label rows; never average a total. Unknown portions per container go to review ('unknown-portions'). If the handling history for cooked food is missing, hold its labels under 'check-instructions' and ask how quickly it was chilled.\n5. Build one label row per group of identical containers: dish, portions, frozen-on date and copies equal to the container count. Copy any allergen or 'contains' wording word for word from the recipe or original packaging, and never add 'free from' claims.\n6. Where the person wants handling notes on the label, use the FSA's: use within 24 hours of fully defrosting, and cooked food that is frozen again can be reheated only once after that.\n7. List every held batch with its reason and the fact that would clear it, or plain discard advice where handling was unsafe.\n\n## Checks before you deliver\n\n- A shopping date can be earlier than freezing by several days.\n- Dividing a total by the number of containers is valid only when they were portioned evenly.\n- Freezing the day after a use-by date is past the FSA limit even if the food looks fine; a use-by date marks when food is no longer safe to eat.\n- Printing labels for rice that sat out for hours because its freezer date is known. The handling history, not the label date, decides.\n- Writing 'nut free' or 'gluten free' because no such ingredient is remembered. Allergen statements need the ingredient records.\n\n## How to present the result\n\nStart with what to print: each label's exact wording and the number of copies ('Pea soup \u00b7 2 portions \u00b7 Frozen 3 March 2026', print 3). Then list held batches with the reason and what to confirm, and give any discard advice plainly. Add the defrosting note only if the person wants it on the label.\n\n## Worked example\n\n**Request:** Prepare the labels from the finished batch sheet.\n\n**Supplied material:**\n\n```text\nB7 Pea soup: prepared 2026-03-02, cooled and refrigerated within one hour, kept chilled until recorded frozen 2026-03-03, three tubs, two portions per tub. Suitable for freezing, no original use-by issue. B8 Apple compote: four tubs, one portion each, cooking date 2026-03-03, freezing date blank.\n```\n\n**Answer:** Print three copies of \u201cPea soup \u00b7 2 portions \u00b7 Frozen 3 March 2026\u201d for B7. Hold the four apple compote labels until you can confirm when B8 went into the freezer.\n\n## Structured output for tests\n\nFor an ordinary job, answer in the format above and point back to the supplied evidence. Use this structure only for the test cases published with this skill, or when someone asks for structured JSON.\n\nReturn labels as rows in batch order with batch, dish, copies, portions_each and frozen_on (ISO date). Return review keyed by batch ID with reason 'missing-freeze-date', 'past-use-by', 'unknown-portions', 'unsafe-handling' or 'check-instructions'. Omit unresolved batches from labels. Preserve dates supplied without estimating shelf life.\n\n## Sources\n\n- [Food Standards Agency: how to chill, freeze and defrost food safely](https:\/\/www.gov.uk\/government\/publications\/how-to-chill-freeze-and-defrost-food-safely\/how-to-chill-freeze-and-defrost-food-safely): FSA guidance for England, Wales and Northern Ireland: food can be frozen up to midnight on its use-by date, frozen food should be labelled, pack freezing instructions should be followed, cooked food should be refrigerated within one to two hours, defrosted food used within 24 hours, and refrozen cooked food reheated only once.\n- [Food Standards Agency: home food fact checker](https:\/\/www.gov.uk\/government\/publications\/home-food-fact-checker\/home-food-fact-checker): The rice answers say Bacillus cereus spores survive cooking, the risk rises the longer cooked rice stays at room temperature, rice should be chilled ideally within one hour and frozen within an hour of cooking, and the problem is storage before reheating, not the reheating. This is the basis for the 'unsafe-handling' hold.\n- [Food Standards Agency: introduction to allergen labelling for PPDS food](https:\/\/www.gov.uk\/government\/publications\/introduction-to-allergen-labelling-for-ppds-food\/introduction-to-allergen-labelling-for-ppds-food): Since 1 October 2021, food packed where it is sold and in its packaging before it is ordered must show its name and an ingredients list with the 14 regulated allergens emphasised (guidance for England, Wales and Northern Ireland). This is why business labels are outside this skill.\n\nTest cases and an answer checker for this skill: https:\/\/skills.raq.com\/skills\/make-freezer-batch-labels\n","scope":"contextual","trigger_keywords":["Make freezer labels from batch records","make-freezer-batch-labels","make freezer batch labels","Can you make freezer labels for the soups I batch-cooked today?","Can you make freezer labels for the soups I batch-cooked today","freezer labels","label these freezer portions","label this freezer batch"],"is_private":true,"is_active":true,"scripts":[{"name":"make-freezer-batch-labels-check","description":"Compare a saved JSON answer with a published test. Pass tests\/case-1\/expected.json (or another case) and the path to your answer.","language":"python","filename":"make-freezer-batch-labels-check.py","content":"from pathlib import Path\nimport runpy\n\nrunpy.run_path(str(Path(__file__).parent \/ 'tests' \/ 'check.py'), run_name='__main__')\n","supporting_files":[{"path":"SKILL.md","content":"---\nname: make-freezer-batch-labels\ndescription: \"Turn a batch-cooking or freezer log into labels showing the dish, portions and date each batch was frozen, and hold back batches with missing dates, use-by conflicts or unsafe handling. Use when someone asks for freezer labels, to label batch-cooked portions, or to check a freezer log before printing.\"\nlicense: CC-BY-4.0\nmetadata:\n  author: Raq.com\n  version: \"2026-11-23\"\n  homepage: https:\/\/skills.raq.com\/skills\/make-freezer-batch-labels\n---\n\n# Make freezer labels from batch records\n\nPrepare labels with the dish, portions and true freezing date, and flag records that need checking before printing.\n\n## When to use this skill\n\n- Someone has batch-cooked soups, stews or sauces and wants labels for the tubs going into the freezer.\n- A household or small kitchen keeps a freezer log and wants labels printed from it.\n- Someone asks whether a batch can still be labelled and frozen given when it was cooked or its use-by date.\n\n## When not to use it\n\n- Food sold or supplied by a business. In England, Wales and Northern Ireland, food prepacked for direct sale must carry its name and a full ingredients list with the 14 regulated allergens emphasised; follow the FSA guidance or the local equivalent.\n- Deciding how long frozen food will keep or whether a batch is safe to eat. The label records facts; it does not set a shelf life or prove safety.\n- Declaring a dish free from an allergen. Only the ingredient records and original packaging can show that.\n\n## What you need\n\n- A dated batch sheet containing dish name, number of containers, portions per container and freezing record.\n- Original food or packaging instructions and date labels where a use-by date applies. Use explicit full dates.\n\n## Ask before you start\n\nIf any of these are missing or unclear, ask before doing the work.\n\n- Which country are you in? The rules here follow Food Standards Agency guidance for England, Wales and Northern Ireland; in Scotland check Food Standards Scotland, and elsewhere the national food safety authority.\n- On what date did each batch actually go into the freezer, as opposed to when it was bought or cooked?\n- For bought or ready-made items, what is the use-by date and does the pack say the food is suitable for freezing?\n- How long was any cooked rice or other cooked food left at room temperature before it was chilled or frozen?\n\n## Method\n\n1. Separate purchase, cooking and freezing dates in each record. Only the freezing date goes on the label. A missing or ambiguous freezing date sends the batch to review ('missing-freeze-date').\n2. Check pack dates and instructions. FSA guidance (England, Wales and Northern Ireland) allows food to be frozen up to midnight on its use-by date, so a batch first frozen after that date goes to review ('past-use-by'). Follow any 'suitable for freezing' or 'do not freeze' instruction; if the record lacks or contradicts a needed instruction, use 'check-instructions'.\n3. Check handling history against food-specific guidance. For cooked rice the FSA advises chilling it as quickly as possible, ideally within one hour, and getting it into the freezer within an hour of cooking, and says the risk comes from how rice was stored before reheating. Rice left at room temperature for hours is 'unsafe-handling' and should be discarded. For other cooked leftovers the FSA advises refrigerating within one to two hours and freezing as soon as possible.\n4. Count containers and portions exactly as recorded. Containers with different portion counts get separate label rows; never average a total. Unknown portions per container go to review ('unknown-portions'). If the handling history for cooked food is missing, hold its labels under 'check-instructions' and ask how quickly it was chilled.\n5. Build one label row per group of identical containers: dish, portions, frozen-on date and copies equal to the container count. Copy any allergen or 'contains' wording word for word from the recipe or original packaging, and never add 'free from' claims.\n6. Where the person wants handling notes on the label, use the FSA's: use within 24 hours of fully defrosting, and cooked food that is frozen again can be reheated only once after that.\n7. List every held batch with its reason and the fact that would clear it, or plain discard advice where handling was unsafe.\n\n## Checks before you deliver\n\n- A shopping date can be earlier than freezing by several days.\n- Dividing a total by the number of containers is valid only when they were portioned evenly.\n- Freezing the day after a use-by date is past the FSA limit even if the food looks fine; a use-by date marks when food is no longer safe to eat.\n- Printing labels for rice that sat out for hours because its freezer date is known. The handling history, not the label date, decides.\n- Writing 'nut free' or 'gluten free' because no such ingredient is remembered. Allergen statements need the ingredient records.\n\n## How to present the result\n\nStart with what to print: each label's exact wording and the number of copies ('Pea soup \u00b7 2 portions \u00b7 Frozen 3 March 2026', print 3). Then list held batches with the reason and what to confirm, and give any discard advice plainly. Add the defrosting note only if the person wants it on the label.\n\n## Worked example\n\n**Request:** Prepare the labels from the finished batch sheet.\n\n**Supplied material:**\n\n```text\nB7 Pea soup: prepared 2026-03-02, cooled and refrigerated within one hour, kept chilled until recorded frozen 2026-03-03, three tubs, two portions per tub. Suitable for freezing, no original use-by issue. B8 Apple compote: four tubs, one portion each, cooking date 2026-03-03, freezing date blank.\n```\n\n**Answer:** Print three copies of \u201cPea soup \u00b7 2 portions \u00b7 Frozen 3 March 2026\u201d for B7. Hold the four apple compote labels until you can confirm when B8 went into the freezer.\n\n## Structured output for tests\n\nFor an ordinary job, answer in the format above and point back to the supplied evidence. Use this structure only for the test cases published with this skill, or when someone asks for structured JSON.\n\nReturn labels as rows in batch order with batch, dish, copies, portions_each and frozen_on (ISO date). Return review keyed by batch ID with reason 'missing-freeze-date', 'past-use-by', 'unknown-portions', 'unsafe-handling' or 'check-instructions'. Omit unresolved batches from labels. Preserve dates supplied without estimating shelf life.\n\n## Sources\n\n- [Food Standards Agency: how to chill, freeze and defrost food safely](https:\/\/www.gov.uk\/government\/publications\/how-to-chill-freeze-and-defrost-food-safely\/how-to-chill-freeze-and-defrost-food-safely): FSA guidance for England, Wales and Northern Ireland: food can be frozen up to midnight on its use-by date, frozen food should be labelled, pack freezing instructions should be followed, cooked food should be refrigerated within one to two hours, defrosted food used within 24 hours, and refrozen cooked food reheated only once.\n- [Food Standards Agency: home food fact checker](https:\/\/www.gov.uk\/government\/publications\/home-food-fact-checker\/home-food-fact-checker): The rice answers say Bacillus cereus spores survive cooking, the risk rises the longer cooked rice stays at room temperature, rice should be chilled ideally within one hour and frozen within an hour of cooking, and the problem is storage before reheating, not the reheating. This is the basis for the 'unsafe-handling' hold.\n- [Food Standards Agency: introduction to allergen labelling for PPDS food](https:\/\/www.gov.uk\/government\/publications\/introduction-to-allergen-labelling-for-ppds-food\/introduction-to-allergen-labelling-for-ppds-food): Since 1 October 2021, food packed where it is sold and in its packaging before it is ordered must show its name and an ingredients list with the 14 regulated allergens emphasised (guidance for England, Wales and Northern Ireland). This is why business labels are outside this skill.\n\nTest cases and an answer checker for this skill: https:\/\/skills.raq.com\/skills\/make-freezer-batch-labels\n"},{"path":"LICENSE.txt","content":"Original Raq.com instructions and synthetic examples: CC BY 4.0.\nhttps:\/\/creativecommons.org\/licenses\/by\/4.0\/\nAttribution: Raq.com, https:\/\/skills.raq.com\/skills\/make-freezer-batch-labels\nReferenced third-party materials retain their own terms.\n"},{"path":"examples\/worked-example.md","content":"# Portions and the actual freezing day\n\nPrepare the labels from the finished batch sheet.\n\n## Supplied material\n\nB7 Pea soup: prepared 2026-03-02, cooled and refrigerated within one hour, kept chilled until recorded frozen 2026-03-03, three tubs, two portions per tub. Suitable for freezing, no original use-by issue. B8 Apple compote: four tubs, one portion each, cooking date 2026-03-03, freezing date blank.\n\n## Worked answer\n\nPrint three copies of \u201cPea soup \u00b7 2 portions \u00b7 Frozen 3 March 2026\u201d for B7. Hold the four apple compote labels until you can confirm when B8 went into the freezer.\n\n## Reasoning\n\nThe soup labels carry March 3. The compote's cooking date cannot stand in for its freezing date.\n"},{"path":"tests\/check.py","content":"\"\"\"Check a saved agent answer locally with Python 3 (standard library only).\"\"\"\nimport json\nimport math\nimport sys\nfrom pathlib import Path\n\n\ndef compare(expected, actual, path=\"$\", accepted=None):\n    if isinstance(expected, bool) or isinstance(actual, bool):\n        if expected is not actual:\n            yield path\n    elif isinstance(expected, (int, float)) and isinstance(actual, (int, float)):\n        if not math.isclose(expected, actual, rel_tol=0, abs_tol=1e-8):\n            yield path\n    elif isinstance(expected, dict) and isinstance(actual, dict):\n        for key in sorted(set(expected) | set(actual)):\n            if key not in expected or key not in actual:\n                yield f\"{path}.{key}\"\n            elif not any(\n                not list(compare(option, actual[key]))\n                for option in (accepted or {}).get(key, [])\n            ):\n                yield from compare(expected[key], actual[key], f\"{path}.{key}\")\n    elif isinstance(expected, list) and isinstance(actual, list):\n        if len(expected) != len(actual):\n            yield f\"{path} (length)\"\n        for i, (left, right) in enumerate(zip(expected, actual)):\n            yield from compare(left, right, f\"{path}[{i}]\")\n    elif type(expected) != type(actual) or expected != actual:\n        yield path\n\n\ndef main():\n    if len(sys.argv) != 3:\n        raise SystemExit(\"Usage: python3 check.py expected.json answer.json\")\n    try:\n        expected, actual = [json.loads(Path(p).read_text(encoding=\"utf-8\")) for p in sys.argv[1:]]\n        alternatives = Path(sys.argv[1]).with_name(\"accepted.json\")\n        accepted = json.loads(alternatives.read_text(encoding=\"utf-8\")) if alternatives.is_file() else {}\n    except (ValueError, OSError) as error:\n        raise SystemExit(str(error))\n    differences = list(compare(expected, actual, accepted=accepted))\n    if differences:\n        raise SystemExit(\"Different fields: \" + \", \".join(differences))\n    print(\"Pass\")\n\n\nif __name__ == \"__main__\":\n    main()\n"},{"path":"tests\/README.md","content":"Give your agent SKILL.md and one request.txt in a fresh session. Keep the expected answer aside. Save the reply as answer.json, then run this from the tests folder:\n\n    python3 check.py case-1\/expected.json answer.json\n\nEach case also has an explanation. Where accepted.json exists, the checker accepts the alternatives listed there.\n"},{"path":"tests\/case-1\/request.txt","content":"Prepare the labels from the finished batch sheet.\nReturn only the JSON specified in SKILL.md for this test.\n\nB7 Pea soup: prepared 2026-03-02, cooled and refrigerated within one hour, kept chilled until recorded frozen 2026-03-03, three tubs, two portions per tub. Suitable for freezing, no original use-by issue. B8 Apple compote: four tubs, one portion each, cooking date 2026-03-03, freezing date blank.\n"},{"path":"tests\/case-1\/expected.json","content":"{\n    \"labels\": [\n        {\n            \"batch\": \"B7\",\n            \"dish\": \"Pea soup\",\n            \"copies\": 3,\n            \"portions_each\": 2,\n            \"frozen_on\": \"2026-03-03\"\n        }\n    ],\n    \"review\": {\n        \"B8\": \"missing-freeze-date\"\n    }\n}\n"},{"path":"tests\/case-1\/explanation.txt","content":"The soup labels carry March 3. The compote's cooking date cannot stand in for its freezing date.\n"},{"path":"tests\/case-2\/request.txt","content":"Prepare labels or identify the batch to check.\nReturn only the JSON specified in SKILL.md for this test.\n\nS1 unopened chilled sauce: use by 2026-05-04, first frozen 2026-05-05, two containers of one portion; label permits freezing before use-by. S2 Stewed pears: cooled within one hour, suitable for freezing, frozen the same day on 2026-05-05, two tubs, one portion each.\n"},{"path":"tests\/case-2\/expected.json","content":"{\n    \"labels\": [\n        {\n            \"batch\": \"S2\",\n            \"dish\": \"Stewed pears\",\n            \"copies\": 2,\n            \"portions_each\": 1,\n            \"frozen_on\": \"2026-05-05\"\n        }\n    ],\n    \"review\": {\n        \"S1\": \"past-use-by\"\n    }\n}\n"},{"path":"tests\/case-2\/explanation.txt","content":"The sauce\u2019s dates conflict with its own instructions. It receives no ready-to-use label.\n"},{"path":"tests\/case-3\/request.txt","content":"Print the labels if these four portions can be kept for reheating.\nReturn only the JSON specified in SKILL.md for this test.\n\nUK batch R4: plain rice cooked 2026-11-15 at 18:00 and left at room temperature until frozen at 00:00 on 2026-11-16. Four containers of one portion each.\n"},{"path":"tests\/case-3\/expected.json","content":"{\n    \"labels\": [],\n    \"review\": {\n        \"R4\": \"unsafe-handling\"\n    }\n}\n"},{"path":"tests\/case-3\/explanation.txt","content":"Six hours at room temperature conflicts with the FSA's rice guidance. Withhold serving labels and advise discarding this batch.\n"},{"path":"tests\/case-4\/request.txt","content":"Can I label these portions now?\nReturn only the JSON specified in SKILL.md for this test.\n\nP3 lentil soup cooked on Monday, frozen Tuesday, two tubs of two portions. The notes do not say when it was chilled or how it was stored overnight.\n"},{"path":"tests\/case-4\/expected.json","content":"{\n    \"labels\": [],\n    \"review\": {\n        \"P3\": \"check-instructions\"\n    }\n}\n"},{"path":"tests\/case-4\/explanation.txt","content":"Ask when the soup was chilled and how it was stored before freezing. The freezing date alone cannot answer that.\n"}],"is_active":true,"is_approved":false}]}]}