Sorting groceries

From oaustegard/claude-skills · View interactive version

Sorting groceries is an AI agent skill from the GitHub repository oaustegard/claude-skills. Sort grocery lists by aisle order using store aisle sign photos. Build aisle maps from uploaded images, match items to aisles, and output optimized shopping routes. Use when users upload aisle sign photos, request grocery list sorting, want shopping trip optimization, need store layout mapping, or m

How to use this skill

Skill file

Sorting Groceries by Aisle

Sort a user's grocery list by aisle order so they can walk the store in one efficient pass, no backtracking.

When Triggered

Activate when user:

Inputs

Two inputs are needed. Prompt for whichever is missing:

  1. Aisle sign images — Photos of aisle markers, hanging signs, or endcap labels. Each typically shows an aisle number and category keywords (e.g., "Aisle 5: Coffee, Tea, Cocoa").
  2. Grocery list — Text, pasted note, or photo of a handwritten list. Any format.

Building the Aisle Map

Read each uploaded aisle sign image for its aisle number (or label, e.g. "A5")

and category text exactly as printed (e.g., "Pasta, Sauces, Canned

Vegetables"). Compile into a structured map:

Aisle 1: Bread, Bakery Items, Tortillas
Aisle 2: Cereal, Breakfast, Granola Bars
Aisle 3: Pasta, Sauces, Canned Goods
...

If an image is blurry or partially unreadable, note what was legible and flag

uncertainty rather than guessing.

Perimeter Zones

Grocery stores also have unnumbered perimeter sections. Use the user's own

signage wherever their photos cover it; otherwise fall back to this typical

layout, run counterclockwise from the entrance:

| Zone | Typical items |

|------|---------------|

| Produce | Fresh fruits, vegetables, herbs, salad mixes |

| Deli | Sliced meats, prepared foods, rotisserie chicken |

| Bakery | Fresh bread, cakes, pastries (distinct from packaged bread aisle) |

| Dairy | Milk, cheese, yogurt, butter, eggs |

| Meat & Seafood | Fresh/frozen meat, poultry, fish |

| Frozen | Frozen meals, ice cream, frozen vegetables |

Typical flow: Produce → Deli/Bakery → Meat/Seafood → Dairy → Frozen.

Matching Items to Aisles

Parse every item from the user's list, preserving their original wording

alongside any normalized form (e.g. "parm" → parmesan cheese; "2 lbs chicken

breast" → chicken breast, 2 lbs). Match each item to the aisle or perimeter

zone its category text best fits. When an item could plausibly sit in more

than one place (honey: baking vs. condiments), assign the most likely one and

add a note rather than guessing silently — see Multi-Aisle Items below. An

item that matches nothing goes to "couldn't place" rather than being forced

into a guessed aisle.

Output

Present the final list grouped by aisle in store-walk order:

🛒 Sorted Shopping List — [Store Name if known]

PRODUCE
  □ bananas
  □ baby spinach
  □ 3 avocados

AISLE 1 — Bread, Bakery Items, Tortillas
  □ whole wheat bread
  □ flour tortillas

AISLE 2 — Cereal, Breakfast, Granola Bars
  □ oatmeal
  □ granola bars

AISLE 3 — Pasta, Sauces, Canned Goods
  □ spaghetti
  □ marinara sauce
  □ canned black beans

...

DAIRY
  □ 2% milk
  □ shredded mozzarella
  □ eggs (1 dozen)

⚠️ COULDN'T PLACE
  □ birthday candles — not enough aisle info to determine location

Output Formatting Rules

Multi-Aisle Items

Some items legitimately live in multiple locations. When this occurs:

Handling Ambiguity

Store Layout Reuse

If the user mentions they shop at this store regularly:

📍 [Store Name] Aisle Map
Aisle 1: Bread, Bakery Items, Tortillas
Aisle 2: Cereal, Breakfast, Granola Bars
...
Produce | Deli/Bakery | Meat & Seafood | Dairy | Frozen
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.