Stats nz

From thecolab-ai/.skills · View interactive version

Stats nz is an AI agent skill from the GitHub repository thecolab-ai/.skills. Query official Stats NZ data: CPI, GDP, population estimates/projections, migration, place-summary travel to work, and CSV catalogue. No API key or browser session required.

How to use this skill

Skill file

Stats NZ

Goal

Query official New Zealand statistics through a small deterministic CLI with human-readable and JSON output, without browser automation, login, API keys, or local cache state.

This skill ships support for:

Use this when

Do not use this for

Preferred workflow

  1. Run scripts/cli.py with the narrowest subcommand that answers the task
  2. Use cpi for the headline quarterly all-groups CPI index

2a. Use fpi for the headline monthly all-groups Food Price Index

  1. Use population for national estimates, population --projection YEAR for national projections, or population --region REGION for regional council population

3a. Use place-travel CLASS/slug for main means of travel to work at one place. population remains the estimated-resident-population command

  1. Use migration for latest long-term migrant arrivals, departures, and net migration
  2. Use gdp for quarterly headline GDP production and expenditure series
  3. Use series <id> when the user gives a Stats NZ Series_reference
  4. Use search <query> before adding a new Stats NZ CSV-backed command
  5. Use --json when another tool or agent needs machine-readable output
  6. Mention Stats NZ as the upstream source and include the release URL when reporting figures

CLI

Run with:

python3 skills/stats-nz/scripts/cli.py <command> [flags]

Commands

Examples:

python3 skills/stats-nz/scripts/cli.py cpi
python3 skills/stats-nz/scripts/cli.py cpi --from 2025-03 --json
python3 skills/stats-nz/scripts/cli.py fpi --json
python3 skills/stats-nz/scripts/cli.py population --json
python3 skills/stats-nz/scripts/cli.py population --region auckland --json
python3 skills/stats-nz/scripts/cli.py place-travel UR/auckland --json
python3 skills/stats-nz/scripts/cli.py population --projection 2050 --json
python3 skills/stats-nz/scripts/cli.py migration --json
python3 skills/stats-nz/scripts/cli.py gdp --json
python3 skills/stats-nz/scripts/cli.py series CPIQ.SE9A --limit 4 --json
python3 skills/stats-nz/scripts/cli.py search "gross domestic product" --limit 5 --json

Resources

Notes

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.