{"skills":[{"name":"Check an exam timetable for clashes","description":"Find overlapping papers for the same candidate, including approved extra time, and identify the cases the exams office must resolve.","content":"# Check an exam timetable for clashes\n\nFind overlapping papers for the same candidate, including approved extra time, and identify the cases the exams office must resolve.\n\n## When to use this skill\n\n- A candidate's statement of entry shows two or more papers on one day and someone asks whether they clash.\n- A candidate has approved extra time and wants to know when each paper will really finish.\n- An exams officer wants a per-candidate check of finish times, overlaps and room changes.\n\n## When not to use it\n\n- Approving extra time or other access arrangements. For JCQ qualifications the centre agrees these before the exams from evidence of need.\n- Deciding how a clash is resolved, moving a paper or arranging overnight supervision. The exams office applies the awarding body's rules.\n- Special consideration after an exam, which is a separate awarding body process.\n\n## What you need\n\n- Candidate-specific timetable with paper codes, dates, the centre's actual start times and standard durations.\n- The candidate's approved adjustments, such as a percentage of extra time, and any required gap between papers.\n\n## Ask before you start\n\nIf any of these are missing or unclear, ask before doing the work.\n\n- Which qualifications and exam boards, and in which country? The rules here are JCQ's, for GCSE, AS and A level in England, Wales and Northern Ireland; SQA and international boards have their own.\n- What are the centre's actual start times and durations, rather than only 'morning' or 'afternoon'?\n- What extra time has the centre approved for this candidate, and does any published finish time already include it?\n- Does the centre need time between papers for a room change, check-in or break?\n\n## Method\n\n1. Work one candidate and one date at a time. Keep each paper's code and session, and use the centre's actual start time. A paper with a session but no confirmed start time or duration goes to unknown.\n2. Adjusted duration = standard duration \u00d7 (1 + approved extra time), unless the centre's finish time already includes it. Use only confirmed arrangements, and keep part minutes unless the centre gives a rounding rule.\n3. Compare papers as half-open intervals from start to adjusted finish. Report each overlapping pair with the overlap in minutes; a paper ending at the minute the next starts does not overlap.\n4. Where the centre states a transfer, check-in or break time, compare it with the gap between adjusted finish and the next start. Report any shortfall even when the writing times do not overlap.\n5. To explain options for JCQ papers in the same session, add their combined time including extra time and supervised rest breaks. JCQ guidance: three hours or less, the papers are taken one after another in that session with a supervised break of up to 20 minutes; over three hours, the centre may move one paper to the other session that day; three or more papers totalling over six hours (AS and A level) or five and a half hours (GCSE) may let an afternoon paper move to the next morning, with overnight supervision as a last resort. AS and A level Maths and Further Maths cannot move to the morning.\n6. Send the exams office one short note per issue: candidate, papers, adjusted times, minutes of overlap or shortfall, and what needs deciding. Leave the decision with the centre.\n\n## Checks before you deliver\n\n- Two papers sharing a room can belong to different pupils.\n- Adjacent finish and start times have zero overlap; a tight transfer may still merit a note.\n- Adding extra time to a finish time the centre has already adjusted counts it twice.\n- Reporting 'same session' as an overlap without actual start times. Mark the paper unknown and ask for the centre's times.\n- Relying on the candidate to spot clashes. JCQ tells centres to run their own check and not to rely on candidates as the only way of finding clashes.\n\n## How to present the result\n\nLead with the verdict for each candidate: which papers overlap or leave too little time, and by how many minutes. Then a table with each paper's code, start, standard duration, extra time, adjusted finish and the gap to the next paper. End with a note ready to send to the exams office.\n\n## Worked example\n\n**Request:** Check candidate A\u2019s final timetable.\n\n**Supplied material:**\n\n```text\nSame date. P1 09:00 80 minutes plus 25% extra. P2 10:30 60 minutes. No other adjustment.\n```\n\n**Answer:** Please check candidate A\u2019s P1 and P2 arrangements. P1 starts at 09:00 and needs 100 minutes including approved extra time, so it ends at 10:40. P2 starts at 10:30. The entries overlap by 10 minutes.\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 a fixture return overlaps as [firstCode,secondCode,minutes] ordered by appearance, plus unknown as paper codes whose start or duration is absent. When the input specifies a transfer requirement, also return transfer_shortfalls as [fromCode,toCode,minutesShort] for positive deficits.\n\n## Sources\n\n- [JCQ: managing timetable clashes](https:\/\/www.jcq.org.uk\/exams-office\/managing-timetable-clashes\/): Sets out how centres identify and manage clashes: combined time includes approved extra time and supervised rest breaks, the three-hour rule for one session, the six and five-and-a-half hour rules for three or more papers, overnight supervision as a last resort and the Maths exception. The skill reports against these and leaves the decision to the centre.\n- [JCQ: access arrangements and reasonable adjustments](https:\/\/www.jcq.org.uk\/exams-office\/access-arrangements-and-reasonable-adjustments\/): Explains that access arrangements such as extra time are agreed before exams on evidence of need, across England, Wales and Northern Ireland, with separate guidance for 25% and for 26% to 50% extra time. This is why the skill uses only the centre's approved allowance.\n\nTest cases and an answer checker for this skill: https:\/\/skills.raq.com\/skills\/exam-clash-check\n","scope":"contextual","trigger_keywords":["Check an exam timetable for clashes","exam-clash-check","exam clash check","My child has two exams on the same day. Do they clash?","My child has two exams on the same day. Do they clash","exam timetable clash","do my exams overlap","exam papers overlap"],"is_private":true,"is_active":true,"scripts":[{"name":"exam-clash-check-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":"exam-clash-check-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: exam-clash-check\ndescription: \"Check a candidate's exam timetable for overlapping papers once approved extra time is added, flag papers with no confirmed time and room changes that are too tight, and pass clashes to the exams office. Use when a student, parent or exams officer asks whether exams clash or how extra time changes finish times.\"\nlicense: CC-BY-4.0\nmetadata:\n  author: Raq.com\n  version: \"2026-11-22\"\n  homepage: https:\/\/skills.raq.com\/skills\/exam-clash-check\n---\n\n# Check an exam timetable for clashes\n\nFind overlapping papers for the same candidate, including approved extra time, and identify the cases the exams office must resolve.\n\n## When to use this skill\n\n- A candidate's statement of entry shows two or more papers on one day and someone asks whether they clash.\n- A candidate has approved extra time and wants to know when each paper will really finish.\n- An exams officer wants a per-candidate check of finish times, overlaps and room changes.\n\n## When not to use it\n\n- Approving extra time or other access arrangements. For JCQ qualifications the centre agrees these before the exams from evidence of need.\n- Deciding how a clash is resolved, moving a paper or arranging overnight supervision. The exams office applies the awarding body's rules.\n- Special consideration after an exam, which is a separate awarding body process.\n\n## What you need\n\n- Candidate-specific timetable with paper codes, dates, the centre's actual start times and standard durations.\n- The candidate's approved adjustments, such as a percentage of extra time, and any required gap between papers.\n\n## Ask before you start\n\nIf any of these are missing or unclear, ask before doing the work.\n\n- Which qualifications and exam boards, and in which country? The rules here are JCQ's, for GCSE, AS and A level in England, Wales and Northern Ireland; SQA and international boards have their own.\n- What are the centre's actual start times and durations, rather than only 'morning' or 'afternoon'?\n- What extra time has the centre approved for this candidate, and does any published finish time already include it?\n- Does the centre need time between papers for a room change, check-in or break?\n\n## Method\n\n1. Work one candidate and one date at a time. Keep each paper's code and session, and use the centre's actual start time. A paper with a session but no confirmed start time or duration goes to unknown.\n2. Adjusted duration = standard duration \u00d7 (1 + approved extra time), unless the centre's finish time already includes it. Use only confirmed arrangements, and keep part minutes unless the centre gives a rounding rule.\n3. Compare papers as half-open intervals from start to adjusted finish. Report each overlapping pair with the overlap in minutes; a paper ending at the minute the next starts does not overlap.\n4. Where the centre states a transfer, check-in or break time, compare it with the gap between adjusted finish and the next start. Report any shortfall even when the writing times do not overlap.\n5. To explain options for JCQ papers in the same session, add their combined time including extra time and supervised rest breaks. JCQ guidance: three hours or less, the papers are taken one after another in that session with a supervised break of up to 20 minutes; over three hours, the centre may move one paper to the other session that day; three or more papers totalling over six hours (AS and A level) or five and a half hours (GCSE) may let an afternoon paper move to the next morning, with overnight supervision as a last resort. AS and A level Maths and Further Maths cannot move to the morning.\n6. Send the exams office one short note per issue: candidate, papers, adjusted times, minutes of overlap or shortfall, and what needs deciding. Leave the decision with the centre.\n\n## Checks before you deliver\n\n- Two papers sharing a room can belong to different pupils.\n- Adjacent finish and start times have zero overlap; a tight transfer may still merit a note.\n- Adding extra time to a finish time the centre has already adjusted counts it twice.\n- Reporting 'same session' as an overlap without actual start times. Mark the paper unknown and ask for the centre's times.\n- Relying on the candidate to spot clashes. JCQ tells centres to run their own check and not to rely on candidates as the only way of finding clashes.\n\n## How to present the result\n\nLead with the verdict for each candidate: which papers overlap or leave too little time, and by how many minutes. Then a table with each paper's code, start, standard duration, extra time, adjusted finish and the gap to the next paper. End with a note ready to send to the exams office.\n\n## Worked example\n\n**Request:** Check candidate A\u2019s final timetable.\n\n**Supplied material:**\n\n```text\nSame date. P1 09:00 80 minutes plus 25% extra. P2 10:30 60 minutes. No other adjustment.\n```\n\n**Answer:** Please check candidate A\u2019s P1 and P2 arrangements. P1 starts at 09:00 and needs 100 minutes including approved extra time, so it ends at 10:40. P2 starts at 10:30. The entries overlap by 10 minutes.\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 a fixture return overlaps as [firstCode,secondCode,minutes] ordered by appearance, plus unknown as paper codes whose start or duration is absent. When the input specifies a transfer requirement, also return transfer_shortfalls as [fromCode,toCode,minutesShort] for positive deficits.\n\n## Sources\n\n- [JCQ: managing timetable clashes](https:\/\/www.jcq.org.uk\/exams-office\/managing-timetable-clashes\/): Sets out how centres identify and manage clashes: combined time includes approved extra time and supervised rest breaks, the three-hour rule for one session, the six and five-and-a-half hour rules for three or more papers, overnight supervision as a last resort and the Maths exception. The skill reports against these and leaves the decision to the centre.\n- [JCQ: access arrangements and reasonable adjustments](https:\/\/www.jcq.org.uk\/exams-office\/access-arrangements-and-reasonable-adjustments\/): Explains that access arrangements such as extra time are agreed before exams on evidence of need, across England, Wales and Northern Ireland, with separate guidance for 25% and for 26% to 50% extra time. This is why the skill uses only the centre's approved allowance.\n\nTest cases and an answer checker for this skill: https:\/\/skills.raq.com\/skills\/exam-clash-check\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\/exam-clash-check\nReferenced third-party materials retain their own terms.\n"},{"path":"examples\/worked-example.md","content":"# Extra time creates a clash\n\nCheck candidate A\u2019s final timetable.\n\n## Supplied material\n\nSame date. P1 09:00 80 minutes plus 25% extra. P2 10:30 60 minutes. No other adjustment.\n\n## Worked answer\n\nPlease check candidate A\u2019s P1 and P2 arrangements. P1 starts at 09:00 and needs 100 minutes including approved extra time, so it ends at 10:40. P2 starts at 10:30. The entries overlap by 10 minutes.\n\n## Reasoning\n\nP1 ends at 10:40.\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":"Check candidate A\u2019s final timetable.\nReturn only the JSON specified in SKILL.md for this test.\n\nSame date. P1 09:00 80 minutes plus 25% extra. P2 10:30 60 minutes. No other adjustment.\n"},{"path":"tests\/case-1\/expected.json","content":"{\n    \"overlaps\": [\n        [\n            \"P1\",\n            \"P2\",\n            10\n        ]\n    ],\n    \"unknown\": []\n}\n"},{"path":"tests\/case-1\/explanation.txt","content":"P1 ends at 10:40.\n"},{"path":"tests\/case-2\/request.txt","content":"Identify confirmed clashes for candidate B.\nReturn only the JSON specified in SKILL.md for this test.\n\nSame date. M1 09:00 60 min. M2 10:00 60 min. M3 afternoon, precise start pending, 45 min.\n"},{"path":"tests\/case-2\/expected.json","content":"{\n    \"overlaps\": [],\n    \"unknown\": [\n        \"M3\"\n    ]\n}\n"},{"path":"tests\/case-2\/explanation.txt","content":"Only the provisional paper requires a timing check.\n"},{"path":"tests\/case-3\/request.txt","content":"Check writing overlaps and room changes.\nReturn only the JSON specified in SKILL.md for this test.\n\nCandidate A, same day. A1 starts 09:00, standard duration 90 minutes, approved extra writing time 25%. A2 starts 11:00, duration 40 minutes. The centre requires 10 minutes between these rooms; calculate without rounding.\n"},{"path":"tests\/case-3\/expected.json","content":"{\n    \"overlaps\": [],\n    \"unknown\": [],\n    \"transfer_shortfalls\": [\n        [\n            \"A1\",\n            \"A2\",\n            2.5\n        ]\n    ]\n}\n"},{"path":"tests\/case-3\/explanation.txt","content":"A1 ends at 10:52:30. The rooms are 10 minutes apart but only 7 minutes 30 seconds are available. Ask the exams office to confirm arrangements.\n"}],"is_active":true,"is_approved":false}]}]}