Mfe data service

From thecolab-ai/.skills · View interactive version

Mfe data service is an AI agent skill from the GitHub repository thecolab-ai/.skills. Search the Ministry for the Environment Koordinates catalogue and read one layer's metadata, field names, feature count and licence. Use for public MfE layers such as land use, ecosystem services or river environment classifications. Refuses a layer unless license.type is an open Creative Commons At

How to use this skill

Skill file

MfE Data Service

Search the public Ministry for the Environment catalogue on data.mfe.govt.nz and read one layer document. This is catalogue metadata only: titles, field names, feature counts and the layer licence. It does not download features or call a query endpoint.

CLI

python3 skills/mfe-data-service/scripts/cli.py search flood --limit 1 --json
python3 skills/mfe-data-service/scripts/cli.py layer 117733 --json

Commands:

--json prints a meta / results envelope. Search JSON also includes truncated, and page.next / page.last when those Link targets are official catalogue URLs. meta.latest_data is the source published_at timestamp when that value is stated, not the land-use or observation year in a title. meta.licence is set on a layer only after the licence gate passes. Search results omit a catalogue-wide licence because each layer states its own.

When truncated is true, human output includes More catalogue rows exist; this command does not page further.

Exit codes follow docs/contracts.md: 2 invalid input, 4 rate limit or block, 5 timeout or HTTP 5xx, 6 malformed catalogue JSON, 7 closed licence, missing licence, off-host redirect, or unsupported path. An empty search is an empty results array. A missing or non-attribution licence is a refusal, not an assumed Creative Commons Attribution licence.

There is no URL argument. Requests stay on https://data.mfe.govt.nz. Thumbnail and service links inside a document are not requested.

Resources

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.