{"skills":[{"name":"Compare the full cost of hotel stays","description":"Bring nightly rates, per-person taxes and once-per-stay charges onto one trip total without treating refundable deposits as a charge.","content":"# Compare the full cost of hotel stays\n\nBring nightly rates, per-person taxes and once-per-stay charges onto one trip total without treating refundable deposits as a charge.\n\n## When to use this skill\n\n- Someone has two or more hotel or holiday-rental offers with different nightly rates, taxes and fees.\n- A booking shows a low nightly rate with a city tax, resort fee or cleaning fee payable at the property.\n- Offers are in different currencies and the person gives an exchange rate for the comparison.\n\n## When not to use it\n\n- Judging location, room quality or reviews.\n- Deciding whether a booking site broke pricing law. In the UK, CMA guidance says mandatory charges belong in the total price; the skill only works out the totals.\n- Cancellation rights or refunds. Use the booking's terms, or the trip refunds skill once money is due back.\n\n## What you need\n\n- Night-by-night rates, dates, number and eligible ages of guests and currency for each option.\n- Taxes, resort fees, service charges, refundable deposits and whether each is already included.\n\n## Ask before you start\n\nIf any of these are missing or unclear, ask before doing the work.\n\n- How many nights, rooms and guests, and the ages of any children? Taxes charged per person, per night or with age exemptions depend on it.\n- Which charges are compulsory and which optional, and are any already included in the price shown?\n- Is anything payable locally, in another currency, or held as a refundable deposit?\n- If the offers are in different currencies, what exchange rate should the comparison use?\n\n## Method\n\n1. Write one line per night with its rate, multiplied by the number of rooms. Use each night's own rate where rates vary.\n2. Add each compulsory charge on its stated basis: per night, per person per night, per room or once per stay. Apply age exemptions, caps or minimum ages only when the terms state them. Include charges payable at the property and separate booking fees once.\n3. Check whether the quoted price already includes taxes and fees, so nothing is counted twice. Leave optional extras out unless the guest needs them.\n4. Record a refundable deposit or card hold separately, in its currency. It affects the money needed on arrival, not the cost of the stay.\n5. If any compulsory charge has no amount or an unclear basis, mark the total incomplete and give the known subtotal with the missing item named.\n6. Keep each offer in its own currency. Convert only at a rate the person supplies, show the converted total as an estimate beside the original, and never convert an incomplete total. Card fees and the bank's actual rate can differ.\n7. Compare complete totals for the same guests and nights, and say which costs less and by how much.\n\n## Checks before you deliver\n\n- 'Pay at property' still contributes to the overall cost.\n- A refundable damage deposit affects cash needed and is not automatically money spent.\n- Applying a per-person tax to children the terms exempt, or exempting them when the terms say nothing.\n- Charging a once-per-stay cleaning fee for every night.\n- Adding euro and sterling amounts together, or converting at a rate nobody supplied.\n\n## How to present the result\n\nLead with the cheaper complete offer and the difference, or why a total is incomplete. Then give a breakdown per offer: room charges, taxes, fees, total in its own currency, any converted estimate, and the refundable deposit shown separately. Name each charge that still needs an amount, ready to ask the hotel.\n\n## Worked example\n\n**Request:** Compare these two hotels for two adults, one room and three nights.\n\n**Supplied material:**\n\n```text\nBay EUR 90\/night, mandatory EUR 3 per adult\/night, one-off cleaning EUR 15, refundable deposit EUR 50.\nPier EUR 100\/night including all mandatory charges. No deposit.\n```\n\n**Answer:** Pier is \u20ac300 for the three nights. Bay is \u20ac303 (\u20ac270 room, \u20ac18 city tax, \u20ac15 cleaning) and asks for a separate \u20ac50 refundable deposit. Pier costs \u20ac3 less and requires no deposit.\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\nUnder each offer name return currency, known_total, complete (boolean), and refundable_deposit. Use the offer\u2019s currency and round money to two decimals. Set refundable_deposit to null if the amount is unspecified. The known_total excludes deposits and unpriced charges. If a comparison currency and rate are supplied, also include comparison_currency and comparison_total on each offer. Use null for a total that cannot be converted or is incomplete.\n\n## Sources\n\n- [Competition and Markets Authority: accommodation booking principles](https:\/\/assets.publishing.service.gov.uk\/government\/uploads\/system\/uploads\/attachment_data\/file\/781624\/webteam_online_booking_services_principles.pdf): The CMA's principles for hotel booking sites say the price shown must be the total cost including compulsory charges that are reasonably calculable from the search, such as city tax and resort fees, and that foreign-currency elements should be converted with the rate explained. The skill builds the same total for the traveller.\n- [Competition and Markets Authority: providing clear and accurate information about prices](https:\/\/www.gov.uk\/government\/publications\/price-transparency-cma209\/providing-clear-and-accurate-information-about-prices-summary): The CMA's summary of its price transparency guidance, updated January 2026, says the total price should normally include mandatory charges, that hiding fees until later is illegal drip pricing, and that 'pay now' and 'pay locally' amounts can be shown alongside the overall total. This is why pay-at-property charges count towards the stay.\n\nTest cases and an answer checker for this skill: https:\/\/skills.raq.com\/skills\/compare-hotel-stay-totals\n","scope":"contextual","trigger_keywords":["Compare the full cost of hotel stays","compare-hotel-stay-totals","compare hotel stay totals","Which hotel is cheaper for three nights once taxes and fees are added?","Which hotel is cheaper for three nights once taxes and fees are added","compare hotel quotes","compare these hotel rates","total hotel stay cost"],"is_private":true,"is_active":true,"scripts":[{"name":"compare-hotel-stay-totals-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":"compare-hotel-stay-totals-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: compare-hotel-stay-totals\ndescription: \"Work out the full cost of each hotel or holiday-rental offer for the actual guests and nights, including city taxes, resort and cleaning fees and pay-at-property charges, with refundable deposits kept separate. Use when someone compares hotel quotes, booking sites or rentals and wants the real total.\"\nlicense: CC-BY-4.0\nmetadata:\n  author: Raq.com\n  version: \"2026-11-22\"\n  homepage: https:\/\/skills.raq.com\/skills\/compare-hotel-stay-totals\n---\n\n# Compare the full cost of hotel stays\n\nBring nightly rates, per-person taxes and once-per-stay charges onto one trip total without treating refundable deposits as a charge.\n\n## When to use this skill\n\n- Someone has two or more hotel or holiday-rental offers with different nightly rates, taxes and fees.\n- A booking shows a low nightly rate with a city tax, resort fee or cleaning fee payable at the property.\n- Offers are in different currencies and the person gives an exchange rate for the comparison.\n\n## When not to use it\n\n- Judging location, room quality or reviews.\n- Deciding whether a booking site broke pricing law. In the UK, CMA guidance says mandatory charges belong in the total price; the skill only works out the totals.\n- Cancellation rights or refunds. Use the booking's terms, or the trip refunds skill once money is due back.\n\n## What you need\n\n- Night-by-night rates, dates, number and eligible ages of guests and currency for each option.\n- Taxes, resort fees, service charges, refundable deposits and whether each is already included.\n\n## Ask before you start\n\nIf any of these are missing or unclear, ask before doing the work.\n\n- How many nights, rooms and guests, and the ages of any children? Taxes charged per person, per night or with age exemptions depend on it.\n- Which charges are compulsory and which optional, and are any already included in the price shown?\n- Is anything payable locally, in another currency, or held as a refundable deposit?\n- If the offers are in different currencies, what exchange rate should the comparison use?\n\n## Method\n\n1. Write one line per night with its rate, multiplied by the number of rooms. Use each night's own rate where rates vary.\n2. Add each compulsory charge on its stated basis: per night, per person per night, per room or once per stay. Apply age exemptions, caps or minimum ages only when the terms state them. Include charges payable at the property and separate booking fees once.\n3. Check whether the quoted price already includes taxes and fees, so nothing is counted twice. Leave optional extras out unless the guest needs them.\n4. Record a refundable deposit or card hold separately, in its currency. It affects the money needed on arrival, not the cost of the stay.\n5. If any compulsory charge has no amount or an unclear basis, mark the total incomplete and give the known subtotal with the missing item named.\n6. Keep each offer in its own currency. Convert only at a rate the person supplies, show the converted total as an estimate beside the original, and never convert an incomplete total. Card fees and the bank's actual rate can differ.\n7. Compare complete totals for the same guests and nights, and say which costs less and by how much.\n\n## Checks before you deliver\n\n- 'Pay at property' still contributes to the overall cost.\n- A refundable damage deposit affects cash needed and is not automatically money spent.\n- Applying a per-person tax to children the terms exempt, or exempting them when the terms say nothing.\n- Charging a once-per-stay cleaning fee for every night.\n- Adding euro and sterling amounts together, or converting at a rate nobody supplied.\n\n## How to present the result\n\nLead with the cheaper complete offer and the difference, or why a total is incomplete. Then give a breakdown per offer: room charges, taxes, fees, total in its own currency, any converted estimate, and the refundable deposit shown separately. Name each charge that still needs an amount, ready to ask the hotel.\n\n## Worked example\n\n**Request:** Compare these two hotels for two adults, one room and three nights.\n\n**Supplied material:**\n\n```text\nBay EUR 90\/night, mandatory EUR 3 per adult\/night, one-off cleaning EUR 15, refundable deposit EUR 50.\nPier EUR 100\/night including all mandatory charges. No deposit.\n```\n\n**Answer:** Pier is \u20ac300 for the three nights. Bay is \u20ac303 (\u20ac270 room, \u20ac18 city tax, \u20ac15 cleaning) and asks for a separate \u20ac50 refundable deposit. Pier costs \u20ac3 less and requires no deposit.\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\nUnder each offer name return currency, known_total, complete (boolean), and refundable_deposit. Use the offer\u2019s currency and round money to two decimals. Set refundable_deposit to null if the amount is unspecified. The known_total excludes deposits and unpriced charges. If a comparison currency and rate are supplied, also include comparison_currency and comparison_total on each offer. Use null for a total that cannot be converted or is incomplete.\n\n## Sources\n\n- [Competition and Markets Authority: accommodation booking principles](https:\/\/assets.publishing.service.gov.uk\/government\/uploads\/system\/uploads\/attachment_data\/file\/781624\/webteam_online_booking_services_principles.pdf): The CMA's principles for hotel booking sites say the price shown must be the total cost including compulsory charges that are reasonably calculable from the search, such as city tax and resort fees, and that foreign-currency elements should be converted with the rate explained. The skill builds the same total for the traveller.\n- [Competition and Markets Authority: providing clear and accurate information about prices](https:\/\/www.gov.uk\/government\/publications\/price-transparency-cma209\/providing-clear-and-accurate-information-about-prices-summary): The CMA's summary of its price transparency guidance, updated January 2026, says the total price should normally include mandatory charges, that hiding fees until later is illegal drip pricing, and that 'pay now' and 'pay locally' amounts can be shown alongside the overall total. This is why pay-at-property charges count towards the stay.\n\nTest cases and an answer checker for this skill: https:\/\/skills.raq.com\/skills\/compare-hotel-stay-totals\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\/compare-hotel-stay-totals\nReferenced third-party materials retain their own terms.\n"},{"path":"examples\/worked-example.md","content":"# Different charging bases\n\nCompare these two hotels for two adults, one room and three nights.\n\n## Supplied material\n\nBay EUR 90\/night, mandatory EUR 3 per adult\/night, one-off cleaning EUR 15, refundable deposit EUR 50.\nPier EUR 100\/night including all mandatory charges. No deposit.\n\n## Worked answer\n\nPier is \u20ac300 for the three nights. Bay is \u20ac303 (\u20ac270 room, \u20ac18 city tax, \u20ac15 cleaning) and asks for a separate \u20ac50 refundable deposit. Pier costs \u20ac3 less and requires no deposit.\n\n## Reasoning\n\nBay's lower nightly rate becomes \u20ac3 more across the completed stay.\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":"Compare these two hotels for two adults, one room and three nights.\nReturn only the JSON specified in SKILL.md for this test.\n\nBay EUR 90\/night, mandatory EUR 3 per adult\/night, one-off cleaning EUR 15, refundable deposit EUR 50.\nPier EUR 100\/night including all mandatory charges. No deposit.\n"},{"path":"tests\/case-1\/expected.json","content":"{\n    \"Bay\": {\n        \"currency\": \"EUR\",\n        \"known_total\": 303,\n        \"complete\": true,\n        \"refundable_deposit\": 50\n    },\n    \"Pier\": {\n        \"currency\": \"EUR\",\n        \"known_total\": 300,\n        \"complete\": true,\n        \"refundable_deposit\": 0\n    }\n}\n"},{"path":"tests\/case-1\/explanation.txt","content":"Bay's lower nightly rate becomes \u20ac3 more across the completed stay.\n"},{"path":"tests\/case-2\/request.txt","content":"Price both offers for one adult, one child and two nights.\nReturn only the JSON specified in SKILL.md for this test.\n\nPark GBP 78 first night, GBP 89 second, mandatory city fee payable locally, amount not stated. No deposit.\nHill GBP 83\/night, GBP 1 per adult\/night tax, stated child exemption. Deposit GBP 40 refundable.\n"},{"path":"tests\/case-2\/expected.json","content":"{\n    \"Park\": {\n        \"currency\": \"GBP\",\n        \"known_total\": 167,\n        \"complete\": false,\n        \"refundable_deposit\": 0\n    },\n    \"Hill\": {\n        \"currency\": \"GBP\",\n        \"known_total\": 168,\n        \"complete\": true,\n        \"refundable_deposit\": 40\n    }\n}\n"},{"path":"tests\/case-2\/explanation.txt","content":"Unknown city fees keep Park provisional. The child exemption is explicit for Hill.\n"},{"path":"tests\/case-3\/request.txt","content":"Compare three nights for two adults in pounds, using \u20ac1 = \u00a30.85.\nReturn only the JSON specified in SKILL.md for this test.\n\nHarbour: one room, EUR 100 per night incl VAT, EUR 4 per adult per night city tax, EUR 80 refundable hold. Garden: GBP 280 including all compulsory charges, no deposit.\n"},{"path":"tests\/case-3\/expected.json","content":"{\n    \"Harbour\": {\n        \"currency\": \"EUR\",\n        \"known_total\": 324,\n        \"complete\": true,\n        \"refundable_deposit\": 80,\n        \"comparison_currency\": \"GBP\",\n        \"comparison_total\": 275.4\n    },\n    \"Garden\": {\n        \"currency\": \"GBP\",\n        \"known_total\": 280,\n        \"complete\": true,\n        \"refundable_deposit\": 0,\n        \"comparison_currency\": \"GBP\",\n        \"comparison_total\": 280\n    }\n}\n"},{"path":"tests\/case-3\/explanation.txt","content":"Harbour is \u00a34.60 cheaper on the supplied rate. Its \u20ac80 refundable hold affects available funds, not the cost of the stay.\n"}],"is_active":true,"is_approved":false}]}]}