Skip to content
Back to skills

Safetravel Nz

ASecurity

Use when looking up New Zealand Government SafeTravel destination advice, advice levels, regional cautions, related alerts or news, or source timestamps. Read-only, official, keyless travel-advice lookup.

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

Works with

  • cli

Security analysis

A100/100

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

Scanned September 10, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Safetravel Nz?

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

Security grade badge for Safetravel Nz
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/thecolab-ai-safetravel-nz/badge)](https://www.skillsdirectory.com/skills/thecolab-ai-safetravel-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: safetravel-nz
description: "Use when looking up New Zealand Government SafeTravel destination advice, advice levels, regional cautions, related alerts or news, or source timestamps. Read-only, official, keyless travel-advice lookup."
license: MIT
compatibility: "Requires Python 3.10+ and network access for live MFAT SafeTravel pages"
metadata:
  thecolab.category: "travel-safety"
  thecolab.source_owner: "Ministry of Foreign Affairs and Trade (MFAT)"
  thecolab.source_type: "official"
  thecolab.auth: "none"
  thecolab.access_mode: "html-readonly"
  thecolab.data_class: "public"
  thecolab.writes: "false"
  thecolab.browser: "false"
  thecolab.risk: "medium"
  thecolab.cache_ttl: "none"
  thecolab.schema_version: "1"
  thecolab.skill_type: "html-readonly"
  thecolab.pack: "nz-public-data"
  thecolab.source_url: "https://www.safetravel.govt.nz/"
  thecolab.allowed_domains: "www.safetravel.govt.nz"
  thecolab.last_verified: "2026-09-03"
  thecolab.health: "healthy"
  thecolab.maintainer: "@adam91holt"
---

# SafeTravel NZ

## Goal

Look up current, official New Zealand Government travel advice from MFAT's SafeTravel website. The skill is read-only: it searches the official destination sitemap and retrieves a destination's advice level, regional cautions, related alerts/news, and source timestamps.

## Use this when

- A user asks for the NZ Government's travel advice for a country or destination.
- A workflow needs the SafeTravel advice level (1–4), regional exceptions, or the destination page's update date.
- A user wants related SafeTravel news/alerts associated with a destination page.
- An agent needs a source URL and retrieval timestamp for a travel-safety briefing.

## Do not use this for

- Travel registration, login, profile/account access, emergency assistance, or storing contact details.
- Booking, visas, insurance eligibility, or immigration advice.
- Replacing a traveller's judgement, local emergency instructions, or direct official advice.
- Circumventing blocks, CAPTCHA, or access controls.

## Preferred workflow

1. Run `search` for the destination name and use its returned slug if there is any ambiguity.
2. Run `advice <slug> --json` to retrieve the current official page.
3. Report the `advice_level`, any `regional_cautions`, `related_alerts_news`, and the `source.page_updated` / `source.retrieved_at` timestamps.
4. Always say that travel advice can change and link the user to the returned official source page.

## CLI

Run from the repository root:

```bash
python3 skills/safetravel-nz/scripts/cli.py <command> [flags]
```

### Commands

- `search QUERY [--limit N] [--json]` — search destination pages listed in SafeTravel's official sitemap.
- `advice DESTINATION [--json]` — fetch a destination's current advice. `DESTINATION` can be a name, slug, or canonical SafeTravel destination URL.

Examples:

```bash
python3 skills/safetravel-nz/scripts/cli.py search australia --json
python3 skills/safetravel-nz/scripts/cli.py advice australia
python3 skills/safetravel-nz/scripts/cli.py advice "https://www.safetravel.govt.nz/destinations/australia" --json
```

## JSON result

`--json` emits the repository result envelope (`schema_version: "1"`) with:

- `source.url` and `source.retrieved_at` for each live result.
- `source.page_updated` when SafeTravel displays an update date on a destination page.
- `data.advice_level` with title, textual and numeric level, update/currentness fields, and advice body.
- `data.regional_cautions` for any regional advice entries distinct from the country-wide level.
- `data.related_alerts_news` for destination-page related news cards, with official links and displayed dates where present.
- A warning that advice can change.

## Resources

- CLI entrypoint: `scripts/cli.py`
- Deterministic parser test: `tests/test_parser.py`
- Bounded outage-aware smoke test: `scripts/smoke_test.py`
- Source surfaces, parser assumptions, and caveats: `references/source-notes.md`

## Notes and safety

- The CLI makes only GET requests to `www.safetravel.govt.nz`, with a 10-second timeout per request. It has no credentials, browser automation, cache, registration, or mutation flow.
- The official sitemap is used as the destination allowlist before a destination page is retrieved.
- SafeTravel advice may change without notice. For safety-critical or imminent travel decisions, open the returned official URL directly and follow local authority or emergency instructions.

Files in this skill

  • SKILL.md4.4 KB
  • references/source-notes.md5.3 KB
  • scripts/cli.py43 KB
  • scripts/smoke_test.py4.8 KB
  • scripts/test_contract.py415 B
  • tests/fixtures/contract.json173 B
  • tests/fixtures/destination-page-contradictory-level.html699 B
  • tests/fixtures/destination-page-multiple-primary.html1.1 KB
  • tests/fixtures/destination-page-regional-only.html660 B
  • tests/fixtures/destination-page.html1.6 KB
  • tests/fixtures/sitemap.xml481 B
  • tests/fixtures/source-sample.json196 B
  • tests/test_parser.py54.9 KB

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.