Skip to content
Back to skills

Mot Fleet Statistics Nz

ASecurity

Query New Zealand Ministry of Transport annual fleet statistics workbooks for VKT, fleet composition, and light-fleet fuel or powertrain counts. Use when the task involves NZ vehicle kilometres travelled, annual fleet statistics, Ministry fleet workbook tables, EV-transition research, fuel counts, or source caveats for bot-protected transport data.

  • 31 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 10, 2026
researchpythongobashapi

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 mot-fleet-statistics-nz --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Mot Fleet Statistics Nz?

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

Security grade badge for Mot Fleet Statistics Nz
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/thecolab-ai-mot-fleet-statistics-nz/badge)](https://www.skillsdirectory.com/skills/thecolab-ai-mot-fleet-statistics-nz)

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: mot-fleet-statistics-nz
description: "Query New Zealand Ministry of Transport annual fleet statistics workbooks for VKT, fleet composition, and light-fleet fuel or powertrain counts. Use when the task involves NZ vehicle kilometres travelled, annual fleet statistics, Ministry fleet workbook tables, EV-transition research, fuel counts, or source caveats for bot-protected transport data."
license: MIT
compatibility: "Requires Python 3.10+ and network access for live data"
metadata:
  thecolab.category: "transport"
  thecolab.source_owner: "Ministry of Transport"
  thecolab.source_type: "official"
  thecolab.auth: "none"
  thecolab.access_mode: "public-download"
  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-download"
  thecolab.pack: "nz-public-data"
  thecolab.source_url: "https://www.transport.govt.nz/statistics-and-insights/fleet-statistics/sheet/annual-fleet-statistics"
  thecolab.allowed_domains: "www.mot-dev.link,www.transport.govt.nz"
  thecolab.last_verified: "2026-07-19"
  thecolab.health: "healthy"
  thecolab.maintainer: "@adam91holt"
---

# MoT Fleet Statistics NZ

## Goal

Discover and extract public Ministry of Transport annual vehicle fleet workbook tables with a read-only, keyless CLI.

## Use This When

- A user asks for New Zealand annual vehicle kilometres travelled (VKT)
- A workflow needs Ministry annual fleet workbook sheet names, table headings, or source caveats
- A transport or EV-transition analysis needs light-fleet fuel or powertrain counts
- Another tool already has a downloaded `NZVehicleFleet_2024.xlsx` workbook and needs JSON rows

## Do Not Use This For

- Current individual-vehicle register rows; use NZTA open vehicle fleet data instead
- Real-time traffic, crash, charging-station, or public-transport operations data
- Registration mutation, licence checks, owner lookup, or authenticated Motor Vehicle Register access
- Hybrid/PHEV VKT allocation unless the workbook publishes that split directly

## Preferred Workflow

1. Run `scripts/cli.py datasets --json` to inspect the official source pages, workbook-discovery status, release notes, and caveats.
2. Run `tables --json` to list workbook sheets and preview row/column headings when the workbook is reachable.
3. Use focused commands for common For Good transport questions:
   - `vkt --year 2024 --json`
   - `fuel-counts --year 2024 --json`
4. If the Ministry site blocks direct HTTP, download the public workbook in a browser and rerun with `--url file:///absolute/path/NZVehicleFleet_2024.xlsx`.
5. Keep `source_url`, `fetched_at`, `table`, `sheet`, and `notes` with any reported figures.

## CLI

Run with:

```bash
python3 skills/mot-fleet-statistics-nz/scripts/cli.py <command> [flags]
```

Commands:

- `datasets [--json]` - report source pages, release notes, workbook discovery status, and caveats
- `tables [--url URL] [--json]` - list workbook sheets with preview headings and year coverage
- `vkt --year YEAR [--url URL] [--json]` - return rows from annual VKT/travel tables for the requested year
- `fuel-counts --year YEAR [--url URL] [--json]` - return light-fleet fuel or powertrain count rows for the requested year
- `workbook --url URL [--sheet NAME] [--limit N] [--json]` - parse a public XLSX workbook URL or local `file://` workbook

## Resources

- CLI entrypoint: `scripts/cli.py`
- Smoke test: `scripts/smoke_test.py`
- Source notes and table caveats: `references/api-notes.md`

## Notes

- The CLI is read-only, keyless, and uses Python standard library modules only.
- XLSX workbooks are parsed with `zipfile` and `xml.etree.ElementTree`; no `openpyxl` dependency is required.
- The Ministry website can return Incapsula/bot-protection HTML to HTTP clients. Commands classify that as `blocked` and include the official source URL instead of treating the source as missing.
- The 2024 workbook publishes petrol, diesel, and pure-electric VKT tables; do not invent hybrid or PHEV VKT splits unless a future Ministry table publishes them.

Files in this skill

  • SKILL.md4 KB
  • references/api-notes.md2.3 KB
  • references/source-notes.md573 B
  • scripts/cli.py21.7 KB
  • scripts/smoke_test.py7.1 KB
  • scripts/test_contract.py376 B
  • tests/fixtures/contract.json183 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.