Skip to content
Back to skills

Nz Road Closures

ASecurity

Query NZTA / Waka Kotahi state-highway road closures, roadworks, incidents, traffic cameras, routes, and regions. Use for NZ state highway conditions. Read-only; no alerts, accounts, or reporting.

  • 31 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 10, 2026
toolspythongobashapi

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 7 files and shows the line behind each finding

Scanned September 10, 2026

npx -y skills add thecolab-ai/.skills --skill nz-road-closures --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Nz Road Closures?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Nz Road Closures
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/thecolab-ai-nz-road-closures/badge)](https://www.skillsdirectory.com/skills/thecolab-ai-nz-road-closures)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: nz-road-closures
description: "Query NZTA / Waka Kotahi state-highway road closures, roadworks, incidents, traffic cameras, routes, and regions. Use for NZ state highway conditions. Read-only; no alerts, accounts, or reporting."
license: MIT
compatibility: "Requires Python 3.10+ and network access for live data"
metadata:
  thecolab.category: "transport"
  thecolab.source_owner: "NZ Transport Agency Waka Kotahi"
  thecolab.source_type: "official"
  thecolab.auth: "none"
  thecolab.access_mode: "public-api"
  thecolab.data_class: "public"
  thecolab.writes: "false"
  thecolab.browser: "false"
  thecolab.risk: "low"
  thecolab.cache_ttl: "24h"
  thecolab.schema_version: "1"
  thecolab.skill_type: "public-api"
  thecolab.pack: "nz-public-data"
  thecolab.source_url: "https://www.journeys.nzta.govt.nz"
  thecolab.allowed_domains: "www.journeys.nzta.govt.nz,www.trafficnz.info"
  thecolab.last_verified: "2026-07-19"
  thecolab.health: "healthy"
  thecolab.maintainer: "@adam91holt"
---

# NZ Road Closures

## Goal

Query live NZTA / Waka Kotahi Journey Planner road-event and traffic-camera data through a small deterministic CLI with human-readable and JSON output, without browser automation, account login, or API keys.

## Use this when

- A user asks for current New Zealand state-highway road closures, roadworks, incidents, hazards, or area warnings
- A user wants NZTA traffic camera details or current camera image URLs
- A user asks for journey conditions across NZTA Journey Planner regions
- A user needs lightweight machine-readable NZTA road-event data
- A workflow needs national state-highway conditions outside Auckland public transport scope

## Do not use this for

- Auckland public transport stops, departures, vehicles, or service alerts; use `at-transport`
- Auckland Transport local-road events unless a separate AT road-events skill/source is added
- Local-road, district-road, or council-only closures not present in NZTA Journey Planner
- Route planning, turn-by-turn directions, tolls, driver licensing, or vehicle account actions
- Reporting incidents, subscribing to My Journeys alerts, or changing any NZTA data
- Historical road-condition claims beyond what the live source currently returns

## Preferred workflow

1. Run `scripts/cli.py` with the narrowest subcommand that answers the task
2. Use `closures` for the national state-highway overview and add `--region` when the user names a region
3. Use `--type closure`, `--type roadworks`, or `--type incident` to reduce noise
4. Use `incident <id>` when an exact NZTA Journey Planner event id is known
5. Use `cameras --region <region>` for traffic camera image URLs and camera status
6. Use `routes` or `regions` to discover Journey Planner route and region names
7. Use `--json` for agent chaining, comparisons, alerts, or structured reports
8. Mention that the upstream source is NZTA / Waka Kotahi Journey Planner and that local roads may require council sources

## CLI

Run with:

```bash
python3 skills/nz-road-closures/scripts/cli.py <command> [flags]
```

### Commands

- `closures [--region REGION] [--type closure|roadworks|incident] [--limit N] [--json]` - current NZTA road closures, works, incidents, hazards, and warnings
- `incident <id> [--json]` - detail for one current NZTA road event
- `cameras [--region REGION] [--limit N] [--json]` - NZTA traffic cameras, including image URL when available
- `routes [--region REGION] [--limit N] [--json]` - known NZTA highway journeys/routes
- `region <region> [--type closure|roadworks|incident] [--limit N] [--json]` - current road events filtered to one Journey Planner region
- `regions [--json]` - Journey Planner region names and ids

Examples:

```bash
python3 skills/nz-road-closures/scripts/cli.py closures --limit 10
python3 skills/nz-road-closures/scripts/cli.py closures --region Waikato --type roadworks --json
python3 skills/nz-road-closures/scripts/cli.py incident 541438 --json
python3 skills/nz-road-closures/scripts/cli.py cameras --region Canterbury --limit 5
python3 skills/nz-road-closures/scripts/cli.py routes --region Wellington --json
python3 skills/nz-road-closures/scripts/cli.py regions
```

## Resources

- CLI entrypoint: `scripts/cli.py`
- API and stability notes: `references/api-notes.md`

## Notes

- Upstream source: NZTA / Waka Kotahi Journey Planner and Traffic and Travel APIs
- No API key, username, password, cookie, or browser automation is required
- Default scope is NZTA state highways New Zealand-wide
- The Journey Planner help text says local roads should be checked with the relevant local or regional council when a journey includes local roads
- `at-transport` is public-transport focused and explicitly excludes traffic or road conditions, so this skill owns NZTA state-highway road events
- Treat results as live current snapshots; closures and works can be postponed, cancelled, or changed at short notice

Files in this skill

  • SKILL.md4.8 KB
  • references/api-notes.md4.7 KB
  • references/source-notes.md517 B
  • scripts/cli.py24.9 KB
  • scripts/smoke_test.py3.4 KB
  • scripts/test_contract.py376 B
  • tests/fixtures/contract.json176 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.