Justice data nz

From thecolab-ai/.skills · View interactive version

Justice data nz is an AI agent skill from the GitHub repository thecolab-ai/.skills. Query New Zealand Ministry of Justice data tables for finalised charges, convictions, sentencing outcomes, family-violence offences, and youth justice statistics. Use when Codex needs official MoJ justice statistics, workbook URLs, or JSON rows from public no-key justice data tables.

How to use this skill

Skill file

Justice Data NZ

Goal

Query official Ministry of Justice public data tables through a deterministic CLI with human-readable and JSON output.

Use this when

Do not use this for

Preferred workflow

  1. Run scripts/cli.py tables --json to discover the current Ministry of Justice workbook URLs
  2. Use convictions --year YYYY for people convicted plus finalised and convicted charges by offence
  3. Use sentencing --year YYYY for sentencing outcomes for people and convicted charges
  4. Use family-violence --year YYYY for family-violence offence counts, outcomes, convictions, and sentences
  5. Use youth --year YYYY for children and young people statistics; add --scope youth-court for Youth Court-only data
  6. Use --json when another tool or agent needs machine-readable output
  7. Mention the Ministry of Justice as the upstream source and include the workbook URL when reporting figures

CLI

Run with:

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

Commands:

Examples:

python3 skills/justice-data-nz/scripts/cli.py tables --json
python3 skills/justice-data-nz/scripts/cli.py convictions --year 2025 --offence assault --json
python3 skills/justice-data-nz/scripts/cli.py sentencing --year 2025
python3 skills/justice-data-nz/scripts/cli.py family-violence --year 2025 --json
python3 skills/justice-data-nz/scripts/cli.py youth --year 2025 --scope youth-court --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.