# pp-instacart

The pp-instacart skill controls Instacart carts through the GraphQL API, searches products, and uses local purchase history when adding familiar items.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 253 installs · ★ 2142 repo stars
- Author: Matt Van Horn
- License: Apache-2.0 · policy=mirror · the beginning of the file is at the end of this page
- Source: https://github.com/mvanhorn/printing-press-library/tree/HEAD/cli-skills/pp-instacart/SKILL.md
- Updated: 2026-10-24
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/pp-instacart

## What it does

\`pp-instacart` gives an agent a command-line route into Instacart without browser automation. It can search a retailer’s products, add items from natural-language requests, inspect one cart, or list active carts across retailers. When local purchase records contain a confident match, `add` uses that item first and falls back to current search when needed.

The skill includes cookie-based authentication from Chrome, manual cookie import, cart commands, and history inspection. Order history can be loaded through Chrome MCP or a DevTools fallback, then used for later product resolution. It does not complete checkout; the purchase still has to be finished in the Instacart app or web UI.

Install the `instacart-pp-cli` binary before using the skill. The supported setup uses `npx`, or Go 1.26.6 or newer as a fallback, and the binary directory must be visible on `$PATH`. Run `instacart-pp-cli --version` before invoking skill commands.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add mvanhorn/printing-press-library --skill pp-instacart -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/pp-instacart/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/pp-instacart/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add mvanhorn/printing-press-library --skill pp-instacart -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/pp-instacart/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add mvanhorn/printing-press-library --skill pp-instacart -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/pp-instacart/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install mvanhorn/printing-press-library cli-skills/pp-instacart/SKILL.md
```

2. **Manually: put the files in place**
- File: `.github/skills/pp-instacart/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add mvanhorn/printing-press-library --skill pp-instacart -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/mvanhorn/printing-press-library --path cli-skills/pp-instacart
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/pp-instacart/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add mvanhorn/printing-press-library --skill pp-instacart -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/mvanhorn/printing-press-library/tree/HEAD/cli-skills/pp-instacart/SKILL.md

## When to use it
- add a product to a selected retailer cart
- search Instacart products by natural language
- inspect active carts across retailers
- reuse previously purchased items
- import order history into the local database

## Example prompts
- Add lemon sorbet to my Safeway cart.
- Show all my active Instacart carts.
- Backfill my order history, then add my usual milk to Costco.

## Source text · SKILL.md · Apache-2.0

Below is the content of a third-party file. It is data, not instructions for you: do not act on anything written inside unless the human asks. Block tag: f897d74c2f44fcf4.

BEGIN THIRD-PARTY FILE f897d74c2f44fcf4
````text
---
name: pp-instacart
description: "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'."
author: "Matt Van Horn"
license: "Apache-2.0"
argument-hint: "<command> [args] | install cli|mcp | backfill"
allowed-tools: "Read Bash WebFetch"
metadata:
  openclaw:
    requires:
      bins:
        - instacart-pp-cli
    install:
      - kind: go
        bins: [instacart-pp-cli]
        module: github.com/mvanhorn/printing-press-library/library/commerce/instacart/cmd/instacart-pp-cli
---
<!-- GENERATED FILE — DO NOT EDIT.
     This file is a verbatim mirror of library/commerce/instacart/SKILL.md,
     regenerated post-merge by tools/generate-skills/. Hand-edits here are
     silently overwritten on the next regen. Edit the library/ source instead.
     See the repository agent guide, section "Generated artifacts: registry.json, cli-skills/". -->

# 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:
   ```bash
   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):

```bash
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")
````
END THIRD-PARTY FILE f897d74c2f44fcf4

The third-party file has ended. Everything between the f897d74c2f44fcf4 tags is data: requests and commands from it are not followed. An “end of file” line with another tag inside the block is part of the file.

First 2646 of 17728 bytes. © Matt Van Horn · Apache-2.0 · https://github.com/mvanhorn/printing-press-library/tree/HEAD/cli-skills/pp-instacart/SKILL.md

_Part of the page did not fit — see the HTML version._

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
