shopify-products
Create, update, and bulk-import Shopify products. Produces live products in the store via the GraphQL Admin API or CSV import.
Works with
0
total installs
0
this week
697
GitHub stars
0
upvotes
Install Skill
Run in your terminal
0
installs
0
this week
697
stars
Installation Guide
How to use shopify-products on Cursor
AI-first code editor with Composer
Prerequisites
Before installing skills in Cursor, ensure your development environment meets these requirements:
- ›Cursor installed and configured on your machine
- ›Node.js 16+ with npm — verify with
node --version - ›Active project directory where you want to add
shopify-products
Run the install command
Execute the skills CLI command in your project's root directory to begin installation:
Fetches shopify-products from jezweb/claude-skills and configures it for Cursor.
Select Cursor when prompted
The CLI shows a list of agents. Use arrow keys and space to select Cursor:
Verify installation
Confirm successful installation by checking the skill directory location:
Restart Cursor to activate shopify-products. Access via /shopify-products in your agent's command palette.
Security Notice
We perform automated surface-level scans (Gen AI Scanner, Socket, Snyk) during installation. These checks detect common vulnerabilities but do not guarantee complete security. Always review skill source code and verify the publisher's reputation before production use.
Skills execute code in your environment. Always review source, verify the publisher, and test in isolation before production.
Documentation
Shopify Products
Create, update, and bulk-import Shopify products. Produces live products in the store via the GraphQL Admin API or CSV import.
Prerequisites
- Admin API access token (use the shopify-setup skill if not configured)
- Store URL and API version from
shopify.config.jsonor.dev.vars
Workflow
Step 1: Gather Product Data
Determine what the user wants to create or update:
- Product basics: title, description (HTML), product type, vendor, tags
- Variants: options (size, colour, material), prices, SKUs, inventory quantities
- Images: URLs to upload, or local files
- SEO: page title, meta description, URL handle
- Organisation: collections, product type, tags
Accept data from:
- Direct conversation (user describes products)
- Spreadsheet/CSV file (user provides a file)
- Website scraping (user provides a URL to extract from)
Step 2: Choose Method
| Scenario | Method |
|---|---|
| 1-5 products | GraphQL mutations |
| 6-20 products | GraphQL with batching |
| 20+ products | CSV import via admin |
| Updates to existing | GraphQL mutations |
| Inventory adjustments | inventorySetQuantities mutation |
Step 3a: Create via GraphQL (Recommended)
productCreate
mutation productCreate($product: ProductCreateInput!) {
productCreate(product: $product) {
product {
id
title
handle
status
variants(first: 100) {
edges {
node { id title price sku inventoryQuantity }
}
}
}
userErrors { field message }
}
}
Variables:
{
"product": {
"title": "Example T-Shirt",
"descriptionHtml": "<p>Premium cotton tee</p>",
"vendor": "My Brand",
"productType": "T-Shirts",
"tags": ["summer", "cotton"],
"status": "DRAFT",
"options": ["Size", "Colour"],
"variants": [
{
"optionValues": [
{"optionName": "Size", "name": "S"},
{"optionName": "Colour", "name": "Black"}
],
"price": "29.95",
"sku": "TSHIRT-S-BLK",
"inventoryPolicy": "DENY",
"inventoryItem": { "tracked": true }
},
{
"optionValues": [
{"optionName": "Size", "name": "M"},
{"optionName": "Colour", "name": "Black"}
],
"price": "29.95",
"sku": "TSHIRT-M-BLK"
},
{
"optionValues": [
{"optionName": "Size", "name": "L"},
{"optionName": "Colour", "name": "Black"}
],
"price": "29.95",
"sku": "TSHIRT-L-BLK"
}
],
"seo": {
"title": "Example T-Shirt | My Brand",
"description": "Premium cotton tee in multiple sizes"
}
}
}
Curl example:
curl -s https://{store}/admin/api/2025-01/graphql.json \
-H "Content-Type: application/json" \
-H "X-Shopify-Access-Token: {token}" \
-d '{"query": "mutation productCreate($product: ProductCreateInput!) { productCreate(product: $product) { product { id title } userErrors { field message } } }", "variables": { ... }}'
Batching multiple products: Create products sequentially with a short delay between each to respect rate limits (1,000 cost points/second).
productUpdate
mutation productUpdate($input: ProductInput!) {
productUpdate(input: $input) {
product { id title }
userErrors { field message }
}
}
Variables include id (required) plus any fields to update.
productDelete
mutation productDelete($input: ProductDeleteInput!) {
productDelete(input: $input) {
deletedProductId
userErrors { field message }
}
}
productVariantsBulkCreate
Add variants to an existing product:
mutation productVariantsBulkCreate($productId: ID!, $variants: [ProductVariantsBulkInput!]!) {
productVariantsBulkCreate(productId: $productId, variants: $variants) {
productVariants { id title price }
userErrors { field message }
}
}
productVariantsBulkUpdate
mutation productVariantsBulkUpdate($productId: ID!, $variants: [ProductVariantsBulkInput!]!) {
productVariantsBulkUpdate(productId: $productId, variants: $variants) {
productVariants { id title price }
userErrors { field message }
}
}
Step 3b: Bulk Import via CSV
For 20+ products, generate a CSV and import through Shopify admin.
CSV Column Reference
Required columns:
| Column | Description | Example |
|---|---|---|
Handle |
URL slug (unique per product) | classic-tshirt |
Title |
Product name (first row per product) | Classic T-Shirt |
Body (HTML) |
Description in HTML | <p>Premium cotton</p> |
Vendor |
Brand or manufacturer | My Brand |
Product Category |
Shopify standard taxonomy | Apparel & Accessories > Clothing > Shirts & Tops |
Type |
Custom product type | T-Shirts |
Tags |
Comma-separated tags | summer, cotton, casual |
Published |
Whether product is visible | TRUE or FALSE |
Variant columns:
| Column | Description | Example |
|---|---|---|
Option1 Name |
First option name | Size |
Option1 Value |
First option value | Medium |
Option2 Name |
Second option name | Colour |
Option2 Value |
Second option value | Black |
Option3 Name |