Shopify Skill

Build production-ready Shopify apps, checkout extensions, admin integrations, and themes with GraphQL APIs and Shopify CLI.

When to Use

  • Building public or custom Shopify apps
  • Creating checkout/admin/POS UI extensions
  • Developing themes with Liquid templating
  • Integrating external services with webhooks
  • Managing products, orders, inventory via API

Key Capabilities

FeatureTechnologyUse Case
App DevelopmentShopify CLI, OAuthMulti-store functionality, merchant tools
GraphQL Admin APIGraphQLProduct/order/customer management
Checkout ExtensionsReact, UI ExtensionsCustom checkout fields, validation
Admin ExtensionsReact, PolarisDashboard widgets, bulk actions
Theme DevelopmentLiquid, SectionsCustom storefront design
WebhooksHMAC VerificationReal-time event handling
Shopify FunctionsJavaScriptCustom discounts, payments, shipping
MetafieldsGraphQLStore custom data on resources

Frameworks: React (extensions), Remix, Node.js (apps)

APIs: GraphQL Admin (recommended), REST Admin (legacy), Storefront API

Common Use Cases

Custom Checkout Fields

Who: E-commerce store adding gift options

"Use shopify skill to create checkout extension with gift message field,
delivery instructions, and save to order metafields. Show in admin order view."

Inventory Management App

Who: Multi-location retailer

"Build Shopify app that tracks inventory across locations, sends low stock
alerts via email, and auto-creates purchase orders. PostgreSQL backend."

Admin Analytics Dashboard

Who: Store owner needing custom reports

"Use shopify skill to add admin extension showing top products this month,
revenue by category, and customer lifetime value charts with Polaris."

Product Sync Integration

Who: Business with external ERP system

"Create Shopify app that syncs products from our REST API every hour,
updates inventory via GraphQL, handles webhooks for order fulfillment."

Custom Discount Logic

Who: B2B wholesaler

"Use shopify skill to build Shopify Function applying tiered discounts
based on customer tags, order volume, and product collections."

Quick Start

# Install Shopify CLI
npm install -g @shopify/cli@latest

# Verify
shopify version

Create App:

shopify app init
shopify app dev          # Local development
shopify app deploy       # Production deploy

Create Theme:

shopify theme init
shopify theme dev        # Preview at localhost:9292
shopify theme push       # Deploy to store

Core Patterns

GraphQL Product Query

query {
  products(first: 10) {
    edges {
      node {
        id
        title
        variants(first: 5) {
          edges {
            node {
              id
              price
              inventoryQuantity
            }
          }
        }
      }
    }
  }
}

Checkout Extension

import { reactExtension, BlockStack, TextField } from '@shopify/ui-extensions-react/checkout';

export default reactExtension('purchase.checkout.block.render', () => <Extension />);

function Extension() {
  return (
    <BlockStack>
      <TextField label="Gift Message" />
    </BlockStack>
  );
}

Handle Webhooks

app.post('/webhooks/orders', async (req, res) => {
  const hmac = req.headers['x-shopify-hmac-sha256'];
  const verified = verifyWebhook(req.body, hmac);

  if (verified) {
    const order = req.body;
    // Process order
  }

  res.status(200).send();
});

Pro Tips

  • Use GraphQL over REST for new development (better performance, cost-based limits)
  • Request minimal scopes in OAuth to pass app review faster
  • Implement retry logic for API calls with exponential backoff
  • Cache API responses to reduce costs and improve speed
  • Test on development stores (free via Partner Dashboard)
  • Monitor rate limits via X-Shopify-Shop-Api-Call-Limit header
  • Use bulk operations for processing 1000+ resources
  • Verify webhook signatures with HMAC to prevent spoofing
  • Not activating? Say: “Use shopify skill to…”

Key Takeaway

Use Shopify skill to build apps, extensions, and themes with GraphQL APIs, Shopify CLI, and React. Handles authentication, webhooks, metafields, and all Shopify platform integrations.