data-importer
Transforms external product data into Saleor config.yml format. Use whenever importing, migrating, or converting data from CSV, Excel, Shopify, or any…
от saleor★ 31 звезда на GitHub
Установить data-importer в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Data Importer
Overview
This skill helps you convert product data from external sources (CSV files, spreadsheets, Shopify exports) into Saleor's config.yml format. It walks through format detection, column mapping, and validation before generating output.
When to Use
- "I need to import products from a CSV"
- "How do I convert my spreadsheet to config.yml?"
- "I'm migrating from Shopify"
- "I have product data in Excel"
- "How do I bulk import products?"
- When NOT writing config.yml from scratch -- use
configurator-schemainstead - When NOT designing product types -- use
product-modelingfirst
Core Workflow
- Detect format -- CSV, Excel, JSON, or unknown
- Extract columns -- read headers and sample data
- Map interactively -- you confirm field mappings
- Transform -- convert to Saleor schema
- Validate -- check for issues before output
File Handling
Excel (.xlsx)
Excel files need conversion. Export as CSV from Excel/Sheets, or:
python3 -c "import pandas as pd; pd.read_excel('$FILE').to_csv('${FILE%.xlsx}.csv', index=False)"
CSV
Read directly to inspect headers and sample rows.
Field Mapping
Don't assume column names. The importer will:
- Show you all columns with sample values
- Ask which column maps to each Saleor field
- Mark unmapped columns as potential attributes
Required Fields
| Saleor Field | Typical Source Columns |
|---|---|
product.name |
"name", "title", or any descriptive column |
product.slug |
Generated from name, or "handle"/"ID" column |
variant.sku |
"SKU", "External ID", "Code" |
productType |
"type" column or you specify it |
Optional Fields
| Field | Notes |
|---|---|
price |
If missing, imports as catalog-only |
quantity |
If missing, skips stock tracking |
category |
From category/region column |
description |
If present in source data |
| Other columns | Become product attributes |
Output Structure
productTypes:
- name: "[from type column or your input]"
productAttributes: [unmapped columns become attributes]
categories:
- name: "[from category column]"
slug: "[generated]"
products:
- name: "[from name column]"
slug: "[generated or from ID]"
productType: "[reference]"
variants:
- sku: "[from SKU column]"
channelListings: [if price exists]
stocks: [if quantity exists]
Special Cases
- No price column -- imports as catalog-only; add pricing later
- No SKU column -- generates from name or uses any unique ID column
- Unknown columns -- presented to you as potential attributes
- Multiple rows with same product -- grouped as variants of one product
Common Mistakes
| Mistake | Fix |
|---|---|
| Assuming column names without checking | Always inspect headers first -- column names vary wildly between sources |
| Not handling missing SKUs | Generate SKUs from product name + variant attributes, or use a unique ID column |
| Importing without validating first | Review the generated YAML before deploying -- check for duplicates and missing fields |
| Duplicate products from multi-row variants | Ensure rows sharing a product name are grouped as variants, not separate products |
| Forgetting to create product types first | Design your product types before importing -- use product-modeling skill |
Validation Checklist
Before generating output, verify:
- All products have names
- All variants have unique SKUs
- Product type references are valid
- No duplicate slugs
Reference Files
references/csv-patterns.md-- CSV/Excel parsing techniquesreferences/field-mapping.md-- Mapping strategies for various data shapesreferences/shopify-format.md-- Shopify-specific handlingreferences/transformations.md-- Data transformation rules
See Also
Related Skills
configurator-schema- Config.yml structure and field requirementsproduct-modeling- Product type design before importingsaleor-domain- Entity relationships and identifier rules
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
- 01
Bash - 02
Read - 03
Write - 04
Edit - 05
AskUserQuestion - 06
Glob
Вложенные файлы
- references/csv-patterns.md
- references/field-mapping.md
- references/shopify-format.md
- references/transformations.md
FAQ
Что делает скилл data-importer?
Transforms external product data into Saleor config.yml format. Use whenever importing, migrating, or converting data from CSV, Excel, Shopify, or any external source. Not for manual config editing (use configurator-schema).
Как установить скилл data-importer?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл data-importer запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
AnthropicCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
discernment-nudge
AnthropicAfter you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
data-consolidate
AnthropicJoins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
inspection-to-capa
AnthropicRuns the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…