| name | ah-flex-cli |
| description | Prepare flexible Albert Heijn Belgium grocery baskets with current exact-product searches, pack and unit-price comparison, dietary constraints, basket JSON validation, human review, one-time browser login, and guarded cart application. Use for AH Belgium grocery planning, healthy or protein-rich shopping, bulk/freezer/fresh combinations, gluten-free alternatives, or requests to prepare an AH basket without automating checkout or payment. |
AH Flex CLI
Use the CLI in this skill's directory to turn a household food brief into a
reviewed AH Belgium basket. Optimize for recombinable ingredients rather than a
fixed daily menu.
Run the CLI
Treat the directory containing this SKILL.md as <skill-root>.
- Verify Node.js 20 or newer with
node --version.
- Run
npm install in <skill-root> if node_modules is absent.
- Invoke commands as
node <skill-root>/src/cli.js .... Use ah-flex ...
instead only when the package is already linked.
Never inspect, copy, print, export, or put credentials, callbacks, browser
cookies, tokens, profile databases, or session values in prompts or command
arguments. The CLI itself may read and rotate its private mobile session file;
the agent must treat that file as opaque.
Prepare a basket
- Gather the household size, number of days, dietary constraints, desired
proteins or dishes, budget priorities, storage capacity, and relevant pantry
items. Make reasonable assumptions only when they do not materially change
the basket.
- Split the plan across pantry, freezer, and a deliberately smaller fresh-food
share. Prefer ingredients that support several meals and gluten-free sides or
substitutions where requested.
- Create a template with
template --brief "..." --out basket.json.
- Search each component with . Search returns
candidates; never silently select the first one. Compare exact product,
quantity, pack size, unit-price basis, availability, and promotion. Treat
unparseable multipacks and provisional promotions visibly rather than
guessing.