{"skills":[{"name":"Compare whole-life supplier costs","description":"Compare two offers over the same use period, including minimums, service, consumables and end-of-term charges.","content":"# Compare whole-life supplier costs\n\nCompare two offers over the same use period, including minimums, service, consumables and end-of-term charges.\n\n## When to use this skill\n\n- Someone is choosing between buying and leasing, or between suppliers whose prices are split across setup, monthly, usage and exit charges.\n- A quote has an annual minimum spend, a free device tied to consumables, or a deposit.\n- A tender or business case asks for whole-life or life-cycle cost rather than purchase price.\n\n## When not to use it\n\n- A full public-sector economic appraisal with risk, optimism bias and social value. That follows the HM Treasury Green Book and is normally done by the organisation's analysts.\n- Choosing how many packs to buy for one order. Use the supplier pack prices skill.\n- Tax treatment, such as whether lease payments or capital allowances apply. Ask the organisation's accountant.\n\n## What you need\n\n- Comparable offers in a common currency and tax basis.\n- Operating years, usage by year, agreed cost assumptions and disposal or residual values.\n\n## Ask before you start\n\nIf any of these are missing or unclear, ask before doing the work.\n\n- Over what period will you use it, and how much will you use in each year? Usage that varies by year changes how annual minimums apply.\n- Are all prices in the same currency and on the same tax basis, net or gross of VAT?\n- Is there anything you must pay that a quote leaves out, such as installation, consumables, servicing, collection or disposal?\n- Should future costs be discounted, and at what rate? Discounting is applied only on an agreed basis.\n\n## Method\n\n1. Fix the comparison basis: the same output or service level, the same period of use, one currency and one tax basis. Do not compare offers that differ on these unless the person supplies the conversion or adjustment.\n2. List every cost line for each offer: setup or installation, purchase price, recurring charges, usage, service, consumables, deposits, exit, return or collection fees, and any residual or resale value. Mark a compulsory charge with no price as unknown, even if the equipment itself is free.\n3. Work year by year. Calculate the usage charge from that year's usage. Where the quote describes an annual spend floor, charge the greater of the minimum and the usage charge. Add fixed service separately unless the terms say it counts towards the floor. Never average usage across years to dodge a floor.\n4. Add setup, recurring and required exit costs. Subtract a recoverable resale value once, and only one the person can rely on. Track a refundable deposit as cash paid and returned on its stated conditions, counting only a documented non-refundable part as cost.\n5. Discount only on an agreed basis. For a UK central government appraisal the HM Treasury Green Book applies a real discount rate to figures in real prices; it has been 3.00% a year for years 1 to 30 since October 2026, so check the current rate before using it.\n6. Total each offer. Rank only when every offer is complete. If any compulsory charge is unpriced, show the known subtotal, name the missing charge and do not rank.\n7. Show refundable deposits separately as cash tied up, with when they are due back.\n\n## Checks before you deliver\n\n- An annual minimum is sometimes a spend floor and sometimes an additional fee. Read the actual words.\n- A missing compulsory tariff is unknown, even if a quote describes the appliance itself as free.\n- Applying an annual minimum to average usage across the contract hides the shortfall charge in low-use years.\n- Counting a refundable deposit as cost, or leaving it out of cash planning altogether.\n- Subtracting an optimistic resale value. Use only a value the person can rely on, and say what it assumes.\n\n## How to present the result\n\nLead with the cheapest complete offer and the gap to the next, or with the missing charge that prevents a ranking. Then give a table for each offer by cost line and year with a total row. Show refundable deposits and cash timing separately, and end with the questions to put to each supplier about unpriced or unclear charges.\n\n## Worked example\n\n**Request:** Compare both offers over two years.\n\n**Supplied material:**\n\n```text\nGBP net. Usage 100 units in year one and 900 in year two. A: setup 100; \u00a31\/unit, minimum variable spend \u00a3500 per year; service \u00a340\/year extra; exit \u00a320. B: no setup or exit; \u00a31.50\/unit; service \u00a325\/year; no minimum.\n```\n\n**Answer:** B costs \u00a31,550 over the two years, \u00a350 less than A. A costs \u00a3100 to set up, \u00a3500 then \u00a3900 for usage, \u00a380 for service and \u00a320 to exit. B costs \u00a31,500 for usage and \u00a350 for service.\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 totals as an object keyed by offer ID with currency numbers or null if incomplete, missing as sorted IDs of unpriced mandatory charges, and lowest as an array of all equally lowest offer IDs sorted lexicographically. Return an empty lowest array if any offer is incomplete. When a refundable deposit is quoted, also give refundable_deposits keyed by the affected offers at face value.\n\n## Sources\n\n- [Cabinet Office: Assessing competitive tenders (Procurement Act 2023 guidance)](https:\/\/www.gov.uk\/government\/publications\/procurement-act-2023-guidance-documents-procure-phase\/assessing-competitive-tenders-html): The guidance says buyers should take life-cycle cost into account in specifications and award criteria, and that life-cycle cost rather than initial price should be used in assessing tenders, except for basic purchases such as single-use goods.\n- [Cabinet Office: The Sourcing Playbook](https:\/\/www.gov.uk\/government\/publications\/the-sourcing-and-consultancy-playbooks\/the-sourcing-playbook-html): The playbook ties delivery decisions to the whole life cost of a service, built up in a Should Cost Model that includes acquiring assets as well as running costs. It supports listing every cost line over the period of use.\n- [HM Treasury: The Green Book (2026)](https:\/\/www.gov.uk\/government\/publications\/the-green-book-appraisal-and-evaluation-in-central-government\/the-green-book-2026): The Green Book expresses costs over many years in present value terms, applies its discount rate only to values in real terms, and sets that rate at 3.00% for years 1 to 30 after the October 2026 update. The skill discounts only on an agreed basis like this one.\n\nTest cases and an answer checker for this skill: https:\/\/skills.raq.com\/skills\/compare-whole-life-supplier-costs\n","scope":"contextual","trigger_keywords":["Compare whole-life supplier costs","compare-whole-life-supplier-costs","compare whole life supplier costs","Is it cheaper to buy or to lease this over the full term?","Is it cheaper to buy or to lease this over the full term","whole-life supplier costs","compare lifecycle costs","whole-life costs"],"is_private":true,"is_active":true,"scripts":[{"name":"compare-whole-life-supplier-costs-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-whole-life-supplier-costs-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-whole-life-supplier-costs\ndescription: \"Compare supplier offers over the same period of use, including setup, usage, annual minimums, service, consumables, deposits and exit charges, to find the cheapest complete offer. Use when comparing leases, equipment or service contracts on whole-life cost or total cost of ownership.\"\nlicense: CC-BY-4.0\nmetadata:\n  author: Raq.com\n  version: \"2026-11-22\"\n  homepage: https:\/\/skills.raq.com\/skills\/compare-whole-life-supplier-costs\n---\n\n# Compare whole-life supplier costs\n\nCompare two offers over the same use period, including minimums, service, consumables and end-of-term charges.\n\n## When to use this skill\n\n- Someone is choosing between buying and leasing, or between suppliers whose prices are split across setup, monthly, usage and exit charges.\n- A quote has an annual minimum spend, a free device tied to consumables, or a deposit.\n- A tender or business case asks for whole-life or life-cycle cost rather than purchase price.\n\n## When not to use it\n\n- A full public-sector economic appraisal with risk, optimism bias and social value. That follows the HM Treasury Green Book and is normally done by the organisation's analysts.\n- Choosing how many packs to buy for one order. Use the supplier pack prices skill.\n- Tax treatment, such as whether lease payments or capital allowances apply. Ask the organisation's accountant.\n\n## What you need\n\n- Comparable offers in a common currency and tax basis.\n- Operating years, usage by year, agreed cost assumptions and disposal or residual values.\n\n## Ask before you start\n\nIf any of these are missing or unclear, ask before doing the work.\n\n- Over what period will you use it, and how much will you use in each year? Usage that varies by year changes how annual minimums apply.\n- Are all prices in the same currency and on the same tax basis, net or gross of VAT?\n- Is there anything you must pay that a quote leaves out, such as installation, consumables, servicing, collection or disposal?\n- Should future costs be discounted, and at what rate? Discounting is applied only on an agreed basis.\n\n## Method\n\n1. Fix the comparison basis: the same output or service level, the same period of use, one currency and one tax basis. Do not compare offers that differ on these unless the person supplies the conversion or adjustment.\n2. List every cost line for each offer: setup or installation, purchase price, recurring charges, usage, service, consumables, deposits, exit, return or collection fees, and any residual or resale value. Mark a compulsory charge with no price as unknown, even if the equipment itself is free.\n3. Work year by year. Calculate the usage charge from that year's usage. Where the quote describes an annual spend floor, charge the greater of the minimum and the usage charge. Add fixed service separately unless the terms say it counts towards the floor. Never average usage across years to dodge a floor.\n4. Add setup, recurring and required exit costs. Subtract a recoverable resale value once, and only one the person can rely on. Track a refundable deposit as cash paid and returned on its stated conditions, counting only a documented non-refundable part as cost.\n5. Discount only on an agreed basis. For a UK central government appraisal the HM Treasury Green Book applies a real discount rate to figures in real prices; it has been 3.00% a year for years 1 to 30 since October 2026, so check the current rate before using it.\n6. Total each offer. Rank only when every offer is complete. If any compulsory charge is unpriced, show the known subtotal, name the missing charge and do not rank.\n7. Show refundable deposits separately as cash tied up, with when they are due back.\n\n## Checks before you deliver\n\n- An annual minimum is sometimes a spend floor and sometimes an additional fee. Read the actual words.\n- A missing compulsory tariff is unknown, even if a quote describes the appliance itself as free.\n- Applying an annual minimum to average usage across the contract hides the shortfall charge in low-use years.\n- Counting a refundable deposit as cost, or leaving it out of cash planning altogether.\n- Subtracting an optimistic resale value. Use only a value the person can rely on, and say what it assumes.\n\n## How to present the result\n\nLead with the cheapest complete offer and the gap to the next, or with the missing charge that prevents a ranking. Then give a table for each offer by cost line and year with a total row. Show refundable deposits and cash timing separately, and end with the questions to put to each supplier about unpriced or unclear charges.\n\n## Worked example\n\n**Request:** Compare both offers over two years.\n\n**Supplied material:**\n\n```text\nGBP net. Usage 100 units in year one and 900 in year two. A: setup 100; \u00a31\/unit, minimum variable spend \u00a3500 per year; service \u00a340\/year extra; exit \u00a320. B: no setup or exit; \u00a31.50\/unit; service \u00a325\/year; no minimum.\n```\n\n**Answer:** B costs \u00a31,550 over the two years, \u00a350 less than A. A costs \u00a3100 to set up, \u00a3500 then \u00a3900 for usage, \u00a380 for service and \u00a320 to exit. B costs \u00a31,500 for usage and \u00a350 for service.\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 totals as an object keyed by offer ID with currency numbers or null if incomplete, missing as sorted IDs of unpriced mandatory charges, and lowest as an array of all equally lowest offer IDs sorted lexicographically. Return an empty lowest array if any offer is incomplete. When a refundable deposit is quoted, also give refundable_deposits keyed by the affected offers at face value.\n\n## Sources\n\n- [Cabinet Office: Assessing competitive tenders (Procurement Act 2023 guidance)](https:\/\/www.gov.uk\/government\/publications\/procurement-act-2023-guidance-documents-procure-phase\/assessing-competitive-tenders-html): The guidance says buyers should take life-cycle cost into account in specifications and award criteria, and that life-cycle cost rather than initial price should be used in assessing tenders, except for basic purchases such as single-use goods.\n- [Cabinet Office: The Sourcing Playbook](https:\/\/www.gov.uk\/government\/publications\/the-sourcing-and-consultancy-playbooks\/the-sourcing-playbook-html): The playbook ties delivery decisions to the whole life cost of a service, built up in a Should Cost Model that includes acquiring assets as well as running costs. It supports listing every cost line over the period of use.\n- [HM Treasury: The Green Book (2026)](https:\/\/www.gov.uk\/government\/publications\/the-green-book-appraisal-and-evaluation-in-central-government\/the-green-book-2026): The Green Book expresses costs over many years in present value terms, applies its discount rate only to values in real terms, and sets that rate at 3.00% for years 1 to 30 after the October 2026 update. The skill discounts only on an agreed basis like this one.\n\nTest cases and an answer checker for this skill: https:\/\/skills.raq.com\/skills\/compare-whole-life-supplier-costs\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-whole-life-supplier-costs\nReferenced third-party materials retain their own terms.\n"},{"path":"examples\/worked-example.md","content":"# Seasonal demand and annual minimum\n\nCompare both offers over two years.\n\n## Supplied material\n\nGBP net. Usage 100 units in year one and 900 in year two. A: setup 100; \u00a31\/unit, minimum variable spend \u00a3500 per year; service \u00a340\/year extra; exit \u00a320. B: no setup or exit; \u00a31.50\/unit; service \u00a325\/year; no minimum.\n\n## Worked answer\n\nB costs \u00a31,550 over the two years, \u00a350 less than A. A costs \u00a3100 to set up, \u00a3500 then \u00a3900 for usage, \u00a380 for service and \u00a320 to exit. B costs \u00a31,500 for usage and \u00a350 for service.\n\n## Reasoning\n\nThe low first year triggers A's \u00a3500 floor. The higher second year cannot absorb it.\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 both offers over two years.\nReturn only the JSON specified in SKILL.md for this test.\n\nGBP net. Usage 100 units in year one and 900 in year two. A: setup 100; \u00a31\/unit, minimum variable spend \u00a3500 per year; service \u00a340\/year extra; exit \u00a320. B: no setup or exit; \u00a31.50\/unit; service \u00a325\/year; no minimum.\n"},{"path":"tests\/case-1\/expected.json","content":"{\n    \"totals\": {\n        \"A\": 1600,\n        \"B\": 1550\n    },\n    \"missing\": [],\n    \"lowest\": [\n        \"B\"\n    ]\n}\n"},{"path":"tests\/case-1\/explanation.txt","content":"The low first year triggers A's \u00a3500 floor. The higher second year cannot absorb it.\n"},{"path":"tests\/case-2\/request.txt","content":"Which quote has the lowest complete cost?\nReturn only the JSON specified in SKILL.md for this test.\n\nOne year, 100 units, EUR net. F: \u20ac3\/unit and \u20ac50 installation. G: \u20ac2\/unit and mandatory collection at end, fee COLLECT not quoted. No other charges.\n"},{"path":"tests\/case-2\/expected.json","content":"{\n    \"totals\": {\n        \"F\": 350,\n        \"G\": null\n    },\n    \"missing\": [\n        \"COLLECT\"\n    ],\n    \"lowest\": []\n}\n"},{"path":"tests\/case-2\/explanation.txt","content":"G's known subtotal cannot be ranked against F's complete price.\n"},{"path":"tests\/case-3\/request.txt","content":"Compare ownership with leasing and show any cash tied up.\nReturn only the JSON specified in SKILL.md for this test.\n\nTwo years, GBP, no tax or discounting. A costs \u00a31,200 outright plus \u00a3100 at each year end, no residual. B costs \u00a355 per month for 24 months, compulsory return fee \u00a3150, and an additional \u00a3300 deposit contractually returned in full at end. No other charges.\n"},{"path":"tests\/case-3\/expected.json","content":"{\n    \"totals\": {\n        \"A\": 1400,\n        \"B\": 1470\n    },\n    \"missing\": [],\n    \"lowest\": [\n        \"A\"\n    ],\n    \"refundable_deposits\": {\n        \"B\": 300\n    }\n}\n"},{"path":"tests\/case-3\/explanation.txt","content":"\u00a31,320 rent plus \u00a3150 return fee gives \u00a31,470. The fully refundable \u00a3300 creates a cash timing difference.\n"}],"is_active":true,"is_approved":false}]}]}