{"skills":[{"name":"Explain a change in energy charges","description":"Separate the effect of energy use, unit prices and daily charges from balances carried forward on two bills.","content":"# Explain a change in energy charges\n\nSeparate the effect of energy use, unit prices and daily charges from balances carried forward on two bills.\n\n## When to use this skill\n\n- Someone's electricity or gas bill has gone up and they want to know whether it is usage, prices or a longer billing period.\n- Two bills ask for similar amounts but cover different numbers of days, and the person wants to know if they used more.\n- A bill has an estimated reading, a balance brought forward or a debt payment and the person wants the energy charges separated.\n\n## When not to use it\n\n- Raising a complaint or a back-billing dispute. Use the supplier's complaints process.\n- Choosing a new tariff or forecasting future bills. Use the supplier's current tariff details.\n- Testing whether a meter is accurate. Ask the supplier to check the meter.\n\n## What you need\n\n- Two itemised bills for the same fuel, meter and household, with charged days, usage, tariffs and actual or estimated reading markers.\n- VAT treatment of the printed prices, discounts, credits, adjustments and any tariff changes inside a period.\n\n## Ask before you start\n\nIf any of these are missing or unclear, ask before doing the work.\n\n- Do you have both itemised bills for the same fuel and meter, showing dates, days charged, kWh, unit rates and standing charges?\n- Are the readings actual or estimated? An estimate makes the usage comparison provisional.\n- Do the printed rates include VAT? In Great Britain a temporary 0% rate applies to domestic electricity from 1 October 2026, while gas stays at the reduced rate, so check each bill's VAT line.\n- Is it a two-rate or time-of-use tariff, such as Economy 7, with separate day and night rates?\n\n## Method\n\n1. Separate each period's energy charges from everything else on the bill: opening balance, payments, refunds, debt instalments, discounts and one-off adjustments. Only the energy charges are explained by the four effects.\n2. Match like with like: same fuel, meter and register. For gas, use the billed kWh, because the supplier converts the meter's volume using the calorific value, the 1.02264 correction factor and division by 3.6. For two-rate meters, treat each band separately.\n3. Put both bills on the same tax basis: rates including VAT, or the VAT shown on each bill added. If a bill straddles a tariff or VAT change, split it at the change date as the bill does.\n4. Recalculate each period as kWh times unit rate plus days times standing charge and check it against the bill. Explain any difference before going further.\n5. Split the change in a fixed order. Usage effect: (new kWh minus old kWh) times old unit rate. Unit-rate effect: new kWh times (new rate minus old rate). Days effect: (new days minus old days) times old standing charge. Standing-rate effect: new days times (new standing charge minus old). The four must add up to the change in energy charges.\n6. If either reading is estimated, say the usage comparison is provisional and suggest an actual reading. When the periods differ in length, also give kWh per billed day for each bill.\n7. Show balances, payments and debt instalments separately, explaining how they change the amount due without changing the energy used.\n\n## Checks before you deliver\n\n- A direct debit or an outstanding balance is a cash movement and does not measure the period\u2019s energy consumption.\n- A national average price cap cannot replace the rate printed on this household\u2019s bill.\n- Treating gas meter units, cubic metres or hundreds of cubic feet, as kWh.\n- Comparing a bill whose rates include VAT with one whose rates exclude it.\n- Reading a lower bill for a shorter period as lower use. Compare kWh per day as well.\n\n## How to present the result\n\nLead with the change in energy charges and its main cause in one sentence. Then give the four effects in a short table that adds up to the total, followed by kWh per day for each bill when the periods differ. List balances, payments and adjustments separately, and say clearly if a reading is estimated and which reading would confirm it.\n\n## Worked example\n\n**Request:** Break down just the change in this meter\u2019s charges.\n\n**Supplied material:**\n\n```text\nOld: actual, 30 days, 200 kWh at 20p\/kWh, 40p\/day. Balance brought forward \u00a310.\nNew: estimated, 31 days, 220 kWh at 25p\/kWh, 50p\/day. Payment \u00a340. All rates include VAT.\n```\n\n**Answer:** The meter charges rose by \u00a318.50. Extra usage accounts for \u00a34, the higher unit price \u00a311, the extra billed day 40p and the higher standing-charge rate \u00a33.10. The new reading is estimated. The \u00a310 previous balance and \u00a340 payment are separate.\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 the supplied comparable line items return usage_gbp, unit_rate_gbp, days_gbp, standing_rate_gbp, charge_change_gbp and estimated_reading (boolean). Use signed amounts rounded to pennies. Exclude unrelated balances and transfers. If an effect cannot be derived, use null for that effect and for any dependent total. When daily usage is requested, add kwh_per_day with old and new values, rounded to two decimals or null for an unknown or zero day count.\n\n## Sources\n\n- [Ofgem: energy unit rates and standing charges](https:\/\/www.ofgem.gov.uk\/your-energy-supply\/your-energy-bill\/energy-price-cap-unit-rates-and-standing-charges): Ofgem explains that bills combine a unit rate per kWh with a daily standing charge, that both vary by region and payment method, and that its cap figures are averages. Its October to December 2026 figures show no VAT on electricity and 5% on gas. The skill uses the rates printed on the person's own bills.\n- [GOV.UK: gas meter readings and bill calculation](https:\/\/www.gov.uk\/gas-meter-readings-and-bill-calculation): Sets out how a gas reading becomes billed kWh: imperial readings times 2.83 to give cubic metres, then times the calorific value, times 1.02264 and divided by 3.6. This is why the skill uses billed kWh for gas instead of meter units.\n- [HMRC VAT Notice 701\/19: fuel and power](https:\/\/www.gov.uk\/guidance\/vat-on-fuel-and-power-notice-70119): Explains that domestic fuel and power is charged at the reduced rate, with a temporary 0% rate for qualifying electricity in Great Britain from 1 October 2026 and 5% still applying in Northern Ireland. This is why the skill checks the VAT basis of each bill.\n\nTest cases and an answer checker for this skill: https:\/\/skills.raq.com\/skills\/explain-energy-bill-change\n","scope":"contextual","trigger_keywords":["Explain a change in energy charges","explain-energy-bill-change","explain energy bill change","Why has my energy bill gone up this quarter?","Why has my energy bill gone up this quarter","why my energy bill","why did my energy bill","compare these energy bills"],"is_private":true,"is_active":true,"scripts":[{"name":"explain-energy-bill-change-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":"explain-energy-bill-change-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: explain-energy-bill-change\ndescription: \"Explain why an electricity or gas bill changed by splitting the difference into usage, unit rate, standing-charge days and standing-charge rate, with balances and payments kept apart. Use when someone asks why their energy bill went up or down, or wants two energy bills compared.\"\nlicense: CC-BY-4.0\nmetadata:\n  author: Raq.com\n  version: \"2026-11-22\"\n  homepage: https:\/\/skills.raq.com\/skills\/explain-energy-bill-change\n---\n\n# Explain a change in energy charges\n\nSeparate the effect of energy use, unit prices and daily charges from balances carried forward on two bills.\n\n## When to use this skill\n\n- Someone's electricity or gas bill has gone up and they want to know whether it is usage, prices or a longer billing period.\n- Two bills ask for similar amounts but cover different numbers of days, and the person wants to know if they used more.\n- A bill has an estimated reading, a balance brought forward or a debt payment and the person wants the energy charges separated.\n\n## When not to use it\n\n- Raising a complaint or a back-billing dispute. Use the supplier's complaints process.\n- Choosing a new tariff or forecasting future bills. Use the supplier's current tariff details.\n- Testing whether a meter is accurate. Ask the supplier to check the meter.\n\n## What you need\n\n- Two itemised bills for the same fuel, meter and household, with charged days, usage, tariffs and actual or estimated reading markers.\n- VAT treatment of the printed prices, discounts, credits, adjustments and any tariff changes inside a period.\n\n## Ask before you start\n\nIf any of these are missing or unclear, ask before doing the work.\n\n- Do you have both itemised bills for the same fuel and meter, showing dates, days charged, kWh, unit rates and standing charges?\n- Are the readings actual or estimated? An estimate makes the usage comparison provisional.\n- Do the printed rates include VAT? In Great Britain a temporary 0% rate applies to domestic electricity from 1 October 2026, while gas stays at the reduced rate, so check each bill's VAT line.\n- Is it a two-rate or time-of-use tariff, such as Economy 7, with separate day and night rates?\n\n## Method\n\n1. Separate each period's energy charges from everything else on the bill: opening balance, payments, refunds, debt instalments, discounts and one-off adjustments. Only the energy charges are explained by the four effects.\n2. Match like with like: same fuel, meter and register. For gas, use the billed kWh, because the supplier converts the meter's volume using the calorific value, the 1.02264 correction factor and division by 3.6. For two-rate meters, treat each band separately.\n3. Put both bills on the same tax basis: rates including VAT, or the VAT shown on each bill added. If a bill straddles a tariff or VAT change, split it at the change date as the bill does.\n4. Recalculate each period as kWh times unit rate plus days times standing charge and check it against the bill. Explain any difference before going further.\n5. Split the change in a fixed order. Usage effect: (new kWh minus old kWh) times old unit rate. Unit-rate effect: new kWh times (new rate minus old rate). Days effect: (new days minus old days) times old standing charge. Standing-rate effect: new days times (new standing charge minus old). The four must add up to the change in energy charges.\n6. If either reading is estimated, say the usage comparison is provisional and suggest an actual reading. When the periods differ in length, also give kWh per billed day for each bill.\n7. Show balances, payments and debt instalments separately, explaining how they change the amount due without changing the energy used.\n\n## Checks before you deliver\n\n- A direct debit or an outstanding balance is a cash movement and does not measure the period\u2019s energy consumption.\n- A national average price cap cannot replace the rate printed on this household\u2019s bill.\n- Treating gas meter units, cubic metres or hundreds of cubic feet, as kWh.\n- Comparing a bill whose rates include VAT with one whose rates exclude it.\n- Reading a lower bill for a shorter period as lower use. Compare kWh per day as well.\n\n## How to present the result\n\nLead with the change in energy charges and its main cause in one sentence. Then give the four effects in a short table that adds up to the total, followed by kWh per day for each bill when the periods differ. List balances, payments and adjustments separately, and say clearly if a reading is estimated and which reading would confirm it.\n\n## Worked example\n\n**Request:** Break down just the change in this meter\u2019s charges.\n\n**Supplied material:**\n\n```text\nOld: actual, 30 days, 200 kWh at 20p\/kWh, 40p\/day. Balance brought forward \u00a310.\nNew: estimated, 31 days, 220 kWh at 25p\/kWh, 50p\/day. Payment \u00a340. All rates include VAT.\n```\n\n**Answer:** The meter charges rose by \u00a318.50. Extra usage accounts for \u00a34, the higher unit price \u00a311, the extra billed day 40p and the higher standing-charge rate \u00a33.10. The new reading is estimated. The \u00a310 previous balance and \u00a340 payment are separate.\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 the supplied comparable line items return usage_gbp, unit_rate_gbp, days_gbp, standing_rate_gbp, charge_change_gbp and estimated_reading (boolean). Use signed amounts rounded to pennies. Exclude unrelated balances and transfers. If an effect cannot be derived, use null for that effect and for any dependent total. When daily usage is requested, add kwh_per_day with old and new values, rounded to two decimals or null for an unknown or zero day count.\n\n## Sources\n\n- [Ofgem: energy unit rates and standing charges](https:\/\/www.ofgem.gov.uk\/your-energy-supply\/your-energy-bill\/energy-price-cap-unit-rates-and-standing-charges): Ofgem explains that bills combine a unit rate per kWh with a daily standing charge, that both vary by region and payment method, and that its cap figures are averages. Its October to December 2026 figures show no VAT on electricity and 5% on gas. The skill uses the rates printed on the person's own bills.\n- [GOV.UK: gas meter readings and bill calculation](https:\/\/www.gov.uk\/gas-meter-readings-and-bill-calculation): Sets out how a gas reading becomes billed kWh: imperial readings times 2.83 to give cubic metres, then times the calorific value, times 1.02264 and divided by 3.6. This is why the skill uses billed kWh for gas instead of meter units.\n- [HMRC VAT Notice 701\/19: fuel and power](https:\/\/www.gov.uk\/guidance\/vat-on-fuel-and-power-notice-70119): Explains that domestic fuel and power is charged at the reduced rate, with a temporary 0% rate for qualifying electricity in Great Britain from 1 October 2026 and 5% still applying in Northern Ireland. This is why the skill checks the VAT basis of each bill.\n\nTest cases and an answer checker for this skill: https:\/\/skills.raq.com\/skills\/explain-energy-bill-change\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\/explain-energy-bill-change\nReferenced third-party materials retain their own terms.\n"},{"path":"examples\/worked-example.md","content":"# Longer month and a new tariff\n\nBreak down just the change in this meter\u2019s charges.\n\n## Supplied material\n\nOld: actual, 30 days, 200 kWh at 20p\/kWh, 40p\/day. Balance brought forward \u00a310.\nNew: estimated, 31 days, 220 kWh at 25p\/kWh, 50p\/day. Payment \u00a340. All rates include VAT.\n\n## Worked answer\n\nThe meter charges rose by \u00a318.50. Extra usage accounts for \u00a34, the higher unit price \u00a311, the extra billed day 40p and the higher standing-charge rate \u00a33.10. The new reading is estimated. The \u00a310 previous balance and \u00a340 payment are separate.\n\n## Reasoning\n\nThe four effects reconcile. Neither the opening balance nor the payment changes the underlying charge.\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":"Break down just the change in this meter\u2019s charges.\nReturn only the JSON specified in SKILL.md for this test.\n\nOld: actual, 30 days, 200 kWh at 20p\/kWh, 40p\/day. Balance brought forward \u00a310.\nNew: estimated, 31 days, 220 kWh at 25p\/kWh, 50p\/day. Payment \u00a340. All rates include VAT.\n"},{"path":"tests\/case-1\/expected.json","content":"{\n    \"usage_gbp\": 4,\n    \"unit_rate_gbp\": 11,\n    \"days_gbp\": 0.4,\n    \"standing_rate_gbp\": 3.1,\n    \"charge_change_gbp\": 18.5,\n    \"estimated_reading\": true\n}\n"},{"path":"tests\/case-1\/explanation.txt","content":"The four effects reconcile. Neither the opening balance nor the payment changes the underlying charge.\n"},{"path":"tests\/case-2\/request.txt","content":"Did using less electricity offset the new charge?\nReturn only the JSON specified in SKILL.md for this test.\n\nBoth actual, 28 days, VAT included. Old: 100 kWh at 30p, daily 60p. New: 80 kWh at 35p, daily 60p.\n"},{"path":"tests\/case-2\/expected.json","content":"{\n    \"usage_gbp\": -6,\n    \"unit_rate_gbp\": 4,\n    \"days_gbp\": 0,\n    \"standing_rate_gbp\": 0,\n    \"charge_change_gbp\": -2,\n    \"estimated_reading\": false\n}\n"},{"path":"tests\/case-2\/explanation.txt","content":"At the old unit price the reduction saved \u00a36. The new price added \u00a34 to the smaller quantity.\n"},{"path":"tests\/case-3\/request.txt","content":"Did I use less overall or per day? Explain why each bill asks for \u00a3120.\nReturn only the JSON specified in SKILL.md for this test.\n\nBoth actual, VAT included. Old bill 30 days, 300 kWh at 30p, standing charge \u00a31\/day. New bill 20 days, 300 kWh at 30p, standing charge \u00a31\/day, and a separate \u00a310 debt instalment.\n"},{"path":"tests\/case-3\/expected.json","content":"{\n    \"usage_gbp\": 0,\n    \"unit_rate_gbp\": 0,\n    \"days_gbp\": -10,\n    \"standing_rate_gbp\": 0,\n    \"charge_change_gbp\": -10,\n    \"estimated_reading\": false,\n    \"kwh_per_day\": {\n        \"old\": 10,\n        \"new\": 15\n    }\n}\n"},{"path":"tests\/case-3\/explanation.txt","content":"Both periods used 300 kWh. Daily use rose by half. Ten fewer standing-charge days reduced supply charges by \u00a310, while the debt payment restored the same amount due.\n"}],"is_active":true,"is_approved":false}]}]}