agentsclimarketplace

Shopify migration deep dive

Skill jeremylongshore/claude-code-plugins-plus-skills/plugins/saas-packs/shopify-pack/skills/shopify-migration-deep-dive

'Migrate e-commerce data to Shopify using bulk operations, product imports,From its SKILL.md

Install
npx -y skills add jeremylongshore/claude-code-plugins-plus-skills --skill shopify-migration-deep-dive

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

What its file declares

Copied from the file, not written here

The file declares its own license as MIT. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.

SKILL.md

4.3 KB, 804 tokens by cl100k_base, as published. Nobody here has run it

Shopify Migration Deep Dive

Overview

Migrate product catalogs, customers, and orders to Shopify using the GraphQL Admin API bulk mutations, CSV imports, and incremental migration patterns.

Prerequisites

  • Source platform data exported (CSV, JSON, or API access)
  • Shopify store with appropriate access scopes
  • Scopes needed: write_products, write_customers, write_orders, write_inventory

Instructions

Step 1: Assess Migration Scope

Data TypeShopify Import MethodComplexity
Products + variantsproductSet mutation (upsert)Low
Product imagesproductCreateMedia mutationLow
CustomersCustomer CSV import or customerCreateMedium
Historical ordersdraftOrderCreate + draftOrderCompleteHigh
Inventory levelsinventorySetQuantities mutationMedium
CollectionscollectionCreate mutationLow
Redirects (URLs)urlRedirectCreate mutationLow
MetafieldsIncluded in product/customer mutationsMedium

Step 2: Bulk Product Import with productSet

productSet is idempotent — it creates or updates based on handle, making it perfect for migrations. Handles variants, metafields, and all product attributes in a single mutation.

See Product Set Migration for the complete migration function.

Step 3: Bulk Operations for Large Imports

For importing thousands of products, use Shopify's staged uploads combined with bulk mutation to avoid rate limit issues.

See Bulk Operations Import for the staged upload and bulk mutation workflow.

Step 4: Set Inventory Levels & URL Redirects

After products are created, set inventory quantities at each location and create URL redirects to preserve SEO from the old platform.

See Inventory and Redirects for both mutation implementations.

Step 5: Post-Migration Validation

Automated validation that compares expected source counts against actual Shopify counts for products, customers, and other data types.

See Post-Migration Validation for the validation script.

Output

  • Products migrated with variants, images, and metafields
  • Inventory levels set at correct locations
  • URL redirects preserving SEO
  • Migration validated against source counts

Error Handling

IssueCauseSolution
TAKEN on product handleDuplicate handleAppend suffix or use productSet for upsert
Rate limited during importToo many sequential callsUse bulk operations or add delays
Image upload failsURL not publicly accessibleUse staged uploads for private images
Inventory not updatingWrong inventoryItemIdQuery variant's inventoryItem.id first

Examples

Quick Migration Status

# Count products in source vs Shopify
echo "Shopify product count:"
curl -sf -H "X-Shopify-Access-Token: $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"query": "{ productsCount { count } }"}' \
  "https://$STORE/admin/api/${SHOPIFY_API_VERSION:-2025-04}/graphql.json" \
  | jq '.data.productsCount.count'

Resources

What ships with it: 4 files

5.9 KB alongside SKILL.md

Keep looking

Skills are one crate of 326,144. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.