Stats nz census

From thecolab-ai/.skills · View interactive version

Stats nz census is an AI agent skill from the GitHub repository thecolab-ai/.skills. Query official public 2018 Stats NZ Census national-highlights CSV tables while preserving dimensions and suppression/status markers. No API key required.

How to use this skill

Skill file

Stats NZ Census

Query the official 2018 Census totals by topic – national highlights CSV archive. This is a narrow, standalone public aggregate-data connector; it does not use authenticated Stats NZ surfaces or Census microdata.

Use this when

Do not use this for

No 2023 values are implied: the public 2023 product finder is metadata, while detailed API access may require a subscription key.

CLI

# List available topic tables (the positional topic is optional)
python3 skills/stats-nz-census/scripts/cli.py --json

# Query the common positional topic path
python3 skills/stats-nz-census/scripts/cli.py age-single-years --limit 10 --json
python3 skills/stats-nz-census/scripts/cli.py ethnic-group-total-responses --category european --json
python3 skills/stats-nz-census/scripts/cli.py age-single-years --measure Census_usually_resident --json

Arguments:

An unmatched topic or filter is a successful empty result with a warning. Source/schema failures are never reported as empty data.

Data rules

Read references/source-notes.md for scope and status-marker details. Parser fixtures are in tests/fixtures/. Run scripts/test_contract.py and scripts/smoke_test.py after changes.

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.