/nz-skills:genesis-energy-nzfrom nz-skills
Retrieves hourly electricity usage and costs from a Genesis Energy NZ account, with optional natural gas data. Supports daily summaries and period totals.
Ships in nz-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
See how much electricity you have used and the usage costs Genesis reports for your account. Get hourly readings, daily totals or a summary for a chosen period. Natural gas is available as an optional choice if you have it with Genesis.
| Data | What you get |
|---|---|
| Electricity use | kWh for each completed hour |
| Natural gas (optional) | Hourly gas use and usage costs, where available |
| Usage costs | The NZD cost Genesis reports for those hours |
| Summaries | Daily totals or a total for a chosen period of up to 31 days |
| Latest reading | When the newest supplied hour started |
| Completeness | How many requested hours were supplied or are still missing |
Made-up data from the synthetic test fixture; no real account information:
| Hour starting (NZ time) | Electricity use | Usage cost |
|---|---|---|
| 1 Jan 2024, 00:00 | 0.10 kWh | NZ$0.03 |
| 1 Jan 2024, 01:00 | 0.20 kWh | NZ$0.06 |
Summary: 0.30 kWh and NZ$0.09 across 2 of the day's 24 hours. The latest reading starts at 01:00 NZDT. 22 hours are missing, so this is a partial total.
The same example as one record in the JSON results array:
{
"start_date": "2024-01-01",
"end_date": "2024-01-01",
"timezone": "Pacific/Auckland",
"expected_intervals": 24,
"received_intervals": 2,
"missing_intervals": 22,
"coverage": "incomplete",
"latest_interval_start": "2024-01-01T01:00:00+13:00",
"observed_usage_kwh": "0.30",
"observed_usage_cost_nzd": "0.09"
}
Usage costs cover the readings Genesis supplies. They are not a tariff quote or a complete bill; tax, fixed charges and discount coverage still need confirmation.
Commands read electricity only by default. Add --fuel gas to read natural
gas instead; no electricity request is made for that invocation. Users without
gas can use the default commands without any gas checks or configuration.
python3 skills/genesis-energy-nz/scripts/cli.py summary --fuel gas --start 2024-01-01 --end 2024-01-01 --group range --json
Made-up gas example from the synthetic test fixture:
| Period | Gas use (interpreted kWh) | Usage cost | Coverage |
|---|---|---|---|
| 1 Jan 2024 | 5.0 kWh | NZ$0.45 | 2 of 24 hours; partial total |
If Genesis returns no readings, totals are null and coverage is no_readings.
A rejected gas account/date request returns an error (exit 7), never zero usage.
That can mean the account has no supported gas service or that dates are beyond
the latest available readings; try earlier dates or check the service in My Account.
If an earlier gas chunk was accepted and a later one is rejected, reading stops
there and the accepted hours are returned with exit 0. meta.provider_unavailable_from
gives the first rejected date; those hours stay missing, so coverage is incomplete
or no_readings, not zero. This treats the rejection as the end of available gas
readings, an upstream-client assumption not yet verified against a live account.
A first-chunk rejection, or any other failure, still returns no rows.
This does not affect separate electricity requests. No combined-fuel total is made.
Requires a Genesis account, Python 3.10+ and IANA timezone data. Uses only the Python standard library. This community skill connects to the Genesis My Account website endpoints.
GENESIS_EMAIL and GENESIS_PASSWORD out of band through
the environment. Do not ask them to paste credentials into chat or put them
in command arguments, source files, logs, fixtures, or commits.GENESIS_EMAIL and
GENESIS_PASSWORD; provision their values privately and never commit that file.
The CLI does not automatically load environment files or existing application credentials.After the user has privately populated the two environment variables:
python3 skills/genesis-energy-nz/scripts/cli.py usage --start 2024-01-01 --end 2024-01-02 --json
python3 skills/genesis-energy-nz/scripts/cli.py summary --start 2024-01-01 --end 2024-01-31 --group day --json
python3 skills/genesis-energy-nz/scripts/cli.py summary --start 2024-01-01 --end 2024-01-31 --group range --json
Substitute the requested dates. Dates are inclusive in Pacific/Auckland,
limited to 31 days per invocation, and cannot extend beyond today. Reads use
inclusive two-date chunks, one second apart. Query on demand; do not poll more
than hourly. Older date availability is controlled by Genesis and not guaranteed.
Both commands accept --fuel electricity|gas; omitting it selects electricity.
usage returns completed hourly intervals. summary returns one record per NZ
calendar day, or one for the whole range. Both accept --json; without it they
print a coverage header and readable records. JSON meta.fuel identifies the
selected fuel. The common repo runner also works.
usage_cost_nzd is the provider's costNZD for that interval. Genesis presents
Energy IQ costs as estimated variable charges that exclude fixed fees, so these
are not bill totals, tariff quotes, invoices or balances. GST and discount
treatment have not been established.kw is interpreted as interval kWh, following the upstream
client. This applies to both fuels; gas units have not been independently
established, so gas output adds meta.usage_unit: "kWh" with
meta.usage_unit_status: "assumed_unverified". Confirm against My Account
before relying on totals.observed_* sums include only supplied completed intervals. Missing intervals
never become zero. An empty period has null totals and no_readings.coverage, missing_intervals and latest_interval_start with any total.scripts/cli.py: canonical entrypoint; JSON uses the provenance helpers in
scripts/provenance.py with static error messages and stable exit codes.scripts/genesis.py: fixed-destination authentication, electricity reads and optional gas reads.scripts/usage.py: strict field selection, intervals and NZ coverage handling.scripts/test_contract.py and scripts/smoke_test.py: offline synthetic checks;
neither authenticates or reads personal data, even when credentials are set.tests/fixtures/: hand-authored synthetic data, never captured account responses.LICENSE (opens in a new tab)references/source-notes.md (opens in a new tab)scripts/cli.py (opens in a new tab)scripts/genesis.py (opens in a new tab)scripts/provenance.py (opens in a new tab)scripts/smoke_test.py (opens in a new tab)scripts/test_contract.py (opens in a new tab)scripts/usage.py (opens in a new tab)tests/fixtures/contract.json (opens in a new tab)tests/fixtures/gas-sample.json (opens in a new tab)tests/fixtures/source-sample.json (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub thecolab-ai/.skills --plugin nz-skills186 skills in this plugin
/airnz-flightsSearch public Air New Zealand fare snapshots and timetable fallback data through a lightweight no-login CLI. Use when the task involves Air NZ route/date fare snapshots, fare products, flight numbers, departure/arrival times, duration, stops, or machine-readable current flight data. Optional --browser mode uses CloakBrowser when installed and returns cloakbrowser_not_installed when unavailable. Read-only; no login, Airpoints, seat holds, booking, payment, manage-booking, or checkout actions./akahu-personalQuery personal transactional bank-account data — account lists, balances, settled/pending transactions, account-specific transaction history, and private JSON/CSV exports — from Akahu, a New Zealand open-banking provider. Use when the task involves personal bank data exports, NZ account balances, transaction analysis, cashflow/spending categorisation, or inspecting authenticated Personal App banking data. Requires user-provided AKAHU_APP_TOKEN and AKAHU_USER_TOKEN; never smoke-test against real personal data in CI./akl-housing-capacityQuery Auckland housing supply trends and 2022/23 plan-enabled and feasible housing capacity. Use for monthly housing updates, building consents, HBA, capacity for growth, PC78, local-board growth capacity, social housing delivery and housing demolition source discovery.Other plugins' skills for the same job