Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

pp-instacart

БесплатноЗапускает вложенные скриптыНе проверен

Printing Press CLI for Instacart. Natural-language Instacart CLI that talks directly to the web GraphQL API. Add items to your cart, search products, and…

mvanhornот mvanhorn★ 2 170 звёзд на GitHub

Об этом скилле

Instacart - Printing Press CLI

Prerequisites: Install the CLI

This skill drives the instacart-pp-cli binary. You must verify the CLI is installed before invoking any command from this skill. If it is missing, install it first:

  1. Install via the Printing Press installer. It defaults binaries to $HOME/.local/bin on macOS/Linux and %LOCALAPPDATA%\Programs\PrintingPress\bin on Windows:
    npx -y @mvanhorn/printing-press-library install instacart --cli-only
    
  2. Verify: instacart-pp-cli --version
  3. Ensure the reported install directory is on $PATH for the agent/runtime that will invoke this skill.

If the npx install fails (no Node, offline, etc.), fall back to a direct Go install (requires Go 1.26.6 or newer):

go install github.com/mvanhorn/printing-press-library/library/commerce/instacart/cmd/instacart-pp-cli@latest

If --version reports "command not found" after install, the runtime cannot see the binary directory on $PATH. Do not proceed with skill commands until verification succeeds.

When to Use This CLI

Reach for this when a user wants:

  • Add a product to an Instacart cart by natural language ("add lemon sorbet to QFC")
  • Add something they have bought before ("add my usual milk to Safeway")
  • Show, search, or compare their active carts across retailers
  • List or search their own Instacart order history
  • Run an Instacart flow from a script, cron job, or agent loop

Do not reach for this if the user wants to actually check out. This CLI adds items to your cart; you still complete checkout in the Instacart app or web UI.

Unique Capabilities

History-first add

add checks your local purchase history FIRST and, when a confident match exists at the target retailer, skips the three-call live GraphQL chain entirely. Drops the cost of "add the lemon sorbet pops I usually get" from ~1.2s to ~200ms AND makes it resolve to the right SKU (the one you actually buy) instead of whatever live search ranks highest today.

Confidence rules:

  • FTS5 match in your local purchased_items at that retailer
  • Purchased within the last 365 days
  • Was in stock on the last purchase

Falls through to today's live-search behavior when any condition fails. Pass --no-history to force live search.

Every successful add (history-resolved or live-resolved) writes back to purchased_items so the signal gets warmer without a full re-sync.

One-command history backfill

Typing "backfill my instacart orders" (or similar, see Argument Parsing) kicks off a Chrome-MCP-driven flow that walks the user's logged-in Instacart tab, extracts their order history into JSONL, and imports it into the local DB. After backfill, add resolves from real purchase history instead of live-search guesses.

Primary path: Chrome MCP. Fallback: paste three JS files into DevTools by hand.

Full walkthrough below under "Backfill Flow". Reference docs with more detail:

history list / history search / history stats inspect whatever has been loaded.

Instacart does not expose a clean order-history GraphQL op, so the legacy history sync command cannot work. See docs/solutions/best-practices/instacart-orders-no-clean-graphql-op.md for why.

Natural-language add

Resolves a product from free-text via Instacart's own three-call GraphQL chain (ShopCollectionScoped -> Autosuggestions -> Items) and fires UpdateCartItemsMutation. No browser automation.

When Instacart rejects a candidate with notFoundBasketProduct (autosuggest occasionally surfaces a product that is not addable at your active cart's shop), add automatically retries up to 3 ranked candidates before giving up. In --json output a successful retry sets retry_count > 0 and includes an attempts array listing the rejected item ids. When history-first resolution hits the same error, add falls through to live search and reports resolved_via: "history->live".

Multi-retailer carts

carts list shows every active cart across retailers at once. Useful for agents that need to know where items live before adding to the right one.

Command Reference

Authentication:

  • instacart auth login - extract session cookies from Chrome
  • instacart auth status - show current session state
  • instacart auth logout - clear saved cookies
  • instacart auth paste - paste cookie JSON manually (fallback for newer macOS Chrome)
  • instacart auth import-file <path> - load cookies from a browser-use export JSON

Cart operations:

Полный SKILL.md на GitHub

Установить pp-instacart в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Read
Bash
WebFetch

Вложенные файлы

.printing-press-patches/.gitkeep.printing-press-patches/cart-show-and-search-report-live-availability-from-items.json.printing-press-patches/catalog-go-1264-vuln-floor.json.printing-press-patches/catalog-go-1265-vuln-floor.json.printing-press-patches/fix-instacart-location-config-546.json.printing-press-patches/fix-shop-collection-coordinates.json.printing-press-patches/instacart-address-profiles.json.printing-press-patches/instacart-regional-host-is-configurable.json.printing-press-patches/stampable-runtime-version-literal.json.printing-press-release.json.printing-press.jsonAGENTS.mdCHANGELOG.mdNOTICEREADME.mdcmd/instacart-pp-cli/main.godocs/backfill-devtools-fallback.mddocs/backfill-walkthrough.mddocs/dumper.jsdocs/export-jsonl.jsdocs/extract-one.jsdocs/history-ops-capture.mddocs/plans/2026-04-11-001-feat-instacart-nl-search-plan.mdgo.modgo.suminternal/auth/auth.gointernal/auth/host.gointernal/auth/host_test.gointernal/cli/add.gointernal/cli/add_emit_test.gointernal/cli/add_history_test.gointernal/cli/add_retry.gointernal/cli/add_retry_test.gointernal/cli/auth.gointernal/cli/capture.gointernal/cli/carts.gointernal/cli/config.gointernal/cli/config_host.gointernal/cli/doctor.gointernal/cli/history.go

FAQ

Что делает скилл pp-instacart?

Printing Press CLI for Instacart. Natural-language Instacart CLI that talks directly to the web GraphQL API. Add items to your cart, search products, and manage carts across retailers without browser automation. Also caches your purchase history locally so 'add' resolves items you have bought before instead of guessing from live search. Trigger phrases: 'install instacart', 'use instacart', 'run instacart', 'add X to my Safeway cart', 'what did I buy last time', 'order the usual', 'add my regulars to Costco', 'backfill my instacart history', 'sync my instacart orders', 'download my order history', 'save my instacart history locally'.

Как установить скилл pp-instacart?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл pp-instacart запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить pp-instacart с