Skip to content
Back to skills

Treasury Fiscal Data Nz

ASecurity

Query official New Zealand Treasury fiscal forecast, appropriation, Crown revenue, expenditure and debt resources with publication provenance.

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

Works with

  • cli

Security analysis

A100/100

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

Scanned September 10, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Treasury Fiscal Data Nz?

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

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

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: treasury-fiscal-data-nz
description: "Query official New Zealand Treasury fiscal forecast, appropriation, Crown revenue, expenditure and debt resources with publication provenance."
license: MIT
compatibility: "Requires Python 3.10+, openpyxl, and network access for live data"
metadata:
  thecolab.category: "economics"
  thecolab.source_owner: "New Zealand Treasury"
  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.treasury.govt.nz/publications/budgets/forecasts"
  thecolab.allowed_domains: "www.treasury.govt.nz,treasury.govt.nz"
  thecolab.last_verified: "2026-07-19"
  thecolab.health: "degraded"
  thecolab.maintainer: "@adam91holt"
---

# Treasury Fiscal Data NZ

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 latest fiscal publications
python3 scripts/cli.py latest --json
# search forecast indicators
python3 scripts/cli.py forecast INDICATOR --json
# search appropriations
python3 scripts/cli.py appropriation QUERY --json
# filter by Vote
python3 scripts/cli.py vote NAME --json
# compare exact shared key-indicator forecasts across two publication vintages
python3 scripts/cli.py compare --from VALUE --to VALUE --json
# discover fiscal model resources
python3 scripts/cli.py fiscal-model --json
# list official source publications and workbooks
python3 scripts/cli.py sources --json
```

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

## Coverage and interpretation

- Do not compare measures whose definitions changed between publications.
- Keep actuals, forecasts, scenarios and policy assumptions distinct.
- Fiscal data retrieval is not financial or investment advice.

`latest` returns primary EFU releases in the official catalogue's newest-first order, while `sources`
adds each release's official downloadable workbooks and documents. `forecast` returns one structured
Table 1 value per period. `appropriation` and `vote` return one structured amount per financial year
from the expenditure workbook's Raw Data sheet; Vote names accept either `Health` or `Vote Health`.
Every value includes its published unit, period, actual/forecast status, publication, workbook,
worksheet and exact cell provenance.

`compare` resolves two
primary EFU releases, selects each release's unique Charts and Data workbook, and compares only exact
shared Table 1 definitions, units, period basis and forecast periods. Every value retains publication,
workbook, worksheet, row, column and cell provenance. Changed or ambiguous definitions fail closed.

## 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/publication.html` — deterministic official resource fixture; workbook rows are generated in-memory by the smoke test
- `references/source-profile.json` — command schema, source allowlist and warnings
- `references/source-notes.md` — feasibility, provenance and source limits

Files in this skill

  • SKILL.md3.5 KB
  • references/source-notes.md1.7 KB
  • references/source-profile.json2.2 KB
  • requirements.txt17 B
  • scripts/cli.py9.2 KB
  • scripts/smoke_test.py7.8 KB
  • scripts/test_contract.py376 B
  • scripts/treasury_workbooks.py19.8 KB
  • tests/fixtures/catalog.html803 B
  • tests/fixtures/contract.json183 B
  • tests/fixtures/publication.html486 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.