justice-data-nz
Query New Zealand Ministry of Justice data tables for finalised charges, convictions, sentencing outcomes, family-violence offences, and youth justice…
от thecolab-ai★ 41 звезда на GitHub
Установить justice-data-nz в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
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
- A user asks for New Zealand court charges, conviction, sentencing, family-violence, or youth-justice statistics
- A workflow needs a current Ministry of Justice data-table workbook URL
- Another tool or agent needs machine-readable rows for a given table year
- A user needs to cite the MoJ data-tables source rather than one-off PDF summaries
Do not use this for
- Police-recorded victimisations, proceedings, or calls-for-service data
- Corrections prison muster, remand, parole, or sentence-management data
- Stats NZ table-builder extraction unless the user specifically asks for Stats NZ mirrors
- Private court data, suppressed case details, or authenticated Ministry systems
Preferred workflow
- Run
scripts/cli.py tables --jsonto discover the current Ministry of Justice workbook URLs - Use
convictions --year YYYYfor people convicted plus finalised and convicted charges by offence - Use
sentencing --year YYYYfor sentencing outcomes for people and convicted charges - Use
family-violence --year YYYYfor family-violence offence counts, outcomes, convictions, and sentences - Use
youth --year YYYYfor children and young people statistics; add--scope youth-courtfor Youth Court-only data - Use
--jsonwhen another tool or agent needs machine-readable output - 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:
tables [--query TEXT] [--limit N] [--json]- list available MoJ data-table workbooksconvictions --year YYYY [--offence TEXT] [--json]- people convicted, finalised charges, and convicted charges by offencesentencing --year YYYY [--json]- people convicted and convicted charges by most serious sentencefamily-violence --year YYYY [--offence TEXT] [--json]- family-violence offence, outcome, conviction, and sentence seriesyouth --year YYYY [--scope any-court|youth-court] [--age-group TEXT|all] [--offence TEXT] [--json]- youth justice charge, people, offence, and order series
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
- CLI entrypoint:
scripts/cli.py - Smoke test:
scripts/smoke_test.py - Source and fallback notes:
references/api-notes.md
Notes
- The CLI uses public, no-key Ministry of Justice workbook downloads linked from the data-tables page
- Workbooks are parsed with Python standard-library
zipfileand XML tools; no external packages are required tablescan fall back to data.govt.nz CKAN metadata if the MoJ page is blocked, but current values require the direct MoJ workbook downloads- Every network call has a timeout and upstream failures are reported as clear user-facing errors
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- references/api-notes.md
- references/source-notes.md
- scripts/cli.py
- scripts/smoke_test.py
- scripts/test_contract.py
FAQ
Что делает скилл justice-data-nz?
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.
Как установить скилл justice-data-nz?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл justice-data-nz запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
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…