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:
- Uploads photos of grocery store aisle signs or markers
- Provides a grocery/shopping list alongside store layout info
- Asks to sort, organize, or optimize a shopping list by aisle
- Mentions aisle numbers, store maps, or shopping routes
Inputs
Two inputs are needed. Prompt for whichever is missing:
- 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").
- Grocery list — Text, pasted note, or photo of a handwritten list. Any format.
Core Workflow
Step 1: Build the Aisle Map
Read each uploaded aisle sign image. Extract:
- Aisle number (or label like "A5", "Aisle 12")
- Category descriptions 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.
Step 2: Identify Perimeter Zones
Grocery stores have perimeter sections without numbered aisles. Infer these from context or common knowledge when not covered by the uploaded signs:
| 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 |
Position perimeter zones in typical store flow: Produce → Deli/Bakery → Meat/Seafood → Dairy → Frozen (usually along the store's outer walls, counterclockwise from entrance).
If the user's aisle photos already include these sections, use the actual signage instead of defaults.
Step 3: Parse the Grocery List
Extract every item from the user's list. Normalize:
- "2 lbs chicken breast" → item: chicken breast, quantity: 2 lbs
- "eggs" → item: eggs, quantity: (unspecified)
- "parm" → item: parmesan cheese
Preserve the user's original wording alongside any normalized form.
Step 4: Match Items to Aisles
For each grocery item, find the best aisle match:
- Direct keyword match — Item name appears in or closely matches an aisle's category text (e.g., "pasta" → "Aisle 3: Pasta, Sauces")
- Category inference — Item belongs to a category listed on a sign (e.g., "marinara" → "Aisle 3: Sauces")
- Perimeter zone match — Item is a fresh/perishable product that lives on the store perimeter (e.g., "bananas" → Produce)
- Best guess with note — Item could plausibly be in multiple aisles. Assign the most likely one and add a note (e.g., "honey — Aisle 4: Baking, but may also be in Aisle 7: Condiments")
Step 5: Output the Sorted List
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
- Use checkbox format (
□) so the list is easy to use on a phone
- Include the aisle's category description next to the aisle number for quick reference
- Keep the user's quantities and notes attached to each item
- Perimeter zones go in logical store-walk order (Produce first, Frozen/Dairy last)
- Numbered aisles go in ascending order between the perimeter zones
- Unmatched items go at the end under a clear "couldn't place" heading
Multi-Aisle Items
Some items legitimately live in multiple locations. When this occurs:
- Place the item in the most common aisle for that store's layout
- Add a parenthetical note: "(also check Aisle 7)"
- Common examples: honey (baking vs condiments), tortilla chips (snacks vs Hispanic foods), butter (dairy vs baking)
Handling Ambiguity
- Blurry/unreadable signs: Note which aisles had unclear text. Ask user to confirm if critical items might be affected.
- Store-brand categories: Some stores use unusual groupings ("International Foods" might contain pasta in one store). Trust the sign text over assumptions.
- Missing aisles: If user uploaded signs for aisles 1-5 and 8-12 but not 6-7, note the gap. Items that don't match any uploaded aisle go to "couldn't place" rather than being guessed into missing aisles.
Store Layout Reuse
If the user mentions they shop at this store regularly:
- Present the aisle map as a clean reference they can save
- Suggest they can reuse it in future conversations by pasting just the map text instead of re-uploading photos
- Format the reusable map clearly:
📍 [Store Name] Aisle Map
Aisle 1: Bread, Bakery Items, Tortillas
Aisle 2: Cereal, Breakfast, Granola Bars
...
Produce | Deli/Bakery | Meat & Seafood | Dairy | Frozen
1---
2name: sorting-groceries
3description: 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 mention grocery list organization.
4metadata:
5 source: https://skillmd.com/skills/majiayu000/sorting-groceries
6 version: 0.1.0
7---
8
9# Sorting Groceries by Aisle
10
11Sort a user's grocery list by aisle order so they can walk the store in one efficient pass, no backtracking.
12
13## When Triggered
14
15Activate when user:
16- Uploads photos of grocery store aisle signs or markers
17- Provides a grocery/shopping list alongside store layout info
18- Asks to sort, organize, or optimize a shopping list by aisle
19- Mentions aisle numbers, store maps, or shopping routes
20
21## Inputs
22
23Two inputs are needed. Prompt for whichever is missing:
24
251. **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").
262. **Grocery list** — Text, pasted note, or photo of a handwritten list. Any format.
27
28## Core Workflow
29
30### Step 1: Build the Aisle Map
31
32Read each uploaded aisle sign image. Extract:
33- **Aisle number** (or label like "A5", "Aisle 12")
34- **Category descriptions** exactly as printed (e.g., "Pasta, Sauces, Canned Vegetables")
35
36Compile into a structured map:
37
38```
39Aisle 1: Bread, Bakery Items, Tortillas
40Aisle 2: Cereal, Breakfast, Granola Bars
41Aisle 3: Pasta, Sauces, Canned Goods
42...
43```
44
45If an image is blurry or partially unreadable, note what was legible and flag uncertainty.
46
47### Step 2: Identify Perimeter Zones
48
49Grocery stores have perimeter sections without numbered aisles. Infer these from context or common knowledge when not covered by the uploaded signs:
50
51| Zone | Typical items |
52|------|---------------|
53| **Produce** | Fresh fruits, vegetables, herbs, salad mixes |
54| **Deli** | Sliced meats, prepared foods, rotisserie chicken |
55| **Bakery** | Fresh bread, cakes, pastries (distinct from packaged bread aisle) |
56| **Dairy** | Milk, cheese, yogurt, butter, eggs |
57| **Meat & Seafood** | Fresh/frozen meat, poultry, fish |
58| **Frozen** | Frozen meals, ice cream, frozen vegetables |
59
60Position perimeter zones in typical store flow: **Produce → Deli/Bakery → Meat/Seafood → Dairy → Frozen** (usually along the store's outer walls, counterclockwise from entrance).
61
62If the user's aisle photos already include these sections, use the actual signage instead of defaults.
63
64### Step 3: Parse the Grocery List
65
66Extract every item from the user's list. Normalize:
67- "2 lbs chicken breast" → item: **chicken breast**, quantity: 2 lbs
68- "eggs" → item: **eggs**, quantity: (unspecified)
69- "parm" → item: **parmesan cheese**
70
71Preserve the user's original wording alongside any normalized form.
72
73### Step 4: Match Items to Aisles
74
75For each grocery item, find the best aisle match:
76
771. **Direct keyword match** — Item name appears in or closely matches an aisle's category text (e.g., "pasta" → "Aisle 3: Pasta, Sauces")
782. **Category inference** — Item belongs to a category listed on a sign (e.g., "marinara" → "Aisle 3: Sauces")
793. **Perimeter zone match** — Item is a fresh/perishable product that lives on the store perimeter (e.g., "bananas" → Produce)
804. **Best guess with note** — Item could plausibly be in multiple aisles. Assign the most likely one and add a note (e.g., "honey — Aisle 4: Baking, but may also be in Aisle 7: Condiments")
81
82### Step 5: Output the Sorted List
83
84Present the final list grouped by aisle in store-walk order:
85
86```
87🛒 Sorted Shopping List — [Store Name if known]
88
89PRODUCE
90 □ bananas
91 □ baby spinach
92 □ 3 avocados
93
94AISLE 1 — Bread, Bakery Items, Tortillas
95 □ whole wheat bread
96 □ flour tortillas
97
98AISLE 2 — Cereal, Breakfast, Granola Bars
99 □ oatmeal
100 □ granola bars
101
102AISLE 3 — Pasta, Sauces, Canned Goods
103 □ spaghetti
104 □ marinara sauce
105 □ canned black beans
106
107...
108
109DAIRY
110 □ 2% milk
111 □ shredded mozzarella
112 □ eggs (1 dozen)
113
114⚠️ COULDN'T PLACE
115 □ birthday candles — not enough aisle info to determine location
116```
117
118## Output Formatting Rules
119
120- Use checkbox format (`□`) so the list is easy to use on a phone
121- Include the aisle's category description next to the aisle number for quick reference
122- Keep the user's quantities and notes attached to each item
123- Perimeter zones go in logical store-walk order (Produce first, Frozen/Dairy last)
124- Numbered aisles go in ascending order between the perimeter zones
125- Unmatched items go at the end under a clear "couldn't place" heading
126
127## Multi-Aisle Items
128
129Some items legitimately live in multiple locations. When this occurs:
130- Place the item in the **most common** aisle for that store's layout
131- Add a parenthetical note: "(also check Aisle 7)"
132- Common examples: honey (baking vs condiments), tortilla chips (snacks vs Hispanic foods), butter (dairy vs baking)
133
134## Handling Ambiguity
135
136- **Blurry/unreadable signs**: Note which aisles had unclear text. Ask user to confirm if critical items might be affected.
137- **Store-brand categories**: Some stores use unusual groupings ("International Foods" might contain pasta in one store). Trust the sign text over assumptions.
138- **Missing aisles**: If user uploaded signs for aisles 1-5 and 8-12 but not 6-7, note the gap. Items that don't match any uploaded aisle go to "couldn't place" rather than being guessed into missing aisles.
139
140## Store Layout Reuse
141
142If the user mentions they shop at this store regularly:
143- Present the aisle map as a clean reference they can save
144- Suggest they can reuse it in future conversations by pasting just the map text instead of re-uploading photos
145- Format the reusable map clearly:
146
147```
148📍 [Store Name] Aisle Map
149Aisle 1: Bread, Bakery Items, Tortillas
150Aisle 2: Cereal, Breakfast, Granola Bars
151...
152Produce | Deli/Bakery | Meat & Seafood | Dairy | Frozen
153```