Skip to content
Back to skills

Nz Police Data

ASecurity

Query official anonymised New Zealand Police victimisation, proceedings and offence statistics with suppression and interpretation context.

  • 31 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 10, 2026
datapythongobashapi

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 10 files and shows the line behind each finding

Scanned September 10, 2026

npx -y skills add thecolab-ai/.skills --skill nz-police-data --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Nz Police Data?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Nz Police Data
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/thecolab-ai-nz-police-data/badge)](https://www.skillsdirectory.com/skills/thecolab-ai-nz-police-data)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: nz-police-data
description: "Query official anonymised New Zealand Police victimisation, proceedings and offence statistics with suppression and interpretation context."
license: MIT
compatibility: "Requires Python 3.10+ and network access for live data"
metadata:
  thecolab.category: "public-safety"
  thecolab.source_owner: "New Zealand Police"
  thecolab.source_type: "official"
  thecolab.auth: "none"
  thecolab.access_mode: "public-download"
  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-download"
  thecolab.pack: "nz-public-data"
  thecolab.source_url: "https://www.police.govt.nz/about-us/publications-statistics/data-and-statistics/policedatanz"
  thecolab.allowed_domains: "www.police.govt.nz,police.govt.nz,public.tableau.com"
  thecolab.last_verified: "2026-07-19"
  thecolab.health: "degraded"
  thecolab.maintainer: "@adam91holt"
---

# NZ Police Data

Use the read-only Python CLI to retrieve and filter records exposed by the official first-party source.
Every command supports `--json`, bounded requests, stable exit codes, source URLs and retrieval timestamps.

## Commands

```bash
# discover victimisation statistics
python3 scripts/cli.py victimisations --json
# discover offender proceeding statistics
python3 scripts/cli.py proceedings --json
# discover offence trends
python3 scripts/cli.py trend --offence VALUE --json
# filter resources by area
python3 scripts/cli.py area NAME --json
# discover supported demographic dimensions
python3 scripts/cli.py demographics --measure VALUE --json
# show source definitions and interpretation resources
python3 scripts/cli.py definitions --json
# list official datasets and workbooks
python3 scripts/cli.py datasets --json
```

Add `--limit N` (1–100) to bound any command. Human output is the default.

## Coverage and interpretation

- All suppression, rounding and small-cell rules must be preserved.
- Recorded crime is not a direct measure of total underlying crime prevalence.
- Do not produce person-level, address-level, profiling or predictive-policing output.
- Geographic comparisons require population, base-rate and boundary context.

The CLI parses the official Police report catalogue and exact Tableau workbook references. Because no stable documented row API is published, it explicitly returns report/filter descriptors rather than manufacturing statistical rows.

## Resources

- `scripts/cli.py` — canonical command entrypoint
- `scripts/test_contract.py` — deterministic repository contract audit
- `scripts/smoke_test.py` — parser fixture and bounded live probe
- `tests/fixtures/catalog.html` and `report.html` — deterministic official catalogue/embed fixtures
- `references/source-profile.json` — command schema, source allowlist and warnings
- `references/source-notes.md` — feasibility, provenance and source limits

Files in this skill

  • SKILL.md2.9 KB
  • references/source-notes.md1 KB
  • references/source-profile.json2 KB
  • scripts/cli.py4.2 KB
  • scripts/police_data_catalog.py1.8 KB
  • scripts/smoke_test.py1.5 KB
  • scripts/test_contract.py376 B
  • tests/fixtures/catalog.html403 B
  • tests/fixtures/contract.json174 B
  • tests/fixtures/report.html140 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.