Find Kroger locations/products and start an authenticated customer cart via Kroger APIs.
Use this skill to:
This skill uses a helper CLI script:
kroger.mjs (in the same folder as this SKILL.md)Before running commands, resolve SKILL_DIR as the parent directory of this SKILL.md, then run:
node "$SKILL_DIR/kroger.mjs" ...client_credentials token).KROGER_CLIENT_IDKROGER_CLIENT_SECRETOptional:
KROGER_REDIRECT_URI (default: http://localhost:8765/callback)KROGER_CLIENT_SCOPE (default: product.compact location.compact)KROGER_CART_PATH (default: /v1/cart/add)node "$SKILL_DIR/kroger.mjs" oauth auth-url --scopes "cart.basic profile.compact product.compact" --open
Then exchange returned code:
node "$SKILL_DIR/kroger.mjs" oauth exchange-code --code "<AUTH_CODE>" --redirect-uri "<REDIRECT_URI>"
node "$SKILL_DIR/kroger.mjs" locations search --zip 45140 --radius 20 --limit 5
or
node "$SKILL_DIR/kroger.mjs" locations search --lat 39.259 --lon -84.265 --limit 5
node "$SKILL_DIR/kroger.mjs" products search --term "fat free milk" --location-id 01400943 --limit 5
node "$SKILL_DIR/kroger.mjs" cart add --upc 0001111060903 --qty 1 --modality DELIVERY
node "$SKILL_DIR/kroger.mjs" cart start --location-id 01400943 --terms "milk,eggs,bread" --qty 1 --modality DELIVERY
oauth auth-url / oauth exchange-code if needed).cart add or cart start.~/.flux/kroger-session.json by default.