skills/mikkelkrogsholm/skills/salling-food-waste

salling-food-waste

SKILL.md

Salling Food Waste Skill

Find discounted food waste items at Salling Group stores (Netto, føtex, Bilka, Salling, BR) across Denmark via the Salling Group API. Requires a free API key — users must set the SALLING_API_KEY environment variable.

Setup

Get a free API key at developer.sallinggroup.com and set it as an environment variable:

export SALLING_API_KEY=your_api_key_here

If SALLING_API_KEY is not set, the CLI will exit with a clear error message.

When to use this skill

Invoke this skill when the user wants to:

  • Find food waste / madspild deals near a Danish ZIP code or GPS location
  • See which stores have discounted items and how many are available
  • Browse specific products at a store (prices, discounts, stock)
  • Find cheap near-expiry groceries at Netto, føtex, Bilka, or Salling stores
  • Compare food waste availability across nearby stores

Commands

Search for stores with food waste

bun run skills/salling-food-waste/cli/src/cli.ts search --zip <zip> [flags]
bun run skills/salling-food-waste/cli/src/cli.ts search --lat <lat> --lon <lon> [--radius <km>] [flags]

Key flags:

  • --zip <code> — Danish ZIP code (e.g. 2200, 8000)
  • --lat <n> and --lon <n> — GPS coordinates for geo search
  • --radius <km> — Search radius in km (default: 5, only for geo search)
  • --format json|table|plain

Must provide either --zip or both --lat and --lon.

Get products at a specific store

bun run skills/salling-food-waste/cli/src/cli.ts products <storeId> [flags]

Key flags:

  • <storeId>required positional arg — the store ID from search results
  • --limit <n> — cap number of products shown
  • --format json|table|plain

Natural workflow: search → products

  1. Use search to find nearby stores and get their IDs
  2. Use products <storeId> to see what discounted items are available at a specific store
# Step 1: find stores near ZIP 2200
bun run skills/salling-food-waste/cli/src/cli.ts search --zip 2200

# Step 2: get products for a store (use id from results)
bun run skills/salling-food-waste/cli/src/cli.ts products <storeId>

Usage examples

Find food waste near Copenhagen by ZIP

bun run skills/salling-food-waste/cli/src/cli.ts search --zip 2200

Find food waste near GPS coordinates (Aarhus city center)

bun run skills/salling-food-waste/cli/src/cli.ts search --lat 56.1629 --lon 10.2039 --radius 3

See all products at a specific store

bun run skills/salling-food-waste/cli/src/cli.ts products <storeId> --format plain

See top 5 cheapest deals at a store

bun run skills/salling-food-waste/cli/src/cli.ts products <storeId> --limit 5

Quick overview in table format

bun run skills/salling-food-waste/cli/src/cli.ts search --zip 8000 --format table

JSON output shapes

search output

{
  "success": true,
  "type": "salling_food_waste_search",
  "query": { "zip": "2200" },
  "storeCount": 3,
  "stores": [
    {
      "id": "store-id-string",
      "name": "Netto Nørrebro",
      "brand": "netto",
      "address": "Nørrebrogade 1, 2200, København N",
      "itemCount": 12
    }
  ]
}

products output

{
  "success": true,
  "type": "salling_food_waste_products",
  "storeId": "store-id-string",
  "storeName": "Netto Nørrebro",
  "storeBrand": "netto",
  "productCount": 5,
  "products": [
    {
      "name": "Øko Mælk 1L",
      "category": "Mejeri",
      "newPrice": 5.0,
      "originalPrice": 10.0,
      "discount": 5.0,
      "percentDiscount": 50.0,
      "stock": 3,
      "stockUnit": "each",
      "image": "https://..."
    }
  ]
}

Output formats

Format Best for
json Default — programmatic use, full data
table Quick human-readable overview
plain Easy reading of individual items

All errors are written to stderr as { "error": "...", "code": "..." } and the process exits with code 1.

Weekly Installs
1
GitHub Stars
27
First Seen
3 days ago
Installed on
amp1
cline1
opencode1
cursor1
kimi-cli1
codex1