Skip to content
Back to skills

Gns Hazards Nz

ASecurity

Use when a task needs source-derived New Zealand active-fault features, ArcGIS layer metadata, latest modelled shaking contours, or versioned GeoNet ShakingLayers event files and contour GeoJSON. Provides read-only GNS Science and GeoNet discovery, count, ID, paging, metadata, and spatial-query primitives without authentication.

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

Works with

  • cli
  • api

Security analysis

A100/100

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

Scanned September 10, 2026

npx -y skills add thecolab-ai/.skills --skill gns-hazards-nz --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Gns Hazards Nz?

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

Security grade badge for Gns Hazards Nz
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/thecolab-ai-gns-hazards-nz/badge)](https://www.skillsdirectory.com/skills/thecolab-ai-gns-hazards-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: gns-hazards-nz
description: "Use when a task needs source-derived New Zealand active-fault features, ArcGIS layer metadata, latest modelled shaking contours, or versioned GeoNet ShakingLayers event files and contour GeoJSON. Provides read-only GNS Science and GeoNet discovery, count, ID, paging, metadata, and spatial-query primitives without authentication."
license: MIT
compatibility: "Requires Python 3.10+ and network access for live data"
metadata:
  thecolab.category: "environment"
  thecolab.source_owner: "GNS Science"
  thecolab.source_type: "official"
  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://shakinglayers.geonet.org.nz/api/v1/events"
  thecolab.allowed_domains: "gis.gns.cri.nz, shakinglayers.geonet.org.nz"
  thecolab.last_verified: "2026-07-26"
  thecolab.health: "healthy"
  thecolab.maintainer: "@adam91holt"
---

# GNS Hazards NZ

## Goal

Query GNS Science's ArcGIS hazard layers and GeoNet's versioned ShakingLayers
archive through a deterministic, read-only, standard-library CLI.

## Use this when

- A task needs NZ active fault traces, recurrence intervals, slip rates,
  fault avoidance zones, or fault awareness areas as GeoJSON
- A task needs the ArcGIS latest modelled shaking view, or a specific event and
  published ShakingLayers version with explicit units and provenance
- A task needs source metadata, a count/ID query, paging, or geometry controls

## Do not use this for

- General earthquake catalogues, felt reports, or volcano alerts (use `geonet-nz`)
- Regional council hazard overlays such as liquefaction or tsunami zones
  (use `wcc-arcgis-nz` for the Wellington region)
- Any write, upload, or account action

## Commands

```bash
python3 skills/gns-hazards-nz/scripts/cli.py layers --service faults
python3 skills/gns-hazards-nz/scripts/cli.py describe faults --layer-id 0 --json
python3 skills/gns-hazards-nz/scripts/cli.py faults --bbox "174.6,-41.5,175.1,-41.0" --limit 20 --json
python3 skills/gns-hazards-nz/scripts/cli.py faults --layer-id 7 --count --json
python3 skills/gns-hazards-nz/scripts/cli.py shaking --measure mmi --min-contour 6 --json
python3 skills/gns-hazards-nz/scripts/cli.py events --year 2023 --json
python3 skills/gns-hazards-nz/scripts/cli.py versions 771645 --json
python3 skills/gns-hazards-nz/scripts/cli.py event-files 771645 --version latest --json
python3 skills/gns-hazards-nz/scripts/cli.py event-data 771645 --measure pga --version latest --json
```

- `layers [--service faults|shaking] [--json]` — layer ids and names of each service
- `describe faults|shaking [--layer-id N] [--json]` — normalized ArcGIS fields, aliases, descriptions/units when supplied, extent, spatial reference, capabilities, geometry type, object ID field, and record limit
- `faults [--layer-id N] [--where SQL] [--bbox minLon,minLat,maxLon,maxLat] [--fields F1,F2] [query controls] [--json]` — Active Faults Database features (layer 0 = 1:250k traces; 6 = high-res traces; 7 = avoidance zones; 8 = awareness areas)
- `shaking [--measure mmi|pga|pgv|psa0.3|psa1.0|psa3.0] [--min-contour X] [--bbox ...] [query controls] [--json]` — latest modelled ShakingLayers view
- `events [--year YYYY] [--json]` — published archive event IDs (recent events when no year is supplied)
- `versions EVENT_ID [--json]` — published/retracted versions with version path, issue time, status, and run type
- `event-files EVENT_ID [--version latest|VERSIONPATH] [--json]` — version metadata, file names/URLs, and measures derived from the published contour files
- `event-data EVENT_ID --measure MEASURE [--version latest|VERSIONPATH] [--json]` — the selected contour GeoJSON with a `provenance` object

ArcGIS query controls are `--count`, `--ids-only`, `--no-geometry`,
`--offset N`, `--order-by FIELDS`, `--geometry-precision N`, and
`--max-allowable-offset X`. Count and IDs-only modes are mutually exclusive.
Ordinary queries keep the existing feature payload; count and ID modes return
small normalized JSON envelopes.

## Notes

- ArcGIS attribution: CC BY 4.0 — attribute GNS Science. GeoNet archive
  attribution: CC BY 3.0 New Zealand — attribute GeoNet.
- Archive contour units: MMI = Modified Mercalli Intensity; PGA and PSA = `g`;
  PGV = `cm/s`. Available measures come from each version's actual files.
- The ArcGIS `shaking` service is a convenient latest modelled view. It is not
  measured-only data or a permanent hazard map; the upstream system may
  incorporate recorded observations where applicable.
- Use `event-data` when event ID, resolved version, file name, units, and exact
  source URL must be preserved.
- High-resolution traces and avoidance zones are populated progressively by
  region; absence of features is not evidence of no fault hazard
- `truncated: true` means the server transfer limit was hit — narrow with
  `--where`/`--bbox`

## Resources

- CLI entrypoint: `scripts/cli.py`
- Contract test: `scripts/test_contract.py`; smoke test: `scripts/smoke_test.py`
- Source schemas, units, provenance, citation, and failure modes:
  `references/source-notes.md`

Files in this skill

  • SKILL.md5.2 KB
  • references/source-notes.md6.4 KB
  • scripts/cli.py40 KB
  • scripts/smoke_test.py10.6 KB
  • scripts/test_contract.py21.7 KB
  • tests/fixtures/contract.json174 B
  • tests/fixtures/count.json18 B
  • tests/fixtures/event-data-mmi.json556 B
  • tests/fixtures/event-files.json413 B
  • tests/fixtures/events.json32 B
  • tests/fixtures/ids.json61 B
  • tests/fixtures/layer-description.json666 B
  • tests/fixtures/service-sample.json507 B
  • tests/fixtures/shaking-geojson-sample.json461 B
  • tests/fixtures/versions.json375 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.