Nz libraries

From thecolab-ai/.skills · View interactive version

Nz libraries is an AI agent skill from the GitHub repository thecolab-ai/.skills. Query selected New Zealand public library catalogues, branch locations, hours, book details, and public availability through a lightweight read-only CLI. Use when the task involves finding books in major NZ public library networks or checking which branches currently show copies.

How to use this skill

Skill file

NZ Libraries

Goal

Query live public catalogue and branch data for major New Zealand public library networks through a small deterministic CLI with human-readable and JSON output, without browser automation, login, holds, or account actions.

Catalogue search is the primary feature. Branch locations and hours are wired where the public site exposes a stable no-login page.

Use this when

Do not use this for

Preferred workflow

  1. Run scripts/cli.py networks to confirm the currently wired networks and limitations
  2. Use search <query> --network <key> for the narrowest catalogue lookup
  3. Use book <id> with an id returned by search for public bib/detail fields
  4. Use availability <id> for branch/copy information where the backend exposes it
  5. Use branches, branch, or hours for branch pages where public hours are wired
  6. Use --json for agent chaining, comparisons, alerts, or structured reports

CLI

Run with:

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

Commands

Examples

python3 skills/nz-libraries/scripts/cli.py networks
python3 skills/nz-libraries/scripts/cli.py search "Eleanor Catton" --network auckland --limit 5 --json
python3 skills/nz-libraries/scripts/cli.py search "Pip Adam" --network christchurch --limit 5
python3 skills/nz-libraries/scripts/cli.py branches --network wellington --json
python3 skills/nz-libraries/scripts/cli.py hours --network christchurch --json
python3 skills/nz-libraries/scripts/cli.py availability auckland:3b4b3224-44e2-5e5d-a627-823679741a24 --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.