PluginBench
Skill
Pass
Audit score 90

shopify-development

sickn33/agentic-awesome-skills

Build Shopify apps, extensions, and themes with GraphQL APIs, CLI, and Liquid templating.

What is shopify-development?

Comprehensive skill for developing Shopify merchant tools, storefront customizations, and checkout/admin UI extensions. Use this when building apps that integrate with Shopify, creating custom checkout experiences, designing themes, or implementing webhooks and billing logic.

  • Route development tasks to the correct artifact type (App, Extension, or Theme)
  • Generate and deploy Shopify apps, extensions, and themes using Shopify CLI
  • Query and mutate products, orders, customers, and inventory via GraphQL Admin API
  • Build checkout UI extensions, admin UI blocks, and POS extensions with React and Polaris components
  • Implement webhooks for order and product events with HMAC signature validation
  • Create Liquid templates for theme customization with filters and conditional logic

How to install shopify-development

npx skills add https://github.com/sickn33/agentic-awesome-skills --skill shopify-development
Prerequisites
  • Node.js and npm installed
  • Shopify Partner account and development store
  • Shopify CLI installed via npm
  • Understanding of GraphQL, React, and/or Liquid templating
Claude Code
Cursor
Windsurf
Cline

How to use shopify-development

  1. 1.Install Shopify CLI globally: npm install -g @shopify/cli@latest
  2. 2.Determine whether to build an App, Extension, or Theme based on requirements
  3. 3.Run shopify app init (for apps) or shopify theme init (for themes)
  4. 4.Configure access scopes in shopify.app.toml for required permissions
  5. 5.Develop locally using shopify app dev or shopify theme dev
  6. 6.Test on your development store and validate webhook delivery
  7. 7.Deploy using shopify app deploy or shopify theme push

Use cases

Good for
  • Building a merchant app that manages inventory across multiple sales channels
  • Creating a custom gift message checkout extension
  • Developing a theme that displays product metafields on collection pages
  • Implementing order webhooks to sync Shopify orders to an external fulfillment system
  • Building an admin UI extension for bulk product price updates
Who it's for
  • Shopify app developers
  • Theme developers
  • E-commerce engineers
  • Merchants building custom storefronts
  • Integration specialists connecting Shopify to external systems

shopify-development FAQ

What's the difference between an App, Extension, and Theme?

Apps are backend services that integrate external functionality and can charge for features. Extensions customize checkout, admin UI, or POS without backend logic. Themes customize storefront design and product pages using Liquid.

How do I authenticate with the Shopify GraphQL API?

Use OAuth flow configured in shopify.app.toml with required access scopes. The Shopify CLI handles token management during development; in production, store tokens securely in environment variables.

What GraphQL query cost should I monitor?

Check the X-Shopify-Shop-Api-Call-Limit response header. Request only fields you need, use cursor-based pagination, and switch to bulk operations for processing more than 250 items.

How do I ensure webhooks are secure?

Always verify the HMAC signature in the X-Shopify-Hmac-SHA256 header before processing webhook payloads. Validate the OAuth state parameter to prevent CSRF attacks.

Why isn't my extension appearing in the checkout?

Verify the extension target is correct, ensure the app is deployed via shopify app deploy, and confirm the app is installed on your test store.

Full instructions (SKILL.md)

Source of truth, from sickn33/agentic-awesome-skills.


name: shopify-development description: Build Shopify apps, extensions, themes using GraphQL Admin API, Shopify CLI, Polaris UI, and Liquid. risk: critical source: community date_added: '2026-02-27'

Shopify Development Skill

Use this skill when the user asks about:

  • Building Shopify apps or extensions
  • Creating checkout/admin/POS UI customizations
  • Developing themes with Liquid templating
  • Integrating with Shopify GraphQL or REST APIs
  • Implementing webhooks or billing
  • Working with metafields or Shopify Functions

ROUTING: What to Build

IF user wants to integrate external services OR build merchant tools OR charge for features: → Build an App (see references/app-development.md)

IF user wants to customize checkout OR add admin UI OR create POS actions OR implement discount rules: → Build an Extension (see references/extensions.md)

IF user wants to customize storefront design OR modify product/collection pages: → Build a Theme (see references/themes.md)

IF user needs both backend logic AND storefront UI: → Build App + Theme Extension combination


Shopify CLI Commands

Install CLI:

npm install -g @shopify/cli@latest

Create and run app:

shopify app init          # Create new app
shopify app dev           # Start dev server with tunnel
shopify app deploy        # Build and upload to Shopify

Generate extension:

shopify app generate extension --type checkout_ui_extension
shopify app generate extension --type admin_action
shopify app generate extension --type admin_block
shopify app generate extension --type pos_ui_extension
shopify app generate extension --type function

Theme development:

shopify theme init        # Create new theme
shopify theme dev         # Start local preview at localhost:9292
shopify theme pull --live # Pull live theme
shopify theme push --development  # Push to dev theme

Access Scopes

Configure in shopify.app.toml:

[access_scopes]
scopes = "read_products,write_products,read_orders,write_orders,read_customers"

Common scopes:

  • read_products, write_products - Product catalog access
  • read_orders, write_orders - Order management
  • read_customers, write_customers - Customer data
  • read_inventory, write_inventory - Stock levels
  • read_fulfillments, write_fulfillments - Order fulfillment

GraphQL Patterns (Validated against API 2026-01)

