Skip to content
Skills Library
Data & analytics · Research

data-govt-nz

/data-govt-nz

Search and inspect New Zealand Government open-data catalogue datasets, organisations, resources, and datastore records through the public CKAN API at catalogue.data.govt.nz. Use when the task involves finding NZ public datasets, agencies, downloadable resources, CSV/API links, metadata, or data.govt.nz catalogue records. Read-only and no API key required.

Repository
.skills ↗
Licence
MIT
Last repository change
12.10.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
7
Scripts
3
HTML comments
0
URLs in SKILL.md
1
Deprecation

No signals detected. Repository changed on 12.10.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What to check before installing
  • 3 scripts in this package. Review them before installing, as Claude may execute them.

Scripts: scripts/cli.py, scripts/smoke_test.py, scripts/test_contract.py

What it does and when to use it

Search and inspect New Zealand Government open-data catalogue datasets, organisations, resources, and datastore records through the public CKAN API at catalogue.data.govt.nz. Use when the task involves finding NZ public datasets, agencies, downloadable resources, CSV/API links, metadata, or data.govt.nz catalogue records. Read-only and no API key required.

Original author description

Search and inspect New Zealand Government open-data catalogue datasets, organisations, resources, and datastore records through the public CKAN API at catalogue.data.govt.nz. Use when the task involves finding NZ public datasets, agencies, downloadable resources, CSV/API links, metadata, or data.govt.nz catalogue records. Read-only and no API key required.

How it works

  1. Goal
  2. Use this when
  3. Do not use this for
  4. CLI
  5. Resources
Original SKILL.md headings · 42 lines, 183 words
SKILL.md preview
---
name: data-govt-nz
description: "Search and inspect New Zealand Government open-data catalogue datasets, organisations, resources, and datastore records through the public CKAN API at catalogue.data.govt.nz. Use when the task involves finding NZ public datasets, agencies, downloadable resources, CSV/API links, metadata, or data.govt.nz catalogue records. Read-only and no API key required."
license: MIT
compatibility: "Requires Python 3.10+ and network access for live data"
metadata:
  thecolab.category: "public-data"
  thecolab.source_owner: "New Zealand Government Chief Data Steward"
  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://catalogue.data.govt.nz/api/3/action/"
  thecolab.allowed_domains: "catalogue.data.govt.nz"
  thecolab.last_verified: "2026-07-19"
  thecolab.health: "healthy"
  thecolab.maintainer: "@adam91holt"
---

# data.govt.nz Catalogue

## Goal

Query New Zealand's public open-data catalogue through a deterministic no-login CLI backed by the CKAN API.

## Use this when

- A user asks what public NZ datasets exist for a topic
- A workflow needs dataset metadata, organisations, resource URLs, or formats
- A user has a data.govt.nz dataset ID/name and wants details
- A workflow needs a small preview from a CKAN datastore resource

## Do not use this for

- Authenticated agency portals or non-public datasets
- Bulk mirroring the entire catalogue
- Treating catalogue metadata as authoritative source data without checking the linked source resource

## CLI

```bash
python3 skills/data-govt-nz/scripts/cli.py search "water quality" --json
python3 skills/data-govt-nz/scripts/cli.py dataset waterpoint --json
python3 skills/data-govt-nz/scripts/cli.py orgs --limit 20
python3 skills/data-govt-nz/scripts/cli.py resource <resource-id> --limit 5 --json
```

Commands:

- `search QUERY [--limit N] [--json]` - catalogue dataset search
- `dataset ID_OR_NAME [--json]` - full dataset/package metadata
- `orgs [--limit N] [--json]` - list catalogue organisations
- `resource RESOURCE_ID [--limit N] [--json]` - datastore preview when available

## Resources

- CLI: `scripts/cli.py`
- Smoke test: `scripts/smoke_test.py`
- API notes: `references/api-notes.md`
Files in this package (7)
  • SKILL.md 2 KB
  • references/api-notes.md 1 KB
  • references/source-notes.md 1 KB
  • scripts/cli.py 5 KB
  • scripts/smoke_test.py 1 KB
  • scripts/test_contract.py 1 KB
  • tests/fixtures/contract.json 1 KB

Versions

The database has no other skills named data-govt-nz.

Database snapshot: 13.11.2026 · package version 82548773bbdf (SHA-256 digest of the entire package)

Downloads in the last 30 days: 1 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100nz-ogc-records
    Search NZ public OGC API Records and CKAN catalogues for datasets, distribution URLs, licences and update metadata. Use to discover Auckland Council, Auckland Transport, Waka Kotahi, Earth Sciences New Zealand (NIWA) and data.govt.nz datasets before querying their linked services.
  • 100au-energy-rating
    Look up Australian and New Zealand Energy Rating labelled appliance registrations from the Australian Government data.gov.au CKAN package. Use for package metadata, resource names, the stated licence, and a short datastore preview of air conditioners, whitegoods, televisions,…
  • 100portaljs-connect-ckan
    Wire a scaffolded PortalJS portal to a CKAN backend over its API. Generates a tiny server-side fetch client (no runtime dependency) and feeds the /search catalog and /@namespace/slug showcases from CKAN instead of datasets.json. Use when connecting an existing portal to a live…
  • 81telangana-open-data
    Dataset index for data.telangana.gov.in: 364 datasets and 7,325 resources from the Government of Telangana, with download URLs, CSV column names, formats, byte sizes, and license classes. Use when finding, citing, comparing, or planning analysis of Telangana open data across…
  • 100portaljs-migrate
    Migrate (harvest) datasets between open-data platforms. Reads CKAN, a DCAT-US /data.json catalog (DKAN, ArcGIS Hub, data.gov), a DCAT / DCAT-AP RDF feed (JSON-LD, Turtle, or RDF/XML), Socrata, OpenDataSoft, or an ArcGIS FeatureServer, and writes them to a static PortalJS catalog…
  • 100portaljs-connect-ckan
    Wire a scaffolded PortalJS portal to a CKAN backend over its API. Generates a tiny server-side fetch client (no runtime dependency) and feeds the /search catalog and /@namespace/slug showcases from CKAN instead of datasets.json. Use when connecting an existing portal to a live…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.