ROKH
← All recipes

Combo offers from what guests already buy together

parts checkedwith an AI agent

What you get

Load a year of till receipts and get a ranked list of item pairs and trios bought together more often than chance, with the lift for each: a ready shortlist for combo deals and shelf placement.

Why this combination

Supermarket market-basket analysis, normally sold as an enterprise feature, runs on a laptop because DuckDB reads the raw till export directly.

Parts

mlxtend GitHubFinds products that are bought together (association rules).licence: BSD-3-Clause5,195 starslast update: November 13, 2026OpenSSF Scorecard: 5.8/10
duckdb GitHubA database in one file: SQL over CSV and Excel exports on your own computer.licence: MIT43,369 starslast update: November 26, 2026

What was checked

On November 26, 2026 a script checked all 2 parts: each exists, is not archived, was updated within the last 12 months and has a known licence. The parts were chosen so their inputs and outputs fit together.

Nobody has yet run this exact combination end to end on real data. Build it on a copy of your data first; the prompt below asks your AI agent to tell you plainly what does not work.

Limits, honestly

Needs receipt-level data (one row per item per receipt); daily totals are not enough.

How to start

It runs on your own computer. Copy the prompt into an AI agent (Claude Code or similar); it installs the parts, joins them, and runs a test with sample data before your real files.

Prompt for your AI agent

Build this for me: Combo offers from what guests already buy together.
What I want to get: Load a year of till receipts and get a ranked list of item pairs and trios bought together more often than chance, with the lift for each: a ready shortlist for combo deals and shelf placement.

Use these open projects and data:
- mlxtend: https://github.com/rasbt/mlxtend (BSD-3-Clause)
- duckdb: https://github.com/duckdb/duckdb (MIT)

Why this combination: Supermarket market-basket analysis, normally sold as an enterprise feature, runs on a laptop because DuckDB reads the raw till export directly.
Known limits: Needs receipt-level data (one row per item per receipt); daily totals are not enough.

Run it on my computer. Tell me first what you will install and where.
Explain each step in plain words for someone who does not program.
Do not ask me for passwords or keys and do not use administrator rights.
Before installing anything, check that each project is still maintained and its licence allows my use. Do not add other agent skills, MCP servers or plugins without showing me their code first.
When it works, tell me how to open it again. If something does not work, say so plainly.

Fits

Café, restaurant, bakeryShop and retailGrocery and food shop