Skip to content
OpenSmartRoute
Skillv1.0.0

shopify-core-workflow-a

Manage Shopify products, variants, and collections using the GraphQL Admin API. Use when creating, updating, or querying products, managing inventory, or building product catalog integrations. Trigger

by jeremylongshore(0) 0 installs
Free
Sign in to install

Free account. Installing gives you the manifest plus copy-paste snippets.

See reviews

About

Imported from jeremylongshore/tons-of-skills-marketplace (plugins/saas-packs/shopify-pack/skills/shopify-core-workflow-a/SKILL.md). Install upstream with npx skills add jeremylongshore/tons-of-skills-marketplace --skill shopify-core-workflow-a. Copyright stays with the author (MIT).

Shopify Products & Catalog Management

Overview

Primary workflow for Shopify: manage products, variants, collections, and inventory using the GraphQL Admin API. Covers CRUD operations with real API mutations and response shapes.

Prerequisites

  • Completed shopify-install-auth setup
  • Access scopes: read_products, write_products, read_inventory, write_inventory
  • API version 2024-10 or later (ProductInput was split in this version)

Instructions

Step 1: Create a Product

Use productCreate with ProductCreateInput (as of 2024-10, this replaced the old unified ProductInput). Always check userErrors -- Shopify returns 200 even on validation failures.

See Product Create Mutation for the complete mutation, variables, and error handling.

Step 2: Update a Product

Use productUpdate with ProductUpdateInput (separate from create as of 2024-10). Supports metafield updates inline.

See Product Update Mutation for the complete mutation and variables.

Step 3: Query Products with Filtering

Search products using Shopify's query syntax (status:active, product_type:Apparel AND vendor:'My Brand', tag:sale, etc.) with cursor-based pagination.

See Search Products Query for the complete query with pagination and query syntax examples.

Step 4: Manage Variants and Pricing

Create variants in bulk with productVariantsBulkCreate, including pricing, SKU, barcode, option values, and inventory quantities per location.

See Bulk Create Variants for the complete mutation and variables.

Step 5: Manage Collections

Create smart (automated) collections with rule-based product matching using tag, product type, and other column filters.

See Smart Collection Create for the complete mutation and variables.

Output

  • Product created with variants and options
  • Products queryable with search filters
  • Variant pricing and inventory configured
  • Smart collections auto-organizing products

Error Handling

Error Cause Solution
userErrors: [{code: "TAKEN", field: ["handle"]}] Duplicate product handle Use a unique handle or let Shopify auto-generate
userErrors: [{code: "BLANK", field: ["title"]}] Empty required field Provide non-empty title
userErrors: [{code: "INVALID"}] Invalid metafield type Check type matches Shopify's metafield types
Access denied on productCreate Missing write_products scope Request scope in app config
Product not found Wrong GID format Must be gid://shopify/Product/1234567890 (numeric ID)

Examples

ProductSet Mutation (Upsert)

// productSet creates OR updates — idempotent by handle
const PRODUCT_SET = `
  mutation productSet($input: ProductSetInput!) {
    productSet(input: $input) {
      product { id title }
      userErrors { field message code }
    }
  }
`;

await client.request(PRODUCT_SET, {
  variables: {
    input: {
      title: "Organic Coffee Beans",
      handle: "organic-coffee-beans", // unique identifier
      productType: "Coffee",
      vendor: "Bean Co",
    },
  },
});

Resources

Use it

Copy one of these into your project. Installing also returns the manifest and these snippets.

yaml
targets:
  - https://api.opensmartroute.ai/api/v1/registry/jeremylongshore-tons-of-skills-marketplace-shopify-core-29f79a/manifest   # or paste the manifest below

Manifest

An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.

jeremylongshore-tons-of-skills-marketplace-shopify-core-29f79a.ocm.jsonjson
{
  "ocm": "1",
  "id": "jeremylongshore-tons-of-skills-marketplace-shopify-core-29f79a",
  "kind": "skill",
  "name": "shopify-core-workflow-a",
  "description": "Manage Shopify products, variants, and collections using the GraphQL Admin API. Use when creating, updating, or querying products, managing inventory, or building product catalog integrations. Trigger with phrases like \"shopify products\", \"create shopify product\", \"shopify variants\", \"shopify collections\", \"shopify inventory\".",
  "publisher": "jeremylongshore",
  "version": "1.0.0",
  "capabilities": {
    "domains": [
      "coding"
    ],
    "tags": [
      "skill-md",
      "saas",
      "ecommerce",
      "shopify",
      "skills-sh"
    ],
    "languages": [
      "en"
    ]
  },
  "quality_prior": 0.6,
  "examples": [
    "Manage Shopify products, variants, and collections using the GraphQL Admin API. Use when creating, updating, or querying products, managing inventory, or building product catalog integrations. Trigger with phrases like \"shopify products\", \"create shopify product\", \"shopify variants\", \"shopify collections\", \"shopify inventory\"."
  ],
  "primary": false,
  "metadata": {
    "source": {
      "provider": "skills.sh",
      "repository": "https://github.com/jeremylongshore/tons-of-skills-marketplace",
      "path": "plugins/saas-packs/shopify-pack/skills/shopify-core-workflow-a/SKILL.md",
      "ref": "HEAD",
      "url": "https://github.com/jeremylongshore/tons-of-skills-marketplace/blob/HEAD/plugins/saas-packs/shopify-pack/skills/shopify-core-workflow-a/SKILL.md",
      "key": "jeremylongshore/tons-of-skills-marketplace/plugins/saas-packs/shopify-pack/skills/shopify-core-workflow-a/SKILL.md"
    },
    "compatibility": "Designed for Claude Code",
    "allowed_tools": [
      "Read,",
      "Write,",
      "Edit,",
      "Bash(npm:*),",
      "Grep"
    ],
    "license": "MIT"
  },
  "instructions": "# Shopify Products & Catalog Management\n\n## Overview\n\nPrimary workflow for Shopify: manage products, variants, collections, and inventory using the GraphQL Admin API. Covers CRUD operations with real API mutations and response shapes.\n\n## Prerequisites\n\n- Completed `shopify-install-auth` setup\n- Access scopes: `read_products`, `write_products`, `read_inventory`, `write_inventory`\n- API version 2024-10 or later (ProductInput was split in this version)\n\n## Instructions\n\n### Step 1: Create a Product\n\nUse `productCreate` with `ProductCreateInput` (as of 2024-10, this replaced the old unified `Prod",
  "cost": {
    "context_tokens": 927
  }
}

Fetch it by URL: GET /api/v1/registry/jeremylongshore-tons-of-skills-marketplace-shopify-core-29f79a/manifest?version=1.0.0

Reviews

Star ratings from people who tried it. One review per account; edit yours any time.

No reviews yet. Install it, try it, and be the first to rate it.