Public housing nz

From thecolab-ai/.skills · View interactive version

Public housing nz is an AI agent skill from the GitHub repository thecolab-ai/.skills. Query New Zealand public and social housing open data from the Ministry of Housing and Urban Development (HUD) on data.govt.nz — public housing stock (Kainga Ora and community housing providers), social housing IRRS and market-rent tenancies, accommodation supplement recipients and weekly spend, and

How to use this skill

Skill file

Public Housing NZ

Overview

Read-only stdlib CLI over the Ministry of Housing and Urban Development (HUD)

open-data releases published on data.govt.nz (CKAN at catalogue.data.govt.nz).

Every command supports --json for machine-readable output and a human-readable

default. No login, API key, browser automation, or cache state.

Covered data:

building consents, sales, census crowding, MSD figures, population, and the

1-year change in the Housing Register

When to Use

housing register / social housing wait-list trend

Do not use this for

publishes that as XLSX/HTML, not clean CSV (see Notes); this skill exposes the

Local Housing Statistics dashboard's change in register series instead

Commands

Run with:

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

Examples

python3 skills/public-housing-nz/scripts/cli.py datasets --json
python3 skills/public-housing-nz/scripts/cli.py public-homes --provider KO --json
python3 skills/public-housing-nz/scripts/cli.py tenancies --area "Invercargill City" --json
python3 skills/public-housing-nz/scripts/cli.py accommodation-supplement --area Ashburton --json
python3 skills/public-housing-nz/scripts/cli.py local-stats --series "Change in Housing Register" --json
python3 skills/public-housing-nz/scripts/cli.py local-stats --area "New Zealand" --theme Affordability --year 2024 --json
python3 skills/public-housing-nz/scripts/cli.py series --json
python3 skills/public-housing-nz/scripts/cli.py query --resource sochouse --filter TLA_Name="WHANGAREI DISTRICT" --json

Resources

Notes

on data.govt.nz; mention HUD as the source and include the release URL.

latest as-at date in the file when --date is omitted.

these rows as null and counts them under suppressed_rows.

Area_Name is mostly codes, plus a "Not geolocated" rollup), so use

--provider and --date; use tenancies for clean TLA-name social housing

counts.

published by HUD as XLSX + HTML, not clean CSV, so it is intentionally not

wired; use local-stats --series "Change in Housing Register" for the

register trend, or datasets to discover the latest register release.

as ISO datetimes (e.g. 2022-12-31T00:00:00).

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.