Logo: Grocer Nz

Grocer Nz

Organisatioun
thecolab-ai
grocer-nz

Query grocer.nz public NZ supermarket data — canonical product and barcode/GTIN lookup, cross-retailer product matching, store lookup, current per-store prices, and historical price rows from public DuckDB/parquet assets. Use for exact NZ grocery product matching or pricing across Woolworths, New World, PAK'nSAVE, Fresh Choice, and related stores. Read-only; no login or private user data.

Iwwersiicht

Editeurthecolab-ai
Repository.skills
Skill-Nummgrocer-nz
Stären
39
Forks
9
Matgeliwwert Dateien
6
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 6 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    thecolab-ai huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Grocer Nz an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/thecolab-ai/.skills/tree/main/skills/grocer-nz
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/thecolab-ai/.skills.git /tmp/.skills
mkdir -p .claude/skills
cp -r /tmp/.skills/skills/grocer-nz .claude/skills/grocer-nz
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Grocer Nz an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Grocer Nz automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Grocer Nz net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Grocer.nz Public Price Data

Overview

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:

  • Grocer public static assets: https://assets-prod.grocer.nz/public/
  • Public DuckDB base database: base_v3.duckdb.br
  • Per-store current price parquet files: prices_per_store_v3/public_prices_<store_id>.parquet
  • Per-product history parquet files: price_history_v3/price_history_<product_id>.parquet
  • Grocer frontend Meilisearch product index for search.

Script path:

bash
skills/grocer-nz/scripts/cli.py

The script bootstraps duckdb via uv when the active Python does not already have it.

When to Use

  • Adam asks for historic supermarket pricing in NZ.
  • Adam wants to compare prices across Woolworths, New World, PAK'nSAVE, Fresh Choice, Super Value, The Warehouse, etc.
  • Adam wants a store id for a known store, e.g. Papakura.
  • Adam wants price history for a known Grocer product id.
  • Adam wants current prices for one product across selected stores.
  • Adam wants the public DuckDB/parquet download URLs so another agent can download or analyse the raw files itself.
  • Adam wants to identify the same exact product in the Woolworths, New World, or PAK'nSAVE skills.
  • Adam has a UPC, EAN, or GTIN and needs the corresponding Grocer product id.

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.

Commands

Set a helper variable:

bash
GROCER=skills/grocer-nz/scripts/cli.py

Get raw asset download URLs

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.

bash
# 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.

List stores

bash
python3 $GROCER stores --query Papakura
python3 $GROCER stores --vendor "PAK" --limit 20 --json

Useful known Papakura ids from live smoke:

  • 118 — Woolworths Papakura
  • 206 — Fresh Choice Papakura
  • 230 — PAK'nSAVE Papakura
  • 307 — New World Papakura

Search products

Search only:

bash
python3 $GROCER search "milk" --limit 5

Search plus current prices in matching stores:

bash
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.

Resolve a barcode

Grocer stores barcodes in zero-padded GTIN-14 form. The command accepts compact UPC/EAN forms too:

bash
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.

Match the exact product across retailers

  1. Search Grocer by product description and select the right brand/name/size candidate.
  2. Copy a returned retailer_search_terms value.
  3. Search each retailer skill with that value:
bash
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.

Current prices for a product

bash
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:

bash
python3 $GROCER prices 5461 --all-stores --limit 30

Price history for a product

bash
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.

Raw product metadata

bash
python3 $GROCER product 5461 --json

Ad-hoc SQL query (guarded, read-only)

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).

bash
# 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).

Data Notes

See references/api-notes.md for the sniffed endpoints and file layout.

Important model fields:

  • Products: id, name, brand, unit, size, redirected_to
  • Barcodes: zero-padded GTIN-14 barcode, product_id
  • Stores: id, vendor_id, name, is_enabled
  • Current prices: updated_at, store_id, product_id, original_price_cent, sale_price_cent, club_price_cent, online_price_cent, multibuy fields
  • Price history: updated_at, store_id, price_cent

Prices are stored in NZ cents. $5.50 is represented as 550.

Common Pitfalls

  1. No store selected = limited price context. Product search comes from Meilisearch. Current per-store pricing requires store ids or --store-query so the CLI can download the relevant parquet files.
  2. --all-stores can be noisy/slow. It may download hundreds of current price parquet files. Prefer targeted store ids for fast checks.
  3. The .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.
  4. DuckDB DDL cannot use prepared parameters for 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.
  5. History parquet schema is leaner than the app's local table. Per-product history files may only include updated_at, store_id, and price_cent; get vendor_id by joining public_stores, and infer product id from the requested history file.
  6. Historical availability varies. Some products/stores have no history parquet or no rows for a selected store.
  7. Effective price is conservative. The CLI reports effective_price_cent as the minimum of original/sale/club/online when present. Multibuy needs human interpretation because quantity matters.
  8. Live smoke tests depend on upstream stock/history. Product 5461 and Papakura stores were live-valid when added, but upstream catalogue changes can make the smoke fail without a code bug.
  9. This is public read-only data. Do not try to bypass sign-in or scrape private Grocer user/list/pro features.
  10. Retailer barcode search has different shapes. Search Foodstuffs with the compact barcode (leading zero padding removed). Woolworths returns its own barcode; normalise and verify that field because its text search may include unrelated rows.
  11. 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.

Verification Checklist

Run these before relying on a fresh install:

bash
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.

Matgeliwwert Dateien

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Grocer Nz?

Query grocer.nz public NZ supermarket data — canonical product and barcode/GTIN lookup, cross-retailer product matching, store lookup, current per-store prices, and historical price rows from public DuckDB/parquet assets. Use for exact NZ grocery product matching or pricing across Woolworths, New World, PAK'nSAVE, Fresh Choice, and related stores. Read-only; no login or private user data.

Firwat Grocer Nz op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Grocer Nz besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Grocer Nz an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/thecolab-ai/.skills/tree/main/skills/grocer-nz an. TypingMind liest d'Datei SKILL.md, bëndelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Grocer Nz benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Grocer Nz benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Grocer Nz domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Grocer Nz gratis?

Jo. thecolab-ai huet de Skill ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