nz-local-government-data
Discover and preview official New Zealand local government finance, performance, and statistics datasets from Stats NZ/data.govt.nz, DIA local council…
от thecolab-ai★ 41 звезда на GitHub
Установить nz-local-government-data в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
NZ Local Government Data
Goal
Find and preview official New Zealand local government datasets without login, mutation, API keys, browser automation, or invented structure for PDF-only sources.
The skill focuses on discovery-first access to:
- Stats NZ / data.govt.nz local-government and local-authority statistics catalogue resources
- DIA Local Councils downloadable data index resources
- DIA local government performance metrics / council profile data release
- OAG local-government insights as official context, not as invented structured rows
Use this when
- A user asks where official NZ council finance, performance, rates, population, or comparison data lives
- A user needs a council list with identifiers/types from DIA council profile data
- A user wants a small preview of DIA council performance metrics such as rates revenue or population
- A user wants to discover Stats NZ/data.govt.nz local authority statistics datasets and resources
- A user asks how councils compare on a simple metric and official DIA profile data has a matching column
- A workflow needs JSON source URLs, formats, cadence notes, and licence caveats for local-government datasets
Do not use this for
- Private, unpublished, authenticated, scraped-login, or embargoed council data
- Paying rates, lodging consents, submitting forms, or mutating council systems
- Claiming complete council-spending transparency or line-item expenditure coverage
- Converting PDFs into structured data unless the official source supplies machine-readable rows
- Legal, audit, or financial advice; cite source caveats and point users to official records
Preferred workflow
- Run
scripts/cli.py datasets --jsonto discover source catalogues and key official resources. - Run
scripts/cli.py downloads --jsonto enumerate DIA Local Councils CSV/XLSX/PDF downloads. - Run
scripts/cli.py performance-metrics --jsonfor a small DIA council profile data preview. - Run
scripts/cli.py councils --jsonwhen you need council names, DIA profile group codes, and source identifiers. - Run
scripts/cli.py local-authority-stats --query <topic> --jsonfor Stats NZ/data.govt.nz local-authority dataset discovery. - Use
compareonly for simple comparisons against columns present in the DIA performance workbook. - Always include source URLs, date/cadence notes, format/licence caveats, and any fetch errors in user-facing summaries.
CLI
Run with:
python3 skills/nz-local-government-data/scripts/cli.py <command> [flags]
Commands
datasets [--limit N] [--json]- list official source catalogues plus discovered data.govt.nz datasets and DIA resource previewsdownloads [--format CSV|XLSX|PDF] [--limit N] [--json]- enumerate downloadable resources from the DIA Local Councils indexperformance-metrics [--council TEXT] [--limit N] [--json]- preview the DIA council profiles XLSX data releasecouncils [--query TEXT] [--json]- list councils and DIA profile group codes/types from the performance data releaselocal-authority-stats [--council NAME] [--query TEXT] [--limit N] [--preview N] [--json]- discover Stats NZ/data.govt.nz local-authority datasets and preview the first machine-readable resource when possiblecompare --metric METRIC --councils A,B [--json]- compare a simple DIA profile metric across council name fragments
Examples:
python3 skills/nz-local-government-data/scripts/cli.py datasets --json
python3 skills/nz-local-government-data/scripts/cli.py downloads --format CSV --json
python3 skills/nz-local-government-data/scripts/cli.py councils --query Auckland --json
python3 skills/nz-local-government-data/scripts/cli.py performance-metrics --council Wellington --json
python3 skills/nz-local-government-data/scripts/cli.py local-authority-stats --council Auckland --json
python3 skills/nz-local-government-data/scripts/cli.py compare --metric rates --councils Auckland,Wellington --json
Resources
- CLI entrypoint:
scripts/cli.py - Smoke test:
scripts/smoke_test.py - Source notes:
references/source-notes.md
Notes
- The CLI is read-only and uses Python standard library modules only (
urllib,html.parser,csv,zipfile,xml.etree.ElementTree,argparse, andjson). - The DIA performance metrics workbook is parsed directly from XLSX XML using stdlib code so no Excel dependency is required.
- The legacy
localcouncils.govt.nzHTTPS endpoint may fail with TLS/SNI errors; the CLI records this and falls back to the public HTTP endpoint. - The issue's Stats NZ group URL is retained in outputs, but live CKAN discovery uses the current data.govt.nz
Local and regional governmentgroup plus local-authority search terms when the older group slug is unavailable. - OAG insight pages are listed as official context; automated HTTP may receive 403, and the skill does not invent structured rows from narrative report pages.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- references/source-notes.md
- scripts/cli.py
- scripts/smoke_test.py
- scripts/test_contract.py
FAQ
Что делает скилл nz-local-government-data?
Discover and preview official New Zealand local government finance, performance, and statistics datasets from Stats NZ/data.govt.nz, DIA local council downloads, DIA council performance metrics, and OAG local-government insight sources. Use when the task involves council profiles, rates revenue, local authority statistics, comparing councils, finding machine-readable local-government datasets, or identifying official source gaps. Read-only, no login or API key required.
Как установить скилл nz-local-government-data?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл nz-local-government-data запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
skill-creator
AnthropicCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
discernment-nudge
AnthropicAfter you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
data-consolidate
AnthropicJoins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
inspection-to-capa
AnthropicRuns the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…