Skip to content
Back to skills

Fyi Oia Nz

ASecurity

Query FYI.org.nz OIA/LGOIMA public authorities and request records through a read-only Alaveteli API surface, including request metadata, authority lookups, request timelines, and request search.

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

Works with

  • cli
  • api

Security analysis

A100/100

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

Scanned September 10, 2026

npx -y skills add thecolab-ai/.skills --skill fyi-oia-nz --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Fyi Oia Nz?

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

Security grade badge for Fyi Oia Nz
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/thecolab-ai-fyi-oia-nz/badge)](https://www.skillsdirectory.com/skills/thecolab-ai-fyi-oia-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: fyi-oia-nz
description: "Query FYI.org.nz OIA/LGOIMA public authorities and request records through a read-only Alaveteli API surface, including request metadata, authority lookups, request timelines, and request search."
license: MIT
compatibility: "Requires Python 3.10+ and network access for live data"
metadata:
  thecolab.category: "government"
  thecolab.source_owner: "FYI and mySociety"
  thecolab.source_type: "community"
  thecolab.auth: "none"
  thecolab.access_mode: "public-api"
  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-api"
  thecolab.pack: "nz-public-data"
  thecolab.source_url: "https://fyi.org.nz"
  thecolab.allowed_domains: "fyi.org.nz"
  thecolab.last_verified: "2026-07-19"
  thecolab.health: "gated"
  thecolab.maintainer: "@adam91holt"
---

# FYI.org.nz OIA/LGOIMA

## Scope

This skill wraps FYI.org.nz public authority/request read endpoints and the published all-authorities CSV. It is designed for public-corpus research and reproducible citations around OIA/LGOIMA requests.

## Use this when

- You need NZ public authority discovery from FYI’s authority list
- You need authority detail for a specific FYI body URL slug
- You need request metadata for an ID or `request/<id>-<slug>`
- You need request event timelines (calculated_state/state transitions)
- You need simple request-text search across FYI pages as a discovery aid

## Do not use this for

- Request drafting or posting
- Requester personal data extraction
- Bulk crawling of the search surface

## Commands

- `authorities [--tag <tag>] [--query <text>] [--limit N] [--json]`
  - List public authorities from `/body/all-authorities.csv`, with optional tag/text filtering.

- `categories [--limit N] [--json]`
  - List body tags/categories discovered in `all-authorities.csv`.

- `body <url_name_or_url> [--json]`
  - Fetch authority metadata from `/body/<url_name>.json`.

- `search <query> [--limit N] [--json]`
  - Search FYI request pages for matching titles; uses `/search/*` endpoints where available and falls back to parsed request result HTML.

- `request <id_or_slug> [--full] [--json]`
  - Fetch request metadata from `/request/<id>.json`.
  - Metadata-only mode strips requester-identifying fields.
  - `--full` includes the full timeline with event/type fields and message IDs.

- `events <id_or_slug> [--json]`
  - Fetch and flatten request event timeline only.

## Read-only contract

- No logins, tokens, keys, browser automation, or write operations.
- Defaults are metadata-first and remove requester personal text/name fields from command output.
- Uses only HTTPS GETs with conservative timeouts.

## Resources

- `scripts/cli.py`
- `scripts/smoke_test.py`
- `references/api-notes.md`

Files in this skill

  • SKILL.md2.8 KB
  • references/api-notes.md2.7 KB
  • references/source-notes.md454 B
  • scripts/cli.py23.8 KB
  • scripts/smoke_test.py6.6 KB
  • scripts/test_contract.py376 B
  • tests/fixtures/contract.json170 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.