/nz-skills:elections-nzfrom nz-skills
Queries official New Zealand election results, electorate voting, turnout, and party political finance data from the Electoral Commission via a read-only Python CLI.
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.
Use the read-only Python CLI to retrieve and filter records exposed by the official first-party source.
Every command supports --json, bounded requests, stable exit codes, source URLs and retrieval timestamps.
# discover election results
python3 scripts/cli.py results --year VALUE --json
# discover electorate results
python3 scripts/cli.py electorate NAME --year VALUE --json
# discover party-vote results
python3 scripts/cli.py party-vote --year VALUE --json
# discover turnout series
python3 scripts/cli.py turnout --year VALUE --json
# discover candidate results
python3 scripts/cli.py candidate NAME --year VALUE --json
# discover party donation returns
python3 scripts/cli.py donations --party VALUE --json
# discover candidate expense returns
python3 scripts/cli.py expenses --candidate VALUE --json
# query Commission-published annual donation/loan aggregates (optional party filter)
python3 scripts/cli.py finance-aggregates [PARTY] --kind annual --year 2025 --json
# query Commission-published election-expense aggregates
python3 scripts/cli.py finance-aggregates [PARTY] --kind expenses --year 2023 --json
# retrieve exact source-wording rules (optional topic filter)
python3 scripts/cli.py finance-rules [TOPIC] --kind annual --year 2025 --json
Add --limit N (1–100) to bound any command. Human output is the default.
Result commands parse the Commission's published CSV tables from its results archive (archive.electionresults.govt.nz), falling back to the original results host only on HTTP 404. If every official location answers 404 the command fails with export_not_found (exit 6), never an empty or transient-outage result. Existing donations and expenses commands continue to return matching first-party return documents. finance-aggregates returns structured party-summary facts; finance-rules returns scoped official wording. A valid unmatched filter is an empty success, while source-layout or amount drift fails explicitly.
scripts/cli.py — canonical command entrypointscripts/test_contract.py — deterministic repository contract auditscripts/test_finance.py — aggregate-only, adversarial and CLI-state testsscripts/smoke_test.py — parser fixture and bounded live probetests/fixtures/overall-results.csv, turnout.csv, winning-candidates.csv, finance.html, finance-annual.html and finance-expenses.html — scrubbed export-specific fixturesreferences/source-notes.md — feasibility, provenance and source limitsreferences/source-notes.md (opens in a new tab)scripts/cli.py (opens in a new tab)scripts/election_results.py (opens in a new tab)scripts/political_finance.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/test_finance.py (opens in a new tab)tests/fixtures/contract.json (opens in a new tab)tests/fixtures/finance-annual.html (opens in a new tab)tests/fixtures/finance-expenses.html (opens in a new tab)tests/fixtures/finance.html (opens in a new tab)tests/fixtures/overall-results.csv (opens in a new tab)tests/fixtures/turnout.csv (opens in a new tab)tests/fixtures/winning-candidates.csv (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
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