{"skills":[{"name":"Check the time available for a self-transfer","description":"Work from bag-drop or gate deadlines to find the usable transfer window after baggage reclaim, immigration and terminal changes.","content":"# Check the time available for a self-transfer\n\nWork from bag-drop or gate deadlines to find the usable transfer window after baggage reclaim, immigration and terminal changes.\n\n## When to use this skill\n\n- Someone has booked two flights separately, or on a self-transfer itinerary, and wants to know if the gap is long enough.\n- The traveller must collect bags, change terminal and check in again, and wants the margin at bag drop and at the gate.\n- A late-night or early-morning connection depends on a bus, train or shuttle timetable.\n\n## When not to use it\n\n- Connections on one ticket, where the airline's minimum connection time and its duty to rebook apply.\n- Rights after a missed self-transfer. The UK Civil Aviation Authority says separate bookings carry no statutory right to care, compensation or onward travel for a missed connection; travel insurance and the second airline's terms decide what happens.\n- Visa or transit entry requirements. Check the official rules for the country of transfer.\n\n## What you need\n\n- Arrival instant and onward departure, local dates, airport or terminal, baggage and ticket arrangement.\n- Airline deadlines plus supplied timing estimates for each required transfer stage. Identify what each deadline applies to.\n\n## Ask before you start\n\nIf any of these are missing or unclear, ask before doing the work.\n\n- Are the flights on one booking or separate bookings, and do you have checked bags to collect and drop again?\n- What exactly are the onward airline's deadlines: bag drop or check-in close, and gate close? Both are earlier than departure.\n- Will you pass immigration, and how do you get between terminals at that hour?\n\n## Method\n\n1. Confirm whether the flights are on separate tickets. For a self-transfer, treat the journey as an arrival and a new departure: no airline minimum connection time applies, and bags are usually collected and checked in again.\n2. List each required stage in order: immigration, baggage reclaim, transfer to the departure terminal, bag drop or check-in, security and the walk to the gate. Use only timings the person or the airport supplies.\n3. Turn each deadline into a clock time: departure minus the airline's stated cut-off, or the absolute time given. Keep bag drop and gate deadlines separate, and keep any extra buffer the person wants apart from the airline's cut-off.\n4. For scheduled transport, use the first departure the traveller can catch after reaching the stop, and add the wait and the journey time. Check it runs at that hour and that the traveller can use that landside route.\n5. For each deadline, start from the arrival time and add only the stages before that deadline. Bag drop counts the stages up to bag drop; the gate also counts security and the gate walk. Margin is the deadline minus the time the traveller reaches it.\n6. If a stage before a deadline has no estimate, that margin is unknown, unless even the earliest possible arrival at that stage falls after the cut-off, which proves a miss. A negative known margin means the stated plan misses that deadline.\n7. Name the tightest deadline only when every margin is known, or when the only deadline is proved missed. Say plainly that a positive margin assumes the inbound flight is on time and queues match the estimates.\n\n## Checks before you deliver\n\n- Scheduled departure is later than boarding and bag-drop deadlines.\n- Adding post-security time into the bag-drop deadline counts stages in the wrong order.\n- Applying the airline's minimum connection time to a self-transfer, which assumes the traveller stays airside with bags checked through.\n- Assuming a terminal bus or shuttle runs all night. Check the first and last departures.\n- Forgetting that every margin assumes an on-time landing. A delay longer than the tightest margin loses the connection.\n\n## How to present the result\n\nLead with whether the stated plan makes every deadline and the tightest margin in minutes. Then give a timeline table: stage, minutes, clock time reached, and each deadline with its margin. Finish with the risk in plain words, such as how much inbound delay the plan can absorb, and the gaps to fill, like an unknown security wait or bus time.\n\n## Worked example\n\n**Request:** Can I meet both deadlines on my separate tickets?\n\n**Supplied material:**\n\n```text\nSame local date and zone. Arrival 10:00, departure 12:30. BagDrop closes 11:30. Gate closes 12:10.\nBefore BagDrop: immigration 35 min, bags 25, terminal walk 15. Between BagDrop and Gate: security 30, gate walk 15.\n```\n\n**Answer:** At the supplied timings you reach bag drop at 11:15, 15 minutes before it closes, and the gate at 12:00, 10 minutes before it closes. A delay of more than 10 minutes would lose the gate margin.\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 slack_minutes by deadline name, using a signed integer or null. Return tightest_deadline as the name with the lowest known margin, or null if a required margin is unknown. Return status 'misses-cutoff' if any known margin is negative, 'unknown' if timing remains missing, otherwise 'within-stated-times'. Use 'misses-cutoff' for a proven timing bound even when exact slack is null. Identify the binding deadline when it is the only deadline and demonstrably missed.\n\n## Sources\n\n- [Heathrow: connecting flights and self-connections](https:\/\/www.heathrow.com\/content\/heathrow\/main\/gb\/en\/connecting-flights.html): Heathrow explains that separately booked flights are treated as an arrival and a departure: passengers go through immigration, collect bags, check in, drop bags and pass security again, and airline minimum connection times do not apply. The skill models those stages.\n- [Heathrow: self-connecting through the arrivals channel](https:\/\/www.heathrow.com\/connecting-flights\/flight-details): Heathrow's steps for separate bookings: immigration, baggage collection, exit through arrivals, public transport if the departing terminal differs, then check-in and security. Other airports differ, so verify the actual airport's route and timetable.\n- [UK Civil Aviation Authority: delays](https:\/\/www.caa.co.uk\/air-passengers\/travel-problems-and-rights\/flight-delays-and-cancellations\/delays\/): The CAA says that with two or more separate flight bookings there is no statutory right to care, compensation or onward transport if a delay causes a missed connection, though each flight keeps its own entitlements. This is why the skill reports margins as a risk, not a promise.\n\nTest cases and an answer checker for this skill: https:\/\/skills.raq.com\/skills\/check-self-transfer-connection\n","scope":"contextual","trigger_keywords":["Check the time available for a self-transfer","check-self-transfer-connection","check self transfer connection","Is there enough time to make my connection between these two separate flights?","Is there enough time to make my connection between these two separate flights","self-transfer connection","connection on separate tickets","self transfer connection"],"is_private":true,"is_active":true,"scripts":[{"name":"check-self-transfer-connection-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":"check-self-transfer-connection-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: check-self-transfer-connection\ndescription: \"Work out the real time available on a self-transfer between separately booked flights, counting immigration, baggage reclaim, terminal transfer, bag drop and security against each airline deadline. Use when someone has a connection on separate tickets or a 'self-transfer' booking and asks if they will make it.\"\nlicense: CC-BY-4.0\nmetadata:\n  author: Raq.com\n  version: \"2026-11-22\"\n  homepage: https:\/\/skills.raq.com\/skills\/check-self-transfer-connection\n---\n\n# Check the time available for a self-transfer\n\nWork from bag-drop or gate deadlines to find the usable transfer window after baggage reclaim, immigration and terminal changes.\n\n## When to use this skill\n\n- Someone has booked two flights separately, or on a self-transfer itinerary, and wants to know if the gap is long enough.\n- The traveller must collect bags, change terminal and check in again, and wants the margin at bag drop and at the gate.\n- A late-night or early-morning connection depends on a bus, train or shuttle timetable.\n\n## When not to use it\n\n- Connections on one ticket, where the airline's minimum connection time and its duty to rebook apply.\n- Rights after a missed self-transfer. The UK Civil Aviation Authority says separate bookings carry no statutory right to care, compensation or onward travel for a missed connection; travel insurance and the second airline's terms decide what happens.\n- Visa or transit entry requirements. Check the official rules for the country of transfer.\n\n## What you need\n\n- Arrival instant and onward departure, local dates, airport or terminal, baggage and ticket arrangement.\n- Airline deadlines plus supplied timing estimates for each required transfer stage. Identify what each deadline applies to.\n\n## Ask before you start\n\nIf any of these are missing or unclear, ask before doing the work.\n\n- Are the flights on one booking or separate bookings, and do you have checked bags to collect and drop again?\n- What exactly are the onward airline's deadlines: bag drop or check-in close, and gate close? Both are earlier than departure.\n- Will you pass immigration, and how do you get between terminals at that hour?\n\n## Method\n\n1. Confirm whether the flights are on separate tickets. For a self-transfer, treat the journey as an arrival and a new departure: no airline minimum connection time applies, and bags are usually collected and checked in again.\n2. List each required stage in order: immigration, baggage reclaim, transfer to the departure terminal, bag drop or check-in, security and the walk to the gate. Use only timings the person or the airport supplies.\n3. Turn each deadline into a clock time: departure minus the airline's stated cut-off, or the absolute time given. Keep bag drop and gate deadlines separate, and keep any extra buffer the person wants apart from the airline's cut-off.\n4. For scheduled transport, use the first departure the traveller can catch after reaching the stop, and add the wait and the journey time. Check it runs at that hour and that the traveller can use that landside route.\n5. For each deadline, start from the arrival time and add only the stages before that deadline. Bag drop counts the stages up to bag drop; the gate also counts security and the gate walk. Margin is the deadline minus the time the traveller reaches it.\n6. If a stage before a deadline has no estimate, that margin is unknown, unless even the earliest possible arrival at that stage falls after the cut-off, which proves a miss. A negative known margin means the stated plan misses that deadline.\n7. Name the tightest deadline only when every margin is known, or when the only deadline is proved missed. Say plainly that a positive margin assumes the inbound flight is on time and queues match the estimates.\n\n## Checks before you deliver\n\n- Scheduled departure is later than boarding and bag-drop deadlines.\n- Adding post-security time into the bag-drop deadline counts stages in the wrong order.\n- Applying the airline's minimum connection time to a self-transfer, which assumes the traveller stays airside with bags checked through.\n- Assuming a terminal bus or shuttle runs all night. Check the first and last departures.\n- Forgetting that every margin assumes an on-time landing. A delay longer than the tightest margin loses the connection.\n\n## How to present the result\n\nLead with whether the stated plan makes every deadline and the tightest margin in minutes. Then give a timeline table: stage, minutes, clock time reached, and each deadline with its margin. Finish with the risk in plain words, such as how much inbound delay the plan can absorb, and the gaps to fill, like an unknown security wait or bus time.\n\n## Worked example\n\n**Request:** Can I meet both deadlines on my separate tickets?\n\n**Supplied material:**\n\n```text\nSame local date and zone. Arrival 10:00, departure 12:30. BagDrop closes 11:30. Gate closes 12:10.\nBefore BagDrop: immigration 35 min, bags 25, terminal walk 15. Between BagDrop and Gate: security 30, gate walk 15.\n```\n\n**Answer:** At the supplied timings you reach bag drop at 11:15, 15 minutes before it closes, and the gate at 12:00, 10 minutes before it closes. A delay of more than 10 minutes would lose the gate margin.\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 slack_minutes by deadline name, using a signed integer or null. Return tightest_deadline as the name with the lowest known margin, or null if a required margin is unknown. Return status 'misses-cutoff' if any known margin is negative, 'unknown' if timing remains missing, otherwise 'within-stated-times'. Use 'misses-cutoff' for a proven timing bound even when exact slack is null. Identify the binding deadline when it is the only deadline and demonstrably missed.\n\n## Sources\n\n- [Heathrow: connecting flights and self-connections](https:\/\/www.heathrow.com\/content\/heathrow\/main\/gb\/en\/connecting-flights.html): Heathrow explains that separately booked flights are treated as an arrival and a departure: passengers go through immigration, collect bags, check in, drop bags and pass security again, and airline minimum connection times do not apply. The skill models those stages.\n- [Heathrow: self-connecting through the arrivals channel](https:\/\/www.heathrow.com\/connecting-flights\/flight-details): Heathrow's steps for separate bookings: immigration, baggage collection, exit through arrivals, public transport if the departing terminal differs, then check-in and security. Other airports differ, so verify the actual airport's route and timetable.\n- [UK Civil Aviation Authority: delays](https:\/\/www.caa.co.uk\/air-passengers\/travel-problems-and-rights\/flight-delays-and-cancellations\/delays\/): The CAA says that with two or more separate flight bookings there is no statutory right to care, compensation or onward transport if a delay causes a missed connection, though each flight keeps its own entitlements. This is why the skill reports margins as a risk, not a promise.\n\nTest cases and an answer checker for this skill: https:\/\/skills.raq.com\/skills\/check-self-transfer-connection\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\/check-self-transfer-connection\nReferenced third-party materials retain their own terms.\n"},{"path":"examples\/worked-example.md","content":"# Two separate deadlines\n\nCan I meet both deadlines on my separate tickets?\n\n## Supplied material\n\nSame local date and zone. Arrival 10:00, departure 12:30. BagDrop closes 11:30. Gate closes 12:10.\nBefore BagDrop: immigration 35 min, bags 25, terminal walk 15. Between BagDrop and Gate: security 30, gate walk 15.\n\n## Worked answer\n\nAt the supplied timings you reach bag drop at 11:15, 15 minutes before it closes, and the gate at 12:00, 10 minutes before it closes. A delay of more than 10 minutes would lose the gate margin.\n\n## Reasoning\n\nAlthough bag drop has 15 minutes spare, reaching the gate leaves just ten.\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":"Can I meet both deadlines on my separate tickets?\nReturn only the JSON specified in SKILL.md for this test.\n\nSame local date and zone. Arrival 10:00, departure 12:30. BagDrop closes 11:30. Gate closes 12:10.\nBefore BagDrop: immigration 35 min, bags 25, terminal walk 15. Between BagDrop and Gate: security 30, gate walk 15.\n"},{"path":"tests\/case-1\/expected.json","content":"{\n    \"slack_minutes\": {\n        \"BagDrop\": 15,\n        \"Gate\": 10\n    },\n    \"tightest_deadline\": \"Gate\",\n    \"status\": \"within-stated-times\"\n}\n"},{"path":"tests\/case-1\/explanation.txt","content":"Although bag drop has 15 minutes spare, reaching the gate leaves just ten.\n"},{"path":"tests\/case-2\/request.txt","content":"Assess the separate-ticket connection using confirmed deadlines.\nReturn only the JSON specified in SKILL.md for this test.\n\nLanding 14:10. BagDrop closes 14:55. Gate closes 15:30. Immigration 25 minutes, bags 20, walk to BagDrop 10. Security wait after bag drop unknown; gate walk 10.\n"},{"path":"tests\/case-2\/expected.json","content":"{\n    \"slack_minutes\": {\n        \"BagDrop\": -10,\n        \"Gate\": null\n    },\n    \"tightest_deadline\": null,\n    \"status\": \"misses-cutoff\"\n}\n"},{"path":"tests\/case-2\/explanation.txt","content":"The known stages already miss bag drop. An unknown security wait does not undo the proven failure.\n"},{"path":"tests\/case-3\/request.txt","content":"Can this specified route make bag drop?\nReturn only the JSON specified in SKILL.md for this test.\n\nArrive 00:40, BagDrop closes 02:30, depart 03:30, same date and zone. Separate tickets. Checked bags and border times unknown. The only connection on the proposed plan is a bus that first leaves arrivals at 03:00; ride duration unconfirmed.\n"},{"path":"tests\/case-3\/expected.json","content":"{\n    \"slack_minutes\": {\n        \"BagDrop\": null\n    },\n    \"tightest_deadline\": \"BagDrop\",\n    \"status\": \"misses-cutoff\"\n}\n"},{"path":"tests\/case-3\/explanation.txt","content":"The bus cannot leave until at least 30 minutes after bag drop closes. The exact margin depends on ride and wait times.\n"}],"is_active":true,"is_approved":false}]}]}