Query Products

query GetProducts($first: Int!, $query: String) {
  products(first: $first, query: $query) {
    edges {
      node {
        id
        title
        handle
        status
        variants(first: 5) {
          edges {
            node {
              id
              price
              inventoryQuantity
            }
          }
        }
      }
    }
    pageInfo {
      hasNextPage
      endCursor
    }
  }
}

Query Orders

query GetOrders($first: Int!) {
  orders(first: $first) {
    edges {
      node {
        id
        name
        createdAt
        displayFinancialStatus
        totalPriceSet {
          shopMoney {
            amount
            currencyCode
          }
        }
      }
    }
  }
}

Set Metafields

mutation SetMetafields($metafields: [MetafieldsSetInput!]!) {
  metafieldsSet(metafields: $metafields) {
    metafields {
      id
      namespace
      key
      value
    }
    userErrors {
      field
      message
    }
  }
}

Variables example:

{
  "metafields": [
    {
      "ownerId": "gid://shopify/Product/123",
      "namespace": "custom",
      "key": "care_instructions",
      "value": "Handle with care",
      "type": "single_line_text_field"
    }
  ]
}

Checkout Extension Example

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

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

function GiftMessage() {
  const [isGift, setIsGift] = useState(false);
  const [message, setMessage] = useState("");
  const applyAttributeChange = useApplyAttributeChange();

  useEffect(() => {
    if (isGift && message) {
      applyAttributeChange({
        type: "updateAttribute",
        key: "gift_message",
        value: message,
      });
    }
  }, [isGift, message]);

  return (
    <BlockStack spacing="loose">
      <Checkbox checked={isGift} onChange={setIsGift}>
        This is a gift
      </Checkbox>
      {isGift && (
        <TextField
          label="Gift Message"
          value={message}
          onChange={setMessage}
          multiline={3}
        />
      )}
    </BlockStack>
  );
}

Liquid Template Example

{% comment %} Product Card Snippet {% endcomment %}
<div class="product-card">
  <a href="{{ product.url }}">
    {% if product.featured_image %}
      <img
        src="{{ product.featured_image | img_url: 'medium' }}"
        alt="{{ product.title | escape }}"
        loading="lazy"
      >
    {% endif %}
    <h3>{{ product.title }}</h3>
    <p class="price">{{ product.price | money }}</p>
    {% if product.compare_at_price > product.price %}
      <p class="sale-badge">Sale</p>
    {% endif %}
  </a>
</div>

Webhook Configuration

In shopify.app.toml:

[webhooks]
api_version = "2026-01"

[[webhooks.subscriptions]]
topics = ["orders/create", "orders/updated"]
uri = "/webhooks/orders"

[[webhooks.subscriptions]]
topics = ["products/update"]
uri = "/webhooks/products"

# GDPR mandatory webhooks (required for app approval)
[webhooks.privacy_compliance]
customer_data_request_url = "/webhooks/gdpr/data-request"
customer_deletion_url = "/webhooks/gdpr/customer-deletion"
shop_deletion_url = "/webhooks/gdpr/shop-deletion"

Best Practices

API Usage

  • Use GraphQL over REST for new development
  • Request only fields you need (reduces query cost)
  • Implement cursor-based pagination with pageInfo.endCursor
  • Use bulk operations for processing more than 250 items
  • Handle rate limits with exponential backoff

Security

  • Store API credentials in environment variables
  • Always verify webhook HMAC signatures before processing
  • Validate OAuth state parameter to prevent CSRF
  • Request minimal access scopes
  • Use session tokens for embedded apps

Performance

  • Cache API responses when data doesn't change frequently
  • Use lazy loading in extensions
  • Optimize images in themes using img_url filter
  • Monitor GraphQL query costs via response headers

Troubleshooting

IF you see rate limit errors: → Implement exponential backoff retry logic → Switch to bulk operations for large datasets → Monitor X-Shopify-Shop-Api-Call-Limit header

IF authentication fails: → Verify the access token is still valid → Check that all required scopes were granted → Ensure OAuth flow completed successfully

IF extension is not appearing: → Verify the extension target is correct → Check that extension is published via shopify app deploy → Confirm the app is installed on the test store

IF webhook is not receiving events: → Verify the webhook URL is publicly accessible → Check HMAC signature validation logic → Review webhook logs in Partner Dashboard

IF GraphQL query fails: → Validate query against schema (use GraphiQL explorer) → Check for deprecated fields in error message → Verify you have required access scopes


Reference Files

For detailed implementation guides, read these files:

  • references/app-development.md - OAuth authentication flow, GraphQL mutations for products/orders/billing, webhook handlers, billing API integration
  • references/extensions.md - Checkout UI components, Admin UI extensions, POS extensions, Shopify Functions for discounts/payment/delivery
  • references/themes.md - Liquid syntax reference, theme directory structure, sections and snippets, common patterns

Scripts

  • scripts/shopify_init.py - Interactive project scaffolding. Run: python scripts/shopify_init.py
  • scripts/shopify_graphql.py - GraphQL utilities with query templates, pagination, rate limiting. Import: from shopify_graphql import ShopifyGraphQL

Official Documentation Links

API Version: 2026-01 (quarterly releases, 12-month deprecation window)

When to Use

This skill is applicable to execute the workflow or actions described in the overview.

Limitations

  • Use this skill only when the task clearly matches the scope described above.
  • Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
  • Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.