/nz-skills:nzta-crash-data-nzfrom nz-skills
Queries NZTA/Waka Kotahi Crash Analysis System public crash statistics via ArcGIS FeatureServer and data.govt.nz CKAN. Returns crash records, road tolls, and factor aggregations for New Zealand road safety analysis.
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.
Read-only CLI over the NZTA/Waka Kotahi Crash Analysis System (CAS) public open-data layer. It uses the no-login ArcGIS FeatureServer for bounded, paginated queries and data.govt.nz CKAN for source discovery.
Use it for questions about New Zealand road deaths, fatal crashes, serious or minor injury crashes, regional/TLA crash records, yearly road tolls, and public crash indicator fields such as weather, light, road surface, vehicle types, roadside objects, and roadworks.
Do not use it for live state-highway incidents, closures, or roadworks; use
nz-road-closures for current operational road status. The public CAS layer
does not expose exact crash dates or detailed driver contributing-factor codes
such as alcohol/drugs, speed as a cause, or fatigue.
Run commands from this skill directory with python3 scripts/cli.py ....
Every data command accepts --json.
| Command | Purpose | Key flags |
|---|---|---|
datasets | Check ArcGIS FeatureServer and CKAN mirror reachability | --json |
crashes | Return bounded crash records with pagination | --region, --from, --to, --severity, --limit, --bbox, --near, --radius, --format, --json |
road-toll | Sum fatalities and fatal crashes for a calendar year | --year, --json |
factors | Aggregate public CAS indicator fields | --region, --from, --to, --top, --json |
crashes accepts --severity fatal|serious|minor|non-injury. --region
matches either region or tlaName as a substring, so Auckland,
Wellington, and Selwyn are valid examples.
The public layer exposes crashYear and crashFinancialYear, not exact crash
dates. --from and --to are accepted as YYYY-MM-DD, but the CLI applies
them as calendar-year bounds and includes a date_precision note in outputs.
If no date window is supplied, crashes and factors default to a bounded
recent two-calendar-year window.
Spatial crashes queries use WGS84 --bbox minLon,minLat,maxLon,maxLat,
or --near lon,lat --radius metres (default 500 m; maximum 10 km). Both the
count and records are filtered server-side. --format geojson emits a WGS84
FeatureCollection; --json keeps the existing record envelope. Spatial and
GeoJSON queries require ArcGIS and report failures without CSV fallback.
JSON outputs include publisher, source URL, licence and UTC retrieval time;
spatial outputs also report the mirror edit time as latest_data.
# Confirm source endpoints and mirror resources
python3 scripts/cli.py datasets --json
# Fatal crash records in Auckland for 2025
python3 scripts/cli.py crashes --region Auckland --from 2025-01-01 --to 2025-12-31 --severity fatal --limit 10
# Dominion Road corridor, all 2025 crashes, as WGS84 points
python3 scripts/cli.py crashes --bbox 174.735,-36.905,174.745,-36.875 --from 2025-01-01 --to 2025-12-31 --limit 100 --format geojson
# Crashes within 500 m of a corridor point
python3 scripts/cli.py crashes --near 174.740,-36.890 --radius 500 --from 2025-01-01 --to 2025-12-31 --json
# Machine-readable current-year road toll
python3 scripts/cli.py road-toll --year 2026 --json
# Public indicator aggregation for Wellington over a bounded window
python3 scripts/cli.py factors --region Wellington --from 2024-01-01 --to 2025-12-31 --json
crashes uses
resultOffset/resultRecordCount and enforces a local --limit cap to avoid
unbounded full-history downloads.--source auto uses ArcGIS first and falls back to a capped CSV mirror scan
if ArcGIS is unavailable. CSV fallback is intentionally capped by --scan-cap
and may be partial for broad/current queries.scripts/.references/api-notes.mdscripts/cli.pyscripts/smoke_test.pyreferences/api-notes.md (opens in a new tab)references/source-notes.md (opens in a new tab)scripts/cli.py (opens in a new tab)scripts/smoke_test.py (opens in a new tab)scripts/spatial_contract.py (opens in a new tab)scripts/test_contract.py (opens in a new tab)tests/fixtures/contract.json (opens in a new tab)tests/fixtures/spatial.json (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