Get the FREE Ultimate OpenClaw Setup Guide →

shopify-developer

Scanned
npx machina-cli add skill tech-leads-club/agent-skills/shopify-developer --openclaw
Files (1)
SKILL.md
7.3 KB

Shopify Developer Reference

Comprehensive reference for professional Shopify development - API version 2026-01.

Quick Reference

ItemValue
API version2026-01 (stable)
GraphQL AdminPOST https://{store}.myshopify.com/admin/api/2026-01/graphql.json
Storefront APIPOST https://{store}.myshopify.com/api/2026-01/graphql.json
Ajax API (theme)/cart.js, /cart/add.js, /cart/change.js
CLI installnpm install -g @shopify/cli
Theme devshopify theme dev --store {store}.myshopify.com
App devshopify app dev
Deployshopify app deploy
Docsshopify.dev

Choose Your Path

Read the reference file(s) that match your task:

Liquid templating - writing or debugging .liquid files:

Theme development - building or customising themes:

API integration - fetching or modifying data programmatically:

App development - building Shopify apps:

Serverless logic - custom business rules:

Headless commerce - custom storefronts:

Optimisation and troubleshooting:

Deprecation Notices

DeprecatedReplacementDeadline
Shopify ScriptsShopify FunctionsAugust 2025 (migration), sundown TBD
checkout.liquidCheckout ExtensibilityAugust 2024 (Plus), done
REST Admin APIGraphQL Admin APIActive deprecation (no removal date yet)
Legacy custom appsNew auth modelJanuary 2025 (done)
Polaris ReactPolaris Web ComponentsActive migration
Remix (app framework)React Router 7Hydrogen 2025.5.0+

Liquid Essentials

Three syntax types:

{{ product.title | upcase }}                    {# Output with filter #}
{% if product.available %}In stock{% endif %}   {# Logic tag #}
{% assign sale = product.price | times: 0.8 %}  {# Assignment #}
{%- if condition -%}Stripped whitespace{%- endif -%}

Key patterns:

{% for product in collection.products limit: 5 %}
  {% render 'product-card', product: product %}
{% endfor %}

{% paginate collection.products by 12 %}
  {% for product in paginate.collection.products %}...{% endfor %}
  {{ paginate | default_pagination }}
{% endpaginate %}

API Essentials

// GraphQL Admin - always use GraphQL over REST
const response = await fetch(`https://${store}.myshopify.com/admin/api/2026-01/graphql.json`, {
  method: 'POST',
  headers: {
    'X-Shopify-Access-Token': accessToken,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({ query, variables }),
})
const { data, errors } = await response.json()
if (errors) throw new Error(errors[0].message)

// Ajax API (theme-only cart operations)
fetch('/cart/add.js', {
  method: 'POST',
  headers: { 'Content-Type': 'application/json' },
  body: JSON.stringify({ id: variantId, quantity: 1 }),
})

Reference Files

FileLinesCoverage
liquid-syntax.md~600Tags, control flow, iteration, variables, whitespace, LiquidDoc
liquid-filters.md~870String, numeric, array, Shopify-specific, date, URL, colour filters
liquid-objects.md~695All Shopify objects: product, variant, collection, cart, customer, order, etc.
theme-development.md~1200File structure, JSON templates, sections, blocks, settings schema, layout
api-admin.md~595GraphQL queries/mutations, REST (legacy), OAuth, webhooks, rate limiting
api-storefront.md~235Storefront API, Ajax API, cart operations, Customer Account API
app-development.md~760CLI, app architecture, extensions, Polaris Web Components, deployment
functions.md~300Function types, Rust/JS targets, CLI workflow, Scripts migration
hydrogen.md~375Setup, routing, data loading, Storefront API, deployment
performance.md~605Images, JS, CSS, fonts, Liquid, third-party scripts, Core Web Vitals
debugging.md~650Liquid, JavaScript, API, cart, webhook, theme editor troubleshooting

Source

git clone https://github.com/tech-leads-club/agent-skills/blob/main/packages/skills-catalog/skills/(development)/shopify-developer/SKILL.mdView on GitHub

Overview

Comprehensive reference for professional Shopify development aligned to API version 2026-01. It covers Liquid templating, OS 2.0 themes, GraphQL Admin and Storefront APIs, Hydrogen, Functions, and performance optimization. Use it for building themes, apps, headless storefronts, and debugging Liquid and GraphQL queries.

How This Skill Works

The guide groups core Shopify development domains into task-oriented modules (Liquid templating, OS 2.0 theme architecture, GraphQL Admin/Storefront APIs, Hydrogen, Functions, and performance). Technically, you follow path-based sections to learn, implement against v2026-01 endpoints, and leverage the Shopify CLI for development, testing, and deployment.

When to Use It

  • Writing or debugging .liquid templates and Liquid objects/filters
  • Building or customizing OS 2.0 themes with sections, blocks, and JSON templates
  • Fetching or mutating data via GraphQL Admin or Storefront APIs
  • Developing Shopify apps, extensions, or headless storefronts using Hydrogen
  • Troubleshooting Liquid errors, API issues, or migrating from Scripts to Functions

Quick Start

  1. Step 1: Install and authenticate Shopify CLI: npm install -g @shopify/cli; shopify login --store {store}.myshopify.com
  2. Step 2: Pick a path (e.g., Theme Development or App Development) and scaffold the project with shopify theme dev or shopify app dev
  3. Step 3: Implement a small change in a .liquid file or GraphQL query, run local dev server, and verify in a test store

Best Practices

  • Start with the appropriate reference path (Liquid, Theme Development, API integration, Apps, Functions) to target your task
  • Prefer GraphQL Admin for data operations and Storefront API for storefront rendering; keep API version 2026-01 as the target
  • Use the Shopify CLI for local dev, testing, and deployment (theme dev, app dev, app deploy)
  • Optimize performance by auditing images, JS/CSS, fonts, and Liquid rendering; apply Core Web Vitals considerations
  • Leverage OS 2.0 architecture with sections, blocks, and JSON templates to maximize flexibility and maintainability

Example Use Cases

  • Create an OS 2.0 theme with JSON templates and sections that render dynamic product grids
  • Write a Liquid snippet to render product prices with correct currency formatting and discounts
  • Query products and inventory via GraphQL Admin to build an admin dashboard or catalog page
  • Build a headless storefront using Hydrogen connected to the Storefront API
  • Migrate a business rule from Shopify Scripts to a Shopify Function for serverless logic

Frequently Asked Questions

Add this skill to your agents
Sponsor this space

Reach thousands of developers