/product-data-cleanup — Product Data Normalizer
Takes a messy FF&E schedule and normalizes everything: casing, dimensions, units, language, materials vocabulary, currency formatting, and duplicates. Outputs a clean, consistent, spec-ready schedule.
Operates on the master Google Sheet — the same 33-column schema used by all product skills. Also works on standalone CSV files and pasted tables.
Input
The user provides a schedule in one of these ways:
- Master Google Sheet — the shared product library. Provide spreadsheet ID or URL.
- File path — a
.csv, .tsv, .xlsx export, or .md file
- Pasted table — markdown or tab-separated data in the message
If the input format is unclear, ask.
Cleanup Rules
1. Casing
| Field |
Rule |
Example |
| Product Name |
Title Case |
eames lounge chair → Eames Lounge Chair |
| Brand |
Title Case, preserve known abbreviations |
HERMAN MILLER → Herman Miller, HAY → HAY |
| Collection |
Title Case |
cosm → Cosm |
| Category |
Title Case, singular |
chairs → Chair, TABLES → Table |
| Materials |
Sentence case, lowercase after first word |
MOLDED PLYWOOD, FULL GRAIN LEATHER → Molded plywood, full grain leather |
| Colors/Finishes |
Title Case per item |
walnut/black leather → Walnut / Black Leather |
Known brand abbreviations to preserve: HAY, USM, B&B, DWR, CB2, HBF, OFS, SitOnIt, 3form, ICF
2. Category Normalization
Map free-text categories to the canonical vocabulary and alias table defined in ../../schema/product-schema.md. Read that file for the full mapping of variations (English, Spanish, legacy terms) to canonical category names.
If a category is ambiguous, keep the closest match and add a [?] flag for the user to review.
3. Dimensions
Splitting combined dimensions:
| Input |
→ W |
→ D |
→ H |
→ Unit |
32 x 24 x 30 in |
32 |
24 |
30 |
in |
80 × 60 × 75 cm |
80 |
60 |
75 |
cm |
W32 D24 H30 |
32 |
24 |
30 |
(infer) |
32"W x 24"D x 30"H |
32 |
24 |
30 |
in |
Ancho: 80, Prof: 60, Alto: 75 cm |
80 |
60 |
75 |
cm |
Dimension rules:
- Always store as separate W, D, H columns with a Unit column
- If dimensions are already split, validate they're numeric (strip any unit text from the number)
- Interpret
" as inches, ' as feet (convert to inches: 2'6" → 30)
- Accept
×, x, X, by, por as separators
- Convention: W × D × H (width × depth × height). If only 2 values, ask which is missing.
- Round to 2 decimal places max
- If unit is missing but values suggest inches (all < 100 for furniture), assume
in. If values suggest cm (> 100 or explicit), use cm. If truly ambiguous, flag with [?].
Do NOT convert units. Keep the original unit. Designers need the manufacturer's spec for ordering.
4. Language Normalization
Detect the language of each field value and normalize to English unless the user specifies otherwise.
| Spanish (common in UY sources) |
→ English |
| Silla |
Chair (category) |
| Mesa |
Table (category) |
| Escritorio |
Desk (category) |
| Madera |
Wood (material) |
| Cuero |
Leather (material) |
| Acero |
Steel (material) |
| Vidrio |
Glass (material) |
| Tela |
Fabric (material) |
| Mármol |
Marble (material) |
| Roble |
Oak (material) |
| Nogal |
Walnut (material) |
| Blanco |
White (color) |
| Negro |
Black (color) |
| Natural |
Natural (keep as-is) |
| Cromado |
Chrome (finish) |
Rule: Translate category, material, and color/finish fields. Leave Product Name and Brand as-is (proper nouns).
If the user says "keep in Spanish" or specifies a target language, respect that.
5. Materials & Finishes Vocabulary
Standardize common material terms:
| Variations |
→ Standard |
| SS, Stainless, S/S |
Stainless steel |
| Ply, Plywood, Mold ply |
Molded plywood |
| MDF, Medium density |
MDF |
| HPL, High pressure laminate |
HPL |
| Lam, Laminate |
Laminate |
| Fab, Textile |
Fabric |
| COM, C.O.M. |
COM (Customer's Own Material) |
| COL, C.O.L. |
COL (Customer's Own Leather) |
| Powder coat, PC, Pwdr |
Powder-coated |
| Chrm, Chrome plated |
Chrome |
| Anodized alum, Anod. |
Anodized aluminum |
| Ven, Veneer |
Veneer |
| Sol. wood, Solid |
Solid wood |
6. Price & Currency
- Strip currency symbols (
$, €, £, ¥) — store symbol as currency code in separate column
- Remove thousands separators (both
. and , — detect locale: 1.234,56 is EU format, 1,234.56 is US)
- Store as plain decimal number:
5695.00
- If price says "Contact", "Quote", "Trade", "A consultar", "Consultar" → set to empty
- Currency detection:
$ alone defaults to USD unless context suggests otherwise (UY site → UYU, EU site → EUR)
- If a schedule mixes currencies, keep each row's original currency. Add a note at the top.
7. Duplicate Detection
- Flag rows with identical Product Name + Brand as potential duplicates
- Flag rows with identical URL as definite duplicates
- Don't auto-delete — present duplicates to the user and ask what to keep
8. Whitespace & Formatting
- Trim leading/trailing whitespace from all fields
- Collapse multiple spaces to single space
- Remove line breaks within field values
- Normalize list separators:
wood / metal / glass → Wood, Metal, Glass (comma-separated)
- Remove trailing commas or semicolons
Workflow
Step 1: Load the schedule
Read the input. Report: "Loaded N rows with M columns."
Map input columns to the canonical schema. If column mapping is ambiguous (e.g., a column called "Size" could be combined dimensions), ask the user.
Step 2: Analyze issues
Scan all rows and produce a summary:
## Cleanup Preview
- **Casing**: X product names need Title Case
- **Categories**: Y rows have non-standard categories (mapping: "chairs" → Seating, etc.)
- **Dimensions**: Z rows have combined dimensions to split
- **Language**: W rows have Spanish-language fields to translate
- **Materials**: V rows have non-standard material terms
- **Prices**: U rows need currency formatting cleanup
- **Duplicates**: T potential duplicate rows found
- **Empty fields**: S rows missing dimensions, R rows missing price
Step 3: Confirm scope
Ask: "Apply all fixes, or select which ones?"
If the user wants to be selective, let them pick from the list. Otherwise, apply all.
Step 4: Apply fixes
Process every row through the active cleanup rules. Track every change made.
Step 5: Present results
Show a before/after diff for a sample of changed rows (up to 5 examples). Then show the full cleaned table.
Report:
## Cleanup Complete
- Rows processed: N
- Changes made: X
- Flagged for review: Y (marked with [?])
Step 6: Save
Ask: "Save where?"
Options:
- Overwrite original file (if local file input)
- Save as new file (default: append
-clean to filename)
- Write to Google Sheet (same sheet or new one)
- Just show the table — leave in conversation
Edge Cases
- Mixed-language schedule: Detect dominant language per column, normalize to one language
- Merged cells or irregular formatting: Flag and ask user how to handle
- Extra columns not in schema: Preserve them as-is at the end, don't delete
- Empty rows: Remove silently
- Header detection: Auto-detect header row (first row with text that matches known field names). If uncertain, ask.
1---2name: product-data-cleanup3description: Clean up an FF&E schedule — normalize casing, dimensions, units, language, materials, and formatting for consistency.4---5
6# /product-data-cleanup — Product Data Normalizer
7
8Takes a messy FF&E schedule and normalizes everything: casing, dimensions, units, language, materials vocabulary, currency formatting, and duplicates. Outputs a clean, consistent, spec-ready schedule.
9
10Operates on the **master Google Sheet** — the same 33-column schema used by all product skills. Also works on standalone CSV files and pasted tables.
11
12## Input
13
14The user provides a schedule in one of these ways:
15
161. **Master Google Sheet** — the shared product library. Provide spreadsheet ID or URL.
172. **File path** — a `.csv`, `.tsv`, `.xlsx` export, or `.md` file
183. **Pasted table** — markdown or tab-separated data in the message
19
20If the input format is unclear, ask.
21
22## Cleanup Rules
23
24### 1. Casing
25
26| Field | Rule | Example |
27|-------|------|---------|
28| Product Name | Title Case | `eames lounge chair` → `Eames Lounge Chair` |
29| Brand | Title Case, preserve known abbreviations | `HERMAN MILLER` → `Herman Miller`, `HAY` → `HAY` |
30| Collection | Title Case | `cosm` → `Cosm` |
31| Category | Title Case, singular | `chairs` → `Chair`, `TABLES` → `Table` |
32| Materials | Sentence case, lowercase after first word | `MOLDED PLYWOOD, FULL GRAIN LEATHER` → `Molded plywood, full grain leather` |
33| Colors/Finishes | Title Case per item | `walnut/black leather` → `Walnut / Black Leather` |
34
35**Known brand abbreviations to preserve**: HAY, USM, B&B, DWR, CB2, HBF, OFS, SitOnIt, 3form, ICF
36
37### 2. Category Normalization
38
39Map free-text categories to the canonical vocabulary and alias table defined in `../../schema/product-schema.md`. Read that file for the full mapping of variations (English, Spanish, legacy terms) to canonical category names.
40
41If a category is ambiguous, keep the closest match and add a `[?]` flag for the user to review.
42
43### 3. Dimensions
44
45**Splitting combined dimensions:**
46| Input | → W | → D | → H | → Unit |
47|-------|-----|-----|-----|--------|
48| `32 x 24 x 30 in` | 32 | 24 | 30 | in |
49| `80 × 60 × 75 cm` | 80 | 60 | 75 | cm |
50| `W32 D24 H30` | 32 | 24 | 30 | (infer) |
51| `32"W x 24"D x 30"H` | 32 | 24 | 30 | in |
52| `Ancho: 80, Prof: 60, Alto: 75 cm` | 80 | 60 | 75 | cm |
53
54**Dimension rules:**
55- Always store as **separate W, D, H columns** with a **Unit column**
56- If dimensions are already split, validate they're numeric (strip any unit text from the number)
57- Interpret `"` as inches, `'` as feet (convert to inches: `2'6"` → `30`)
58- Accept `×`, `x`, `X`, `by`, `por` as separators
59- Convention: W × D × H (width × depth × height). If only 2 values, ask which is missing.
60- Round to 2 decimal places max
61- If unit is missing but values suggest inches (all < 100 for furniture), assume `in`. If values suggest cm (> 100 or explicit), use `cm`. If truly ambiguous, flag with `[?]`.
62
63**Do NOT convert units.** Keep the original unit. Designers need the manufacturer's spec for ordering.
64
65### 4. Language Normalization
66
67Detect the language of each field value and normalize to **English** unless the user specifies otherwise.
68
69| Spanish (common in UY sources) | → English |
70|-------------------------------|-----------|
71| Silla | Chair (category) |
72| Mesa | Table (category) |
73| Escritorio | Desk (category) |
74| Madera | Wood (material) |
75| Cuero | Leather (material) |
76| Acero | Steel (material) |
77| Vidrio | Glass (material) |
78| Tela | Fabric (material) |
79| Mármol | Marble (material) |
80| Roble | Oak (material) |
81| Nogal | Walnut (material) |
82| Blanco | White (color) |
83| Negro | Black (color) |
84| Natural | Natural (keep as-is) |
85| Cromado | Chrome (finish) |
86
87**Rule:** Translate category, material, and color/finish fields. Leave Product Name and Brand as-is (proper nouns).
88
89If the user says "keep in Spanish" or specifies a target language, respect that.
90
91### 5. Materials & Finishes Vocabulary
92
93Standardize common material terms:
94
95| Variations | → Standard |
96|-----------|------------|
97| SS, Stainless, S/S | Stainless steel |
98| Ply, Plywood, Mold ply | Molded plywood |
99| MDF, Medium density | MDF |
100| HPL, High pressure laminate | HPL |
101| Lam, Laminate | Laminate |
102| Fab, Textile | Fabric |
103| COM, C.O.M. | COM (Customer's Own Material) |
104| COL, C.O.L. | COL (Customer's Own Leather) |
105| Powder coat, PC, Pwdr | Powder-coated |
106| Chrm, Chrome plated | Chrome |
107| Anodized alum, Anod. | Anodized aluminum |
108| Ven, Veneer | Veneer |
109| Sol. wood, Solid | Solid wood |
110
111### 6. Price & Currency
112
113- Strip currency symbols (`$`, `€`, `£`, `¥`) — store symbol as currency code in separate column
114- Remove thousands separators (both `.` and `,` — detect locale: `1.234,56` is EU format, `1,234.56` is US)
115- Store as plain decimal number: `5695.00`
116- If price says "Contact", "Quote", "Trade", "A consultar", "Consultar" → set to empty
117- Currency detection: `$` alone defaults to `USD` unless context suggests otherwise (UY site → `UYU`, EU site → `EUR`)
118- If a schedule mixes currencies, keep each row's original currency. Add a note at the top.
119
120### 7. Duplicate Detection
121
122- Flag rows with identical Product Name + Brand as potential duplicates
123- Flag rows with identical URL as definite duplicates
124- Don't auto-delete — present duplicates to the user and ask what to keep
125
126### 8. Whitespace & Formatting
127
128- Trim leading/trailing whitespace from all fields
129- Collapse multiple spaces to single space
130- Remove line breaks within field values
131- Normalize list separators: `wood / metal / glass` → `Wood, Metal, Glass` (comma-separated)
132- Remove trailing commas or semicolons
133
134## Workflow
135
136### Step 1: Load the schedule
137Read the input. Report: "Loaded N rows with M columns."
138Map input columns to the canonical schema. If column mapping is ambiguous (e.g., a column called "Size" could be combined dimensions), ask the user.
139
140### Step 2: Analyze issues
141Scan all rows and produce a summary:
142```
143## Cleanup Preview
144
145- **Casing**: X product names need Title Case
146- **Categories**: Y rows have non-standard categories (mapping: "chairs" → Seating, etc.)
147- **Dimensions**: Z rows have combined dimensions to split
148- **Language**: W rows have Spanish-language fields to translate
149- **Materials**: V rows have non-standard material terms
150- **Prices**: U rows need currency formatting cleanup
151- **Duplicates**: T potential duplicate rows found
152- **Empty fields**: S rows missing dimensions, R rows missing price
153```
154
155### Step 3: Confirm scope
156Ask: **"Apply all fixes, or select which ones?"**
157
158If the user wants to be selective, let them pick from the list. Otherwise, apply all.
159
160### Step 4: Apply fixes
161Process every row through the active cleanup rules. Track every change made.
162
163### Step 5: Present results
164Show a **before/after diff** for a sample of changed rows (up to 5 examples). Then show the full cleaned table.
165
166Report:
167```
168## Cleanup Complete
169
170- Rows processed: N
171- Changes made: X
172- Flagged for review: Y (marked with [?])
173```
174
175### Step 6: Save
176Ask: **"Save where?"**
177Options:
178- **Overwrite original file** (if local file input)
179- **Save as new file** (default: append `-clean` to filename)
180- **Write to Google Sheet** (same sheet or new one)
181- **Just show the table** — leave in conversation
182
183## Edge Cases
184
185- **Mixed-language schedule**: Detect dominant language per column, normalize to one language
186- **Merged cells or irregular formatting**: Flag and ask user how to handle
187- **Extra columns not in schema**: Preserve them as-is at the end, don't delete
188- **Empty rows**: Remove silently
189- **Header detection**: Auto-detect header row (first row with text that matches known field names). If uncertain, ask.