Finder nedsatte madvarer tæt på sidste salgsdato i Salling Groups danske butikker (Netto, føtex, Bilka).
@mikkelkrogsholm
Community-bidragyder
mikkelkrogsholm/skills
Open source repository
Nedenstående er skillens egen dokumentation, hentet fra kildekoderepoet. Ophavsret tilhører forfatteren.
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.
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.
Invoke this skill when the user wants to:
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|plainMust provide either --zip or both --lat and --lon.
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|plainsearch to find nearby stores and get their IDsproducts <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>
bun run skills/salling-food-waste/cli/src/cli.ts search --zip 2200
bun run skills/salling-food-waste/cli/src/cli.ts search --lat 56.1629 --lon 10.2039 --radius 3
bun run skills/salling-food-waste/cli/src/cli.ts products <storeId> --format plain
bun run skills/salling-food-waste/cli/src/cli.ts products <storeId> --limit 5
bun run skills/salling-food-waste/cli/src/cli.ts search --zip 8000 --format table
{
"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
}
]
}
{
"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://..."
}
]
}
| 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.