{"skills":[{"name":"Plan dinner backwards from serving time","description":"Turn the recipes for one meal into a timetable that respects final rests, oven capacity and the temperature each dish actually needs.","content":"# Plan dinner backwards from serving time\n\nTurn the recipes for one meal into a timetable that respects final rests, oven capacity and the temperature each dish actually needs.\n\n## When to use this skill\n\n- Someone gives a serving time and the recipes and asks when to start each dish.\n- A roast, a bake and the vegetables have to share one oven and the person wants to know whether the timings work.\n- Someone is planning a Sunday lunch, Christmas dinner or dinner party and wants a written time plan.\n\n## When not to use it\n\n- Deciding that food is cooked. A timetable is a plan; check doneness with the recipe's test or a food thermometer (FSA guidance for England, Wales and Northern Ireland gives 70\u00b0C for 2 minutes in the centre, or an equivalent time and temperature; elsewhere use the national food safety authority).\n- Hot-holding or production plans for a food business, which must follow the business's own food safety procedures.\n- Scaling recipes for more people. Use the recipe resize skill first, then time the meal.\n\n## What you need\n\n- Serving time, recipes' required oven or hob times, temperatures, rests and any explicitly allowed holding times.\n- Number of usable oven shelves and rings, preheat or temperature-change time, and any preparation already complete.\n\n## Ask before you start\n\nIf any of these are missing or unclear, ask before doing the work.\n\n- What time should the food be served, and does that mean on the plates or on the table?\n- For each dish: how long on which appliance, at what temperature, and does it need a rest? Can any dish wait or be kept warm, and for how long?\n- How many ovens, shelves and hob rings are there, and how long does the oven take to preheat or change temperature?\n- What preparation is already done?\n\n## Method\n\n1. Fix the serving time as the end point. For each dish list its stages backwards: serve, rest or hold, cook, preheat or temperature change, prep. A required rest comes after cooking and before serving.\n2. Give each stage a resource: oven, hob ring, grill, microwave or worktop. A conventional oven holds one temperature at a time, so two dishes share it only when they need the same temperature and both fit.\n3. Schedule each dish as late as it can go: cooking ends at serving time minus its rest. Put preheating immediately before the first oven job; if the oven is already hot, there is no preheat.\n4. Lay the intervals on one line per resource as half-open intervals, so a job ending at 12:55 does not clash with one starting at 12:55. Where oven jobs at different temperatures overlap, record the overlapping minutes. Where they do not overlap but the gap is shorter than the stated temperature change, record the missing changeover minutes.\n5. Move a dish earlier only when its recipe allows the longer rest or a stated holding time. Do not shorten cooking times, change temperatures or invent holding times to remove a clash.\n6. For each clash offer the smallest workable change: a second oven or another appliance for one dish, an earlier cook and reheat if the recipe allows it, or a different side. Keep the original clash visible until the cook chooses.\n7. Add prep steps before the cooking starts and a reminder to check doneness by the recipe's test or with a thermometer rather than by the clock.\n\n## Checks before you deliver\n\n- Two free shelves cannot provide two temperatures in one conventional oven.\n- Taking a joint out exactly at serving time forgets the specified rest. Timetables do not demonstrate that food is cooked.\n- Forgetting that a temperature change also occupies the oven: a 10-minute rise from 190\u00b0C to 220\u00b0C needs 10 free minutes, not 5.\n- Mixing fan and conventional temperatures between recipes. Convert to one convention first; Good Food's recipes pair 200\u00b0C conventional with 180\u00b0C fan.\n\n## How to present the result\n\nIf anything clashes, say so first: the dishes, the minutes and the options. Then give the plan as clock times in order, one action per line ('16:43 Preheat the oven to 180\u00b0C', '17:45 Take the pie out and rest it'), including preheats, temperature changes, rests and serving. End with the doneness reminder.\n\n## Worked example\n\n**Request:** Give the latest workable cooking timetable.\n\n**Supplied material:**\n\n```text\nServe 18:00. Pie: oven 50 min at 180 C then rest 15 min exactly. Beans: hob 6 min, serve immediately. Oven preheat 12 min, prep complete. One oven, one ring.\n```\n\n**Answer:** 16:43 preheat the oven to 180\u00b0C. Put the pie in at 16:55, take it out at 17:45 and rest it for 15 minutes. Start the beans on the hob at 17:54 and serve both at 18:00.\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\nFor fixed timings return schedule keyed by dish ID with start and end of its named cooking stage as 24-hour HH:MM, plus preheat_start for the first oven interval if supplied, otherwise null. Return conflicts as arrays of [first dish ID, second dish ID, overlapping minutes] in input order. When infeasible, retain the individually required slots so the clash is visible. If an explicit temperature change adds a separate shortfall, return changeover_shortfall as rows [earlier dish ID, later dish ID, minutes]. When jobs already overlap, report their overlap in conflicts and the full change duration separately. Omit changeover_shortfall when there is no extra shortfall.\n\n## Sources\n\n- [Good Food: Christmas lunch time plan](https:\/\/www.bbcgoodfood.com\/howto\/guide\/your-christmas-timeplan): The test kitchen's plan works back from a fixed serving time, uses the shelf below for a second job at the same temperature, raises the oven temperature only once a dish is out, and takes the turkey's temperature before removing it. The skill follows the same backward plan and doneness check.\n- [Food Standards Agency: cooking your food](https:\/\/www.gov.uk\/government\/publications\/cooking-your-food\/cooking-your-food): FSA guidance for England, Wales and Northern Ireland: the centre of food should reach 70\u00b0C for 2 minutes or an equivalent combination such as 75\u00b0C for 30 seconds, measured with a clean food thermometer. This is why the plan never treats elapsed time as proof that food is cooked.\n\nTest cases and an answer checker for this skill: https:\/\/skills.raq.com\/skills\/plan-dinner-backwards\n","scope":"contextual","trigger_keywords":["Plan dinner backwards from serving time","plan-dinner-backwards","plan dinner backwards","We eat at 7. When do I need to start each dish?","We eat at 7. When do I need to start each dish","dinner ready by","work backwards from serving","time this dinner"],"is_private":true,"is_active":true,"scripts":[{"name":"plan-dinner-backwards-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":"plan-dinner-backwards-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: plan-dinner-backwards\ndescription: \"Build a cooking timetable for a meal by working back from the serving time, fitting rests, preheating, oven temperatures and hob space, and show any clash in minutes. Use when someone says dinner must be ready by a set time, asks when to start each dish, or wants a roast or Christmas dinner time plan.\"\nlicense: CC-BY-4.0\nmetadata:\n  author: Raq.com\n  version: \"2026-11-22\"\n  homepage: https:\/\/skills.raq.com\/skills\/plan-dinner-backwards\n---\n\n# Plan dinner backwards from serving time\n\nTurn the recipes for one meal into a timetable that respects final rests, oven capacity and the temperature each dish actually needs.\n\n## When to use this skill\n\n- Someone gives a serving time and the recipes and asks when to start each dish.\n- A roast, a bake and the vegetables have to share one oven and the person wants to know whether the timings work.\n- Someone is planning a Sunday lunch, Christmas dinner or dinner party and wants a written time plan.\n\n## When not to use it\n\n- Deciding that food is cooked. A timetable is a plan; check doneness with the recipe's test or a food thermometer (FSA guidance for England, Wales and Northern Ireland gives 70\u00b0C for 2 minutes in the centre, or an equivalent time and temperature; elsewhere use the national food safety authority).\n- Hot-holding or production plans for a food business, which must follow the business's own food safety procedures.\n- Scaling recipes for more people. Use the recipe resize skill first, then time the meal.\n\n## What you need\n\n- Serving time, recipes' required oven or hob times, temperatures, rests and any explicitly allowed holding times.\n- Number of usable oven shelves and rings, preheat or temperature-change time, and any preparation already complete.\n\n## Ask before you start\n\nIf any of these are missing or unclear, ask before doing the work.\n\n- What time should the food be served, and does that mean on the plates or on the table?\n- For each dish: how long on which appliance, at what temperature, and does it need a rest? Can any dish wait or be kept warm, and for how long?\n- How many ovens, shelves and hob rings are there, and how long does the oven take to preheat or change temperature?\n- What preparation is already done?\n\n## Method\n\n1. Fix the serving time as the end point. For each dish list its stages backwards: serve, rest or hold, cook, preheat or temperature change, prep. A required rest comes after cooking and before serving.\n2. Give each stage a resource: oven, hob ring, grill, microwave or worktop. A conventional oven holds one temperature at a time, so two dishes share it only when they need the same temperature and both fit.\n3. Schedule each dish as late as it can go: cooking ends at serving time minus its rest. Put preheating immediately before the first oven job; if the oven is already hot, there is no preheat.\n4. Lay the intervals on one line per resource as half-open intervals, so a job ending at 12:55 does not clash with one starting at 12:55. Where oven jobs at different temperatures overlap, record the overlapping minutes. Where they do not overlap but the gap is shorter than the stated temperature change, record the missing changeover minutes.\n5. Move a dish earlier only when its recipe allows the longer rest or a stated holding time. Do not shorten cooking times, change temperatures or invent holding times to remove a clash.\n6. For each clash offer the smallest workable change: a second oven or another appliance for one dish, an earlier cook and reheat if the recipe allows it, or a different side. Keep the original clash visible until the cook chooses.\n7. Add prep steps before the cooking starts and a reminder to check doneness by the recipe's test or with a thermometer rather than by the clock.\n\n## Checks before you deliver\n\n- Two free shelves cannot provide two temperatures in one conventional oven.\n- Taking a joint out exactly at serving time forgets the specified rest. Timetables do not demonstrate that food is cooked.\n- Forgetting that a temperature change also occupies the oven: a 10-minute rise from 190\u00b0C to 220\u00b0C needs 10 free minutes, not 5.\n- Mixing fan and conventional temperatures between recipes. Convert to one convention first; Good Food's recipes pair 200\u00b0C conventional with 180\u00b0C fan.\n\n## How to present the result\n\nIf anything clashes, say so first: the dishes, the minutes and the options. Then give the plan as clock times in order, one action per line ('16:43 Preheat the oven to 180\u00b0C', '17:45 Take the pie out and rest it'), including preheats, temperature changes, rests and serving. End with the doneness reminder.\n\n## Worked example\n\n**Request:** Give the latest workable cooking timetable.\n\n**Supplied material:**\n\n```text\nServe 18:00. Pie: oven 50 min at 180 C then rest 15 min exactly. Beans: hob 6 min, serve immediately. Oven preheat 12 min, prep complete. One oven, one ring.\n```\n\n**Answer:** 16:43 preheat the oven to 180\u00b0C. Put the pie in at 16:55, take it out at 17:45 and rest it for 15 minutes. Start the beans on the hob at 17:54 and serve both at 18:00.\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\nFor fixed timings return schedule keyed by dish ID with start and end of its named cooking stage as 24-hour HH:MM, plus preheat_start for the first oven interval if supplied, otherwise null. Return conflicts as arrays of [first dish ID, second dish ID, overlapping minutes] in input order. When infeasible, retain the individually required slots so the clash is visible. If an explicit temperature change adds a separate shortfall, return changeover_shortfall as rows [earlier dish ID, later dish ID, minutes]. When jobs already overlap, report their overlap in conflicts and the full change duration separately. Omit changeover_shortfall when there is no extra shortfall.\n\n## Sources\n\n- [Good Food: Christmas lunch time plan](https:\/\/www.bbcgoodfood.com\/howto\/guide\/your-christmas-timeplan): The test kitchen's plan works back from a fixed serving time, uses the shelf below for a second job at the same temperature, raises the oven temperature only once a dish is out, and takes the turkey's temperature before removing it. The skill follows the same backward plan and doneness check.\n- [Food Standards Agency: cooking your food](https:\/\/www.gov.uk\/government\/publications\/cooking-your-food\/cooking-your-food): FSA guidance for England, Wales and Northern Ireland: the centre of food should reach 70\u00b0C for 2 minutes or an equivalent combination such as 75\u00b0C for 30 seconds, measured with a clean food thermometer. This is why the plan never treats elapsed time as proof that food is cooked.\n\nTest cases and an answer checker for this skill: https:\/\/skills.raq.com\/skills\/plan-dinner-backwards\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\/plan-dinner-backwards\nReferenced third-party materials retain their own terms.\n"},{"path":"examples\/worked-example.md","content":"# A roast vegetable pie and green beans\n\nGive the latest workable cooking timetable.\n\n## Supplied material\n\nServe 18:00. Pie: oven 50 min at 180 C then rest 15 min exactly. Beans: hob 6 min, serve immediately. Oven preheat 12 min, prep complete. One oven, one ring.\n\n## Worked answer\n\n16:43 preheat the oven to 180\u00b0C. Put the pie in at 16:55, take it out at 17:45 and rest it for 15 minutes. Start the beans on the hob at 17:54 and serve both at 18:00.\n\n## Reasoning\n\nRest time puts the oven finish at 17:45. The beans use an independent resource.\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":"Give the latest workable cooking timetable.\nReturn only the JSON specified in SKILL.md for this test.\n\nServe 18:00. Pie: oven 50 min at 180 C then rest 15 min exactly. Beans: hob 6 min, serve immediately. Oven preheat 12 min, prep complete. One oven, one ring.\n"},{"path":"tests\/case-1\/expected.json","content":"{\n    \"schedule\": {\n        \"Pie\": {\n            \"start\": \"16:55\",\n            \"end\": \"17:45\"\n        },\n        \"Beans\": {\n            \"start\": \"17:54\",\n            \"end\": \"18:00\"\n        }\n    },\n    \"preheat_start\": \"16:43\",\n    \"conflicts\": []\n}\n"},{"path":"tests\/case-1\/explanation.txt","content":"Rest time puts the oven finish at 17:45. The beans use an independent resource.\n"},{"path":"tests\/case-2\/request.txt","content":"Can both dishes finish under these fixed recipe timings?\nReturn only the JSON specified in SKILL.md for this test.\n\nServe 13:00. Tart: oven 35 minutes at 180 C and rest 5 minutes exactly. Rolls: oven 20 minutes at 210 C, straight to table. One oven, two shelves, 10-minute preheat, no holding permitted.\n"},{"path":"tests\/case-2\/expected.json","content":"{\n    \"schedule\": {\n        \"Tart\": {\n            \"start\": \"12:20\",\n            \"end\": \"12:55\"\n        },\n        \"Rolls\": {\n            \"start\": \"12:40\",\n            \"end\": \"13:00\"\n        }\n    },\n    \"preheat_start\": \"12:10\",\n    \"conflicts\": [\n        [\n            \"Tart\",\n            \"Rolls\",\n            15\n        ]\n    ]\n}\n"},{"path":"tests\/case-2\/explanation.txt","content":"The interval from 12:40 to 12:55 needs two temperatures simultaneously.\n"},{"path":"tests\/case-3\/request.txt","content":"Can both be served at 19:00 with these fixed rests?\nReturn only the JSON specified in SKILL.md for this test.\n\nOne oven, prepared dishes, oven already hot. Roast: 60 minutes at 190 C, rest exactly 25 minutes. Veg: 20 minutes at 220 C, serve immediately. Oven takes 10 minutes to rise from 190 to 220.\n"},{"path":"tests\/case-3\/expected.json","content":"{\n    \"schedule\": {\n        \"Roast\": {\n            \"start\": \"17:35\",\n            \"end\": \"18:35\"\n        },\n        \"Veg\": {\n            \"start\": \"18:40\",\n            \"end\": \"19:00\"\n        }\n    },\n    \"preheat_start\": null,\n    \"conflicts\": [],\n    \"changeover_shortfall\": [\n        [\n            \"Roast\",\n            \"Veg\",\n            5\n        ]\n    ]\n}\n"},{"path":"tests\/case-3\/explanation.txt","content":"There are five free minutes between the dishes but ten are needed. Bringing the roast out earlier requires agreement to a longer rest.\n"}],"is_active":true,"is_approved":false}]}]}