/nz-skills:grocer-nzfrom nz-skills
Queries NZ grocery data via grocer.nz: barcode/GTIN lookup, per-store pricing, product matching, and price history across Woolworths, New World, PAK'nSAVE. Read-only access to public DuckDB/parquet assets.
Ships in nz-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
This skill queries public data exposed by grocer.nz, a New Zealand grocery price comparison app. It is useful as a canonical product/GTIN crosswalk as well as for current supermarket price checks, per-store comparisons, and historical product price rows.
The CLI uses:
https://assets-prod.grocer.nz/public/base_v3.duckdb.brprices_per_store_v3/public_prices_<store_id>.parquetprice_history_v3/price_history_<product_id>.parquetScript path:
skills/grocer-nz/scripts/cli.py
The script bootstraps duckdb via uv when the active Python does not already have it.
Do not use this for authenticated Grocer Pro features, private user lists, or anything requiring sign-in. This skill is read-only public data only.
Set a helper variable:
GROCER=skills/grocer-nz/scripts/cli.py
Use assets when the caller wants the source files rather than parsed rows. This
command only constructs links from Grocer's fixed public asset layout. It makes
no network request, starts no DuckDB process, and does not download or parse any
file.
# Base catalogue DuckDB URL (also the default with no selectors)
python3 $GROCER assets --base --json
# Current-price parquet URLs for selected stores
python3 $GROCER assets --store-id 230 --store-id 307 --json
# Per-product history parquet URLs
python3 $GROCER assets --product 5452 --product 5461 --json
# Combine all three asset types
python3 $GROCER assets --base --store-id 230 --product 5452 --json
The result contains delivery: external_url and a resources array. Each
resource has a declared format, filename, and public url. Through The Colab
MCP, supported resources are also emitted as native MCP resource_link content,
so the client downloads directly from Grocer rather than through the MCP server.
The URLs are deliberately not probed; a nonexistent store or product id can
therefore produce a link that returns 403/404 when downloaded. At most 50 links
may be requested in one call.
python3 $GROCER stores --query Papakura
python3 $GROCER stores --vendor "PAK" --limit 20 --json
Useful known Papakura ids from live smoke:
118 — Woolworths Papakura206 — Fresh Choice Papakura230 — PAK'nSAVE Papakura307 — New World PapakuraSearch only:
python3 $GROCER search "milk" --limit 5
Search plus current prices in matching stores:
python3 $GROCER search "milk" --store-query Papakura --limit 3
python3 $GROCER search "whittakers" --store-id 230 --store-id 307 --json
The search command returns Grocer product ids, canonical GTIN-14 barcodes, and compact retailer_search_terms. Use the product ids with prices and history; use the retailer search terms with the retailer-native skills.
Grocer stores barcodes in zero-padded GTIN-14 form. The command accepts compact UPC/EAN forms too:
python3 $GROCER barcode 94152210
python3 $GROCER barcode 00000094152210 --json
For Anchor Blue Milk 2L, this resolves to Grocer product 5452, canonical GTIN 00000094152210, and retailer search term 94152210.
retailer_search_terms value.python3 skills/woolworths-nz/scripts/cli.py search 94152210 --json
python3 skills/paknsave-nz/scripts/cli.py search 94152210 --json
python3 skills/newworld-nz/scripts/cli.py search 94152210 --json
Woolworths search can include loosely related results, so keep only rows whose barcode, normalised to GTIN-14, equals Grocer's canonical barcode. Foodstuffs barcode search returns the matching New World/PAK'nSAVE product id; both banners use the same Foodstuffs product id for the same product. If barcode search returns no exact result, do not silently substitute a similar size or variant—fall back to brand/name/size matching and label it as a probable match.
python3 $GROCER prices 5461 --store-query Papakura
python3 $GROCER prices 5461 --store-id 230 --store-id 307 --json
--all-stores is supported but can be slow because it downloads many per-store parquet files:
python3 $GROCER prices 5461 --all-stores --limit 30
python3 $GROCER history 5461 --store-query Papakura --limit 20
python3 $GROCER history 5461 --store-id 230 --json
History files are per product and include store-level rows when available.
python3 $GROCER product 5461 --json
Run a single SELECT/WITH statement over the dataset for analysis the fixed
commands don't cover (cheapest-across-stores, vendor trends, joins, aggregates).
Always-available relations: products, barcodes, stores, vendors. Load extra data with
flags: --store-id/--store-query/--all-stores populate a prices table;
--product populates a history table (with a product_id column added).
# cheapest blue-top milk (product 5452) across Papakura stores
python3 $GROCER query "select s.name, p.original_price_cent from prices p join stores s on s.id=p.store_id where p.product_id=5452 order by 2" --store-query Papakura --json
# count products by vendor that stock a given product's price rows
python3 $GROCER query "with p as (select id,name,brand from products where lower(brand)='anchor') select * from p" --limit 20
# resolve compact retailer barcodes against Grocer's canonical catalogue
python3 $GROCER query "select b.barcode, p.* from barcodes b join products p on p.id=b.product_id where b.barcode='00000094152210'" --json
# price history rows for a product
python3 $GROCER query "select store_id, price_cent, updated_at from history order by updated_at desc" --product 5461 --limit 30 --json
Safety: the statement must be a single read-only SELECT/WITH (no ;, no
DDL/DML). Filesystem and network access are disabled (enable_external_access= false, lock_configuration=true) after the requested parquet are loaded, and
the base catalogue is attached READ_ONLY. An arbitrary query can therefore only
read the public grocery data exposed here — it cannot write, read other files,
reach the network, or change settings. Results are capped (--limit, max 5000).
See references/api-notes.md for the sniffed endpoints and file layout.
Important model fields:
id, name, brand, unit, size, redirected_tobarcode, product_idid, vendor_id, name, is_enabledupdated_at, store_id, product_id, original_price_cent, sale_price_cent, club_price_cent, online_price_cent, multibuy fieldsupdated_at, store_id, price_centPrices are stored in NZ cents. $5.50 is represented as 550.
--store-query so the CLI can download the relevant parquet files.--all-stores can be noisy/slow. It may download hundreds of current price parquet files. Prefer targeted store ids for fast checks..br DuckDB file may arrive already decompressed. The CLI treats Grocer's base_v3.duckdb.br CDN response as a DuckDB file directly because Cloudflare/Caddy often transparently decodes it.read_parquet(?). Quote local parquet paths explicitly before create view ... as select * from read_parquet('<path>'); parameter binding works for normal select filters but not this statement shape.updated_at, store_id, and price_cent; get vendor_id by joining public_stores, and infer product id from the requested history file.effective_price_cent as the minimum of original/sale/club/online when present. Multibuy needs human interpretation because quantity matters.5461 and Papakura stores were live-valid when added, but upstream catalogue changes can make the smoke fail without a code bug.barcode; normalise and verify that field because its text search may include unrelated rows.assets constructs but does not validate links. Use it for low-overhead handoff of raw public files. Use the parsed commands when the agent needs verified rows immediately.Run these before relying on a fresh install:
python3 $GROCER stores --query Papakura --json
python3 $GROCER assets --base --store-id 230 --product 5452 --json
python3 $GROCER search "milk" --store-query Papakura --limit 2
python3 $GROCER prices 5461 --store-query Papakura --limit 10
python3 $GROCER history 5461 --store-query Papakura --limit 5
Expected smoke signal: Papakura stores include Woolworths/New World/PAK'nSAVE, and product 5461 returns Anchor 2L milk pricing/history rows for at least PAK'nSAVE/New World/Woolworths Papakura when current Grocer data includes them.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub thecolab-ai/.skills --plugin nz-skills186 skills in this plugin
/airnz-flightsSearch public Air New Zealand fare snapshots and timetable fallback data through a lightweight no-login CLI. Use when the task involves Air NZ route/date fare snapshots, fare products, flight numbers, departure/arrival times, duration, stops, or machine-readable current flight data. Optional --browser mode uses CloakBrowser when installed and returns cloakbrowser_not_installed when unavailable. Read-only; no login, Airpoints, seat holds, booking, payment, manage-booking, or checkout actions./akahu-personalQuery personal transactional bank-account data — account lists, balances, settled/pending transactions, account-specific transaction history, and private JSON/CSV exports — from Akahu, a New Zealand open-banking provider. Use when the task involves personal bank data exports, NZ account balances, transaction analysis, cashflow/spending categorisation, or inspecting authenticated Personal App banking data. Requires user-provided AKAHU_APP_TOKEN and AKAHU_USER_TOKEN; never smoke-test against real personal data in CI./akl-housing-capacityQuery Auckland housing supply trends and 2022/23 plan-enabled and feasible housing capacity. Use for monthly housing updates, building consents, HBA, capacity for growth, PC78, local-board growth capacity, social housing delivery and housing demolition source discovery.Other plugins' skills for the same job